From c788977bd0a70a6857ed906e9d580f5e811da6f4 Mon Sep 17 00:00:00 2001 From: Abdullah Almsaeed Date: Wed, 13 Mar 2019 13:17:36 -0400 Subject: [PATCH] Expand observation details when clicking on image --- public/css/app.css | 2 +- public/js/0.825a5c484855705e19a3.js | 1 - public/js/0.99d5c823070e6284ffaa.js | 1 + public/js/1.a266fdc902bcbfb78c0d.js | 1 + public/js/1.fdf7ae7a5834c3106b49.js | 1 - public/js/10.13b19ddc3e10d7b970e6.js | 1 - public/js/10.eb3fefb19e1aec5b6a34.js | 1 + public/js/5.0fcb379126c6dff92351.js | 1 - public/js/5.7ff1c5eaa7fec20ea9ae.js | 1 + public/js/7.31711383b283780003ff.js | 1 + public/js/7.628127b85601a2003538.js | 1 - public/js/8.86ef8961eaaf3c5048fd.js | 1 - public/js/8.e3c466dcae3156837f34.js | 1 + public/js/manifest.js | 2 +- public/mix-manifest.json | 4 +-- .../assets/js/components/ObservationCard.jsx | 31 ++++++++++++------- resources/assets/sass/_card.scss | 11 +++++++ resources/assets/sass/_layout.scss | 4 +++ 18 files changed, 44 insertions(+), 22 deletions(-) delete mode 100644 public/js/0.825a5c484855705e19a3.js create mode 100644 public/js/0.99d5c823070e6284ffaa.js create mode 100644 public/js/1.a266fdc902bcbfb78c0d.js delete mode 100644 public/js/1.fdf7ae7a5834c3106b49.js delete mode 100644 public/js/10.13b19ddc3e10d7b970e6.js create mode 100644 public/js/10.eb3fefb19e1aec5b6a34.js delete mode 100644 public/js/5.0fcb379126c6dff92351.js create mode 100644 public/js/5.7ff1c5eaa7fec20ea9ae.js create mode 100644 public/js/7.31711383b283780003ff.js delete mode 100644 public/js/7.628127b85601a2003538.js delete mode 100644 public/js/8.86ef8961eaaf3c5048fd.js create mode 100644 public/js/8.e3c466dcae3156837f34.js diff --git a/public/css/app.css b/public/css/app.css index 5a6cf875..4dffce2b 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -2,7 +2,7 @@ /*! bulma.io v0.7.4 | MIT License | github.com/jgthms/bulma */@-webkit-keyframes spinAround{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinAround{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.breadcrumb,.button,.delete,.file,.is-unselectable,.modal-close,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.tabs{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.has-select select:not(.is-multiple):not(.is-loading):after,.navbar-link:not(.is-arrowless):after,.select:not(.is-multiple):not(.is-loading):after{border:3px solid transparent;border-radius:2px;border-right:0;border-top:0;content:" ";display:block;height:.625em;margin-top:-.4375em;pointer-events:none;position:absolute;top:50%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:center;transform-origin:center;width:.625em}.block:not(:last-child),.box:not(:last-child),.breadcrumb:not(:last-child),.content:not(:last-child),.document h1:not(:last-child),.document h2:not(:last-child),.document h3:not(:last-child),.document h4:not(:last-child),.document h5:not(:last-child),.highlight:not(:last-child),.level:not(:last-child),.list:not(:last-child),.message:not(:last-child),.notification:not(:last-child),.progress:not(:last-child),.subtitle:not(:last-child),.table-container:not(:last-child),.table:not(:last-child),.tabs:not(:last-child),.title:not(:last-child){margin-bottom:1.5rem}.delete,.modal-close{-moz-appearance:none;-webkit-appearance:none;background-color:hsla(0,0%,4%,.2);border:none;border-radius:290486px;cursor:pointer;pointer-events:auto;display:inline-block;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;font-size:0;height:20px;max-height:20px;max-width:20px;min-height:20px;min-width:20px;outline:none;position:relative;vertical-align:top;width:20px}.delete:after,.delete:before,.modal-close:after,.modal-close:before{background-color:#fff;content:"";display:block;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;transform-origin:center center}.delete:before,.modal-close:before{height:2px;width:50%}.delete:after,.modal-close:after{height:50%;width:2px}.delete:focus,.delete:hover,.modal-close:focus,.modal-close:hover{background-color:hsla(0,0%,4%,.3)}.delete:active,.modal-close:active{background-color:hsla(0,0%,4%,.4)}.is-small.delete,.is-small.modal-close{height:16px;max-height:16px;max-width:16px;min-height:16px;min-width:16px;width:16px}.is-medium.delete,.is-medium.modal-close{height:24px;max-height:24px;max-width:24px;min-height:24px;min-width:24px;width:24px}.is-large.delete,.is-large.modal-close{height:32px;max-height:32px;max-width:32px;min-height:32px;min-width:32px;width:32px}.button.is-loading:after,.control.is-loading:after,.has-select select.is-loading:after,.loader,.select.is-loading:after{-webkit-animation:spinAround .5s infinite linear;animation:spinAround .5s infinite linear;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em}.hero-video,.image.is-1by1 .has-ratio,.image.is-1by1 img,.image.is-1by2 .has-ratio,.image.is-1by2 img,.image.is-1by3 .has-ratio,.image.is-1by3 img,.image.is-2by1 .has-ratio,.image.is-2by1 img,.image.is-2by3 .has-ratio,.image.is-2by3 img,.image.is-3by1 .has-ratio,.image.is-3by1 img,.image.is-3by2 .has-ratio,.image.is-3by2 img,.image.is-3by4 .has-ratio,.image.is-3by4 img,.image.is-3by5 .has-ratio,.image.is-3by5 img,.image.is-4by3 .has-ratio,.image.is-4by3 img,.image.is-4by5 .has-ratio,.image.is-4by5 img,.image.is-5by3 .has-ratio,.image.is-5by3 img,.image.is-5by4 .has-ratio,.image.is-5by4 img,.image.is-9by16 .has-ratio,.image.is-9by16 img,.image.is-16by9 .has-ratio,.image.is-16by9 img,.image.is-square .has-ratio,.image.is-square img,.is-overlay,.modal,.modal-background{bottom:0;left:0;position:absolute;right:0;top:0}.button,.file-cta,.file-name,.has-select select select,.input,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.select select,.textarea{-moz-appearance:none;-webkit-appearance:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid transparent;border-radius:2px;-webkit-box-shadow:none;box-shadow:none;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:1rem;height:2.25em;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:1.5;padding:calc(.375em - 1px) calc(.625em - 1px);position:relative;vertical-align:top}.button:active,.button:focus,.file-cta:active,.file-cta:focus,.file-name:active,.file-name:focus,.has-select select select.is-active,.has-select select select.is-focused,.has-select select select:active,.has-select select select:focus,.input:active,.input:focus,.is-active.button,.is-active.file-cta,.is-active.file-name,.is-active.input,.is-active.pagination-ellipsis,.is-active.pagination-link,.is-active.pagination-next,.is-active.pagination-previous,.is-active.textarea,.is-focused.button,.is-focused.file-cta,.is-focused.file-name,.is-focused.input,.is-focused.pagination-ellipsis,.is-focused.pagination-link,.is-focused.pagination-next,.is-focused.pagination-previous,.is-focused.textarea,.pagination-ellipsis:active,.pagination-ellipsis:focus,.pagination-link:active,.pagination-link:focus,.pagination-next:active,.pagination-next:focus,.pagination-previous:active,.pagination-previous:focus,.select select.is-active,.select select.is-focused,.select select:active,.select select:focus,.textarea:active,.textarea:focus{outline:none}.button[disabled],.file-cta[disabled],.file-name[disabled],.has-select select fieldset[disabled] select,.has-select select select[disabled],.input[disabled],.pagination-ellipsis[disabled],.pagination-link[disabled],.pagination-next[disabled],.pagination-previous[disabled],.select fieldset[disabled] select,.select select[disabled],.textarea[disabled],fieldset[disabled] .button,fieldset[disabled] .file-cta,fieldset[disabled] .file-name,fieldset[disabled] .has-select select select,fieldset[disabled] .input,fieldset[disabled] .pagination-ellipsis,fieldset[disabled] .pagination-link,fieldset[disabled] .pagination-next,fieldset[disabled] .pagination-previous,fieldset[disabled] .select select,fieldset[disabled] .textarea{cursor:not-allowed} -/*! minireset.css v0.0.4 | MIT License | github.com/jgthms/minireset.css */blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}embed,iframe,img,object,video{height:auto;max-width:100%}audio{max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left}html{background-color:#fff;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;min-width:300px;overflow-x:hidden;overflow-y:scroll;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}article,aside,figure,footer,header,hgroup,section{display:block}body,button,input,select,textarea{font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif}code,pre{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:auto;font-family:monospace}body{color:#4a4a4a;font-size:1rem;font-weight:400;line-height:1.5}a{color:#2a9d8f;cursor:pointer;text-decoration:none}a strong{color:currentColor}a:hover{color:#363636}code{color:#ff3860;font-size:.875em;font-weight:400;padding:.25em .5em}code,hr{background-color:#f5f5f5}hr{border:none;display:block;height:2px;margin:1.5rem 0}img{height:auto;max-width:100%}input[type=checkbox],input[type=radio]{vertical-align:baseline}small{font-size:.875em}span{font-style:inherit;font-weight:inherit}strong{color:#363636;font-weight:700}fieldset{border:none}pre{-webkit-overflow-scrolling:touch;background-color:#f5f5f5;color:#4a4a4a;font-size:.875em;overflow-x:auto;padding:1.25rem 1.5rem;white-space:pre;word-wrap:normal}pre code{background-color:transparent;color:currentColor;font-size:1em;padding:0}table td,table th{text-align:left;vertical-align:top}table th{color:#363636}.is-clearfix:after{clear:both;content:" ";display:table}.is-pulled-left{float:left!important}.is-pulled-right{float:right!important}.is-clipped{overflow:hidden!important}.is-size-1{font-size:3rem!important}.is-size-2{font-size:2.5rem!important}.is-size-3{font-size:2rem!important}.is-size-4{font-size:1.5rem!important}.is-size-5{font-size:1.25rem!important}.is-size-6{font-size:1rem!important}.is-size-7{font-size:.75rem!important}@media screen and (max-width:768px){.is-size-1-mobile{font-size:3rem!important}.is-size-2-mobile{font-size:2.5rem!important}.is-size-3-mobile{font-size:2rem!important}.is-size-4-mobile{font-size:1.5rem!important}.is-size-5-mobile{font-size:1.25rem!important}.is-size-6-mobile{font-size:1rem!important}.is-size-7-mobile{font-size:.75rem!important}}@media print,screen and (min-width:769px){.is-size-1-tablet{font-size:3rem!important}.is-size-2-tablet{font-size:2.5rem!important}.is-size-3-tablet{font-size:2rem!important}.is-size-4-tablet{font-size:1.5rem!important}.is-size-5-tablet{font-size:1.25rem!important}.is-size-6-tablet{font-size:1rem!important}.is-size-7-tablet{font-size:.75rem!important}}@media screen and (max-width:1023px){.is-size-1-touch{font-size:3rem!important}.is-size-2-touch{font-size:2.5rem!important}.is-size-3-touch{font-size:2rem!important}.is-size-4-touch{font-size:1.5rem!important}.is-size-5-touch{font-size:1.25rem!important}.is-size-6-touch{font-size:1rem!important}.is-size-7-touch{font-size:.75rem!important}}@media screen and (min-width:1024px){.is-size-1-desktop{font-size:3rem!important}.is-size-2-desktop{font-size:2.5rem!important}.is-size-3-desktop{font-size:2rem!important}.is-size-4-desktop{font-size:1.5rem!important}.is-size-5-desktop{font-size:1.25rem!important}.is-size-6-desktop{font-size:1rem!important}.is-size-7-desktop{font-size:.75rem!important}}@media screen and (min-width:1216px){.is-size-1-widescreen{font-size:3rem!important}.is-size-2-widescreen{font-size:2.5rem!important}.is-size-3-widescreen{font-size:2rem!important}.is-size-4-widescreen{font-size:1.5rem!important}.is-size-5-widescreen{font-size:1.25rem!important}.is-size-6-widescreen{font-size:1rem!important}.is-size-7-widescreen{font-size:.75rem!important}}@media screen and (min-width:1408px){.is-size-1-fullhd{font-size:3rem!important}.is-size-2-fullhd{font-size:2.5rem!important}.is-size-3-fullhd{font-size:2rem!important}.is-size-4-fullhd{font-size:1.5rem!important}.is-size-5-fullhd{font-size:1.25rem!important}.is-size-6-fullhd{font-size:1rem!important}.is-size-7-fullhd{font-size:.75rem!important}}.has-text-centered{text-align:center!important}.has-text-justified{text-align:justify!important}.has-text-left{text-align:left!important}.has-text-right{text-align:right!important}@media screen and (max-width:768px){.has-text-centered-mobile{text-align:center!important}}@media print,screen and (min-width:769px){.has-text-centered-tablet{text-align:center!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-centered-tablet-only{text-align:center!important}}@media screen and (max-width:1023px){.has-text-centered-touch{text-align:center!important}}@media screen and (min-width:1024px){.has-text-centered-desktop{text-align:center!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-centered-desktop-only{text-align:center!important}}@media screen and (min-width:1216px){.has-text-centered-widescreen{text-align:center!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-centered-widescreen-only{text-align:center!important}}@media screen and (min-width:1408px){.has-text-centered-fullhd{text-align:center!important}}@media screen and (max-width:768px){.has-text-justified-mobile{text-align:justify!important}}@media print,screen and (min-width:769px){.has-text-justified-tablet{text-align:justify!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-justified-tablet-only{text-align:justify!important}}@media screen and (max-width:1023px){.has-text-justified-touch{text-align:justify!important}}@media screen and (min-width:1024px){.has-text-justified-desktop{text-align:justify!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-justified-desktop-only{text-align:justify!important}}@media screen and (min-width:1216px){.has-text-justified-widescreen{text-align:justify!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-justified-widescreen-only{text-align:justify!important}}@media screen and (min-width:1408px){.has-text-justified-fullhd{text-align:justify!important}}@media screen and (max-width:768px){.has-text-left-mobile{text-align:left!important}}@media print,screen and (min-width:769px){.has-text-left-tablet{text-align:left!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-left-tablet-only{text-align:left!important}}@media screen and (max-width:1023px){.has-text-left-touch{text-align:left!important}}@media screen and (min-width:1024px){.has-text-left-desktop{text-align:left!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-left-desktop-only{text-align:left!important}}@media screen and (min-width:1216px){.has-text-left-widescreen{text-align:left!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-left-widescreen-only{text-align:left!important}}@media screen and (min-width:1408px){.has-text-left-fullhd{text-align:left!important}}@media screen and (max-width:768px){.has-text-right-mobile{text-align:right!important}}@media print,screen and (min-width:769px){.has-text-right-tablet{text-align:right!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-right-tablet-only{text-align:right!important}}@media screen and (max-width:1023px){.has-text-right-touch{text-align:right!important}}@media screen and (min-width:1024px){.has-text-right-desktop{text-align:right!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-right-desktop-only{text-align:right!important}}@media screen and (min-width:1216px){.has-text-right-widescreen{text-align:right!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-right-widescreen-only{text-align:right!important}}@media screen and (min-width:1408px){.has-text-right-fullhd{text-align:right!important}}.is-capitalized{text-transform:capitalize!important}.is-lowercase{text-transform:lowercase!important}.is-uppercase{text-transform:uppercase!important}.is-italic{font-style:italic!important}.has-text-white{color:#fff!important}a.has-text-white:focus,a.has-text-white:hover{color:#e6e5e5!important}.has-background-white{background-color:#fff!important}.has-text-black{color:#0a0a0a!important}a.has-text-black:focus,a.has-text-black:hover{color:#000!important}.has-background-black{background-color:#0a0a0a!important}.has-text-light{color:#f5f5f5!important}a.has-text-light:focus,a.has-text-light:hover{color:#dbdbdb!important}.has-background-light{background-color:#f5f5f5!important}.has-text-dark{color:#1f2d3d!important}a.has-text-dark:focus,a.has-text-dark:hover{color:#0e141b!important}.has-background-dark{background-color:#1f2d3d!important}.has-text-primary{color:#2a9d8f!important}a.has-text-primary:focus,a.has-text-primary:hover{color:#1f756a!important}.has-background-primary{background-color:#2a9d8f!important}.has-text-link{color:#2a9d8f!important}a.has-text-link:focus,a.has-text-link:hover{color:#1f756a!important}.has-background-link{background-color:#2a9d8f!important}.has-text-info{color:#4d7ec8!important}a.has-text-info:focus,a.has-text-info:hover{color:#3565ad!important}.has-background-info{background-color:#4d7ec8!important}.has-text-success{color:#2ab27b!important}a.has-text-success:focus,a.has-text-success:hover{color:#20895e!important}.has-background-success{background-color:#2ab27b!important}.has-text-warning{color:#f39c12!important}a.has-text-warning:focus,a.has-text-warning:hover{color:#c87f0a!important}.has-background-warning{background-color:#f39c12!important}.has-text-danger{color:#bf5329!important}a.has-text-danger:focus,a.has-text-danger:hover{color:#954120!important}.has-background-danger{background-color:#bf5329!important}.has-text-black-bis{color:#121212!important}.has-background-black-bis{background-color:#121212!important}.has-text-black-ter{color:#242424!important}.has-background-black-ter{background-color:#242424!important}.has-text-grey-darker{color:#363636!important}.has-background-grey-darker{background-color:#363636!important}.has-text-grey-dark{color:#4a4a4a!important}.has-background-grey-dark{background-color:#4a4a4a!important}.has-text-grey{color:#7a7a7a!important}.has-background-grey{background-color:#7a7a7a!important}.has-text-grey-light{color:#b5b5b5!important}.has-background-grey-light{background-color:#b5b5b5!important}.has-text-grey-lighter{color:#dbdbdb!important}.has-background-grey-lighter{background-color:#dbdbdb!important}.has-text-white-ter{color:#f5f5f5!important}.has-background-white-ter{background-color:#f5f5f5!important}.has-text-white-bis{color:#fafafa!important}.has-background-white-bis{background-color:#fafafa!important}.has-text-weight-light{font-weight:300!important}.has-text-weight-normal{font-weight:400!important}.has-text-weight-semibold{font-weight:600!important}.has-text-weight-bold{font-weight:700!important}.is-family-primary,.is-family-sans-serif,.is-family-secondary{font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif!important}.is-family-code,.is-family-monospace{font-family:monospace!important}.is-block{display:block!important}@media screen and (max-width:768px){.is-block-mobile{display:block!important}}@media print,screen and (min-width:769px){.is-block-tablet{display:block!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-block-tablet-only{display:block!important}}@media screen and (max-width:1023px){.is-block-touch{display:block!important}}@media screen and (min-width:1024px){.is-block-desktop{display:block!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-block-desktop-only{display:block!important}}@media screen and (min-width:1216px){.is-block-widescreen{display:block!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-block-widescreen-only{display:block!important}}@media screen and (min-width:1408px){.is-block-fullhd{display:block!important}}.is-flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}@media screen and (max-width:768px){.is-flex-mobile{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media print,screen and (min-width:769px){.is-flex-tablet{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-flex-tablet-only{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (max-width:1023px){.is-flex-touch{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1024px){.is-flex-desktop{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-flex-desktop-only{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1216px){.is-flex-widescreen{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-flex-widescreen-only{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1408px){.is-flex-fullhd{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}.is-inline{display:inline!important}@media screen and (max-width:768px){.is-inline-mobile{display:inline!important}}@media print,screen and (min-width:769px){.is-inline-tablet{display:inline!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-tablet-only{display:inline!important}}@media screen and (max-width:1023px){.is-inline-touch{display:inline!important}}@media screen and (min-width:1024px){.is-inline-desktop{display:inline!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-desktop-only{display:inline!important}}@media screen and (min-width:1216px){.is-inline-widescreen{display:inline!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-widescreen-only{display:inline!important}}@media screen and (min-width:1408px){.is-inline-fullhd{display:inline!important}}.is-inline-block{display:inline-block!important}@media screen and (max-width:768px){.is-inline-block-mobile{display:inline-block!important}}@media print,screen and (min-width:769px){.is-inline-block-tablet{display:inline-block!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-block-tablet-only{display:inline-block!important}}@media screen and (max-width:1023px){.is-inline-block-touch{display:inline-block!important}}@media screen and (min-width:1024px){.is-inline-block-desktop{display:inline-block!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-block-desktop-only{display:inline-block!important}}@media screen and (min-width:1216px){.is-inline-block-widescreen{display:inline-block!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-block-widescreen-only{display:inline-block!important}}@media screen and (min-width:1408px){.is-inline-block-fullhd{display:inline-block!important}}.is-inline-flex{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}@media screen and (max-width:768px){.is-inline-flex-mobile{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media print,screen and (min-width:769px){.is-inline-flex-tablet{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-flex-tablet-only{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (max-width:1023px){.is-inline-flex-touch{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1024px){.is-inline-flex-desktop{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-flex-desktop-only{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1216px){.is-inline-flex-widescreen{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-flex-widescreen-only{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1408px){.is-inline-flex-fullhd{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}.is-hidden{display:none!important}.is-sr-only{border:none!important;clip:rect(0,0,0,0)!important;height:.01em!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:.01em!important}@media screen and (max-width:768px){.is-hidden-mobile{display:none!important}}@media print,screen and (min-width:769px){.is-hidden-tablet{display:none!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-hidden-tablet-only{display:none!important}}@media screen and (max-width:1023px){.is-hidden-touch{display:none!important}}@media screen and (min-width:1024px){.is-hidden-desktop{display:none!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-hidden-desktop-only{display:none!important}}@media screen and (min-width:1216px){.is-hidden-widescreen{display:none!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-hidden-widescreen-only{display:none!important}}@media screen and (min-width:1408px){.is-hidden-fullhd{display:none!important}}.is-invisible{visibility:hidden!important}@media screen and (max-width:768px){.is-invisible-mobile{visibility:hidden!important}}@media print,screen and (min-width:769px){.is-invisible-tablet{visibility:hidden!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-invisible-tablet-only{visibility:hidden!important}}@media screen and (max-width:1023px){.is-invisible-touch{visibility:hidden!important}}@media screen and (min-width:1024px){.is-invisible-desktop{visibility:hidden!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-invisible-desktop-only{visibility:hidden!important}}@media screen and (min-width:1216px){.is-invisible-widescreen{visibility:hidden!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-invisible-widescreen-only{visibility:hidden!important}}@media screen and (min-width:1408px){.is-invisible-fullhd{visibility:hidden!important}}.is-marginless{margin:0!important}.is-paddingless{padding:0!important}.is-radiusless{border-radius:0!important}.is-shadowless{-webkit-box-shadow:none!important;box-shadow:none!important}.box{background-color:#fff;border-radius:2px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);color:#4a4a4a;display:block;padding:1.25rem}a.box:focus,a.box:hover{-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px #2a9d8f;box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px #2a9d8f}a.box:active{-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2),0 0 0 1px #2a9d8f;box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2),0 0 0 1px #2a9d8f}.button{background-color:#fff;border-color:#dbdbdb;border-width:1px;color:#363636;cursor:pointer;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:calc(.375em - 1px) .75em;text-align:center;white-space:nowrap}.button strong{color:inherit}.button .icon,.button .icon.is-large,.button .icon.is-medium,.button .icon.is-small{height:1.5em;width:1.5em}.button .icon:first-child:not(:last-child){margin-left:calc(-.375em - 1px);margin-right:.1875em}.button .icon:last-child:not(:first-child){margin-left:.1875em;margin-right:calc(-.375em - 1px)}.button .icon:first-child:last-child{margin-left:calc(-.375em - 1px);margin-right:calc(-.375em - 1px)}.button.is-hovered,.button:hover{border-color:#b5b5b5;color:#363636}.button.is-focused,.button:focus{border-color:#3273dc;color:#363636}.button.is-focused:not(:active),.button:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.button.is-active,.button:active{border-color:#4a4a4a;color:#363636}.button.is-text{background-color:transparent;border-color:transparent;color:#4a4a4a;text-decoration:underline}.button.is-text.is-focused,.button.is-text.is-hovered,.button.is-text:focus,.button.is-text:hover{background-color:#f5f5f5;color:#363636}.button.is-text.is-active,.button.is-text:active{background-color:#e8e8e8;color:#363636}.button.is-text[disabled],fieldset[disabled] .button.is-text{background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-white{background-color:#fff;border-color:transparent;color:#0a0a0a}.button.is-white.is-hovered,.button.is-white:hover{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.button.is-white.is-focused,.button.is-white:focus{border-color:transparent;color:#0a0a0a}.button.is-white.is-focused:not(:active),.button.is-white:focus:not(:active){-webkit-box-shadow:0 0 0 .125em hsla(0,0%,100%,.25);box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.button.is-white.is-active,.button.is-white:active{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.button.is-white[disabled],fieldset[disabled] .button.is-white{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-white.is-inverted{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted:hover{background-color:#000}.button.is-white.is-inverted[disabled],fieldset[disabled] .button.is-white.is-inverted{background-color:#0a0a0a;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-white.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-white.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-white.is-outlined:focus,.button.is-white.is-outlined:hover{background-color:#fff;border-color:#fff;color:#0a0a0a}.button.is-white.is-outlined.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-white.is-outlined[disabled],fieldset[disabled] .button.is-white.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-white.is-inverted.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-white.is-inverted.is-outlined:focus,.button.is-white.is-inverted.is-outlined:hover{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-white.is-inverted.is-outlined{background-color:transparent;border-color:#0a0a0a;-webkit-box-shadow:none;box-shadow:none;color:#0a0a0a}.button.is-black{background-color:#0a0a0a;border-color:transparent;color:#fff}.button.is-black.is-hovered,.button.is-black:hover{background-color:#040404;border-color:transparent;color:#fff}.button.is-black.is-focused,.button.is-black:focus{border-color:transparent;color:#fff}.button.is-black.is-focused:not(:active),.button.is-black:focus:not(:active){-webkit-box-shadow:0 0 0 .125em hsla(0,0%,4%,.25);box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.button.is-black.is-active,.button.is-black:active{background-color:#000;border-color:transparent;color:#fff}.button.is-black[disabled],fieldset[disabled] .button.is-black{background-color:#0a0a0a;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-black.is-inverted{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted:hover{background-color:#f2f2f2}.button.is-black.is-inverted[disabled],fieldset[disabled] .button.is-black.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#0a0a0a}.button.is-black.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-black.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-black.is-outlined:focus,.button.is-black.is-outlined:hover{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.button.is-black.is-outlined.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-black.is-outlined[disabled],fieldset[disabled] .button.is-black.is-outlined{background-color:transparent;border-color:#0a0a0a;-webkit-box-shadow:none;box-shadow:none;color:#0a0a0a}.button.is-black.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-black.is-inverted.is-outlined:focus,.button.is-black.is-inverted.is-outlined:hover{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-black.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-light{background-color:#f5f5f5;border-color:transparent;color:#1f2d3d}.button.is-light.is-hovered,.button.is-light:hover{background-color:#eee;border-color:transparent;color:#1f2d3d}.button.is-light.is-focused,.button.is-light:focus{border-color:transparent;color:#1f2d3d}.button.is-light.is-focused:not(:active),.button.is-light:focus:not(:active){-webkit-box-shadow:0 0 0 .125em hsla(0,0%,96%,.25);box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.button.is-light.is-active,.button.is-light:active{background-color:#e8e8e8;border-color:transparent;color:#1f2d3d}.button.is-light[disabled],fieldset[disabled] .button.is-light{background-color:#f5f5f5;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-light.is-inverted{background-color:#1f2d3d;color:#f5f5f5}.button.is-light.is-inverted:hover{background-color:#16212c}.button.is-light.is-inverted[disabled],fieldset[disabled] .button.is-light.is-inverted{background-color:#1f2d3d;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#f5f5f5}.button.is-light.is-loading:after{border-color:transparent transparent #1f2d3d #1f2d3d!important}.button.is-light.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-light.is-outlined:focus,.button.is-light.is-outlined:hover{background-color:#f5f5f5;border-color:#f5f5f5;color:#1f2d3d}.button.is-light.is-outlined.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-light.is-outlined[disabled],fieldset[disabled] .button.is-light.is-outlined{background-color:transparent;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#f5f5f5}.button.is-light.is-inverted.is-outlined{background-color:transparent;border-color:#1f2d3d;color:#1f2d3d}.button.is-light.is-inverted.is-outlined:focus,.button.is-light.is-inverted.is-outlined:hover{background-color:#1f2d3d;color:#f5f5f5}.button.is-light.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-light.is-inverted.is-outlined{background-color:transparent;border-color:#1f2d3d;-webkit-box-shadow:none;box-shadow:none;color:#1f2d3d}.button.is-dark{background-color:#1f2d3d;border-color:transparent;color:#f5f5f5}.button.is-dark.is-hovered,.button.is-dark:hover{background-color:#1b2735;border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused,.button.is-dark:focus{border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused:not(:active),.button.is-dark:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(31,45,61,.25);box-shadow:0 0 0 .125em rgba(31,45,61,.25)}.button.is-dark.is-active,.button.is-dark:active{background-color:#16212c;border-color:transparent;color:#f5f5f5}.button.is-dark[disabled],fieldset[disabled] .button.is-dark{background-color:#1f2d3d;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-dark.is-inverted{background-color:#f5f5f5;color:#1f2d3d}.button.is-dark.is-inverted:hover{background-color:#e8e8e8}.button.is-dark.is-inverted[disabled],fieldset[disabled] .button.is-dark.is-inverted{background-color:#f5f5f5;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#1f2d3d}.button.is-dark.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-dark.is-outlined{background-color:transparent;border-color:#1f2d3d;color:#1f2d3d}.button.is-dark.is-outlined:focus,.button.is-dark.is-outlined:hover{background-color:#1f2d3d;border-color:#1f2d3d;color:#f5f5f5}.button.is-dark.is-outlined.is-loading:after{border-color:transparent transparent #1f2d3d #1f2d3d!important}.button.is-dark.is-outlined[disabled],fieldset[disabled] .button.is-dark.is-outlined{background-color:transparent;border-color:#1f2d3d;-webkit-box-shadow:none;box-shadow:none;color:#1f2d3d}.button.is-dark.is-inverted.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-dark.is-inverted.is-outlined:focus,.button.is-dark.is-inverted.is-outlined:hover{background-color:#f5f5f5;color:#1f2d3d}.button.is-dark.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-dark.is-inverted.is-outlined{background-color:transparent;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#f5f5f5}.button.is-primary{background-color:#2a9d8f;border-color:transparent;color:#fff}.button.is-primary.is-hovered,.button.is-primary:hover{background-color:#279386;border-color:transparent;color:#fff}.button.is-primary.is-focused,.button.is-primary:focus{border-color:transparent;color:#fff}.button.is-primary.is-focused:not(:active),.button.is-primary:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.button.is-primary.is-active,.button.is-primary:active{background-color:#25897d;border-color:transparent;color:#fff}.button.is-primary[disabled],fieldset[disabled] .button.is-primary{background-color:#2a9d8f;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-primary.is-inverted{background-color:#fff;color:#2a9d8f}.button.is-primary.is-inverted:hover{background-color:#f2f2f2}.button.is-primary.is-inverted[disabled],fieldset[disabled] .button.is-primary.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#2a9d8f}.button.is-primary.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-primary.is-outlined{background-color:transparent;border-color:#2a9d8f;color:#2a9d8f}.button.is-primary.is-outlined:focus,.button.is-primary.is-outlined:hover{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff}.button.is-primary.is-outlined.is-loading:after{border-color:transparent transparent #2a9d8f #2a9d8f!important}.button.is-primary.is-outlined[disabled],fieldset[disabled] .button.is-primary.is-outlined{background-color:transparent;border-color:#2a9d8f;-webkit-box-shadow:none;box-shadow:none;color:#2a9d8f}.button.is-primary.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-primary.is-inverted.is-outlined:focus,.button.is-primary.is-inverted.is-outlined:hover{background-color:#fff;color:#2a9d8f}.button.is-primary.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-primary.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-link{background-color:#2a9d8f;border-color:transparent;color:#fff}.button.is-link.is-hovered,.button.is-link:hover{background-color:#279386;border-color:transparent;color:#fff}.button.is-link.is-focused,.button.is-link:focus{border-color:transparent;color:#fff}.button.is-link.is-focused:not(:active),.button.is-link:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.button.is-link.is-active,.button.is-link:active{background-color:#25897d;border-color:transparent;color:#fff}.button.is-link[disabled],fieldset[disabled] .button.is-link{background-color:#2a9d8f;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-link.is-inverted{background-color:#fff;color:#2a9d8f}.button.is-link.is-inverted:hover{background-color:#f2f2f2}.button.is-link.is-inverted[disabled],fieldset[disabled] .button.is-link.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#2a9d8f}.button.is-link.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-link.is-outlined{background-color:transparent;border-color:#2a9d8f;color:#2a9d8f}.button.is-link.is-outlined:focus,.button.is-link.is-outlined:hover{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff}.button.is-link.is-outlined.is-loading:after{border-color:transparent transparent #2a9d8f #2a9d8f!important}.button.is-link.is-outlined[disabled],fieldset[disabled] .button.is-link.is-outlined{background-color:transparent;border-color:#2a9d8f;-webkit-box-shadow:none;box-shadow:none;color:#2a9d8f}.button.is-link.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-link.is-inverted.is-outlined:focus,.button.is-link.is-inverted.is-outlined:hover{background-color:#fff;color:#2a9d8f}.button.is-link.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-link.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-info{background-color:#4d7ec8;border-color:transparent;color:#fff}.button.is-info.is-hovered,.button.is-info:hover{background-color:#4377c5;border-color:transparent;color:#fff}.button.is-info.is-focused,.button.is-info:focus{border-color:transparent;color:#fff}.button.is-info.is-focused:not(:active),.button.is-info:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(77,126,200,.25);box-shadow:0 0 0 .125em rgba(77,126,200,.25)}.button.is-info.is-active,.button.is-info:active{background-color:#3b70c0;border-color:transparent;color:#fff}.button.is-info[disabled],fieldset[disabled] .button.is-info{background-color:#4d7ec8;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-info.is-inverted{background-color:#fff;color:#4d7ec8}.button.is-info.is-inverted:hover{background-color:#f2f2f2}.button.is-info.is-inverted[disabled],fieldset[disabled] .button.is-info.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#4d7ec8}.button.is-info.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-info.is-outlined{background-color:transparent;border-color:#4d7ec8;color:#4d7ec8}.button.is-info.is-outlined:focus,.button.is-info.is-outlined:hover{background-color:#4d7ec8;border-color:#4d7ec8;color:#fff}.button.is-info.is-outlined.is-loading:after{border-color:transparent transparent #4d7ec8 #4d7ec8!important}.button.is-info.is-outlined[disabled],fieldset[disabled] .button.is-info.is-outlined{background-color:transparent;border-color:#4d7ec8;-webkit-box-shadow:none;box-shadow:none;color:#4d7ec8}.button.is-info.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-info.is-inverted.is-outlined:focus,.button.is-info.is-inverted.is-outlined:hover{background-color:#fff;color:#4d7ec8}.button.is-info.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-info.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-success{background-color:#2ab27b;border-color:transparent;color:#fff}.button.is-success.is-hovered,.button.is-success:hover{background-color:#28a874;border-color:transparent;color:#fff}.button.is-success.is-focused,.button.is-success:focus{border-color:transparent;color:#fff}.button.is-success.is-focused:not(:active),.button.is-success:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(42,178,123,.25);box-shadow:0 0 0 .125em rgba(42,178,123,.25)}.button.is-success.is-active,.button.is-success:active{background-color:#259d6d;border-color:transparent;color:#fff}.button.is-success[disabled],fieldset[disabled] .button.is-success{background-color:#2ab27b;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-success.is-inverted{background-color:#fff;color:#2ab27b}.button.is-success.is-inverted:hover{background-color:#f2f2f2}.button.is-success.is-inverted[disabled],fieldset[disabled] .button.is-success.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#2ab27b}.button.is-success.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-success.is-outlined{background-color:transparent;border-color:#2ab27b;color:#2ab27b}.button.is-success.is-outlined:focus,.button.is-success.is-outlined:hover{background-color:#2ab27b;border-color:#2ab27b;color:#fff}.button.is-success.is-outlined.is-loading:after{border-color:transparent transparent #2ab27b #2ab27b!important}.button.is-success.is-outlined[disabled],fieldset[disabled] .button.is-success.is-outlined{background-color:transparent;border-color:#2ab27b;-webkit-box-shadow:none;box-shadow:none;color:#2ab27b}.button.is-success.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-success.is-inverted.is-outlined:focus,.button.is-success.is-inverted.is-outlined:hover{background-color:#fff;color:#2ab27b}.button.is-success.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-success.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-warning{background-color:#f39c12;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-hovered,.button.is-warning:hover{background-color:#ec960c;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused,.button.is-warning:focus{border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused:not(:active),.button.is-warning:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(243,156,18,.25);box-shadow:0 0 0 .125em rgba(243,156,18,.25)}.button.is-warning.is-active,.button.is-warning:active{background-color:#e08e0b;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning[disabled],fieldset[disabled] .button.is-warning{background-color:#f39c12;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-warning.is-inverted{color:#f39c12}.button.is-warning.is-inverted,.button.is-warning.is-inverted:hover{background-color:rgba(0,0,0,.7)}.button.is-warning.is-inverted[disabled],fieldset[disabled] .button.is-warning.is-inverted{background-color:rgba(0,0,0,.7);border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#f39c12}.button.is-warning.is-loading:after{border-color:transparent transparent rgba(0,0,0,.7) rgba(0,0,0,.7)!important}.button.is-warning.is-outlined{background-color:transparent;border-color:#f39c12;color:#f39c12}.button.is-warning.is-outlined:focus,.button.is-warning.is-outlined:hover{background-color:#f39c12;border-color:#f39c12;color:rgba(0,0,0,.7)}.button.is-warning.is-outlined.is-loading:after{border-color:transparent transparent #f39c12 #f39c12!important}.button.is-warning.is-outlined[disabled],fieldset[disabled] .button.is-warning.is-outlined{background-color:transparent;border-color:#f39c12;-webkit-box-shadow:none;box-shadow:none;color:#f39c12}.button.is-warning.is-inverted.is-outlined{background-color:transparent;border-color:rgba(0,0,0,.7);color:rgba(0,0,0,.7)}.button.is-warning.is-inverted.is-outlined:focus,.button.is-warning.is-inverted.is-outlined:hover{background-color:rgba(0,0,0,.7);color:#f39c12}.button.is-warning.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-warning.is-inverted.is-outlined{background-color:transparent;border-color:rgba(0,0,0,.7);-webkit-box-shadow:none;box-shadow:none;color:rgba(0,0,0,.7)}.button.is-danger{background-color:#bf5329;border-color:transparent;color:#fff}.button.is-danger.is-hovered,.button.is-danger:hover{background-color:#b54e27;border-color:transparent;color:#fff}.button.is-danger.is-focused,.button.is-danger:focus{border-color:transparent;color:#fff}.button.is-danger.is-focused:not(:active),.button.is-danger:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(191,83,41,.25);box-shadow:0 0 0 .125em rgba(191,83,41,.25)}.button.is-danger.is-active,.button.is-danger:active{background-color:#aa4a24;border-color:transparent;color:#fff}.button.is-danger[disabled],fieldset[disabled] .button.is-danger{background-color:#bf5329;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-danger.is-inverted{background-color:#fff;color:#bf5329}.button.is-danger.is-inverted:hover{background-color:#f2f2f2}.button.is-danger.is-inverted[disabled],fieldset[disabled] .button.is-danger.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#bf5329}.button.is-danger.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-danger.is-outlined{background-color:transparent;border-color:#bf5329;color:#bf5329}.button.is-danger.is-outlined:focus,.button.is-danger.is-outlined:hover{background-color:#bf5329;border-color:#bf5329;color:#fff}.button.is-danger.is-outlined.is-loading:after{border-color:transparent transparent #bf5329 #bf5329!important}.button.is-danger.is-outlined[disabled],fieldset[disabled] .button.is-danger.is-outlined{background-color:transparent;border-color:#bf5329;-webkit-box-shadow:none;box-shadow:none;color:#bf5329}.button.is-danger.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-danger.is-inverted.is-outlined:focus,.button.is-danger.is-inverted.is-outlined:hover{background-color:#fff;color:#bf5329}.button.is-danger.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-danger.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-small{border-radius:2px;font-size:.75rem}.button.is-normal{font-size:1rem}.button.is-medium{font-size:1.25rem}.button.is-large{font-size:1.5rem}.button[disabled],fieldset[disabled] .button{background-color:#fff;border-color:#dbdbdb;-webkit-box-shadow:none;box-shadow:none;opacity:.5}.button.is-fullwidth{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.button.is-loading{color:transparent!important;pointer-events:none}.button.is-loading:after{position:absolute;left:calc(50% - 0.5em);top:calc(50% - 0.5em);position:absolute!important}.button.is-static{background-color:#f5f5f5;border-color:#dbdbdb;color:#7a7a7a;-webkit-box-shadow:none;box-shadow:none;pointer-events:none}.button.is-rounded{border-radius:290486px;padding-left:1em;padding-right:1em}.buttons{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.buttons .button{margin-bottom:.5rem}.buttons .button:not(:last-child):not(.is-fullwidth){margin-right:.5rem}.buttons:last-child{margin-bottom:-.5rem}.buttons:not(:last-child){margin-bottom:1rem}.buttons.are-small .button:not(.is-normal):not(.is-medium):not(.is-large){border-radius:2px;font-size:.75rem}.buttons.are-medium .button:not(.is-small):not(.is-normal):not(.is-large){font-size:1.25rem}.buttons.are-large .button:not(.is-small):not(.is-normal):not(.is-medium){font-size:1.5rem}.buttons.has-addons .button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.buttons.has-addons .button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.buttons.has-addons .button:last-child{margin-right:0}.buttons.has-addons .button.is-hovered,.buttons.has-addons .button:hover{z-index:2}.buttons.has-addons .button.is-active,.buttons.has-addons .button.is-focused,.buttons.has-addons .button.is-selected,.buttons.has-addons .button:active,.buttons.has-addons .button:focus{z-index:3}.buttons.has-addons .button.is-active:hover,.buttons.has-addons .button.is-focused:hover,.buttons.has-addons .button.is-selected:hover,.buttons.has-addons .button:active:hover,.buttons.has-addons .button:focus:hover{z-index:4}.buttons.has-addons .button.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.buttons.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.buttons.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.container{margin:0 auto;position:relative}@media screen and (min-width:1024px){.container{max-width:960px;width:960px}.container.is-fluid{margin-left:32px;margin-right:32px;max-width:none;width:auto}}@media screen and (max-width:1215px){.container.is-widescreen{max-width:1152px;width:auto}}@media screen and (max-width:1407px){.container.is-fullhd{max-width:1344px;width:auto}}@media screen and (min-width:1216px){.container{max-width:1152px;width:1152px}}@media screen and (min-width:1408px){.container{max-width:1344px;width:1344px}}.content li+li{margin-top:.25em}.content blockquote:not(:last-child),.content dl:not(:last-child),.content ol:not(:last-child),.content p:not(:last-child),.content pre:not(:last-child),.content table:not(:last-child),.content ul:not(:last-child){margin-bottom:1em}.content h1,.content h2,.content h3,.content h4,.content h5,.content h6{color:#363636;font-weight:600;line-height:1.125}.content h1{font-size:2em;margin-bottom:.5em}.content h1:not(:first-child){margin-top:1em}.content h2{font-size:1.75em;margin-bottom:.5714em}.content h2:not(:first-child){margin-top:1.1428em}.content h3{font-size:1.5em;margin-bottom:.6666em}.content h3:not(:first-child){margin-top:1.3333em}.content h4{font-size:1.25em;margin-bottom:.8em}.content h5{font-size:1.125em;margin-bottom:.8888em}.content h6{font-size:1em;margin-bottom:1em}.content blockquote{background-color:#f5f5f5;border-left:5px solid #dbdbdb;padding:1.25em 1.5em}.content ol{list-style-position:outside;margin-left:2em;margin-top:1em}.content ol:not([type]){list-style-type:decimal}.content ol:not([type]).is-lower-alpha{list-style-type:lower-alpha}.content ol:not([type]).is-lower-roman{list-style-type:lower-roman}.content ol:not([type]).is-upper-alpha{list-style-type:upper-alpha}.content ol:not([type]).is-upper-roman{list-style-type:upper-roman}.content ul{list-style:disc outside;margin-left:2em;margin-top:1em}.content ul ul{list-style-type:circle;margin-top:.5em}.content ul ul ul{list-style-type:square}.content dd{margin-left:2em}.content figure{margin-left:2em;margin-right:2em;text-align:center}.content figure:not(:first-child){margin-top:2em}.content figure:not(:last-child){margin-bottom:2em}.content figure img{display:inline-block}.content figure figcaption{font-style:italic}.content pre{-webkit-overflow-scrolling:touch;overflow-x:auto;padding:1.25em 1.5em;white-space:pre;word-wrap:normal}.content sub,.content sup{font-size:75%}.content table{width:100%}.content table td,.content table th{border:1px solid #dbdbdb;border-width:0 0 1px;padding:.5em .75em;vertical-align:top}.content table th{color:#363636;text-align:left}.content table thead td,.content table thead th{border-width:0 0 2px;color:#363636}.content table tfoot td,.content table tfoot th{border-width:2px 0 0;color:#363636}.content table tbody tr:last-child td,.content table tbody tr:last-child th{border-bottom-width:0}.content.is-small{font-size:.75rem}.content.is-medium{font-size:1.25rem}.content.is-large{font-size:1.5rem}.input,.textarea{background-color:#fff;border-color:#dbdbdb;color:#363636;-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);max-width:100%;width:100%}.input::-moz-placeholder,.textarea::-moz-placeholder{color:rgba(54,54,54,.3)}.input::-webkit-input-placeholder,.textarea::-webkit-input-placeholder{color:rgba(54,54,54,.3)}.input:-moz-placeholder,.textarea:-moz-placeholder{color:rgba(54,54,54,.3)}.input:-ms-input-placeholder,.textarea:-ms-input-placeholder{color:rgba(54,54,54,.3)}.input.is-hovered,.input:hover,.textarea.is-hovered,.textarea:hover{border-color:#b5b5b5}.input.is-active,.input.is-focused,.input:active,.input:focus,.textarea.is-active,.textarea.is-focused,.textarea:active,.textarea:focus{border-color:#2a9d8f;-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.input[disabled],.textarea[disabled],fieldset[disabled] .input,fieldset[disabled] .textarea{background-color:#f5f5f5;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#7a7a7a}.input[disabled]::-moz-placeholder,.textarea[disabled]::-moz-placeholder,fieldset[disabled] .input::-moz-placeholder,fieldset[disabled] .textarea::-moz-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]::-webkit-input-placeholder,.textarea[disabled]::-webkit-input-placeholder,fieldset[disabled] .input::-webkit-input-placeholder,fieldset[disabled] .textarea::-webkit-input-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]:-moz-placeholder,.textarea[disabled]:-moz-placeholder,fieldset[disabled] .input:-moz-placeholder,fieldset[disabled] .textarea:-moz-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]:-ms-input-placeholder,.textarea[disabled]:-ms-input-placeholder,fieldset[disabled] .input:-ms-input-placeholder,fieldset[disabled] .textarea:-ms-input-placeholder{color:hsla(0,0%,48%,.3)}.input[readonly],.textarea[readonly]{-webkit-box-shadow:none;box-shadow:none}.input.is-white,.textarea.is-white{border-color:#fff}.input.is-white.is-active,.input.is-white.is-focused,.input.is-white:active,.input.is-white:focus,.textarea.is-white.is-active,.textarea.is-white.is-focused,.textarea.is-white:active,.textarea.is-white:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,100%,.25);box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.input.is-black,.textarea.is-black{border-color:#0a0a0a}.input.is-black.is-active,.input.is-black.is-focused,.input.is-black:active,.input.is-black:focus,.textarea.is-black.is-active,.textarea.is-black.is-focused,.textarea.is-black:active,.textarea.is-black:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,4%,.25);box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.input.is-light,.textarea.is-light{border-color:#f5f5f5}.input.is-light.is-active,.input.is-light.is-focused,.input.is-light:active,.input.is-light:focus,.textarea.is-light.is-active,.textarea.is-light.is-focused,.textarea.is-light:active,.textarea.is-light:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,96%,.25);box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.input.is-dark,.textarea.is-dark{border-color:#1f2d3d}.input.is-dark.is-active,.input.is-dark.is-focused,.input.is-dark:active,.input.is-dark:focus,.textarea.is-dark.is-active,.textarea.is-dark.is-focused,.textarea.is-dark:active,.textarea.is-dark:focus{-webkit-box-shadow:0 0 0 .125em rgba(31,45,61,.25);box-shadow:0 0 0 .125em rgba(31,45,61,.25)}.input.is-primary,.textarea.is-primary{border-color:#2a9d8f}.input.is-primary.is-active,.input.is-primary.is-focused,.input.is-primary:active,.input.is-primary:focus,.textarea.is-primary.is-active,.textarea.is-primary.is-focused,.textarea.is-primary:active,.textarea.is-primary:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.input.is-link,.textarea.is-link{border-color:#2a9d8f}.input.is-link.is-active,.input.is-link.is-focused,.input.is-link:active,.input.is-link:focus,.textarea.is-link.is-active,.textarea.is-link.is-focused,.textarea.is-link:active,.textarea.is-link:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.input.is-info,.textarea.is-info{border-color:#4d7ec8}.input.is-info.is-active,.input.is-info.is-focused,.input.is-info:active,.input.is-info:focus,.textarea.is-info.is-active,.textarea.is-info.is-focused,.textarea.is-info:active,.textarea.is-info:focus{-webkit-box-shadow:0 0 0 .125em rgba(77,126,200,.25);box-shadow:0 0 0 .125em rgba(77,126,200,.25)}.input.is-success,.textarea.is-success{border-color:#2ab27b}.input.is-success.is-active,.input.is-success.is-focused,.input.is-success:active,.input.is-success:focus,.textarea.is-success.is-active,.textarea.is-success.is-focused,.textarea.is-success:active,.textarea.is-success:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,178,123,.25);box-shadow:0 0 0 .125em rgba(42,178,123,.25)}.input.is-warning,.textarea.is-warning{border-color:#f39c12}.input.is-warning.is-active,.input.is-warning.is-focused,.input.is-warning:active,.input.is-warning:focus,.textarea.is-warning.is-active,.textarea.is-warning.is-focused,.textarea.is-warning:active,.textarea.is-warning:focus{-webkit-box-shadow:0 0 0 .125em rgba(243,156,18,.25);box-shadow:0 0 0 .125em rgba(243,156,18,.25)}.input.is-danger,.textarea.is-danger{border-color:#bf5329}.input.is-danger.is-active,.input.is-danger.is-focused,.input.is-danger:active,.input.is-danger:focus,.textarea.is-danger.is-active,.textarea.is-danger.is-focused,.textarea.is-danger:active,.textarea.is-danger:focus{-webkit-box-shadow:0 0 0 .125em rgba(191,83,41,.25);box-shadow:0 0 0 .125em rgba(191,83,41,.25)}.input.is-small,.textarea.is-small{border-radius:2px;font-size:.75rem}.input.is-medium,.textarea.is-medium{font-size:1.25rem}.input.is-large,.textarea.is-large{font-size:1.5rem}.input.is-fullwidth,.textarea.is-fullwidth{display:block;width:100%}.input.is-inline,.textarea.is-inline{display:inline;width:auto}.input.is-rounded{border-radius:290486px;padding-left:1em;padding-right:1em}.input.is-static{background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;padding-left:0;padding-right:0}.textarea{display:block;max-width:100%;min-width:100%;padding:.625em;resize:vertical}.textarea:not([rows]){max-height:600px;min-height:120px}.textarea[rows]{height:auto}.textarea.has-fixed-size{resize:none}.checkbox,.radio{cursor:pointer;display:inline-block;line-height:1.25;position:relative}.checkbox input,.radio input{cursor:pointer}.checkbox:hover,.radio:hover{color:#363636}.checkbox[disabled],.radio[disabled],fieldset[disabled] .checkbox,fieldset[disabled] .radio{color:#7a7a7a;cursor:not-allowed}.radio+.radio{margin-left:.5em}.has-select select,.select{display:inline-block;max-width:100%;position:relative;vertical-align:top}.has-select select:not(.is-multiple),.select:not(.is-multiple){height:2.25em}.has-select select:not(.is-multiple):not(.is-loading):after,.select:not(.is-multiple):not(.is-loading):after{border-color:#2a9d8f;right:1.125em;z-index:4}.has-select select.is-rounded select,.select.is-rounded select{border-radius:290486px;padding-left:1em}.has-select select select,.select select{background-color:#fff;border-color:#dbdbdb;color:#363636;cursor:pointer;display:block;font-size:1em;max-width:100%;outline:none}.has-select select select::-moz-placeholder,.select select::-moz-placeholder{color:rgba(54,54,54,.3)}.has-select select select::-webkit-input-placeholder,.select select::-webkit-input-placeholder{color:rgba(54,54,54,.3)}.has-select select select:-moz-placeholder,.select select:-moz-placeholder{color:rgba(54,54,54,.3)}.has-select select select:-ms-input-placeholder,.select select:-ms-input-placeholder{color:rgba(54,54,54,.3)}.has-select select select.is-hovered,.has-select select select:hover,.select select.is-hovered,.select select:hover{border-color:#b5b5b5}.has-select select select.is-active,.has-select select select.is-focused,.has-select select select:active,.has-select select select:focus,.select select.is-active,.select select.is-focused,.select select:active,.select select:focus{border-color:#2a9d8f;-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.has-select fieldset[disabled] select select,.has-select select select[disabled],.select select[disabled],fieldset[disabled] .has-select select select,fieldset[disabled] .select select{background-color:#f5f5f5;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#7a7a7a}.has-select fieldset[disabled] select select::-moz-placeholder,.has-select select select[disabled]::-moz-placeholder,.select select[disabled]::-moz-placeholder,fieldset[disabled] .has-select select select::-moz-placeholder,fieldset[disabled] .select select::-moz-placeholder{color:hsla(0,0%,48%,.3)}.has-select fieldset[disabled] select select::-webkit-input-placeholder,.has-select select select[disabled]::-webkit-input-placeholder,.select select[disabled]::-webkit-input-placeholder,fieldset[disabled] .has-select select select::-webkit-input-placeholder,fieldset[disabled] .select select::-webkit-input-placeholder{color:hsla(0,0%,48%,.3)}.has-select fieldset[disabled] select select:-moz-placeholder,.has-select select select[disabled]:-moz-placeholder,.select select[disabled]:-moz-placeholder,fieldset[disabled] .has-select select select:-moz-placeholder,fieldset[disabled] .select select:-moz-placeholder{color:hsla(0,0%,48%,.3)}.has-select fieldset[disabled] select select:-ms-input-placeholder,.has-select select select[disabled]:-ms-input-placeholder,.select select[disabled]:-ms-input-placeholder,fieldset[disabled] .has-select select select:-ms-input-placeholder,fieldset[disabled] .select select:-ms-input-placeholder{color:hsla(0,0%,48%,.3)}.has-select select select::-ms-expand,.select select::-ms-expand{display:none}.has-select fieldset[disabled] select select:hover,.has-select select select[disabled]:hover,.select select[disabled]:hover,fieldset[disabled] .has-select select select:hover,fieldset[disabled] .select select:hover{border-color:#f5f5f5}.has-select select select:not([multiple]),.select select:not([multiple]){padding-right:2.5em}.has-select select select[multiple],.select select[multiple]{height:auto;padding:0}.has-select select select[multiple] option,.select select[multiple] option{padding:.5em 1em}.has-select select:not(.is-multiple):not(.is-loading):hover:after,.select:not(.is-multiple):not(.is-loading):hover:after{border-color:#363636}.has-select select.is-white:not(:hover):after,.has-select select.is-white select,.select.is-white:not(:hover):after,.select.is-white select{border-color:#fff}.has-select select.is-white select.is-hovered,.has-select select.is-white select:hover,.select.is-white select.is-hovered,.select.is-white select:hover{border-color:#f2f2f2}.has-select select.is-white select.is-active,.has-select select.is-white select.is-focused,.has-select select.is-white select:active,.has-select select.is-white select:focus,.select.is-white select.is-active,.select.is-white select.is-focused,.select.is-white select:active,.select.is-white select:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,100%,.25);box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.has-select select.is-black:not(:hover):after,.has-select select.is-black select,.select.is-black:not(:hover):after,.select.is-black select{border-color:#0a0a0a}.has-select select.is-black select.is-hovered,.has-select select.is-black select:hover,.select.is-black select.is-hovered,.select.is-black select:hover{border-color:#000}.has-select select.is-black select.is-active,.has-select select.is-black select.is-focused,.has-select select.is-black select:active,.has-select select.is-black select:focus,.select.is-black select.is-active,.select.is-black select.is-focused,.select.is-black select:active,.select.is-black select:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,4%,.25);box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.has-select select.is-light:not(:hover):after,.has-select select.is-light select,.select.is-light:not(:hover):after,.select.is-light select{border-color:#f5f5f5}.has-select select.is-light select.is-hovered,.has-select select.is-light select:hover,.select.is-light select.is-hovered,.select.is-light select:hover{border-color:#e8e8e8}.has-select select.is-light select.is-active,.has-select select.is-light select.is-focused,.has-select select.is-light select:active,.has-select select.is-light select:focus,.select.is-light select.is-active,.select.is-light select.is-focused,.select.is-light select:active,.select.is-light select:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,96%,.25);box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.has-select select.is-dark:not(:hover):after,.has-select select.is-dark select,.select.is-dark:not(:hover):after,.select.is-dark select{border-color:#1f2d3d}.has-select select.is-dark select.is-hovered,.has-select select.is-dark select:hover,.select.is-dark select.is-hovered,.select.is-dark select:hover{border-color:#16212c}.has-select select.is-dark select.is-active,.has-select select.is-dark select.is-focused,.has-select select.is-dark select:active,.has-select select.is-dark select:focus,.select.is-dark select.is-active,.select.is-dark select.is-focused,.select.is-dark select:active,.select.is-dark select:focus{-webkit-box-shadow:0 0 0 .125em rgba(31,45,61,.25);box-shadow:0 0 0 .125em rgba(31,45,61,.25)}.has-select select.is-primary:not(:hover):after,.has-select select.is-primary select,.select.is-primary:not(:hover):after,.select.is-primary select{border-color:#2a9d8f}.has-select select.is-primary select.is-hovered,.has-select select.is-primary select:hover,.select.is-primary select.is-hovered,.select.is-primary select:hover{border-color:#25897d}.has-select select.is-primary select.is-active,.has-select select.is-primary select.is-focused,.has-select select.is-primary select:active,.has-select select.is-primary select:focus,.select.is-primary select.is-active,.select.is-primary select.is-focused,.select.is-primary select:active,.select.is-primary select:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.has-select select.is-link:not(:hover):after,.has-select select.is-link select,.select.is-link:not(:hover):after,.select.is-link select{border-color:#2a9d8f}.has-select select.is-link select.is-hovered,.has-select select.is-link select:hover,.select.is-link select.is-hovered,.select.is-link select:hover{border-color:#25897d}.has-select select.is-link select.is-active,.has-select select.is-link select.is-focused,.has-select select.is-link select:active,.has-select select.is-link select:focus,.select.is-link select.is-active,.select.is-link select.is-focused,.select.is-link select:active,.select.is-link select:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.has-select select.is-info:not(:hover):after,.has-select select.is-info select,.select.is-info:not(:hover):after,.select.is-info select{border-color:#4d7ec8}.has-select select.is-info select.is-hovered,.has-select select.is-info select:hover,.select.is-info select.is-hovered,.select.is-info select:hover{border-color:#3b70c0}.has-select select.is-info select.is-active,.has-select select.is-info select.is-focused,.has-select select.is-info select:active,.has-select select.is-info select:focus,.select.is-info select.is-active,.select.is-info select.is-focused,.select.is-info select:active,.select.is-info select:focus{-webkit-box-shadow:0 0 0 .125em rgba(77,126,200,.25);box-shadow:0 0 0 .125em rgba(77,126,200,.25)}.has-select select.is-success:not(:hover):after,.has-select select.is-success select,.select.is-success:not(:hover):after,.select.is-success select{border-color:#2ab27b}.has-select select.is-success select.is-hovered,.has-select select.is-success select:hover,.select.is-success select.is-hovered,.select.is-success select:hover{border-color:#259d6d}.has-select select.is-success select.is-active,.has-select select.is-success select.is-focused,.has-select select.is-success select:active,.has-select select.is-success select:focus,.select.is-success select.is-active,.select.is-success select.is-focused,.select.is-success select:active,.select.is-success select:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,178,123,.25);box-shadow:0 0 0 .125em rgba(42,178,123,.25)}.has-select select.is-warning:not(:hover):after,.has-select select.is-warning select,.select.is-warning:not(:hover):after,.select.is-warning select{border-color:#f39c12}.has-select select.is-warning select.is-hovered,.has-select select.is-warning select:hover,.select.is-warning select.is-hovered,.select.is-warning select:hover{border-color:#e08e0b}.has-select select.is-warning select.is-active,.has-select select.is-warning select.is-focused,.has-select select.is-warning select:active,.has-select select.is-warning select:focus,.select.is-warning select.is-active,.select.is-warning select.is-focused,.select.is-warning select:active,.select.is-warning select:focus{-webkit-box-shadow:0 0 0 .125em rgba(243,156,18,.25);box-shadow:0 0 0 .125em rgba(243,156,18,.25)}.has-select select.is-danger:not(:hover):after,.has-select select.is-danger select,.select.is-danger:not(:hover):after,.select.is-danger select{border-color:#bf5329}.has-select select.is-danger select.is-hovered,.has-select select.is-danger select:hover,.select.is-danger select.is-hovered,.select.is-danger select:hover{border-color:#aa4a24}.has-select select.is-danger select.is-active,.has-select select.is-danger select.is-focused,.has-select select.is-danger select:active,.has-select select.is-danger select:focus,.select.is-danger select.is-active,.select.is-danger select.is-focused,.select.is-danger select:active,.select.is-danger select:focus{-webkit-box-shadow:0 0 0 .125em rgba(191,83,41,.25);box-shadow:0 0 0 .125em rgba(191,83,41,.25)}.has-select select.is-small,.select.is-small{border-radius:2px;font-size:.75rem}.has-select select.is-medium,.select.is-medium{font-size:1.25rem}.has-select select.is-large,.select.is-large{font-size:1.5rem}.has-select select.is-disabled:after,.select.is-disabled:after{border-color:#7a7a7a}.has-select select.is-fullwidth,.has-select select.is-fullwidth select,.select.is-fullwidth,.select.is-fullwidth select{width:100%}.has-select select.is-loading:after,.select.is-loading:after{margin-top:0;position:absolute;right:.625em;top:.625em;-webkit-transform:none;transform:none}.has-select select.is-loading.is-small:after,.select.is-loading.is-small:after{font-size:.75rem}.has-select select.is-loading.is-medium:after,.select.is-loading.is-medium:after{font-size:1.25rem}.has-select select.is-loading.is-large:after,.select.is-loading.is-large:after{font-size:1.5rem}.file{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;position:relative}.file.is-white .file-cta{background-color:#fff;border-color:transparent;color:#0a0a0a}.file.is-white.is-hovered .file-cta,.file.is-white:hover .file-cta{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.file.is-white.is-focused .file-cta,.file.is-white:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em hsla(0,0%,100%,.25);box-shadow:0 0 .5em hsla(0,0%,100%,.25);color:#0a0a0a}.file.is-white.is-active .file-cta,.file.is-white:active .file-cta{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.file.is-black .file-cta{background-color:#0a0a0a;border-color:transparent;color:#fff}.file.is-black.is-hovered .file-cta,.file.is-black:hover .file-cta{background-color:#040404;border-color:transparent;color:#fff}.file.is-black.is-focused .file-cta,.file.is-black:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em hsla(0,0%,4%,.25);box-shadow:0 0 .5em hsla(0,0%,4%,.25);color:#fff}.file.is-black.is-active .file-cta,.file.is-black:active .file-cta{background-color:#000;border-color:transparent;color:#fff}.file.is-light .file-cta{background-color:#f5f5f5;border-color:transparent;color:#1f2d3d}.file.is-light.is-hovered .file-cta,.file.is-light:hover .file-cta{background-color:#eee;border-color:transparent;color:#1f2d3d}.file.is-light.is-focused .file-cta,.file.is-light:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em hsla(0,0%,96%,.25);box-shadow:0 0 .5em hsla(0,0%,96%,.25);color:#1f2d3d}.file.is-light.is-active .file-cta,.file.is-light:active .file-cta{background-color:#e8e8e8;border-color:transparent;color:#1f2d3d}.file.is-dark .file-cta{background-color:#1f2d3d;border-color:transparent;color:#f5f5f5}.file.is-dark.is-hovered .file-cta,.file.is-dark:hover .file-cta{background-color:#1b2735;border-color:transparent;color:#f5f5f5}.file.is-dark.is-focused .file-cta,.file.is-dark:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(31,45,61,.25);box-shadow:0 0 .5em rgba(31,45,61,.25);color:#f5f5f5}.file.is-dark.is-active .file-cta,.file.is-dark:active .file-cta{background-color:#16212c;border-color:transparent;color:#f5f5f5}.file.is-primary .file-cta{background-color:#2a9d8f;border-color:transparent;color:#fff}.file.is-primary.is-hovered .file-cta,.file.is-primary:hover .file-cta{background-color:#279386;border-color:transparent;color:#fff}.file.is-primary.is-focused .file-cta,.file.is-primary:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(42,157,143,.25);box-shadow:0 0 .5em rgba(42,157,143,.25);color:#fff}.file.is-primary.is-active .file-cta,.file.is-primary:active .file-cta{background-color:#25897d;border-color:transparent;color:#fff}.file.is-link .file-cta{background-color:#2a9d8f;border-color:transparent;color:#fff}.file.is-link.is-hovered .file-cta,.file.is-link:hover .file-cta{background-color:#279386;border-color:transparent;color:#fff}.file.is-link.is-focused .file-cta,.file.is-link:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(42,157,143,.25);box-shadow:0 0 .5em rgba(42,157,143,.25);color:#fff}.file.is-link.is-active .file-cta,.file.is-link:active .file-cta{background-color:#25897d;border-color:transparent;color:#fff}.file.is-info .file-cta{background-color:#4d7ec8;border-color:transparent;color:#fff}.file.is-info.is-hovered .file-cta,.file.is-info:hover .file-cta{background-color:#4377c5;border-color:transparent;color:#fff}.file.is-info.is-focused .file-cta,.file.is-info:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(77,126,200,.25);box-shadow:0 0 .5em rgba(77,126,200,.25);color:#fff}.file.is-info.is-active .file-cta,.file.is-info:active .file-cta{background-color:#3b70c0;border-color:transparent;color:#fff}.file.is-success .file-cta{background-color:#2ab27b;border-color:transparent;color:#fff}.file.is-success.is-hovered .file-cta,.file.is-success:hover .file-cta{background-color:#28a874;border-color:transparent;color:#fff}.file.is-success.is-focused .file-cta,.file.is-success:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(42,178,123,.25);box-shadow:0 0 .5em rgba(42,178,123,.25);color:#fff}.file.is-success.is-active .file-cta,.file.is-success:active .file-cta{background-color:#259d6d;border-color:transparent;color:#fff}.file.is-warning .file-cta{background-color:#f39c12;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-hovered .file-cta,.file.is-warning:hover .file-cta{background-color:#ec960c;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-focused .file-cta,.file.is-warning:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(243,156,18,.25);box-shadow:0 0 .5em rgba(243,156,18,.25);color:rgba(0,0,0,.7)}.file.is-warning.is-active .file-cta,.file.is-warning:active .file-cta{background-color:#e08e0b;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-danger .file-cta{background-color:#bf5329;border-color:transparent;color:#fff}.file.is-danger.is-hovered .file-cta,.file.is-danger:hover .file-cta{background-color:#b54e27;border-color:transparent;color:#fff}.file.is-danger.is-focused .file-cta,.file.is-danger:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(191,83,41,.25);box-shadow:0 0 .5em rgba(191,83,41,.25);color:#fff}.file.is-danger.is-active .file-cta,.file.is-danger:active .file-cta{background-color:#aa4a24;border-color:transparent;color:#fff}.file.is-small{font-size:.75rem}.file.is-medium{font-size:1.25rem}.file.is-medium .file-icon .fa{font-size:21px}.file.is-large{font-size:1.5rem}.file.is-large .file-icon .fa{font-size:28px}.file.has-name .file-cta{border-bottom-right-radius:0;border-top-right-radius:0}.file.has-name .file-name{border-bottom-left-radius:0;border-top-left-radius:0}.file.has-name.is-empty .file-cta{border-radius:2px}.file.has-name.is-empty .file-name{display:none}.file.is-boxed .file-cta,.file.is-boxed .file-label{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.file.is-boxed .file-cta{height:auto;padding:1em 3em}.file.is-boxed .file-name{border-width:0 1px 1px}.file.is-boxed .file-icon{height:1.5em;width:1.5em}.file.is-boxed .file-icon .fa{font-size:21px}.file.is-boxed.is-small .file-icon .fa{font-size:14px}.file.is-boxed.is-medium .file-icon .fa{font-size:28px}.file.is-boxed.is-large .file-icon .fa{font-size:35px}.file.is-boxed.has-name .file-cta{border-radius:2px 2px 0 0}.file.is-boxed.has-name .file-name{border-radius:0 0 2px 2px;border-width:0 1px 1px}.file.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.file.is-fullwidth .file-label{width:100%}.file.is-fullwidth .file-name{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;max-width:none}.file.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.file.is-right .file-cta{border-radius:0 2px 2px 0}.file.is-right .file-name{border-radius:2px 0 0 2px;border-width:1px 0 1px 1px;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.file-label{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;overflow:hidden;position:relative}.file-label:hover .file-cta{background-color:#eee;color:#363636}.file-label:hover .file-name{border-color:#d5d5d5}.file-label:active .file-cta{background-color:#e8e8e8;color:#363636}.file-label:active .file-name{border-color:#cfcfcf}.file-input{height:100%;left:0;opacity:0;outline:none;position:absolute;top:0;width:100%}.file-cta,.file-name{border-color:#dbdbdb;border-radius:2px;font-size:1em;padding-left:1em;padding-right:1em;white-space:nowrap}.file-cta{background-color:#f5f5f5;color:#4a4a4a}.file-name{border-color:#dbdbdb;border-style:solid;border-width:1px 1px 1px 0;display:block;max-width:16em;overflow:hidden;text-align:left;text-overflow:ellipsis}.file-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:1em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:.5em;width:1em}.file-icon .fa{font-size:14px}.label{color:#363636;display:block;font-size:1rem;font-weight:700}.label:not(:last-child){margin-bottom:.5em}.label.is-small{font-size:.75rem}.label.is-medium{font-size:1.25rem}.label.is-large{font-size:1.5rem}.help{display:block;font-size:.75rem;margin-top:.25rem}.help.is-white{color:#fff}.help.is-black{color:#0a0a0a}.help.is-light{color:#f5f5f5}.help.is-dark{color:#1f2d3d}.help.is-link,.help.is-primary{color:#2a9d8f}.help.is-info{color:#4d7ec8}.help.is-success{color:#2ab27b}.help.is-warning{color:#f39c12}.help.is-danger{color:#bf5329}.field:not(:last-child){margin-bottom:.75rem}.field.has-addons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.field.has-addons .control:not(:last-child){margin-right:-1px}.field.has-addons .control:not(:first-child):not(:last-child) .button,.field.has-addons .control:not(:first-child):not(:last-child) .has-select select select,.field.has-addons .control:not(:first-child):not(:last-child) .input,.field.has-addons .control:not(:first-child):not(:last-child) .select select,.has-select .field.has-addons .control:not(:first-child):not(:last-child) select select{border-radius:0}.field.has-addons .control:first-child:not(:only-child) .button,.field.has-addons .control:first-child:not(:only-child) .has-select select select,.field.has-addons .control:first-child:not(:only-child) .input,.field.has-addons .control:first-child:not(:only-child) .select select,.has-select .field.has-addons .control:first-child:not(:only-child) select select{border-bottom-right-radius:0;border-top-right-radius:0}.field.has-addons .control:last-child:not(:only-child) .button,.field.has-addons .control:last-child:not(:only-child) .has-select select select,.field.has-addons .control:last-child:not(:only-child) .input,.field.has-addons .control:last-child:not(:only-child) .select select,.has-select .field.has-addons .control:last-child:not(:only-child) select select{border-bottom-left-radius:0;border-top-left-radius:0}.field.has-addons .control .button:not([disabled]).is-hovered,.field.has-addons .control .button:not([disabled]):hover,.field.has-addons .control .has-select select select:not([disabled]).is-hovered,.field.has-addons .control .has-select select select:not([disabled]):hover,.field.has-addons .control .input:not([disabled]).is-hovered,.field.has-addons .control .input:not([disabled]):hover,.field.has-addons .control .select select:not([disabled]).is-hovered,.field.has-addons .control .select select:not([disabled]):hover,.has-select .field.has-addons .control select select:not([disabled]).is-hovered,.has-select .field.has-addons .control select select:not([disabled]):hover{z-index:2}.field.has-addons .control .button:not([disabled]).is-active,.field.has-addons .control .button:not([disabled]).is-focused,.field.has-addons .control .button:not([disabled]):active,.field.has-addons .control .button:not([disabled]):focus,.field.has-addons .control .has-select select select:not([disabled]).is-active,.field.has-addons .control .has-select select select:not([disabled]).is-focused,.field.has-addons .control .has-select select select:not([disabled]):active,.field.has-addons .control .has-select select select:not([disabled]):focus,.field.has-addons .control .input:not([disabled]).is-active,.field.has-addons .control .input:not([disabled]).is-focused,.field.has-addons .control .input:not([disabled]):active,.field.has-addons .control .input:not([disabled]):focus,.field.has-addons .control .select select:not([disabled]).is-active,.field.has-addons .control .select select:not([disabled]).is-focused,.field.has-addons .control .select select:not([disabled]):active,.field.has-addons .control .select select:not([disabled]):focus,.has-select .field.has-addons .control select select:not([disabled]).is-active,.has-select .field.has-addons .control select select:not([disabled]).is-focused,.has-select .field.has-addons .control select select:not([disabled]):active,.has-select .field.has-addons .control select select:not([disabled]):focus{z-index:3}.field.has-addons .control .button:not([disabled]).is-active:hover,.field.has-addons .control .button:not([disabled]).is-focused:hover,.field.has-addons .control .button:not([disabled]):active:hover,.field.has-addons .control .button:not([disabled]):focus:hover,.field.has-addons .control .has-select select select:not([disabled]).is-active:hover,.field.has-addons .control .has-select select select:not([disabled]).is-focused:hover,.field.has-addons .control .has-select select select:not([disabled]):active:hover,.field.has-addons .control .has-select select select:not([disabled]):focus:hover,.field.has-addons .control .input:not([disabled]).is-active:hover,.field.has-addons .control .input:not([disabled]).is-focused:hover,.field.has-addons .control .input:not([disabled]):active:hover,.field.has-addons .control .input:not([disabled]):focus:hover,.field.has-addons .control .select select:not([disabled]).is-active:hover,.field.has-addons .control .select select:not([disabled]).is-focused:hover,.field.has-addons .control .select select:not([disabled]):active:hover,.field.has-addons .control .select select:not([disabled]):focus:hover,.has-select .field.has-addons .control select select:not([disabled]).is-active:hover,.has-select .field.has-addons .control select select:not([disabled]).is-focused:hover,.has-select .field.has-addons .control select select:not([disabled]):active:hover,.has-select .field.has-addons .control select select:not([disabled]):focus:hover{z-index:4}.field.has-addons .control.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.field.has-addons.has-addons-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.field.has-addons.has-addons-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.field.has-addons.has-addons-fullwidth .control{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.field.is-grouped{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.field.is-grouped>.control{-ms-flex-negative:0;flex-shrink:0}.field.is-grouped>.control:not(:last-child){margin-bottom:0;margin-right:.75rem}.field.is-grouped>.control.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.field.is-grouped.is-grouped-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.field.is-grouped.is-grouped-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.field.is-grouped.is-grouped-multiline{-ms-flex-wrap:wrap;flex-wrap:wrap}.field.is-grouped.is-grouped-multiline>.control:last-child,.field.is-grouped.is-grouped-multiline>.control:not(:last-child){margin-bottom:.75rem}.field.is-grouped.is-grouped-multiline:last-child{margin-bottom:-.75rem}.field.is-grouped.is-grouped-multiline:not(:last-child){margin-bottom:0}@media print,screen and (min-width:769px){.field.is-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}}.field-label .label{font-size:inherit}@media screen and (max-width:768px){.field-label{margin-bottom:.5rem}}@media print,screen and (min-width:769px){.field-label{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;margin-right:1.5rem;text-align:right}.field-label.is-small{font-size:.75rem;padding-top:.375em}.field-label.is-normal{padding-top:.375em}.field-label.is-medium{font-size:1.25rem;padding-top:.375em}.field-label.is-large{font-size:1.5rem;padding-top:.375em}}.field-body .field .field{margin-bottom:0}@media print,screen and (min-width:769px){.field-body{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:5;-ms-flex-positive:5;flex-grow:5;-ms-flex-negative:1;flex-shrink:1}.field-body .field{margin-bottom:0}.field-body>.field{-ms-flex-negative:1;flex-shrink:1}.field-body>.field:not(.is-narrow){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.field-body>.field:not(:last-child){margin-right:.75rem}}.control{-webkit-box-sizing:border-box;box-sizing:border-box;clear:both;font-size:1rem;position:relative;text-align:left}.control.has-icons-left .has-select select:focus~.icon,.control.has-icons-left .input:focus~.icon,.control.has-icons-left .select:focus~.icon,.control.has-icons-right .has-select select:focus~.icon,.control.has-icons-right .input:focus~.icon,.control.has-icons-right .select:focus~.icon,.has-select .control.has-icons-left select:focus~.icon,.has-select .control.has-icons-right select:focus~.icon{color:#7a7a7a}.control.has-icons-left .has-select select.is-small~.icon,.control.has-icons-left .input.is-small~.icon,.control.has-icons-left .select.is-small~.icon,.control.has-icons-right .has-select select.is-small~.icon,.control.has-icons-right .input.is-small~.icon,.control.has-icons-right .select.is-small~.icon,.has-select .control.has-icons-left select.is-small~.icon,.has-select .control.has-icons-right select.is-small~.icon{font-size:.75rem}.control.has-icons-left .has-select select.is-medium~.icon,.control.has-icons-left .input.is-medium~.icon,.control.has-icons-left .select.is-medium~.icon,.control.has-icons-right .has-select select.is-medium~.icon,.control.has-icons-right .input.is-medium~.icon,.control.has-icons-right .select.is-medium~.icon,.has-select .control.has-icons-left select.is-medium~.icon,.has-select .control.has-icons-right select.is-medium~.icon{font-size:1.25rem}.control.has-icons-left .has-select select.is-large~.icon,.control.has-icons-left .input.is-large~.icon,.control.has-icons-left .select.is-large~.icon,.control.has-icons-right .has-select select.is-large~.icon,.control.has-icons-right .input.is-large~.icon,.control.has-icons-right .select.is-large~.icon,.has-select .control.has-icons-left select.is-large~.icon,.has-select .control.has-icons-right select.is-large~.icon{font-size:1.5rem}.control.has-icons-left .icon,.control.has-icons-right .icon{color:#dbdbdb;height:2.25em;pointer-events:none;position:absolute;top:0;width:2.25em;z-index:4}.control.has-icons-left .has-select select select,.control.has-icons-left .input,.control.has-icons-left .select select,.has-select .control.has-icons-left select select{padding-left:2.25em}.control.has-icons-left .icon.is-left{left:0}.control.has-icons-right .has-select select select,.control.has-icons-right .input,.control.has-icons-right .select select,.has-select .control.has-icons-right select select{padding-right:2.25em}.control.has-icons-right .icon.is-right{right:0}.control.is-loading:after{position:absolute!important;right:.625em;top:.625em;z-index:4}.control.is-loading.is-small:after{font-size:.75rem}.control.is-loading.is-medium:after{font-size:1.25rem}.control.is-loading.is-large:after{font-size:1.5rem}.icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:1.5rem;width:1.5rem}.icon.is-small{height:1rem;width:1rem}.icon.is-medium{height:2rem;width:2rem}.icon.is-large{height:3rem;width:3rem}.image{display:block;position:relative}.image img{display:block;height:auto;width:100%}.image img.is-rounded{border-radius:290486px}.image.is-1by1 .has-ratio,.image.is-1by1 img,.image.is-1by2 .has-ratio,.image.is-1by2 img,.image.is-1by3 .has-ratio,.image.is-1by3 img,.image.is-2by1 .has-ratio,.image.is-2by1 img,.image.is-2by3 .has-ratio,.image.is-2by3 img,.image.is-3by1 .has-ratio,.image.is-3by1 img,.image.is-3by2 .has-ratio,.image.is-3by2 img,.image.is-3by4 .has-ratio,.image.is-3by4 img,.image.is-3by5 .has-ratio,.image.is-3by5 img,.image.is-4by3 .has-ratio,.image.is-4by3 img,.image.is-4by5 .has-ratio,.image.is-4by5 img,.image.is-5by3 .has-ratio,.image.is-5by3 img,.image.is-5by4 .has-ratio,.image.is-5by4 img,.image.is-9by16 .has-ratio,.image.is-9by16 img,.image.is-16by9 .has-ratio,.image.is-16by9 img,.image.is-square .has-ratio,.image.is-square img{height:100%;width:100%}.image.is-1by1,.image.is-square{padding-top:100%}.image.is-5by4{padding-top:80%}.image.is-4by3{padding-top:75%}.image.is-3by2{padding-top:66.6666%}.image.is-5by3{padding-top:60%}.image.is-16by9{padding-top:56.25%}.image.is-2by1{padding-top:50%}.image.is-3by1{padding-top:33.3333%}.image.is-4by5{padding-top:125%}.image.is-3by4{padding-top:133.3333%}.image.is-2by3{padding-top:150%}.image.is-3by5{padding-top:166.6666%}.image.is-9by16{padding-top:177.7777%}.image.is-1by2{padding-top:200%}.image.is-1by3{padding-top:300%}.image.is-16x16{height:16px;width:16px}.image.is-24x24{height:24px;width:24px}.image.is-32x32{height:32px;width:32px}.image.is-48x48{height:48px;width:48px}.image.is-64x64{height:64px;width:64px}.image.is-96x96{height:96px;width:96px}.image.is-128x128{height:128px;width:128px}.notification{background-color:#f5f5f5;border-radius:2px;padding:1.25rem 2.5rem 1.25rem 1.5rem;position:relative}.notification a:not(.button):not(.dropdown-item){color:currentColor;text-decoration:underline}.notification strong{color:currentColor}.notification code,.notification pre{background:#fff}.notification pre code{background:transparent}.notification>.delete{position:absolute;right:.5rem;top:.5rem}.document .notification h1,.document .notification h2,.document .notification h3,.document .notification h4,.document .notification h5,.notification .content,.notification .document h1,.notification .document h2,.notification .document h3,.notification .document h4,.notification .document h5,.notification .subtitle,.notification .title{color:currentColor}.notification.is-white{background-color:#fff;color:#0a0a0a}.notification.is-black{background-color:#0a0a0a;color:#fff}.notification.is-light{background-color:#f5f5f5;color:#1f2d3d}.notification.is-dark{background-color:#1f2d3d;color:#f5f5f5}.notification.is-link,.notification.is-primary{background-color:#2a9d8f;color:#fff}.notification.is-info{background-color:#4d7ec8;color:#fff}.notification.is-success{background-color:#2ab27b;color:#fff}.notification.is-warning{background-color:#f39c12;color:rgba(0,0,0,.7)}.notification.is-danger{background-color:#bf5329;color:#fff}.progress{-moz-appearance:none;-webkit-appearance:none;border:none;border-radius:290486px;display:block;height:1rem;overflow:hidden;padding:0;width:100%}.progress::-webkit-progress-bar{background-color:#dbdbdb}.progress::-webkit-progress-value{background-color:#4a4a4a}.progress::-moz-progress-bar{background-color:#4a4a4a}.progress::-ms-fill{background-color:#4a4a4a;border:none}.progress:indeterminate{-webkit-animation-duration:1.5s;animation-duration:1.5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:moveIndeterminate;animation-name:moveIndeterminate;-webkit-animation-timing-function:linear;animation-timing-function:linear;background-color:#dbdbdb;background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#4a4a4a),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#4a4a4a 30%,#dbdbdb 0);background-position:0 0;background-repeat:no-repeat;background-size:150% 150%}.progress:indeterminate::-webkit-progress-bar{background-color:transparent}.progress:indeterminate::-moz-progress-bar{background-color:transparent}.progress.is-white::-webkit-progress-value{background-color:#fff}.progress.is-white::-moz-progress-bar{background-color:#fff}.progress.is-white::-ms-fill{background-color:#fff}.progress.is-white:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#fff),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#fff 30%,#dbdbdb 0)}.progress.is-black::-webkit-progress-value{background-color:#0a0a0a}.progress.is-black::-moz-progress-bar{background-color:#0a0a0a}.progress.is-black::-ms-fill{background-color:#0a0a0a}.progress.is-black:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#0a0a0a),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#0a0a0a 30%,#dbdbdb 0)}.progress.is-light::-webkit-progress-value{background-color:#f5f5f5}.progress.is-light::-moz-progress-bar{background-color:#f5f5f5}.progress.is-light::-ms-fill{background-color:#f5f5f5}.progress.is-light:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#f5f5f5),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#f5f5f5 30%,#dbdbdb 0)}.progress.is-dark::-webkit-progress-value{background-color:#1f2d3d}.progress.is-dark::-moz-progress-bar{background-color:#1f2d3d}.progress.is-dark::-ms-fill{background-color:#1f2d3d}.progress.is-dark:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#1f2d3d),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#1f2d3d 30%,#dbdbdb 0)}.progress.is-primary::-webkit-progress-value{background-color:#2a9d8f}.progress.is-primary::-moz-progress-bar{background-color:#2a9d8f}.progress.is-primary::-ms-fill{background-color:#2a9d8f}.progress.is-primary:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#2a9d8f),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#2a9d8f 30%,#dbdbdb 0)}.progress.is-link::-webkit-progress-value{background-color:#2a9d8f}.progress.is-link::-moz-progress-bar{background-color:#2a9d8f}.progress.is-link::-ms-fill{background-color:#2a9d8f}.progress.is-link:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#2a9d8f),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#2a9d8f 30%,#dbdbdb 0)}.progress.is-info::-webkit-progress-value{background-color:#4d7ec8}.progress.is-info::-moz-progress-bar{background-color:#4d7ec8}.progress.is-info::-ms-fill{background-color:#4d7ec8}.progress.is-info:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#4d7ec8),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#4d7ec8 30%,#dbdbdb 0)}.progress.is-success::-webkit-progress-value{background-color:#2ab27b}.progress.is-success::-moz-progress-bar{background-color:#2ab27b}.progress.is-success::-ms-fill{background-color:#2ab27b}.progress.is-success:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#2ab27b),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#2ab27b 30%,#dbdbdb 0)}.progress.is-warning::-webkit-progress-value{background-color:#f39c12}.progress.is-warning::-moz-progress-bar{background-color:#f39c12}.progress.is-warning::-ms-fill{background-color:#f39c12}.progress.is-warning:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#f39c12),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#f39c12 30%,#dbdbdb 0)}.progress.is-danger::-webkit-progress-value{background-color:#bf5329}.progress.is-danger::-moz-progress-bar{background-color:#bf5329}.progress.is-danger::-ms-fill{background-color:#bf5329}.progress.is-danger:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#bf5329),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#bf5329 30%,#dbdbdb 0)}.progress.is-small{height:.75rem}.progress.is-medium{height:1.25rem}.progress.is-large{height:1.5rem}@-webkit-keyframes moveIndeterminate{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes moveIndeterminate{0%{background-position:200% 0}to{background-position:-200% 0}}.table{background-color:#fff;color:#363636}.table td,.table th{border:1px solid #dbdbdb;border-width:0 0 1px;padding:.5em .75em;vertical-align:top}.table td.is-white,.table th.is-white{background-color:#fff;border-color:#fff;color:#0a0a0a}.table td.is-black,.table th.is-black{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.table td.is-light,.table th.is-light{background-color:#f5f5f5;border-color:#f5f5f5;color:#1f2d3d}.table td.is-dark,.table th.is-dark{background-color:#1f2d3d;border-color:#1f2d3d;color:#f5f5f5}.table td.is-link,.table td.is-primary,.table th.is-link,.table th.is-primary{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff}.table td.is-info,.table th.is-info{background-color:#4d7ec8;border-color:#4d7ec8;color:#fff}.table td.is-success,.table th.is-success{background-color:#2ab27b;border-color:#2ab27b;color:#fff}.table td.is-warning,.table th.is-warning{background-color:#f39c12;border-color:#f39c12;color:rgba(0,0,0,.7)}.table td.is-danger,.table th.is-danger{background-color:#bf5329;border-color:#bf5329;color:#fff}.table td.is-narrow,.table th.is-narrow{white-space:nowrap;width:1%}.table td.is-selected,.table th.is-selected{background-color:#2a9d8f;color:#fff}.table td.is-selected a,.table td.is-selected strong,.table th.is-selected a,.table th.is-selected strong{color:currentColor}.table th{color:#363636;text-align:left}.table tr.is-selected{background-color:#2a9d8f;color:#fff}.table tr.is-selected a,.table tr.is-selected strong{color:currentColor}.table tr.is-selected td,.table tr.is-selected th{border-color:#fff;color:currentColor}.table thead{background-color:transparent}.table thead td,.table thead th{border-width:0 0 2px;color:#363636}.table tfoot{background-color:transparent}.table tfoot td,.table tfoot th{border-width:2px 0 0;color:#363636}.table tbody{background-color:transparent}.table tbody tr:last-child td,.table tbody tr:last-child th{border-bottom-width:0}.table.is-bordered td,.table.is-bordered th{border-width:1px}.table.is-bordered tr:last-child td,.table.is-bordered tr:last-child th{border-bottom-width:1px}.table.is-fullwidth{width:100%}.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover,.table.is-hoverable tbody tr:not(.is-selected):hover{background-color:#fafafa}.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover:nth-child(2n){background-color:#f5f5f5}.table.is-narrow td,.table.is-narrow th{padding:.25em .5em}.table.is-striped tbody tr:not(.is-selected):nth-child(2n){background-color:#fafafa}.table-container{-webkit-overflow-scrolling:touch;overflow:auto;overflow-y:hidden;max-width:100%}.tags{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.tags .tag{margin-bottom:.5rem}.tags .tag:not(:last-child){margin-right:.5rem}.tags:last-child{margin-bottom:-.5rem}.tags:not(:last-child){margin-bottom:1rem}.tags.are-medium .tag:not(.is-normal):not(.is-large){font-size:1rem}.tags.are-large .tag:not(.is-normal):not(.is-medium){font-size:1.25rem}.tags.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.tags.is-centered .tag{margin-right:.25rem;margin-left:.25rem}.tags.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.tags.is-right .tag:not(:first-child){margin-left:.5rem}.tags.has-addons .tag,.tags.is-right .tag:not(:last-child){margin-right:0}.tags.has-addons .tag:not(:first-child){margin-left:0;border-bottom-left-radius:0;border-top-left-radius:0}.tags.has-addons .tag:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.tag:not(body){-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:2px;color:#4a4a4a;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:.75rem;height:2em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.5;padding-left:.75em;padding-right:.75em;white-space:nowrap}.tag:not(body) .delete{margin-left:.25rem;margin-right:-.375rem}.tag:not(body).is-white{background-color:#fff;color:#0a0a0a}.tag:not(body).is-black{background-color:#0a0a0a;color:#fff}.tag:not(body).is-light{background-color:#f5f5f5;color:#1f2d3d}.tag:not(body).is-dark{background-color:#1f2d3d;color:#f5f5f5}.tag:not(body).is-link,.tag:not(body).is-primary{background-color:#2a9d8f;color:#fff}.tag:not(body).is-info{background-color:#4d7ec8;color:#fff}.tag:not(body).is-success{background-color:#2ab27b;color:#fff}.tag:not(body).is-warning{background-color:#f39c12;color:rgba(0,0,0,.7)}.tag:not(body).is-danger{background-color:#bf5329;color:#fff}.tag:not(body).is-normal{font-size:.75rem}.tag:not(body).is-medium{font-size:1rem}.tag:not(body).is-large{font-size:1.25rem}.tag:not(body) .icon:first-child:not(:last-child){margin-left:-.375em;margin-right:.1875em}.tag:not(body) .icon:last-child:not(:first-child){margin-left:.1875em;margin-right:-.375em}.tag:not(body) .icon:first-child:last-child{margin-left:-.375em;margin-right:-.375em}.tag:not(body).is-delete{margin-left:1px;padding:0;position:relative;width:2em}.tag:not(body).is-delete:after,.tag:not(body).is-delete:before{background-color:currentColor;content:"";display:block;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;transform-origin:center center}.tag:not(body).is-delete:before{height:1px;width:50%}.tag:not(body).is-delete:after{height:50%;width:1px}.tag:not(body).is-delete:focus,.tag:not(body).is-delete:hover{background-color:#e8e8e8}.tag:not(body).is-delete:active{background-color:#dbdbdb}.tag:not(body).is-rounded{border-radius:290486px}a.tag:hover{text-decoration:underline}.document h1,.document h2,.document h3,.document h4,.document h5,.subtitle,.title{word-break:break-word}.document h1 em,.document h1 span,.document h2 em,.document h2 span,.document h3 em,.document h3 span,.document h4 em,.document h4 span,.document h5 em,.document h5 span,.subtitle em,.subtitle span,.title em,.title span{font-weight:inherit}.document h1 sub,.document h1 sup,.document h2 sub,.document h2 sup,.document h3 sub,.document h3 sup,.document h4 sub,.document h4 sup,.document h5 sub,.document h5 sup,.subtitle sub,.subtitle sup,.title sub,.title sup{font-size:.75em}.document h1 .tag,.document h2 .tag,.document h3 .tag,.document h4 .tag,.document h5 .tag,.subtitle .tag,.title .tag{vertical-align:middle}.document h1,.document h2,.document h3,.document h4,.document h5,.title{color:#363636;font-size:2rem;font-weight:400;line-height:1.125}.document h1 strong,.document h2 strong,.document h3 strong,.document h4 strong,.document h5 strong,.title strong{color:inherit;font-weight:inherit}.document h1+.highlight,.document h2+.highlight,.document h3+.highlight,.document h4+.highlight,.document h5+.highlight,.title+.highlight{margin-top:-.75rem}.document h1:not(.is-spaced)+.subtitle,.document h2:not(.is-spaced)+.subtitle,.document h3:not(.is-spaced)+.subtitle,.document h4:not(.is-spaced)+.subtitle,.document h5:not(.is-spaced)+.subtitle,.title:not(.is-spaced)+.subtitle{margin-top:-1.25rem}.document h1.is-1,.document h2.is-1,.document h3.is-1,.document h4.is-1,.document h5.is-1,.title.is-1{font-size:3rem}.document h1,.document h2.is-2,.document h3.is-2,.document h4.is-2,.document h5.is-2,.title.is-2{font-size:2.5rem}.document h1.is-3,.document h2,.document h3.is-3,.document h4.is-3,.document h5.is-3,.title.is-3{font-size:2rem}.document h1.is-4,.document h2.is-4,.document h3,.document h4.is-4,.document h5.is-4,.title.is-4{font-size:1.5rem}.document h1.is-5,.document h2.is-5,.document h3.is-5,.document h4,.document h5.is-5,.title.is-5{font-size:1.25rem}.document h1.is-6,.document h2.is-6,.document h3.is-6,.document h4.is-6,.document h5,.title.is-6{font-size:1rem}.document h1.is-7,.document h2.is-7,.document h3.is-7,.document h4.is-7,.document h5.is-7,.title.is-7{font-size:.75rem}.subtitle{color:#4a4a4a;font-size:1.25rem;font-weight:400;line-height:1.25}.subtitle strong{color:#363636;font-weight:600}.document .subtitle:not(.is-spaced)+h1,.document .subtitle:not(.is-spaced)+h2,.document .subtitle:not(.is-spaced)+h3,.document .subtitle:not(.is-spaced)+h4,.document .subtitle:not(.is-spaced)+h5,.subtitle:not(.is-spaced)+.title{margin-top:-1.25rem}.subtitle.is-1{font-size:3rem}.document h1.subtitle,.subtitle.is-2{font-size:2.5rem}.document h2.subtitle,.subtitle.is-3{font-size:2rem}.document h3.subtitle,.subtitle.is-4{font-size:1.5rem}.document h4.subtitle,.subtitle.is-5{font-size:1.25rem}.document h5.subtitle,.subtitle.is-6{font-size:1rem}.subtitle.is-7{font-size:.75rem}.heading{display:block;font-size:11px;letter-spacing:1px;margin-bottom:5px;text-transform:uppercase}.highlight{font-weight:400;max-width:100%;overflow:hidden;padding:0}.highlight pre{overflow:auto;max-width:100%}.number{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:290486px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:1.25rem;height:2em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:1.5rem;min-width:2.5em;padding:.25rem .5rem;text-align:center;vertical-align:top}.breadcrumb{font-size:1rem;white-space:nowrap}.breadcrumb a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#2a9d8f;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0 .75em}.breadcrumb a:hover{color:#363636}.breadcrumb li{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.breadcrumb li:first-child a{padding-left:0}.breadcrumb li.is-active a{color:#363636;cursor:default;pointer-events:none}.breadcrumb li+li:before{color:#b5b5b5;content:"/"}.breadcrumb ol,.breadcrumb ul{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.breadcrumb .icon:first-child{margin-right:.5em}.breadcrumb .icon:last-child{margin-left:.5em}.breadcrumb.is-centered ol,.breadcrumb.is-centered ul{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.breadcrumb.is-right ol,.breadcrumb.is-right ul{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.breadcrumb.is-small{font-size:.75rem}.breadcrumb.is-medium{font-size:1.25rem}.breadcrumb.is-large{font-size:1.5rem}.breadcrumb.has-arrow-separator li+li:before{content:"\2192"}.breadcrumb.has-bullet-separator li+li:before{content:"\2022"}.breadcrumb.has-dot-separator li+li:before{content:"\B7"}.breadcrumb.has-succeeds-separator li+li:before{content:"\227B"}.card{background-color:#fff;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);color:#4a4a4a;max-width:100%;position:relative}.card-header{background-color:transparent;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-shadow:0 1px 2px hsla(0,0%,4%,.1);box-shadow:0 1px 2px hsla(0,0%,4%,.1)}.card-header,.card-header-title{display:-webkit-box;display:-ms-flexbox;display:flex}.card-header-title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#363636;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;font-weight:700;padding:.75rem}.card-header-icon,.card-header-title.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.card-header-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;padding:.75rem}.card-image{display:block;position:relative}.card-content{background-color:transparent;padding:1.5rem}.card-footer{background-color:transparent;border-top:1px solid #dbdbdb;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex}.card-footer-item,.sidebar-icons-container .card-footer>a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:.75rem}.card-footer-item:not(:last-child),.sidebar-icons-container .card-footer>a:not(:last-child){border-right:1px solid #dbdbdb}.card .media:not(:last-child){margin-bottom:.75rem}.dropdown{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;position:relative;vertical-align:top}.dropdown.is-active .dropdown-menu,.dropdown.is-hoverable:hover .dropdown-menu{display:block}.dropdown.is-right .dropdown-menu{left:auto;right:0}.dropdown.is-up .dropdown-menu{bottom:100%;padding-bottom:4px;padding-top:0;top:auto}.dropdown-menu{display:none;left:0;min-width:12rem;padding-top:4px;position:absolute;top:100%;z-index:20}.dropdown-content{background-color:#fff;border-radius:2px;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);padding-bottom:.5rem;padding-top:.5rem}.dropdown-item{color:#4a4a4a;display:block;font-size:.875rem;line-height:1.5;padding:.375rem 1rem;position:relative}a.dropdown-item,button.dropdown-item{padding-right:3rem;text-align:left;white-space:nowrap;width:100%}a.dropdown-item:hover,button.dropdown-item:hover{background-color:#f5f5f5;color:#0a0a0a}a.dropdown-item.is-active,button.dropdown-item.is-active{background-color:#2a9d8f;color:#fff}.dropdown-divider{background-color:#dbdbdb;border:none;display:block;height:1px;margin:.5rem 0}.level{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.level code{border-radius:2px}.level img{display:inline-block;vertical-align:top}.level.is-mobile,.level.is-mobile .level-left,.level.is-mobile .level-right{display:-webkit-box;display:-ms-flexbox;display:flex}.level.is-mobile .level-left+.level-right{margin-top:0}.level.is-mobile .level-item:not(:last-child){margin-bottom:0;margin-right:.75rem}.level.is-mobile .level-item:not(.is-narrow){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}@media print,screen and (min-width:769px){.level{display:-webkit-box;display:-ms-flexbox;display:flex}.level>.level-item:not(.is-narrow){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}}.level-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.document .level-item h1,.document .level-item h2,.document .level-item h3,.document .level-item h4,.document .level-item h5,.level-item .document h1,.level-item .document h2,.level-item .document h3,.level-item .document h4,.level-item .document h5,.level-item .subtitle,.level-item .title{margin-bottom:0}@media screen and (max-width:768px){.level-item:not(:last-child){margin-bottom:.75rem}}.level-left,.level-right{-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.level-left .level-item.is-flexible,.level-right .level-item.is-flexible{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}@media print,screen and (min-width:769px){.level-left .level-item:not(:last-child),.level-right .level-item:not(:last-child){margin-right:.75rem}}.level-left{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}@media screen and (max-width:768px){.level-left+.level-right{margin-top:1.5rem}}@media print,screen and (min-width:769px){.level-left{display:-webkit-box;display:-ms-flexbox;display:flex}}.level-right{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}@media print,screen and (min-width:769px){.level-right{display:-webkit-box;display:-ms-flexbox;display:flex}}.list{background-color:#fff;border-radius:2px;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1)}.list-item{display:block;padding:.5em 1em}.list-item:not(a){color:#4a4a4a}.list-item:first-child,.list-item:last-child{border-top-left-radius:2px;border-top-right-radius:2px}.list-item:not(:last-child){border-bottom:1px solid #dbdbdb}.list-item.is-active{background-color:#2a9d8f;color:#fff}a.list-item{background-color:#f5f5f5;cursor:pointer}.media{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:left}.media .content:not(:last-child){margin-bottom:.75rem}.media .media{border-top:1px solid hsla(0,0%,86%,.5);display:-webkit-box;display:-ms-flexbox;display:flex;padding-top:.75rem}.media .media .content:not(:last-child),.media .media .control:not(:last-child){margin-bottom:.5rem}.media .media .media{padding-top:.5rem}.media .media .media+.media{margin-top:.5rem}.media+.media{border-top:1px solid hsla(0,0%,86%,.5);margin-top:1rem;padding-top:1rem}.media.is-large+.media{margin-top:1.5rem;padding-top:1.5rem}.media-left,.media-right{-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.media-left{margin-right:1rem}.media-right{margin-left:1rem}.media-content{-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;text-align:left}@media screen and (max-width:768px){.media-content{overflow-x:auto}}.menu{font-size:1rem}.menu.is-small{font-size:.75rem}.menu.is-medium{font-size:1.25rem}.menu.is-large{font-size:1.5rem}.menu-list{line-height:1.25}.menu-list a{border-radius:2px;color:#4a4a4a;display:block;padding:.5em .75em}.menu-list a:hover{background-color:#f5f5f5;color:#363636}.menu-list a.is-active{background-color:#2a9d8f;color:#fff}.menu-list li ul{border-left:1px solid #dbdbdb;margin:.75em;padding-left:.75em}.menu-label{color:#7a7a7a;font-size:.75em;letter-spacing:.1em;text-transform:uppercase}.menu-label:not(:first-child){margin-top:1em}.menu-label:not(:last-child){margin-bottom:1em}.message{background-color:#f5f5f5;border-radius:2px;font-size:1rem}.message strong{color:currentColor}.message a:not(.button):not(.tag):not(.dropdown-item){color:currentColor;text-decoration:underline}.message.is-small{font-size:.75rem}.message.is-medium{font-size:1.25rem}.message.is-large{font-size:1.5rem}.message.is-white{background-color:#fff}.message.is-white .message-header{background-color:#fff;color:#0a0a0a}.message.is-white .message-body{border-color:#fff;color:#4d4c4c}.message.is-black{background-color:#fafafa}.message.is-black .message-header{background-color:#0a0a0a;color:#fff}.message.is-black .message-body{border-color:#0a0a0a;color:#090909}.message.is-light{background-color:#fafafa}.message.is-light .message-header{background-color:#f5f5f5;color:#1f2d3d}.message.is-light .message-body{border-color:#f5f5f5;color:#505050}.message.is-dark{background-color:#f8fafc}.message.is-dark .message-header{background-color:#1f2d3d;color:#f5f5f5}.message.is-dark .message-body{border-color:#1f2d3d;color:#1a2532}.message.is-primary{background-color:#f7fdfc}.message.is-primary .message-header{background-color:#2a9d8f;color:#fff}.message.is-primary .message-body{border-color:#2a9d8f;color:#163e39}.message.is-link{background-color:#f7fdfc}.message.is-link .message-header{background-color:#2a9d8f;color:#fff}.message.is-link .message-body{border-color:#2a9d8f;color:#163e39}.message.is-info{background-color:#f7f9fd}.message.is-info .message-header{background-color:#4d7ec8;color:#fff}.message.is-info .message-body{border-color:#4d7ec8;color:#325384}.message.is-success{background-color:#f7fdfb}.message.is-success .message-header{background-color:#2ab27b;color:#fff}.message.is-success .message-body{border-color:#2ab27b;color:#143c2c}.message.is-warning{background-color:#fffbf5}.message.is-warning .message-header{background-color:#f39c12;color:rgba(0,0,0,.7)}.message.is-warning .message-body{border-color:#f39c12;color:#4f340b}.message.is-danger{background-color:#fdf8f7}.message.is-danger .message-header{background-color:#bf5329;color:#fff}.message.is-danger .message-body{border-color:#bf5329;color:#793920}.message-header{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#4a4a4a;border-radius:2px 2px 0 0;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-weight:700;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:1.25;padding:.75em 1em;position:relative}.message-header .delete{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;margin-left:.75em}.message-header+.message-body{border-width:0;border-top-left-radius:0;border-top-right-radius:0}.message-body{border-color:#dbdbdb;border-radius:2px;border-style:solid;border-width:0 0 0 4px;color:#4a4a4a;padding:1.25em 1.5em}.message-body code,.message-body pre{background-color:#fff}.message-body pre code{background-color:transparent}.modal{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;position:fixed;z-index:40}.modal.is-active{display:-webkit-box;display:-ms-flexbox;display:flex}.modal-background{background-color:hsla(0,0%,4%,.86)}.modal-card,.modal-content{margin:0 20px;max-height:calc(100vh - 160px);overflow:auto;position:relative;width:100%}@media print,screen and (min-width:769px){.modal-card,.modal-content{margin:0 auto;max-height:calc(100vh - 40px);width:640px}}.modal-close{background:none;height:40px;position:fixed;right:20px;top:20px;width:40px}.modal-card{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:calc(100vh - 40px);overflow:hidden;-ms-overflow-y:visible}.modal-card,.modal-card-foot,.modal-card-head{display:-webkit-box;display:-ms-flexbox;display:flex}.modal-card-foot,.modal-card-head{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:20px;position:relative}.modal-card-head{border-bottom:1px solid #dbdbdb;border-top-left-radius:2px;border-top-right-radius:2px}.modal-card-title{color:#363636;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;font-size:1.5rem;line-height:1}.modal-card-foot{border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:1px solid #dbdbdb}.modal-card-foot .button:not(:last-child){margin-right:10px}.modal-card-body{-webkit-overflow-scrolling:touch;background-color:#fff;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;overflow:auto;padding:20px}.navbar{background-color:#fff;min-height:3.5rem;position:relative;z-index:30}.navbar.is-white{background-color:#fff;color:#0a0a0a}.navbar.is-white .navbar-brand .navbar-link,.navbar.is-white .navbar-brand>.navbar-item{color:#0a0a0a}.navbar.is-white .navbar-brand .navbar-link.is-active,.navbar.is-white .navbar-brand .navbar-link:hover,.navbar.is-white .navbar-brand>a.navbar-item.is-active,.navbar.is-white .navbar-brand>a.navbar-item:hover{background-color:#f2f2f2;color:#0a0a0a}.navbar.is-white .navbar-brand .navbar-link:after{border-color:#0a0a0a}.navbar.is-white .navbar-burger{color:#0a0a0a}@media screen and (min-width:1024px){.navbar.is-white .navbar-end .navbar-link,.navbar.is-white .navbar-end>.navbar-item,.navbar.is-white .navbar-start .navbar-link,.navbar.is-white .navbar-start>.navbar-item{color:#0a0a0a}.navbar.is-white .navbar-end .navbar-link.is-active,.navbar.is-white .navbar-end .navbar-link:hover,.navbar.is-white .navbar-end>a.navbar-item.is-active,.navbar.is-white .navbar-end>a.navbar-item:hover,.navbar.is-white .navbar-start .navbar-link.is-active,.navbar.is-white .navbar-start .navbar-link:hover,.navbar.is-white .navbar-start>a.navbar-item.is-active,.navbar.is-white .navbar-start>a.navbar-item:hover{background-color:#f2f2f2;color:#0a0a0a}.navbar.is-white .navbar-end .navbar-link:after,.navbar.is-white .navbar-start .navbar-link:after{border-color:#0a0a0a}.navbar.is-white .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-white .navbar-item.has-dropdown:hover .navbar-link{background-color:#f2f2f2;color:#0a0a0a}.navbar.is-white .navbar-dropdown a.navbar-item.is-active{background-color:#fff;color:#0a0a0a}}.navbar.is-black{background-color:#0a0a0a;color:#fff}.navbar.is-black .navbar-brand .navbar-link,.navbar.is-black .navbar-brand>.navbar-item{color:#fff}.navbar.is-black .navbar-brand .navbar-link.is-active,.navbar.is-black .navbar-brand .navbar-link:hover,.navbar.is-black .navbar-brand>a.navbar-item.is-active,.navbar.is-black .navbar-brand>a.navbar-item:hover{background-color:#000;color:#fff}.navbar.is-black .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-black .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-black .navbar-end .navbar-link,.navbar.is-black .navbar-end>.navbar-item,.navbar.is-black .navbar-start .navbar-link,.navbar.is-black .navbar-start>.navbar-item{color:#fff}.navbar.is-black .navbar-end .navbar-link.is-active,.navbar.is-black .navbar-end .navbar-link:hover,.navbar.is-black .navbar-end>a.navbar-item.is-active,.navbar.is-black .navbar-end>a.navbar-item:hover,.navbar.is-black .navbar-start .navbar-link.is-active,.navbar.is-black .navbar-start .navbar-link:hover,.navbar.is-black .navbar-start>a.navbar-item.is-active,.navbar.is-black .navbar-start>a.navbar-item:hover{background-color:#000;color:#fff}.navbar.is-black .navbar-end .navbar-link:after,.navbar.is-black .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-black .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-black .navbar-item.has-dropdown:hover .navbar-link{background-color:#000;color:#fff}.navbar.is-black .navbar-dropdown a.navbar-item.is-active{background-color:#0a0a0a;color:#fff}}.navbar.is-light{background-color:#f5f5f5;color:#1f2d3d}.navbar.is-light .navbar-brand .navbar-link,.navbar.is-light .navbar-brand>.navbar-item{color:#1f2d3d}.navbar.is-light .navbar-brand .navbar-link.is-active,.navbar.is-light .navbar-brand .navbar-link:hover,.navbar.is-light .navbar-brand>a.navbar-item.is-active,.navbar.is-light .navbar-brand>a.navbar-item:hover{background-color:#e8e8e8;color:#1f2d3d}.navbar.is-light .navbar-brand .navbar-link:after{border-color:#1f2d3d}.navbar.is-light .navbar-burger{color:#1f2d3d}@media screen and (min-width:1024px){.navbar.is-light .navbar-end .navbar-link,.navbar.is-light .navbar-end>.navbar-item,.navbar.is-light .navbar-start .navbar-link,.navbar.is-light .navbar-start>.navbar-item{color:#1f2d3d}.navbar.is-light .navbar-end .navbar-link.is-active,.navbar.is-light .navbar-end .navbar-link:hover,.navbar.is-light .navbar-end>a.navbar-item.is-active,.navbar.is-light .navbar-end>a.navbar-item:hover,.navbar.is-light .navbar-start .navbar-link.is-active,.navbar.is-light .navbar-start .navbar-link:hover,.navbar.is-light .navbar-start>a.navbar-item.is-active,.navbar.is-light .navbar-start>a.navbar-item:hover{background-color:#e8e8e8;color:#1f2d3d}.navbar.is-light .navbar-end .navbar-link:after,.navbar.is-light .navbar-start .navbar-link:after{border-color:#1f2d3d}.navbar.is-light .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-light .navbar-item.has-dropdown:hover .navbar-link{background-color:#e8e8e8;color:#1f2d3d}.navbar.is-light .navbar-dropdown a.navbar-item.is-active{background-color:#f5f5f5;color:#1f2d3d}}.navbar.is-dark{background-color:#1f2d3d;color:#f5f5f5}.navbar.is-dark .navbar-brand .navbar-link,.navbar.is-dark .navbar-brand>.navbar-item{color:#f5f5f5}.navbar.is-dark .navbar-brand .navbar-link.is-active,.navbar.is-dark .navbar-brand .navbar-link:hover,.navbar.is-dark .navbar-brand>a.navbar-item.is-active,.navbar.is-dark .navbar-brand>a.navbar-item:hover{background-color:#16212c;color:#f5f5f5}.navbar.is-dark .navbar-brand .navbar-link:after{border-color:#f5f5f5}.navbar.is-dark .navbar-burger{color:#f5f5f5}@media screen and (min-width:1024px){.navbar.is-dark .navbar-end .navbar-link,.navbar.is-dark .navbar-end>.navbar-item,.navbar.is-dark .navbar-start .navbar-link,.navbar.is-dark .navbar-start>.navbar-item{color:#f5f5f5}.navbar.is-dark .navbar-end .navbar-link.is-active,.navbar.is-dark .navbar-end .navbar-link:hover,.navbar.is-dark .navbar-end>a.navbar-item.is-active,.navbar.is-dark .navbar-end>a.navbar-item:hover,.navbar.is-dark .navbar-start .navbar-link.is-active,.navbar.is-dark .navbar-start .navbar-link:hover,.navbar.is-dark .navbar-start>a.navbar-item.is-active,.navbar.is-dark .navbar-start>a.navbar-item:hover{background-color:#16212c;color:#f5f5f5}.navbar.is-dark .navbar-end .navbar-link:after,.navbar.is-dark .navbar-start .navbar-link:after{border-color:#f5f5f5}.navbar.is-dark .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-dark .navbar-item.has-dropdown:hover .navbar-link{background-color:#16212c;color:#f5f5f5}.navbar.is-dark .navbar-dropdown a.navbar-item.is-active{background-color:#1f2d3d;color:#f5f5f5}}.navbar.is-primary{background-color:#2a9d8f;color:#fff}.navbar.is-primary .navbar-brand .navbar-link,.navbar.is-primary .navbar-brand>.navbar-item{color:#fff}.navbar.is-primary .navbar-brand .navbar-link.is-active,.navbar.is-primary .navbar-brand .navbar-link:hover,.navbar.is-primary .navbar-brand>a.navbar-item.is-active,.navbar.is-primary .navbar-brand>a.navbar-item:hover{background-color:#25897d;color:#fff}.navbar.is-primary .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-primary .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-primary .navbar-end .navbar-link,.navbar.is-primary .navbar-end>.navbar-item,.navbar.is-primary .navbar-start .navbar-link,.navbar.is-primary .navbar-start>.navbar-item{color:#fff}.navbar.is-primary .navbar-end .navbar-link.is-active,.navbar.is-primary .navbar-end .navbar-link:hover,.navbar.is-primary .navbar-end>a.navbar-item.is-active,.navbar.is-primary .navbar-end>a.navbar-item:hover,.navbar.is-primary .navbar-start .navbar-link.is-active,.navbar.is-primary .navbar-start .navbar-link:hover,.navbar.is-primary .navbar-start>a.navbar-item.is-active,.navbar.is-primary .navbar-start>a.navbar-item:hover{background-color:#25897d;color:#fff}.navbar.is-primary .navbar-end .navbar-link:after,.navbar.is-primary .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-primary .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link{background-color:#25897d;color:#fff}.navbar.is-primary .navbar-dropdown a.navbar-item.is-active{background-color:#2a9d8f;color:#fff}}.navbar.is-link{background-color:#2a9d8f;color:#fff}.navbar.is-link .navbar-brand .navbar-link,.navbar.is-link .navbar-brand>.navbar-item{color:#fff}.navbar.is-link .navbar-brand .navbar-link.is-active,.navbar.is-link .navbar-brand .navbar-link:hover,.navbar.is-link .navbar-brand>a.navbar-item.is-active,.navbar.is-link .navbar-brand>a.navbar-item:hover{background-color:#25897d;color:#fff}.navbar.is-link .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-link .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-link .navbar-end .navbar-link,.navbar.is-link .navbar-end>.navbar-item,.navbar.is-link .navbar-start .navbar-link,.navbar.is-link .navbar-start>.navbar-item{color:#fff}.navbar.is-link .navbar-end .navbar-link.is-active,.navbar.is-link .navbar-end .navbar-link:hover,.navbar.is-link .navbar-end>a.navbar-item.is-active,.navbar.is-link .navbar-end>a.navbar-item:hover,.navbar.is-link .navbar-start .navbar-link.is-active,.navbar.is-link .navbar-start .navbar-link:hover,.navbar.is-link .navbar-start>a.navbar-item.is-active,.navbar.is-link .navbar-start>a.navbar-item:hover{background-color:#25897d;color:#fff}.navbar.is-link .navbar-end .navbar-link:after,.navbar.is-link .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-link .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-link .navbar-item.has-dropdown:hover .navbar-link{background-color:#25897d;color:#fff}.navbar.is-link .navbar-dropdown a.navbar-item.is-active{background-color:#2a9d8f;color:#fff}}.navbar.is-info{background-color:#4d7ec8;color:#fff}.navbar.is-info .navbar-brand .navbar-link,.navbar.is-info .navbar-brand>.navbar-item{color:#fff}.navbar.is-info .navbar-brand .navbar-link.is-active,.navbar.is-info .navbar-brand .navbar-link:hover,.navbar.is-info .navbar-brand>a.navbar-item.is-active,.navbar.is-info .navbar-brand>a.navbar-item:hover{background-color:#3b70c0;color:#fff}.navbar.is-info .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-info .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-info .navbar-end .navbar-link,.navbar.is-info .navbar-end>.navbar-item,.navbar.is-info .navbar-start .navbar-link,.navbar.is-info .navbar-start>.navbar-item{color:#fff}.navbar.is-info .navbar-end .navbar-link.is-active,.navbar.is-info .navbar-end .navbar-link:hover,.navbar.is-info .navbar-end>a.navbar-item.is-active,.navbar.is-info .navbar-end>a.navbar-item:hover,.navbar.is-info .navbar-start .navbar-link.is-active,.navbar.is-info .navbar-start .navbar-link:hover,.navbar.is-info .navbar-start>a.navbar-item.is-active,.navbar.is-info .navbar-start>a.navbar-item:hover{background-color:#3b70c0;color:#fff}.navbar.is-info .navbar-end .navbar-link:after,.navbar.is-info .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-info .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-info .navbar-item.has-dropdown:hover .navbar-link{background-color:#3b70c0;color:#fff}.navbar.is-info .navbar-dropdown a.navbar-item.is-active{background-color:#4d7ec8;color:#fff}}.navbar.is-success{background-color:#2ab27b;color:#fff}.navbar.is-success .navbar-brand .navbar-link,.navbar.is-success .navbar-brand>.navbar-item{color:#fff}.navbar.is-success .navbar-brand .navbar-link.is-active,.navbar.is-success .navbar-brand .navbar-link:hover,.navbar.is-success .navbar-brand>a.navbar-item.is-active,.navbar.is-success .navbar-brand>a.navbar-item:hover{background-color:#259d6d;color:#fff}.navbar.is-success .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-success .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-success .navbar-end .navbar-link,.navbar.is-success .navbar-end>.navbar-item,.navbar.is-success .navbar-start .navbar-link,.navbar.is-success .navbar-start>.navbar-item{color:#fff}.navbar.is-success .navbar-end .navbar-link.is-active,.navbar.is-success .navbar-end .navbar-link:hover,.navbar.is-success .navbar-end>a.navbar-item.is-active,.navbar.is-success .navbar-end>a.navbar-item:hover,.navbar.is-success .navbar-start .navbar-link.is-active,.navbar.is-success .navbar-start .navbar-link:hover,.navbar.is-success .navbar-start>a.navbar-item.is-active,.navbar.is-success .navbar-start>a.navbar-item:hover{background-color:#259d6d;color:#fff}.navbar.is-success .navbar-end .navbar-link:after,.navbar.is-success .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-success .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-success .navbar-item.has-dropdown:hover .navbar-link{background-color:#259d6d;color:#fff}.navbar.is-success .navbar-dropdown a.navbar-item.is-active{background-color:#2ab27b;color:#fff}}.navbar.is-warning{background-color:#f39c12}.navbar.is-warning,.navbar.is-warning .navbar-brand .navbar-link,.navbar.is-warning .navbar-brand>.navbar-item{color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-brand .navbar-link.is-active,.navbar.is-warning .navbar-brand .navbar-link:hover,.navbar.is-warning .navbar-brand>a.navbar-item.is-active,.navbar.is-warning .navbar-brand>a.navbar-item:hover{background-color:#e08e0b;color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-brand .navbar-link:after{border-color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-burger{color:rgba(0,0,0,.7)}@media screen and (min-width:1024px){.navbar.is-warning .navbar-end .navbar-link,.navbar.is-warning .navbar-end>.navbar-item,.navbar.is-warning .navbar-start .navbar-link,.navbar.is-warning .navbar-start>.navbar-item{color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-end .navbar-link.is-active,.navbar.is-warning .navbar-end .navbar-link:hover,.navbar.is-warning .navbar-end>a.navbar-item.is-active,.navbar.is-warning .navbar-end>a.navbar-item:hover,.navbar.is-warning .navbar-start .navbar-link.is-active,.navbar.is-warning .navbar-start .navbar-link:hover,.navbar.is-warning .navbar-start>a.navbar-item.is-active,.navbar.is-warning .navbar-start>a.navbar-item:hover{background-color:#e08e0b;color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-end .navbar-link:after,.navbar.is-warning .navbar-start .navbar-link:after{border-color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-warning .navbar-item.has-dropdown:hover .navbar-link{background-color:#e08e0b;color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-dropdown a.navbar-item.is-active{background-color:#f39c12;color:rgba(0,0,0,.7)}}.navbar.is-danger{background-color:#bf5329;color:#fff}.navbar.is-danger .navbar-brand .navbar-link,.navbar.is-danger .navbar-brand>.navbar-item{color:#fff}.navbar.is-danger .navbar-brand .navbar-link.is-active,.navbar.is-danger .navbar-brand .navbar-link:hover,.navbar.is-danger .navbar-brand>a.navbar-item.is-active,.navbar.is-danger .navbar-brand>a.navbar-item:hover{background-color:#aa4a24;color:#fff}.navbar.is-danger .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-danger .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-danger .navbar-end .navbar-link,.navbar.is-danger .navbar-end>.navbar-item,.navbar.is-danger .navbar-start .navbar-link,.navbar.is-danger .navbar-start>.navbar-item{color:#fff}.navbar.is-danger .navbar-end .navbar-link.is-active,.navbar.is-danger .navbar-end .navbar-link:hover,.navbar.is-danger .navbar-end>a.navbar-item.is-active,.navbar.is-danger .navbar-end>a.navbar-item:hover,.navbar.is-danger .navbar-start .navbar-link.is-active,.navbar.is-danger .navbar-start .navbar-link:hover,.navbar.is-danger .navbar-start>a.navbar-item.is-active,.navbar.is-danger .navbar-start>a.navbar-item:hover{background-color:#aa4a24;color:#fff}.navbar.is-danger .navbar-end .navbar-link:after,.navbar.is-danger .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-danger .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-danger .navbar-item.has-dropdown:hover .navbar-link{background-color:#aa4a24;color:#fff}.navbar.is-danger .navbar-dropdown a.navbar-item.is-active{background-color:#bf5329;color:#fff}}.navbar>.container{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;min-height:3.5rem;width:100%}.navbar.has-shadow{-webkit-box-shadow:0 2px 0 0 #f5f5f5;box-shadow:0 2px 0 0 #f5f5f5}.navbar.is-fixed-bottom,.navbar.is-fixed-top{left:0;position:fixed;right:0;z-index:30}.navbar.is-fixed-bottom{bottom:0}.navbar.is-fixed-bottom.has-shadow{-webkit-box-shadow:0 -2px 0 0 #f5f5f5;box-shadow:0 -2px 0 0 #f5f5f5}.navbar.is-fixed-top{top:0}body.has-navbar-fixed-top,html.has-navbar-fixed-top{padding-top:3.5rem}body.has-navbar-fixed-bottom,html.has-navbar-fixed-bottom{padding-bottom:3.5rem}.navbar-brand,.navbar-tabs{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;min-height:3.5rem}.navbar-brand a.navbar-item:hover{background-color:transparent}.navbar-tabs{-webkit-overflow-scrolling:touch;max-width:100vw;overflow-x:auto;overflow-y:hidden}.navbar-burger{color:#4a4a4a;cursor:pointer;display:block;height:3.5rem;position:relative;width:3.5rem;margin-left:auto}.navbar-burger span{background-color:currentColor;display:block;height:1px;left:calc(50% - 8px);position:absolute;-webkit-transform-origin:center;transform-origin:center;-webkit-transition-duration:86ms;transition-duration:86ms;-webkit-transition-property:background-color,opacity,-webkit-transform;transition-property:background-color,opacity,-webkit-transform;transition-property:background-color,opacity,transform;transition-property:background-color,opacity,transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;width:16px}.navbar-burger span:first-child{top:calc(50% - 6px)}.navbar-burger span:nth-child(2){top:calc(50% - 1px)}.navbar-burger span:nth-child(3){top:calc(50% + 4px)}.navbar-burger:hover{background-color:rgba(0,0,0,.05)}.navbar-burger.is-active span:first-child{-webkit-transform:translateY(5px) rotate(45deg);transform:translateY(5px) rotate(45deg)}.navbar-burger.is-active span:nth-child(2){opacity:0}.navbar-burger.is-active span:nth-child(3){-webkit-transform:translateY(-5px) rotate(-45deg);transform:translateY(-5px) rotate(-45deg)}.navbar-menu{display:none}.navbar-item,.navbar-link{color:#4a4a4a;display:block;line-height:1.5;padding:.5rem .75rem;position:relative}.navbar-item .icon:only-child,.navbar-link .icon:only-child{margin-left:-.25rem;margin-right:-.25rem}.navbar-link,a.navbar-item{cursor:pointer}.navbar-link.is-active,.navbar-link:hover,a.navbar-item.is-active,a.navbar-item:hover{background-color:#fafafa;color:#2a9d8f}.navbar-item{display:block;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.navbar-item img{max-height:1.75rem}.navbar-item.has-dropdown{padding:0}.navbar-item.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.navbar-item.is-tab{border-bottom:1px solid transparent;min-height:3.5rem;padding-bottom:calc(.5rem - 1px)}.navbar-item.is-tab.is-active,.navbar-item.is-tab:hover{background-color:transparent;border-bottom-color:#2a9d8f}.navbar-item.is-tab.is-active{border-bottom-style:solid;border-bottom-width:3px;color:#2a9d8f;padding-bottom:calc(.5rem - 3px)}.navbar-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.navbar-link:not(.is-arrowless){padding-right:2.5em}.navbar-link:not(.is-arrowless):after{border-color:#2a9d8f;margin-top:-.375em;right:1.125em}.navbar-dropdown{font-size:.875rem;padding-bottom:.5rem;padding-top:.5rem}.navbar-dropdown .navbar-item{padding-left:1.5rem;padding-right:1.5rem}.navbar-divider{background-color:#f5f5f5;border:none;display:none;height:2px;margin:.5rem 0}@media screen and (max-width:1023px){.navbar>.container{display:block}.navbar-brand .navbar-item,.navbar-tabs .navbar-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.navbar-link:after{display:none}.navbar-menu{background-color:#fff;-webkit-box-shadow:0 8px 16px hsla(0,0%,4%,.1);box-shadow:0 8px 16px hsla(0,0%,4%,.1);padding:.5rem 0}.navbar-menu.is-active{display:block}.navbar.is-fixed-bottom-touch,.navbar.is-fixed-top-touch{left:0;position:fixed;right:0;z-index:30}.navbar.is-fixed-bottom-touch{bottom:0}.navbar.is-fixed-bottom-touch.has-shadow{-webkit-box-shadow:0 -2px 3px hsla(0,0%,4%,.1);box-shadow:0 -2px 3px hsla(0,0%,4%,.1)}.navbar.is-fixed-top-touch{top:0}.navbar.is-fixed-top-touch .navbar-menu,.navbar.is-fixed-top .navbar-menu{-webkit-overflow-scrolling:touch;max-height:calc(100vh - 3.5rem);overflow:auto}body.has-navbar-fixed-top-touch,html.has-navbar-fixed-top-touch{padding-top:3.5rem}body.has-navbar-fixed-bottom-touch,html.has-navbar-fixed-bottom-touch{padding-bottom:3.5rem}}@media screen and (min-width:1024px){.navbar,.navbar-end,.navbar-menu,.navbar-start{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex}.navbar{min-height:3.5rem}.navbar.is-spaced{padding:1rem 2rem}.navbar.is-spaced .navbar-end,.navbar.is-spaced .navbar-start{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.navbar.is-spaced .navbar-link,.navbar.is-spaced a.navbar-item{border-radius:2px}.navbar.is-transparent .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-transparent .navbar-item.has-dropdown.is-hoverable:hover .navbar-link,.navbar.is-transparent .navbar-link.is-active,.navbar.is-transparent .navbar-link:hover,.navbar.is-transparent a.navbar-item.is-active,.navbar.is-transparent a.navbar-item:hover{background-color:transparent!important}.navbar.is-transparent .navbar-dropdown a.navbar-item:hover{background-color:#f5f5f5;color:#0a0a0a}.navbar.is-transparent .navbar-dropdown a.navbar-item.is-active{background-color:#f5f5f5;color:#2a9d8f}.navbar-burger{display:none}.navbar-item,.navbar-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.navbar-item,.navbar-link{display:-webkit-box;display:-ms-flexbox;display:flex}.navbar-item.has-dropdown{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.navbar-item.has-dropdown-up .navbar-link:after{-webkit-transform:rotate(135deg) translate(.25em,-.25em);transform:rotate(135deg) translate(.25em,-.25em)}.navbar-item.has-dropdown-up .navbar-dropdown{border-bottom:2px solid #dbdbdb;border-radius:2px 2px 0 0;border-top:none;bottom:100%;-webkit-box-shadow:0 -8px 8px hsla(0,0%,4%,.1);box-shadow:0 -8px 8px hsla(0,0%,4%,.1);top:auto}.navbar-item.is-active .navbar-dropdown,.navbar-item.is-hoverable:hover .navbar-dropdown{display:block}.navbar-item.is-active .navbar-dropdown.is-boxed,.navbar-item.is-hoverable:hover .navbar-dropdown.is-boxed,.navbar.is-spaced .navbar-item.is-active .navbar-dropdown,.navbar.is-spaced .navbar-item.is-hoverable:hover .navbar-dropdown{opacity:1;pointer-events:auto;-webkit-transform:translateY(0);transform:translateY(0)}.navbar-menu{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.navbar-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin-right:auto}.navbar-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-left:auto}.navbar-dropdown{background-color:#fff;border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:2px solid #dbdbdb;-webkit-box-shadow:0 8px 8px hsla(0,0%,4%,.1);box-shadow:0 8px 8px hsla(0,0%,4%,.1);display:none;font-size:.875rem;left:0;min-width:100%;position:absolute;top:100%;z-index:20}.navbar-dropdown .navbar-item{padding:.375rem 1rem;white-space:nowrap}.navbar-dropdown a.navbar-item{padding-right:3rem}.navbar-dropdown a.navbar-item:hover{background-color:#f5f5f5;color:#0a0a0a}.navbar-dropdown a.navbar-item.is-active{background-color:#f5f5f5;color:#2a9d8f}.navbar-dropdown.is-boxed,.navbar.is-spaced .navbar-dropdown{border-radius:2px;border-top:none;-webkit-box-shadow:0 8px 8px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 8px 8px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);display:block;opacity:0;pointer-events:none;top:calc(100% + -4px);-webkit-transform:translateY(-5px);transform:translateY(-5px);-webkit-transition-duration:86ms;transition-duration:86ms;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.navbar-dropdown.is-right{left:auto;right:0}.navbar-divider{display:block}.container>.navbar .navbar-brand,.navbar>.container .navbar-brand{margin-left:-.75rem}.container>.navbar .navbar-menu,.navbar>.container .navbar-menu{margin-right:-.75rem}.navbar.is-fixed-bottom-desktop,.navbar.is-fixed-top-desktop{left:0;position:fixed;right:0;z-index:30}.navbar.is-fixed-bottom-desktop{bottom:0}.navbar.is-fixed-bottom-desktop.has-shadow{-webkit-box-shadow:0 -2px 3px hsla(0,0%,4%,.1);box-shadow:0 -2px 3px hsla(0,0%,4%,.1)}.navbar.is-fixed-top-desktop{top:0}body.has-navbar-fixed-top-desktop,html.has-navbar-fixed-top-desktop{padding-top:3.5rem}body.has-navbar-fixed-bottom-desktop,html.has-navbar-fixed-bottom-desktop{padding-bottom:3.5rem}body.has-spaced-navbar-fixed-top,html.has-spaced-navbar-fixed-top{padding-top:5.5rem}body.has-spaced-navbar-fixed-bottom,html.has-spaced-navbar-fixed-bottom{padding-bottom:5.5rem}.navbar-link.is-active,a.navbar-item.is-active{color:#0a0a0a}.navbar-link.is-active:not(:hover),a.navbar-item.is-active:not(:hover){background-color:transparent}.navbar-item.has-dropdown.is-active .navbar-link,.navbar-item.has-dropdown:hover .navbar-link{background-color:#fafafa}}.hero.is-fullheight-with-navbar{min-height:calc(100vh - 3.5rem)}.pagination{font-size:1rem;margin:-.25rem}.pagination.is-small{font-size:.75rem}.pagination.is-medium{font-size:1.25rem}.pagination.is-large{font-size:1.5rem}.pagination.is-rounded .pagination-next,.pagination.is-rounded .pagination-previous{padding-left:1em;padding-right:1em;border-radius:290486px}.pagination.is-rounded .pagination-link{border-radius:290486px}.pagination,.pagination-list{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center}.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous{font-size:1em;padding-left:.5em;padding-right:.5em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:.25rem;text-align:center}.pagination-link,.pagination-next,.pagination-previous{border-color:#dbdbdb;color:#363636;min-width:2.25em}.pagination-link:hover,.pagination-next:hover,.pagination-previous:hover{border-color:#b5b5b5;color:#363636}.pagination-link:focus,.pagination-next:focus,.pagination-previous:focus{border-color:#3273dc}.pagination-link:active,.pagination-next:active,.pagination-previous:active{-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2)}.pagination-link[disabled],.pagination-next[disabled],.pagination-previous[disabled]{background-color:#dbdbdb;border-color:#dbdbdb;-webkit-box-shadow:none;box-shadow:none;color:#7a7a7a;opacity:.5}.pagination-next,.pagination-previous{padding-left:.75em;padding-right:.75em;white-space:nowrap}.pagination-link.is-current{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff}.pagination-ellipsis{color:#b5b5b5;pointer-events:none}.pagination-list{-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (max-width:768px){.pagination{-ms-flex-wrap:wrap;flex-wrap:wrap}.pagination-list li,.pagination-next,.pagination-previous{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}}@media print,screen and (min-width:769px){.pagination-list{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.pagination-previous{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.pagination-next{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.pagination{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.pagination.is-centered .pagination-previous{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.pagination.is-centered .pagination-list{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.pagination.is-centered .pagination-next{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.pagination.is-right .pagination-previous{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.pagination.is-right .pagination-next{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.pagination.is-right .pagination-list{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}}.panel{font-size:1rem}.panel:not(:last-child){margin-bottom:1.5rem}.panel-block,.panel-heading,.panel-tabs{border-bottom:1px solid #dbdbdb;border-left:1px solid #dbdbdb;border-right:1px solid #dbdbdb}.panel-block:first-child,.panel-heading:first-child,.panel-tabs:first-child{border-top:1px solid #dbdbdb}.panel-heading{background-color:#f5f5f5;border-radius:2px 2px 0 0;color:#363636;font-size:1.25em;font-weight:300;line-height:1.25;padding:.5em .75em}.panel-tabs{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:.875em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.panel-tabs a{border-bottom:1px solid #dbdbdb;margin-bottom:-1px;padding:.5em}.panel-tabs a.is-active{border-bottom-color:#4a4a4a;color:#363636}.panel-list a{color:#4a4a4a}.panel-list a:hover{color:#2a9d8f}.panel-block{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#363636;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:.5em .75em}.panel-block input[type=checkbox]{margin-right:.75em}.panel-block>.control{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;width:100%}.panel-block.is-wrapped{-ms-flex-wrap:wrap;flex-wrap:wrap}.panel-block.is-active{border-left-color:#2a9d8f;color:#363636}.panel-block.is-active .panel-icon{color:#2a9d8f}a.panel-block,label.panel-block{cursor:pointer}a.panel-block:hover,label.panel-block:hover{background-color:#f5f5f5}.panel-icon{display:inline-block;font-size:14px;height:1em;line-height:1em;text-align:center;vertical-align:top;width:1em;color:#7a7a7a;margin-right:.75em}.panel-icon .fa{font-size:inherit;line-height:inherit}.tabs{-webkit-overflow-scrolling:touch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;font-size:1rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden;overflow-x:auto;white-space:nowrap}.tabs,.tabs a{display:-webkit-box;display:-ms-flexbox;display:flex}.tabs a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom-color:#dbdbdb;border-bottom-style:solid;border-bottom-width:1px;color:#4a4a4a;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:-1px;padding:.5em 1em;vertical-align:top}.tabs a:hover{border-bottom-color:#363636;color:#363636}.tabs li{display:block}.tabs li.is-active a{border-bottom-color:#2a9d8f;color:#2a9d8f}.tabs ul{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom-color:#dbdbdb;border-bottom-style:solid;border-bottom-width:1px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.tabs ul.is-center,.tabs ul.is-left{padding-right:.75em}.tabs ul.is-center{-webkit-box-flex:0;-ms-flex:none;flex:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding-left:.75em}.tabs ul.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding-left:.75em}.tabs .icon:first-child{margin-right:.5em}.tabs .icon:last-child{margin-left:.5em}.tabs.is-centered ul{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.tabs.is-right ul{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.tabs.is-boxed a{border:1px solid transparent;border-radius:2px 2px 0 0}.tabs.is-boxed a:hover{background-color:#f5f5f5;border-bottom-color:#dbdbdb}.tabs.is-boxed li.is-active a{background-color:#fff;border-color:#dbdbdb;border-bottom-color:transparent!important}.tabs.is-fullwidth li{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.tabs.is-toggle a{border:1px solid #dbdbdb;margin-bottom:0;position:relative}.tabs.is-toggle a:hover{background-color:#f5f5f5;border-color:#b5b5b5;z-index:2}.tabs.is-toggle li+li{margin-left:-1px}.tabs.is-toggle li:first-child a{border-radius:2px 0 0 2px}.tabs.is-toggle li:last-child a{border-radius:0 2px 2px 0}.tabs.is-toggle li.is-active a{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff;z-index:1}.tabs.is-toggle ul{border-bottom:none}.tabs.is-toggle.is-toggle-rounded li:first-child a{border-bottom-left-radius:290486px;border-top-left-radius:290486px;padding-left:1.25em}.tabs.is-toggle.is-toggle-rounded li:last-child a{border-bottom-right-radius:290486px;border-top-right-radius:290486px;padding-right:1.25em}.tabs.is-small{font-size:.75rem}.tabs.is-medium{font-size:1.25rem}.tabs.is-large{font-size:1.5rem}.column{display:block;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;padding:.75rem}.columns.is-mobile>.column.is-full,.columns.is-mobile>.column.is-narrow{-webkit-box-flex:0;-ms-flex:none;flex:none}.columns.is-mobile>.column.is-full{width:100%}.columns.is-mobile>.column.is-three-quarters{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.columns.is-mobile>.column.is-two-thirds{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.columns.is-mobile>.column.is-half{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.columns.is-mobile>.column.is-one-third{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.columns.is-mobile>.column.is-one-quarter{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.columns.is-mobile>.column.is-one-fifth{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.columns.is-mobile>.column.is-two-fifths{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.columns.is-mobile>.column.is-three-fifths{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.columns.is-mobile>.column.is-four-fifths{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.columns.is-mobile>.column.is-offset-three-quarters{margin-left:75%}.columns.is-mobile>.column.is-offset-two-thirds{margin-left:66.6666%}.columns.is-mobile>.column.is-offset-half{margin-left:50%}.columns.is-mobile>.column.is-offset-one-third{margin-left:33.3333%}.columns.is-mobile>.column.is-offset-one-quarter{margin-left:25%}.columns.is-mobile>.column.is-offset-one-fifth{margin-left:20%}.columns.is-mobile>.column.is-offset-two-fifths{margin-left:40%}.columns.is-mobile>.column.is-offset-three-fifths{margin-left:60%}.columns.is-mobile>.column.is-offset-four-fifths{margin-left:80%}.columns.is-mobile>.column.is-1{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.columns.is-mobile>.column.is-offset-1{margin-left:8.33333333%}.columns.is-mobile>.column.is-2,.document .columns.is-mobile>h1.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.columns.is-mobile>.column.is-offset-2{margin-left:16.66666667%}.columns.is-mobile>.column.is-3,.document .columns.is-mobile>h2.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.columns.is-mobile>.column.is-offset-3{margin-left:25%}.columns.is-mobile>.column.is-4,.document .columns.is-mobile>h3.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.columns.is-mobile>.column.is-offset-4{margin-left:33.33333333%}.columns.is-mobile>.column.is-5,.document .columns.is-mobile>h4.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.columns.is-mobile>.column.is-offset-5{margin-left:41.66666667%}.columns.is-mobile>.column.is-6,.document .columns.is-mobile>h5.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.columns.is-mobile>.column.is-offset-6{margin-left:50%}.columns.is-mobile>.column.is-7{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.columns.is-mobile>.column.is-offset-7{margin-left:58.33333333%}.columns.is-mobile>.column.is-8{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.columns.is-mobile>.column.is-offset-8{margin-left:66.66666667%}.columns.is-mobile>.column.is-9{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.columns.is-mobile>.column.is-offset-9{margin-left:75%}.columns.is-mobile>.column.is-10{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.columns.is-mobile>.column.is-offset-10{margin-left:83.33333333%}.columns.is-mobile>.column.is-11{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.columns.is-mobile>.column.is-offset-11{margin-left:91.66666667%}.columns.is-mobile>.column.is-12{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.columns.is-mobile>.column.is-offset-12{margin-left:100%}@media screen and (max-width:768px){.column.is-full-mobile,.column.is-narrow-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-mobile{width:100%}.column.is-three-quarters-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-mobile{margin-left:75%}.column.is-offset-two-thirds-mobile{margin-left:66.6666%}.column.is-offset-half-mobile{margin-left:50%}.column.is-offset-one-third-mobile{margin-left:33.3333%}.column.is-offset-one-quarter-mobile{margin-left:25%}.column.is-offset-one-fifth-mobile{margin-left:20%}.column.is-offset-two-fifths-mobile{margin-left:40%}.column.is-offset-three-fifths-mobile{margin-left:60%}.column.is-offset-four-fifths-mobile{margin-left:80%}.column.is-1-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-mobile{margin-left:8.33333333%}.column.is-2-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-mobile{margin-left:16.66666667%}.column.is-3-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-mobile{margin-left:25%}.column.is-4-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-mobile{margin-left:33.33333333%}.column.is-5-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-mobile{margin-left:41.66666667%}.column.is-6-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-mobile{margin-left:50%}.column.is-7-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-mobile{margin-left:58.33333333%}.column.is-8-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-mobile{margin-left:66.66666667%}.column.is-9-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-mobile{margin-left:75%}.column.is-10-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-mobile{margin-left:83.33333333%}.column.is-11-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-mobile{margin-left:91.66666667%}.column.is-12-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-mobile{margin-left:100%}}@media print,screen and (min-width:769px){.column.is-full,.column.is-full-tablet,.column.is-narrow,.column.is-narrow-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full,.column.is-full-tablet{width:100%}.column.is-three-quarters,.column.is-three-quarters-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds,.column.is-two-thirds-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half,.column.is-half-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third,.column.is-one-third-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter,.column.is-one-quarter-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth,.column.is-one-fifth-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths,.column.is-two-fifths-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths,.column.is-three-fifths-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths,.column.is-four-fifths-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters,.column.is-offset-three-quarters-tablet{margin-left:75%}.column.is-offset-two-thirds,.column.is-offset-two-thirds-tablet{margin-left:66.6666%}.column.is-offset-half,.column.is-offset-half-tablet{margin-left:50%}.column.is-offset-one-third,.column.is-offset-one-third-tablet{margin-left:33.3333%}.column.is-offset-one-quarter,.column.is-offset-one-quarter-tablet{margin-left:25%}.column.is-offset-one-fifth,.column.is-offset-one-fifth-tablet{margin-left:20%}.column.is-offset-two-fifths,.column.is-offset-two-fifths-tablet{margin-left:40%}.column.is-offset-three-fifths,.column.is-offset-three-fifths-tablet{margin-left:60%}.column.is-offset-four-fifths,.column.is-offset-four-fifths-tablet{margin-left:80%}.column.is-1,.column.is-1-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1,.column.is-offset-1-tablet{margin-left:8.33333333%}.column.is-2,.column.is-2-tablet,.document h1.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2,.column.is-offset-2-tablet{margin-left:16.66666667%}.column.is-3,.column.is-3-tablet,.document h2.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3,.column.is-offset-3-tablet{margin-left:25%}.column.is-4,.column.is-4-tablet,.document h3.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4,.column.is-offset-4-tablet{margin-left:33.33333333%}.column.is-5,.column.is-5-tablet,.document h4.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5,.column.is-offset-5-tablet{margin-left:41.66666667%}.column.is-6,.column.is-6-tablet,.document h5.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6,.column.is-offset-6-tablet{margin-left:50%}.column.is-7,.column.is-7-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7,.column.is-offset-7-tablet{margin-left:58.33333333%}.column.is-8,.column.is-8-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8,.column.is-offset-8-tablet{margin-left:66.66666667%}.column.is-9,.column.is-9-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9,.column.is-offset-9-tablet{margin-left:75%}.column.is-10,.column.is-10-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10,.column.is-offset-10-tablet{margin-left:83.33333333%}.column.is-11,.column.is-11-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11,.column.is-offset-11-tablet{margin-left:91.66666667%}.column.is-12,.column.is-12-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12,.column.is-offset-12-tablet{margin-left:100%}}@media screen and (max-width:1023px){.column.is-full-touch,.column.is-narrow-touch{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-touch{width:100%}.column.is-three-quarters-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-touch{margin-left:75%}.column.is-offset-two-thirds-touch{margin-left:66.6666%}.column.is-offset-half-touch{margin-left:50%}.column.is-offset-one-third-touch{margin-left:33.3333%}.column.is-offset-one-quarter-touch{margin-left:25%}.column.is-offset-one-fifth-touch{margin-left:20%}.column.is-offset-two-fifths-touch{margin-left:40%}.column.is-offset-three-fifths-touch{margin-left:60%}.column.is-offset-four-fifths-touch{margin-left:80%}.column.is-1-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-touch{margin-left:8.33333333%}.column.is-2-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-touch{margin-left:16.66666667%}.column.is-3-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-touch{margin-left:25%}.column.is-4-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-touch{margin-left:33.33333333%}.column.is-5-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-touch{margin-left:41.66666667%}.column.is-6-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-touch{margin-left:50%}.column.is-7-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-touch{margin-left:58.33333333%}.column.is-8-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-touch{margin-left:66.66666667%}.column.is-9-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-touch{margin-left:75%}.column.is-10-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-touch{margin-left:83.33333333%}.column.is-11-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-touch{margin-left:91.66666667%}.column.is-12-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-touch{margin-left:100%}}@media screen and (min-width:1024px){.column.is-full-desktop,.column.is-narrow-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-desktop{width:100%}.column.is-three-quarters-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-desktop{margin-left:75%}.column.is-offset-two-thirds-desktop{margin-left:66.6666%}.column.is-offset-half-desktop{margin-left:50%}.column.is-offset-one-third-desktop{margin-left:33.3333%}.column.is-offset-one-quarter-desktop{margin-left:25%}.column.is-offset-one-fifth-desktop{margin-left:20%}.column.is-offset-two-fifths-desktop{margin-left:40%}.column.is-offset-three-fifths-desktop{margin-left:60%}.column.is-offset-four-fifths-desktop{margin-left:80%}.column.is-1-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-desktop{margin-left:8.33333333%}.column.is-2-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-desktop{margin-left:16.66666667%}.column.is-3-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-desktop{margin-left:25%}.column.is-4-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-desktop{margin-left:33.33333333%}.column.is-5-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-desktop{margin-left:41.66666667%}.column.is-6-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-desktop{margin-left:50%}.column.is-7-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-desktop{margin-left:58.33333333%}.column.is-8-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-desktop{margin-left:66.66666667%}.column.is-9-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-desktop{margin-left:75%}.column.is-10-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-desktop{margin-left:83.33333333%}.column.is-11-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-desktop{margin-left:91.66666667%}.column.is-12-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-desktop{margin-left:100%}}@media screen and (min-width:1216px){.column.is-full-widescreen,.column.is-narrow-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-widescreen{width:100%}.column.is-three-quarters-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-widescreen{margin-left:75%}.column.is-offset-two-thirds-widescreen{margin-left:66.6666%}.column.is-offset-half-widescreen{margin-left:50%}.column.is-offset-one-third-widescreen{margin-left:33.3333%}.column.is-offset-one-quarter-widescreen{margin-left:25%}.column.is-offset-one-fifth-widescreen{margin-left:20%}.column.is-offset-two-fifths-widescreen{margin-left:40%}.column.is-offset-three-fifths-widescreen{margin-left:60%}.column.is-offset-four-fifths-widescreen{margin-left:80%}.column.is-1-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-widescreen{margin-left:8.33333333%}.column.is-2-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-widescreen{margin-left:16.66666667%}.column.is-3-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-widescreen{margin-left:25%}.column.is-4-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-widescreen{margin-left:33.33333333%}.column.is-5-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-widescreen{margin-left:41.66666667%}.column.is-6-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-widescreen{margin-left:50%}.column.is-7-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-widescreen{margin-left:58.33333333%}.column.is-8-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-widescreen{margin-left:66.66666667%}.column.is-9-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-widescreen{margin-left:75%}.column.is-10-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-widescreen{margin-left:83.33333333%}.column.is-11-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-widescreen{margin-left:91.66666667%}.column.is-12-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-widescreen{margin-left:100%}}@media screen and (min-width:1408px){.column.is-full-fullhd,.column.is-narrow-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-fullhd{width:100%}.column.is-three-quarters-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-fullhd{margin-left:75%}.column.is-offset-two-thirds-fullhd{margin-left:66.6666%}.column.is-offset-half-fullhd{margin-left:50%}.column.is-offset-one-third-fullhd{margin-left:33.3333%}.column.is-offset-one-quarter-fullhd{margin-left:25%}.column.is-offset-one-fifth-fullhd{margin-left:20%}.column.is-offset-two-fifths-fullhd{margin-left:40%}.column.is-offset-three-fifths-fullhd{margin-left:60%}.column.is-offset-four-fifths-fullhd{margin-left:80%}.column.is-1-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-fullhd{margin-left:8.33333333%}.column.is-2-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-fullhd{margin-left:16.66666667%}.column.is-3-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-fullhd{margin-left:25%}.column.is-4-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-fullhd{margin-left:33.33333333%}.column.is-5-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-fullhd{margin-left:41.66666667%}.column.is-6-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-fullhd{margin-left:50%}.column.is-7-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-fullhd{margin-left:58.33333333%}.column.is-8-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-fullhd{margin-left:66.66666667%}.column.is-9-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-fullhd{margin-left:75%}.column.is-10-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-fullhd{margin-left:83.33333333%}.column.is-11-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-fullhd{margin-left:91.66666667%}.column.is-12-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-fullhd{margin-left:100%}}.columns{margin-left:-.75rem;margin-right:-.75rem;margin-top:-.75rem}.columns:last-child{margin-bottom:-.75rem}.columns:not(:last-child){margin-bottom:0.75rem}.columns.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.columns.is-gapless{margin-left:0;margin-right:0;margin-top:0}.columns.is-gapless>.column{margin:0;padding:0!important}.columns.is-gapless:not(:last-child){margin-bottom:1.5rem}.columns.is-gapless:last-child{margin-bottom:0}.columns.is-mobile{display:-webkit-box;display:-ms-flexbox;display:flex}.columns.is-multiline{-ms-flex-wrap:wrap;flex-wrap:wrap}.columns.is-vcentered{-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media print,screen and (min-width:769px){.columns:not(.is-desktop){display:-webkit-box;display:-ms-flexbox;display:flex}}@media screen and (min-width:1024px){.columns.is-desktop{display:-webkit-box;display:-ms-flexbox;display:flex}}.columns.is-variable{--columnGap:0.75rem;margin-left:calc(-1 * var(--columnGap));margin-right:calc(-1 * var(--columnGap))}.columns.is-variable .column{padding-left:var(--columnGap);padding-right:var(--columnGap)}.columns.is-variable.is-0{--columnGap:0rem}@media screen and (max-width:768px){.columns.is-variable.is-0-mobile{--columnGap:0rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-0-tablet{--columnGap:0rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-0-tablet-only{--columnGap:0rem}}@media screen and (max-width:1023px){.columns.is-variable.is-0-touch{--columnGap:0rem}}@media screen and (min-width:1024px){.columns.is-variable.is-0-desktop{--columnGap:0rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-0-desktop-only{--columnGap:0rem}}@media screen and (min-width:1216px){.columns.is-variable.is-0-widescreen{--columnGap:0rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-0-widescreen-only{--columnGap:0rem}}@media screen and (min-width:1408px){.columns.is-variable.is-0-fullhd{--columnGap:0rem}}.columns.is-variable.is-1{--columnGap:0.25rem}@media screen and (max-width:768px){.columns.is-variable.is-1-mobile{--columnGap:0.25rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-1-tablet{--columnGap:0.25rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-1-tablet-only{--columnGap:0.25rem}}@media screen and (max-width:1023px){.columns.is-variable.is-1-touch{--columnGap:0.25rem}}@media screen and (min-width:1024px){.columns.is-variable.is-1-desktop{--columnGap:0.25rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-1-desktop-only{--columnGap:0.25rem}}@media screen and (min-width:1216px){.columns.is-variable.is-1-widescreen{--columnGap:0.25rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-1-widescreen-only{--columnGap:0.25rem}}@media screen and (min-width:1408px){.columns.is-variable.is-1-fullhd{--columnGap:0.25rem}}.columns.is-variable.is-2,.document h1.columns.is-variable{--columnGap:0.5rem}@media screen and (max-width:768px){.columns.is-variable.is-2-mobile{--columnGap:0.5rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-2-tablet{--columnGap:0.5rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-2-tablet-only{--columnGap:0.5rem}}@media screen and (max-width:1023px){.columns.is-variable.is-2-touch{--columnGap:0.5rem}}@media screen and (min-width:1024px){.columns.is-variable.is-2-desktop{--columnGap:0.5rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-2-desktop-only{--columnGap:0.5rem}}@media screen and (min-width:1216px){.columns.is-variable.is-2-widescreen{--columnGap:0.5rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-2-widescreen-only{--columnGap:0.5rem}}@media screen and (min-width:1408px){.columns.is-variable.is-2-fullhd{--columnGap:0.5rem}}.columns.is-variable.is-3,.document h2.columns.is-variable{--columnGap:0.75rem}@media screen and (max-width:768px){.columns.is-variable.is-3-mobile{--columnGap:0.75rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-3-tablet{--columnGap:0.75rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-3-tablet-only{--columnGap:0.75rem}}@media screen and (max-width:1023px){.columns.is-variable.is-3-touch{--columnGap:0.75rem}}@media screen and (min-width:1024px){.columns.is-variable.is-3-desktop{--columnGap:0.75rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-3-desktop-only{--columnGap:0.75rem}}@media screen and (min-width:1216px){.columns.is-variable.is-3-widescreen{--columnGap:0.75rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-3-widescreen-only{--columnGap:0.75rem}}@media screen and (min-width:1408px){.columns.is-variable.is-3-fullhd{--columnGap:0.75rem}}.columns.is-variable.is-4,.document h3.columns.is-variable{--columnGap:1rem}@media screen and (max-width:768px){.columns.is-variable.is-4-mobile{--columnGap:1rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-4-tablet{--columnGap:1rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-4-tablet-only{--columnGap:1rem}}@media screen and (max-width:1023px){.columns.is-variable.is-4-touch{--columnGap:1rem}}@media screen and (min-width:1024px){.columns.is-variable.is-4-desktop{--columnGap:1rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-4-desktop-only{--columnGap:1rem}}@media screen and (min-width:1216px){.columns.is-variable.is-4-widescreen{--columnGap:1rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-4-widescreen-only{--columnGap:1rem}}@media screen and (min-width:1408px){.columns.is-variable.is-4-fullhd{--columnGap:1rem}}.columns.is-variable.is-5,.document h4.columns.is-variable{--columnGap:1.25rem}@media screen and (max-width:768px){.columns.is-variable.is-5-mobile{--columnGap:1.25rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-5-tablet{--columnGap:1.25rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-5-tablet-only{--columnGap:1.25rem}}@media screen and (max-width:1023px){.columns.is-variable.is-5-touch{--columnGap:1.25rem}}@media screen and (min-width:1024px){.columns.is-variable.is-5-desktop{--columnGap:1.25rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-5-desktop-only{--columnGap:1.25rem}}@media screen and (min-width:1216px){.columns.is-variable.is-5-widescreen{--columnGap:1.25rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-5-widescreen-only{--columnGap:1.25rem}}@media screen and (min-width:1408px){.columns.is-variable.is-5-fullhd{--columnGap:1.25rem}}.columns.is-variable.is-6,.document h5.columns.is-variable{--columnGap:1.5rem}@media screen and (max-width:768px){.columns.is-variable.is-6-mobile{--columnGap:1.5rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-6-tablet{--columnGap:1.5rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-6-tablet-only{--columnGap:1.5rem}}@media screen and (max-width:1023px){.columns.is-variable.is-6-touch{--columnGap:1.5rem}}@media screen and (min-width:1024px){.columns.is-variable.is-6-desktop{--columnGap:1.5rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-6-desktop-only{--columnGap:1.5rem}}@media screen and (min-width:1216px){.columns.is-variable.is-6-widescreen{--columnGap:1.5rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-6-widescreen-only{--columnGap:1.5rem}}@media screen and (min-width:1408px){.columns.is-variable.is-6-fullhd{--columnGap:1.5rem}}.columns.is-variable.is-7{--columnGap:1.75rem}@media screen and (max-width:768px){.columns.is-variable.is-7-mobile{--columnGap:1.75rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-7-tablet{--columnGap:1.75rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-7-tablet-only{--columnGap:1.75rem}}@media screen and (max-width:1023px){.columns.is-variable.is-7-touch{--columnGap:1.75rem}}@media screen and (min-width:1024px){.columns.is-variable.is-7-desktop{--columnGap:1.75rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-7-desktop-only{--columnGap:1.75rem}}@media screen and (min-width:1216px){.columns.is-variable.is-7-widescreen{--columnGap:1.75rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-7-widescreen-only{--columnGap:1.75rem}}@media screen and (min-width:1408px){.columns.is-variable.is-7-fullhd{--columnGap:1.75rem}}.columns.is-variable.is-8{--columnGap:2rem}@media screen and (max-width:768px){.columns.is-variable.is-8-mobile{--columnGap:2rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-8-tablet{--columnGap:2rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-8-tablet-only{--columnGap:2rem}}@media screen and (max-width:1023px){.columns.is-variable.is-8-touch{--columnGap:2rem}}@media screen and (min-width:1024px){.columns.is-variable.is-8-desktop{--columnGap:2rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-8-desktop-only{--columnGap:2rem}}@media screen and (min-width:1216px){.columns.is-variable.is-8-widescreen{--columnGap:2rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-8-widescreen-only{--columnGap:2rem}}@media screen and (min-width:1408px){.columns.is-variable.is-8-fullhd{--columnGap:2rem}}.tile{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:block;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;min-height:-webkit-min-content;min-height:-moz-min-content;min-height:min-content}.tile.is-ancestor{margin-left:-.75rem;margin-right:-.75rem;margin-top:-.75rem}.tile.is-ancestor:last-child{margin-bottom:-.75rem}.tile.is-ancestor:not(:last-child){margin-bottom:.75rem}.tile.is-child{margin:0!important}.tile.is-parent{padding:.75rem}.tile.is-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.tile.is-vertical>.tile.is-child:not(:last-child){margin-bottom:1.5rem!important}@media print,screen and (min-width:769px){.tile:not(.is-child){display:-webkit-box;display:-ms-flexbox;display:flex}.tile.is-1{width:8.33333333%}.document h1.tile,.tile.is-1,.tile.is-2{-webkit-box-flex:0;-ms-flex:none;flex:none}.document h1.tile,.tile.is-2{width:16.66666667%}.document h2.tile,.tile.is-3{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.document h3.tile,.tile.is-4{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.document h4.tile,.tile.is-5{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.document h5.tile,.tile.is-6{width:50%}.document h5.tile,.tile.is-6,.tile.is-7{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-7{width:58.33333333%}.tile.is-8{width:66.66666667%}.tile.is-8,.tile.is-9{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-9{width:75%}.tile.is-10{width:83.33333333%}.tile.is-10,.tile.is-11{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-11{width:91.66666667%}.tile.is-12{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}}.hero{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.hero .navbar{background:none}.hero .tabs ul{border-bottom:none}.hero.is-white{background-color:#fff;color:#0a0a0a}.hero.is-white a:not(.button):not(.dropdown-item):not(.tag),.hero.is-white strong{color:inherit}.document .hero.is-white h1,.document .hero.is-white h2,.document .hero.is-white h3,.document .hero.is-white h4,.document .hero.is-white h5,.hero.is-white .document h1,.hero.is-white .document h2,.hero.is-white .document h3,.hero.is-white .document h4,.hero.is-white .document h5,.hero.is-white .title{color:#0a0a0a}.hero.is-white .subtitle{color:hsla(0,0%,4%,.9)}.hero.is-white .subtitle a:not(.button),.hero.is-white .subtitle strong{color:#0a0a0a}@media screen and (max-width:1023px){.hero.is-white .navbar-menu{background-color:#fff}}.hero.is-white .navbar-item,.hero.is-white .navbar-link{color:hsla(0,0%,4%,.7)}.hero.is-white .navbar-link.is-active,.hero.is-white .navbar-link:hover,.hero.is-white a.navbar-item.is-active,.hero.is-white a.navbar-item:hover{background-color:#f2f2f2;color:#0a0a0a}.hero.is-white .tabs a{color:#0a0a0a;opacity:.9}.hero.is-white .tabs a:hover,.hero.is-white .tabs li.is-active a{opacity:1}.hero.is-white .tabs.is-boxed a,.hero.is-white .tabs.is-toggle a{color:#0a0a0a}.hero.is-white .tabs.is-boxed a:hover,.hero.is-white .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-white .tabs.is-boxed li.is-active a,.hero.is-white .tabs.is-boxed li.is-active a:hover,.hero.is-white .tabs.is-toggle li.is-active a,.hero.is-white .tabs.is-toggle li.is-active a:hover{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.hero.is-white.is-bold{background-image:linear-gradient(141deg,#e6e5e5,#fff 71%,#fff)}@media screen and (max-width:768px){.hero.is-white.is-bold .navbar-menu{background-image:linear-gradient(141deg,#e6e5e5,#fff 71%,#fff)}}.hero.is-black{background-color:#0a0a0a;color:#fff}.hero.is-black a:not(.button):not(.dropdown-item):not(.tag),.hero.is-black strong{color:inherit}.document .hero.is-black h1,.document .hero.is-black h2,.document .hero.is-black h3,.document .hero.is-black h4,.document .hero.is-black h5,.hero.is-black .document h1,.hero.is-black .document h2,.hero.is-black .document h3,.hero.is-black .document h4,.hero.is-black .document h5,.hero.is-black .title{color:#fff}.hero.is-black .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-black .subtitle a:not(.button),.hero.is-black .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-black .navbar-menu{background-color:#0a0a0a}}.hero.is-black .navbar-item,.hero.is-black .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-black .navbar-link.is-active,.hero.is-black .navbar-link:hover,.hero.is-black a.navbar-item.is-active,.hero.is-black a.navbar-item:hover{background-color:#000;color:#fff}.hero.is-black .tabs a{color:#fff;opacity:.9}.hero.is-black .tabs a:hover,.hero.is-black .tabs li.is-active a{opacity:1}.hero.is-black .tabs.is-boxed a,.hero.is-black .tabs.is-toggle a{color:#fff}.hero.is-black .tabs.is-boxed a:hover,.hero.is-black .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-black .tabs.is-boxed li.is-active a,.hero.is-black .tabs.is-boxed li.is-active a:hover,.hero.is-black .tabs.is-toggle li.is-active a,.hero.is-black .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#0a0a0a}.hero.is-black.is-bold{background-image:linear-gradient(141deg,#000,#0a0a0a 71%,#181616)}@media screen and (max-width:768px){.hero.is-black.is-bold .navbar-menu{background-image:linear-gradient(141deg,#000,#0a0a0a 71%,#181616)}}.hero.is-light{background-color:#f5f5f5;color:#1f2d3d}.hero.is-light a:not(.button):not(.dropdown-item):not(.tag),.hero.is-light strong{color:inherit}.document .hero.is-light h1,.document .hero.is-light h2,.document .hero.is-light h3,.document .hero.is-light h4,.document .hero.is-light h5,.hero.is-light .document h1,.hero.is-light .document h2,.hero.is-light .document h3,.hero.is-light .document h4,.hero.is-light .document h5,.hero.is-light .title{color:#1f2d3d}.hero.is-light .subtitle{color:rgba(31,45,61,.9)}.hero.is-light .subtitle a:not(.button),.hero.is-light .subtitle strong{color:#1f2d3d}@media screen and (max-width:1023px){.hero.is-light .navbar-menu{background-color:#f5f5f5}}.hero.is-light .navbar-item,.hero.is-light .navbar-link{color:rgba(31,45,61,.7)}.hero.is-light .navbar-link.is-active,.hero.is-light .navbar-link:hover,.hero.is-light a.navbar-item.is-active,.hero.is-light a.navbar-item:hover{background-color:#e8e8e8;color:#1f2d3d}.hero.is-light .tabs a{color:#1f2d3d;opacity:.9}.hero.is-light .tabs a:hover,.hero.is-light .tabs li.is-active a{opacity:1}.hero.is-light .tabs.is-boxed a,.hero.is-light .tabs.is-toggle a{color:#1f2d3d}.hero.is-light .tabs.is-boxed a:hover,.hero.is-light .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-light .tabs.is-boxed li.is-active a,.hero.is-light .tabs.is-boxed li.is-active a:hover,.hero.is-light .tabs.is-toggle li.is-active a,.hero.is-light .tabs.is-toggle li.is-active a:hover{background-color:#1f2d3d;border-color:#1f2d3d;color:#f5f5f5}.hero.is-light.is-bold{background-image:linear-gradient(141deg,#dfd8d9,#f5f5f5 71%,#fff)}@media screen and (max-width:768px){.hero.is-light.is-bold .navbar-menu{background-image:linear-gradient(141deg,#dfd8d9,#f5f5f5 71%,#fff)}}.hero.is-dark{background-color:#1f2d3d;color:#f5f5f5}.hero.is-dark a:not(.button):not(.dropdown-item):not(.tag),.hero.is-dark strong{color:inherit}.document .hero.is-dark h1,.document .hero.is-dark h2,.document .hero.is-dark h3,.document .hero.is-dark h4,.document .hero.is-dark h5,.hero.is-dark .document h1,.hero.is-dark .document h2,.hero.is-dark .document h3,.hero.is-dark .document h4,.hero.is-dark .document h5,.hero.is-dark .title{color:#f5f5f5}.hero.is-dark .subtitle{color:hsla(0,0%,96%,.9)}.hero.is-dark .subtitle a:not(.button),.hero.is-dark .subtitle strong{color:#f5f5f5}@media screen and (max-width:1023px){.hero.is-dark .navbar-menu{background-color:#1f2d3d}}.hero.is-dark .navbar-item,.hero.is-dark .navbar-link{color:hsla(0,0%,96%,.7)}.hero.is-dark .navbar-link.is-active,.hero.is-dark .navbar-link:hover,.hero.is-dark a.navbar-item.is-active,.hero.is-dark a.navbar-item:hover{background-color:#16212c;color:#f5f5f5}.hero.is-dark .tabs a{color:#f5f5f5;opacity:.9}.hero.is-dark .tabs a:hover,.hero.is-dark .tabs li.is-active a{opacity:1}.hero.is-dark .tabs.is-boxed a,.hero.is-dark .tabs.is-toggle a{color:#f5f5f5}.hero.is-dark .tabs.is-boxed a:hover,.hero.is-dark .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-dark .tabs.is-boxed li.is-active a,.hero.is-dark .tabs.is-boxed li.is-active a:hover,.hero.is-dark .tabs.is-toggle li.is-active a,.hero.is-dark .tabs.is-toggle li.is-active a:hover{background-color:#f5f5f5;border-color:#f5f5f5;color:#1f2d3d}.hero.is-dark.is-bold{background-image:linear-gradient(141deg,#0c171d,#1f2d3d 71%,#253251)}@media screen and (max-width:768px){.hero.is-dark.is-bold .navbar-menu{background-image:linear-gradient(141deg,#0c171d,#1f2d3d 71%,#253251)}}.hero.is-primary{background-color:#2a9d8f;color:#fff}.hero.is-primary a:not(.button):not(.dropdown-item):not(.tag),.hero.is-primary strong{color:inherit}.document .hero.is-primary h1,.document .hero.is-primary h2,.document .hero.is-primary h3,.document .hero.is-primary h4,.document .hero.is-primary h5,.hero.is-primary .document h1,.hero.is-primary .document h2,.hero.is-primary .document h3,.hero.is-primary .document h4,.hero.is-primary .document h5,.hero.is-primary .title{color:#fff}.hero.is-primary .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-primary .subtitle a:not(.button),.hero.is-primary .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-primary .navbar-menu{background-color:#2a9d8f}}.hero.is-primary .navbar-item,.hero.is-primary .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-primary .navbar-link.is-active,.hero.is-primary .navbar-link:hover,.hero.is-primary a.navbar-item.is-active,.hero.is-primary a.navbar-item:hover{background-color:#25897d;color:#fff}.hero.is-primary .tabs a{color:#fff;opacity:.9}.hero.is-primary .tabs a:hover,.hero.is-primary .tabs li.is-active a{opacity:1}.hero.is-primary .tabs.is-boxed a,.hero.is-primary .tabs.is-toggle a{color:#fff}.hero.is-primary .tabs.is-boxed a:hover,.hero.is-primary .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-primary .tabs.is-boxed li.is-active a,.hero.is-primary .tabs.is-boxed li.is-active a:hover,.hero.is-primary .tabs.is-toggle li.is-active a,.hero.is-primary .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#2a9d8f}.hero.is-primary.is-bold{background-image:linear-gradient(141deg,#187c5f,#2a9d8f 71%,#2ab0b7)}@media screen and (max-width:768px){.hero.is-primary.is-bold .navbar-menu{background-image:linear-gradient(141deg,#187c5f,#2a9d8f 71%,#2ab0b7)}}.hero.is-link{background-color:#2a9d8f;color:#fff}.hero.is-link a:not(.button):not(.dropdown-item):not(.tag),.hero.is-link strong{color:inherit}.document .hero.is-link h1,.document .hero.is-link h2,.document .hero.is-link h3,.document .hero.is-link h4,.document .hero.is-link h5,.hero.is-link .document h1,.hero.is-link .document h2,.hero.is-link .document h3,.hero.is-link .document h4,.hero.is-link .document h5,.hero.is-link .title{color:#fff}.hero.is-link .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-link .subtitle a:not(.button),.hero.is-link .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-link .navbar-menu{background-color:#2a9d8f}}.hero.is-link .navbar-item,.hero.is-link .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-link .navbar-link.is-active,.hero.is-link .navbar-link:hover,.hero.is-link a.navbar-item.is-active,.hero.is-link a.navbar-item:hover{background-color:#25897d;color:#fff}.hero.is-link .tabs a{color:#fff;opacity:.9}.hero.is-link .tabs a:hover,.hero.is-link .tabs li.is-active a{opacity:1}.hero.is-link .tabs.is-boxed a,.hero.is-link .tabs.is-toggle a{color:#fff}.hero.is-link .tabs.is-boxed a:hover,.hero.is-link .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-link .tabs.is-boxed li.is-active a,.hero.is-link .tabs.is-boxed li.is-active a:hover,.hero.is-link .tabs.is-toggle li.is-active a,.hero.is-link .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#2a9d8f}.hero.is-link.is-bold{background-image:linear-gradient(141deg,#187c5f,#2a9d8f 71%,#2ab0b7)}@media screen and (max-width:768px){.hero.is-link.is-bold .navbar-menu{background-image:linear-gradient(141deg,#187c5f,#2a9d8f 71%,#2ab0b7)}}.hero.is-info{background-color:#4d7ec8;color:#fff}.hero.is-info a:not(.button):not(.dropdown-item):not(.tag),.hero.is-info strong{color:inherit}.document .hero.is-info h1,.document .hero.is-info h2,.document .hero.is-info h3,.document .hero.is-info h4,.document .hero.is-info h5,.hero.is-info .document h1,.hero.is-info .document h2,.hero.is-info .document h3,.hero.is-info .document h4,.hero.is-info .document h5,.hero.is-info .title{color:#fff}.hero.is-info .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-info .subtitle a:not(.button),.hero.is-info .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-info .navbar-menu{background-color:#4d7ec8}}.hero.is-info .navbar-item,.hero.is-info .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-info .navbar-link.is-active,.hero.is-info .navbar-link:hover,.hero.is-info a.navbar-item.is-active,.hero.is-info a.navbar-item:hover{background-color:#3b70c0;color:#fff}.hero.is-info .tabs a{color:#fff;opacity:.9}.hero.is-info .tabs a:hover,.hero.is-info .tabs li.is-active a{opacity:1}.hero.is-info .tabs.is-boxed a,.hero.is-info .tabs.is-toggle a{color:#fff}.hero.is-info .tabs.is-boxed a:hover,.hero.is-info .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-info .tabs.is-boxed li.is-active a,.hero.is-info .tabs.is-boxed li.is-active a:hover,.hero.is-info .tabs.is-toggle li.is-active a,.hero.is-info .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#4d7ec8}.hero.is-info.is-bold{background-image:linear-gradient(141deg,#2a7ab8,#4d7ec8 71%,#5b77d3)}@media screen and (max-width:768px){.hero.is-info.is-bold .navbar-menu{background-image:linear-gradient(141deg,#2a7ab8,#4d7ec8 71%,#5b77d3)}}.hero.is-success{background-color:#2ab27b;color:#fff}.hero.is-success a:not(.button):not(.dropdown-item):not(.tag),.hero.is-success strong{color:inherit}.document .hero.is-success h1,.document .hero.is-success h2,.document .hero.is-success h3,.document .hero.is-success h4,.document .hero.is-success h5,.hero.is-success .document h1,.hero.is-success .document h2,.hero.is-success .document h3,.hero.is-success .document h4,.hero.is-success .document h5,.hero.is-success .title{color:#fff}.hero.is-success .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-success .subtitle a:not(.button),.hero.is-success .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-success .navbar-menu{background-color:#2ab27b}}.hero.is-success .navbar-item,.hero.is-success .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-success .navbar-link.is-active,.hero.is-success .navbar-link:hover,.hero.is-success a.navbar-item.is-active,.hero.is-success a.navbar-item:hover{background-color:#259d6d;color:#fff}.hero.is-success .tabs a{color:#fff;opacity:.9}.hero.is-success .tabs a:hover,.hero.is-success .tabs li.is-active a{opacity:1}.hero.is-success .tabs.is-boxed a,.hero.is-success .tabs.is-toggle a{color:#fff}.hero.is-success .tabs.is-boxed a:hover,.hero.is-success .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-success .tabs.is-boxed li.is-active a,.hero.is-success .tabs.is-boxed li.is-active a:hover,.hero.is-success .tabs.is-toggle li.is-active a,.hero.is-success .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#2ab27b}.hero.is-success.is-bold{background-image:linear-gradient(141deg,#18914c,#2ab27b 71%,#29cda6)}@media screen and (max-width:768px){.hero.is-success.is-bold .navbar-menu{background-image:linear-gradient(141deg,#18914c,#2ab27b 71%,#29cda6)}}.hero.is-warning{background-color:#f39c12;color:rgba(0,0,0,.7)}.hero.is-warning a:not(.button):not(.dropdown-item):not(.tag),.hero.is-warning strong{color:inherit}.document .hero.is-warning h1,.document .hero.is-warning h2,.document .hero.is-warning h3,.document .hero.is-warning h4,.document .hero.is-warning h5,.hero.is-warning .document h1,.hero.is-warning .document h2,.hero.is-warning .document h3,.hero.is-warning .document h4,.hero.is-warning .document h5,.hero.is-warning .title{color:rgba(0,0,0,.7)}.hero.is-warning .subtitle{color:rgba(0,0,0,.9)}.hero.is-warning .subtitle a:not(.button),.hero.is-warning .subtitle strong{color:rgba(0,0,0,.7)}@media screen and (max-width:1023px){.hero.is-warning .navbar-menu{background-color:#f39c12}}.hero.is-warning .navbar-item,.hero.is-warning .navbar-link{color:rgba(0,0,0,.7)}.hero.is-warning .navbar-link.is-active,.hero.is-warning .navbar-link:hover,.hero.is-warning a.navbar-item.is-active,.hero.is-warning a.navbar-item:hover{background-color:#e08e0b;color:rgba(0,0,0,.7)}.hero.is-warning .tabs a{color:rgba(0,0,0,.7);opacity:.9}.hero.is-warning .tabs a:hover,.hero.is-warning .tabs li.is-active a{opacity:1}.hero.is-warning .tabs.is-boxed a,.hero.is-warning .tabs.is-toggle a{color:rgba(0,0,0,.7)}.hero.is-warning .tabs.is-boxed a:hover,.hero.is-warning .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-warning .tabs.is-boxed li.is-active a,.hero.is-warning .tabs.is-boxed li.is-active a:hover,.hero.is-warning .tabs.is-toggle li.is-active a,.hero.is-warning .tabs.is-toggle li.is-active a:hover{background-color:rgba(0,0,0,.7);border-color:rgba(0,0,0,.7);color:#f39c12}.hero.is-warning.is-bold{background-image:linear-gradient(141deg,#d25e00,#f39c12 71%,#facb25)}@media screen and (max-width:768px){.hero.is-warning.is-bold .navbar-menu{background-image:linear-gradient(141deg,#d25e00,#f39c12 71%,#facb25)}}.hero.is-danger{background-color:#bf5329;color:#fff}.hero.is-danger a:not(.button):not(.dropdown-item):not(.tag),.hero.is-danger strong{color:inherit}.document .hero.is-danger h1,.document .hero.is-danger h2,.document .hero.is-danger h3,.document .hero.is-danger h4,.document .hero.is-danger h5,.hero.is-danger .document h1,.hero.is-danger .document h2,.hero.is-danger .document h3,.hero.is-danger .document h4,.hero.is-danger .document h5,.hero.is-danger .title{color:#fff}.hero.is-danger .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-danger .subtitle a:not(.button),.hero.is-danger .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-danger .navbar-menu{background-color:#bf5329}}.hero.is-danger .navbar-item,.hero.is-danger .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-danger .navbar-link.is-active,.hero.is-danger .navbar-link:hover,.hero.is-danger a.navbar-item.is-active,.hero.is-danger a.navbar-item:hover{background-color:#aa4a24;color:#fff}.hero.is-danger .tabs a{color:#fff;opacity:.9}.hero.is-danger .tabs a:hover,.hero.is-danger .tabs li.is-active a{opacity:1}.hero.is-danger .tabs.is-boxed a,.hero.is-danger .tabs.is-toggle a{color:#fff}.hero.is-danger .tabs.is-boxed a:hover,.hero.is-danger .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-danger .tabs.is-boxed li.is-active a,.hero.is-danger .tabs.is-boxed li.is-active a:hover,.hero.is-danger .tabs.is-toggle li.is-active a,.hero.is-danger .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#bf5329}.hero.is-danger.is-bold{background-image:linear-gradient(141deg,#9e2617,#bf5329 71%,#d97729)}@media screen and (max-width:768px){.hero.is-danger.is-bold .navbar-menu{background-image:linear-gradient(141deg,#9e2617,#bf5329 71%,#d97729)}}.hero.is-small .hero-body{padding-bottom:1.5rem;padding-top:1.5rem}@media print,screen and (min-width:769px){.hero.is-medium .hero-body{padding-bottom:9rem;padding-top:9rem}}@media print,screen and (min-width:769px){.hero.is-large .hero-body{padding-bottom:18rem;padding-top:18rem}}.hero.is-fullheight-with-navbar .hero-body,.hero.is-fullheight .hero-body,.hero.is-halfheight .hero-body{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.hero.is-fullheight-with-navbar .hero-body>.container,.hero.is-fullheight .hero-body>.container,.hero.is-halfheight .hero-body>.container{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.hero.is-halfheight{min-height:50vh}.hero.is-fullheight{min-height:100vh}.hero-video{overflow:hidden}.hero-video video{left:50%;min-height:100%;min-width:100%;position:absolute;top:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.hero-video.is-transparent{opacity:.3}@media screen and (max-width:768px){.hero-video{display:none}}.hero-buttons{margin-top:1.5rem}@media screen and (max-width:768px){.hero-buttons .button{display:-webkit-box;display:-ms-flexbox;display:flex}.hero-buttons .button:not(:last-child){margin-bottom:.75rem}}@media print,screen and (min-width:769px){.hero-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.hero-buttons .button:not(:last-child){margin-right:1.5rem}}.hero-foot,.hero-head{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.hero-body,.hero-foot,.hero-head{-ms-flex-negative:0;flex-shrink:0}.hero-body{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.hero-body,.section{padding:3rem 1.5rem}@media screen and (min-width:1024px){.section.is-medium{padding:9rem 1.5rem}.section.is-large{padding:18rem 1.5rem}}.footer{background-color:#fafafa;padding:3rem 1.5rem 6rem}#app-root,#app-root>div,body,html{min-height:100%;font-weight:500;background-color:#f5f8fa}.font-family{font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif!important}.app-footer{border-top:1px solid #d3e0e9;padding:10px 0;color:#666}.main-content{padding-top:40px;margin-bottom:20px;min-height:calc(100% - 140px)}.flexbox{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;width:100%}.flex-v-center{-webkit-box-align:center;-ms-flex-align:center;-moz-align-items:center;align-items:center}.flex-h-center{-webkit-box-pack:center;-ms-flex-pack:center;-moz-justify-content:center;justify-content:center}.flex-column{-webkit-box-orient:vertical;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.flex-column,.flex-right{-webkit-box-direction:normal}.flex-right{-webkit-box-orient:horizontal;-moz-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;justify-content:flex-end;text-align:right}.flex-space-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-moz-justify-content:space-between;justify-content:space-between}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.button.is-full{width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:left}.text-underline{border-bottom:1px solid #dedede;padding-bottom:.5em}a.box{color:#444}.copyright{position:fixed;top:65px;right:5px;z-index:4;text-align:right;font-size:12px;text-decoration:underline;background:hsla(0,0%,100%,.8);padding:0 3px}.copyright,.copyright>a{color:#777}@media screen and (max-width:768px){.container{padding:0 1rem}}.image-slider{overflow:hidden}.image-slider img{width:100%;height:auto}.image-gallery-image{margin:0 auto;text-align:center}.image-gallery-image img{max-height:100vh;max-width:100%;width:auto!important;height:auto!important}.image-gallery-image.max-h-90vh img{max-width:90vh!important}.image-gallery-slide{background-color:transparent!important}#map2,.filters-button,.horizontal-bar,.reset-map-button{-webkit-transition:left .25s linear;transition:left .25s linear}.sidebar{-webkit-transition:-webkit-transform .25s linear;transition:-webkit-transform .25s linear;transition:transform .25s linear;transition:transform .25s linear,-webkit-transform .25s linear}.sidebar-visible .sidebar{-webkit-transform:translate(0);transform:translate(0)}.sidebar-visible #map2,.sidebar-visible .horizontal-bar{left:300px}.mock-container{text-align:left}.mockup-img{max-height:500px}.apple-badge-img{position:relative;height:68px;top:-15px!important}@media screen and (max-width:768px){.apple-badge-img{margin-top:0}}.google-badge-img{height:100px;width:auto;max-width:100%}.home{background:#2a9d8f url("/images/bg4-compressed.jpg") repeat 50%}.document .home h1,.document .home h2,.document .home h3,.document .home h4,.document .home h5,.home,.home .document h1,.home .document h2,.home .document h3,.home .document h4,.home .document h5,.home .title{color:#fff}.home-text{margin-top:10%}.home-text h1{font-weight:bolder}.home-inner{padding:2rem 0}.container.is-small{max-width:1024px}@media screen and (min-width:769px) and (max-width:1023px){.container{padding:0 16px}}.home-section{padding:2rem 0}.control:first-of-type{width:100%}.feature-icon{width:100px;height:auto}@media screen and (max-width:1023px){.feature-icon{width:70px}}.feature-tile{-webkit-box-shadow:1px 1px 0 2px rgba(0,0,0,.1);box-shadow:1px 1px 0 2px rgba(0,0,0,.1)}.feature-tile .media-left{padding-right:10px}.feature-tile .media-right{padding-left:10px}@media screen and (max-width:1023px){.document .feature-tile h1,.document .feature-tile h2,.document .feature-tile h3,.document .feature-tile h4,.document .feature-tile h5,.feature-tile .document h1,.feature-tile .document h2,.feature-tile .document h3,.feature-tile .document h4,.feature-tile .document h5,.feature-tile .title{font-size:1.6rem}}.feature-text{color:#444}.home-footer{background:#1f2d3d;color:#eee;padding:2rem 0}.home-footer img{max-height:100px}.home-footer .logos{margin-top:1rem}.home-footer a{color:#ddd}.home-footer a:hover{color:#fff;text-decoration:underline;font-weight:700}.featured-title{display:inline-block;position:relative;border-bottom:2px solid #dbdbdb;padding-bottom:8px}.featured-title:before{position:absolute;content:" ";background:#2a9d8f;left:0;bottom:-2px;height:2px;width:50px}.text-ellipsis{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.image-gallery-image.show-scroll{background-color:#222}@media screen and (max-width:768px){.has-text-centered-mobile{text-align:center}}.us-tile{-webkit-box-shadow:1px 1px 0 2px rgba(0,0,0,.1);box-shadow:1px 1px 0 2px rgba(0,0,0,.1)}@media screen and (max-width:1023px){.document .us-tile h1,.document .us-tile h2,.document .us-tile h3,.document .us-tile h4,.document .us-tile h5,.us-tile .document h1,.us-tile .document h2,.us-tile .document h3,.us-tile .document h4,.us-tile .document h5,.us-tile .title{font-size:1.6rem}}.align-items-end{-webkit-box-align:end;-ms-flex-align:end;-moz-align-items:flex-end;align-items:flex-end}.has-no-shadow{-webkit-box-shadow:none!important;box-shadow:none!important}.map-page .navbar{position:absolute;top:0;left:0;right:0}.navbar{z-index:900;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.2);box-shadow:0 3px 8px rgba(0,0,0,.2);background-color:#2a9d8f}.navbar>.container{-webkit-box-shadow:none;box-shadow:none}.navbar .has-dropdown>.navbar-link,.navbar .navbar-item{color:#fff!important}.navbar .has-dropdown>.navbar-link:after,.navbar .navbar-item:after{border-color:#fff}@media screen and (max-width:1023px){.navbar .navbar-item.has-dropdown>a.navbar-link{color:#4a4a4a!important}.navbar .navbar-item.has-dropdown:hover>a.navbar-link{background-color:#f5f5f5!important}}.navbar .navbar-item.has-dropdown:hover>.navbar-link{background-color:#25897d}.navbar .navbar-item.has-dropdown:hover .navbar-item{background-color:#fff;color:#4a4a4a!important}.navbar .navbar-item.has-dropdown:hover .navbar-item:hover{background-color:#f5f5f5}.navbar .container.is-fluid{width:100%}.navbar a.navbar-item{border-bottom:2px solid transparent}.navbar a.navbar-item.is-active,.navbar a.navbar-item:hover{color:#fff;background:#25897d}.navbar .logo-img{margin-right:5px;height:1.75rem;width:auto;line-height:3.5rem}.navbar .navbar-item:last-of-type .navbar-dropdown{left:auto;right:0}.navbar-brand{overflow:hidden}.navbar-brand>.navbar-item{font-size:1.6rem;font-weight:400}.navbar-brand>.navbar-item>b{font-weight:700}.navbar-brand>small.navbar-item{font-size:14px}.navbar-burger>span{background-color:#fff}.navbar-burger:hover{background-color:#25897d}@media screen and (max-width:1023px){.navbar .navbar-menu{background-color:#fff!important;margin:0 -16px}.navbar .navbar-menu .navbar-item{color:#4a4a4a!important}.navbar .navbar-menu .navbar-end:first-of-type{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;-moz-justify-content:center;justify-content:center}.navbar .navbar-menu .navbar-end:first-of-type .navbar-item{border-bottom-width:0}.navbar .navbar-menu .navbar-end a.navbar-item:last-of-type{border-bottom:0}.navbar .navbar-menu .navbar-end a.navbar-item.is-active,.navbar .navbar-menu .navbar-end a.navbar-item:hover{background-color:#f4f4f4!important}}.navbar.home-nav,.navbar.home-nav>.container{position:relative;background-color:transparent!important;-webkit-box-shadow:none;box-shadow:none}.navbar.home-nav .has-dropdown:hover>.navbar-link,.navbar.home-nav>.container .has-dropdown:hover>.navbar-link{background-color:hsla(0,0%,100%,.1)}.navbar.home-nav .has-dropdown:hover .navbar-item,.navbar.home-nav>.container .has-dropdown:hover .navbar-item{background-color:#fff;color:#4a4a4a!important}.navbar.home-nav .has-dropdown:hover .navbar-item:hover,.navbar.home-nav>.container .has-dropdown:hover .navbar-item:hover{background-color:#f5f5f5}@media screen and (max-width:768px){.navbar.home-nav .navbar-end a.navbar-item,.navbar.home-nav>.container .navbar-end a.navbar-item{color:#777!important}}@media screen and (max-width:768px) and (max-width:768px){.navbar.home-nav .navbar-end a.navbar-item.is-active,.navbar.home-nav .navbar-end a.navbar-item:hover,.navbar.home-nav>.container .navbar-end a.navbar-item.is-active,.navbar.home-nav>.container .navbar-end a.navbar-item:hover{color:#000!important}}.navbar.home-nav .navbar-burger.is-active,.navbar.home-nav>.container .navbar-burger.is-active,.navbar.home-nav>.container a.navbar-item.is-active,.navbar.home-nav a.navbar-item.is-active{background-color:transparent!important}@media screen and (min-width:1024px){.navbar.home-nav .navbar-burger.is-active,.navbar.home-nav>.container .navbar-burger.is-active,.navbar.home-nav>.container a.navbar-item.is-active,.navbar.home-nav a.navbar-item.is-active{border-bottom-color:#fff!important}}.navbar.home-nav .navbar-burger:hover,.navbar.home-nav>.container .navbar-burger:hover,.navbar.home-nav>.container a.navbar-item:hover,.navbar.home-nav a.navbar-item:hover{background-color:hsla(0,0%,100%,.1)}.navbar.home-nav .navbar-brand>.navbar-item,.navbar.home-nav>.container .navbar-brand>.navbar-item{font-size:1.6rem;padding-left:0}.navbar.home-nav .navbar-brand>.navbar-item:hover,.navbar.home-nav>.container .navbar-brand>.navbar-item:hover{border-bottom-color:transparent!important;background-color:transparent!important}.navbar.home-nav .logo-img,.navbar.home-nav>.container .logo-img{height:48px!important;max-height:48px;margin-right:10px}.tabs{background-color:#fff;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1)}.tabs a.is-active{border-bottom:1px solid #2a9d8f;color:#2a9d8f}.home-tabs{margin:-30px -16px 0}.home-tabs a{padding-top:1rem;padding-bottom:1rem}a.sortable-th{color:#444;-webkit-box-align:center;-ms-flex-align:center;-moz-align-items:center;align-items:center}a.sortable-th:hover{color:#2a9d8f}.sidebar{width:300px;position:absolute;top:3.5rem;left:0;-webkit-transform:translate(-300px);transform:translate(-300px);bottom:0;background:#f5f8fa;-webkit-box-shadow:3px 0 3px rgba(0,0,0,.16);box-shadow:3px 0 3px rgba(0,0,0,.16);z-index:5;max-height:100%;overflow-y:auto;-ms-overflow-style:-ms-autohiding-scrollbar}.sidebar-content-container{position:relative;height:100%}.sidebar-content-container .close{display:block;position:absolute;right:5px;top:5px;background:hsla(0,0%,100%,.9);width:50px;height:30px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.3);box-shadow:0 1px 3px rgba(0,0,0,.3);border-radius:3px;text-align:center;color:#555;z-index:3100}.sidebar-content-container .close:hover{background-color:#fff;color:#222}.sidebar-content-container .close>.fa{line-height:28px;font-size:1rem}.sidebar-img{width:100%;height:200px;background:no-repeat 50%;background-size:300px;position:relative;-webkit-transition:background-size .25s linear;transition:background-size .25s linear}.sidebar-img:hover{background-size:350px}.sidebar-img-overlay{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .25s ease-in-out;transition:opacity .25s ease-in-out;opacity:0;z-index:2100;color:#fff}.sidebar-img-overlay:hover{opacity:1;color:#fff}.sidebar-img-overlay .fa{font-size:2rem}.sidebar-icons-container{border-bottom:1px solid #d3e0e9;background-color:#fff}.sidebar-icons-container .card-footer>a{margin:0!important;color:#618293}.sidebar-icons-container .card-footer>a.is-danger{color:#bf5329}.sidebar-icons-container .card-footer>a.is-success{color:#2ab27b}.sidebar-icons-container .card-footer>a:hover{color:#384c56}.sidebar-icon{margin-left:-20px}.sidebar-icon>.fa{font-size:1.3rem;margin-top:5px}.sidebar-icon>span{display:inline-block;margin-left:.5rem;margin-top:4px;font-size:.9rem}.sidebar-content{padding:1rem;padding-bottom:0;background-color:#fff;border-bottom:1px solid #d3e0e9}.document .sidebar-content h1,.document .sidebar-content h2,.document .sidebar-content h3,.document .sidebar-content h4,.document .sidebar-content h5,.sidebar-content .document h1,.sidebar-content .document h2,.sidebar-content .document h3,.sidebar-content .document h4,.sidebar-content .document h5,.sidebar-content .title{margin-bottom:1rem}.sidebar-item{margin:0 -1rem;padding:.5rem 1rem;border-bottom:1px solid #d3e0e9}.sidebar-item:first-of-type{border-top:1px solid #d3e0e9}.sidebar-item:last-of-type{border-bottom:none}.sidebar-item:nth-child(2n){background-color:#f5f8fa}.sidebar-bottom-bar{position:relative;background-color:#fff;-webkit-box-shadow:0 -1px 1px hsla(0,0%,4%,.1);box-shadow:0 -1px 1px hsla(0,0%,4%,.1);text-align:center;padding:15px 0}.sidebar-bottom-bar .icon{position:absolute;top:50%;margin-top:-8px;left:10px}.sidebar-bottom-bar>a{color:#777}.sidebar-bottom-bar>a:hover{color:#2a9d8f}.opacity-05{opacity:.5!important}#map{position:absolute;top:3.5rem;left:300px;bottom:0;right:0;background-color:#fff}@media screen and (max-width:768px){#map{left:0}}#map2{position:absolute;top:3.5rem;left:0;bottom:115px;right:0;background-color:#fff}@media screen and (max-width:768px){#map2,.sidebar-visible #map2{left:0}}.callout{font-weight:400}.filters-button,.reset-map-button{position:absolute;top:4.5rem;left:10px;background:#fff;border-radius:2px;z-index:20;font-size:14px;border:0;-webkit-box-shadow:0 3px 2px hsla(0,0%,4%,.1)!important;box-shadow:0 3px 2px hsla(0,0%,4%,.1)!important;height:2.5em;font-weight:700;padding:0 15px}.filters-button:hover,.reset-map-button:hover{background:#ddd;color:#000}.sidebar-visible .filters-button,.sidebar-visible .reset-map-button{left:310px}@media screen and (max-width:768px){.filters-button,.reset-map-button{left:10px}.sidebar-visible .filters-button,.sidebar-visible .reset-map-button{left:310px}}.reset-map-button{top:7.5rem}.sidebar-filters{padding:1rem}.horizontal-bar{background-color:#323b44;height:115px;position:fixed;bottom:0;left:0;right:0}@media screen and (max-width:768px){.horizontal-bar,.sidebar-visible .horizontal-bar{left:0}}.horizontal-bar .scroll{position:absolute;bottom:0;height:115px;display:block;text-align:center;background:rgba(0,0,0,.2);width:40px;-webkit-box-shadow:0 0 10px rgba(0,0,0,.7);box-shadow:0 0 10px rgba(0,0,0,.7)}.horizontal-bar .scroll,.horizontal-bar .scroll:hover{cursor:pointer;color:#fff;font-size:1.7rem}.horizontal-bar .scroll:hover{background:rgba(0,0,0,.5)}.horizontal-bar .scroll>.fa{position:relative;top:47.5px}.horizontal-bar .scroll-right{right:0;border-left:1px solid hsla(0,0%,100%,.2)}.horizontal-bar .scroll-left{left:0;border-right:1px solid hsla(0,0%,100%,.2)}.hide-scroll-bar{-ms-overflow-style:none}.hide-scroll-bar .bar-items-container::-webkit-scrollbar{display:none}.bar-items-container{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-ms-flex-wrap:none;flex-wrap:nowrap;padding:.5rem 50px;width:100%;overflow-x:scroll}.bar-item{-webkit-box-flex:0;-moz-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:100px;width:190px;background-color:#272e35;border-radius:2px;margin-right:.5rem;background:no-repeat 50%;background-size:200px}.bar-item:last-of-type{margin-right:70px}.bar-item:active>.bar-item-field,.bar-item:focus>.bar-item-field,.bar-item:hover>.bar-item-field{background-color:transparent}.bar-item,.bar-item .media-content>strong{color:#fff}.bar-item-field{height:100%;width:100%;padding:.5rem;background:rgba(0,0,0,.4);text-shadow:0 0 2px rgba(0,0,0,.8);display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-webkit-box-orient:vertical;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;justify-content:flex-end}.admin-app{overflow:hidden}.admin-sidebar{margin-top:1rem;padding-left:0}.admin-sidebar a{border-left:6px solid transparent;border-radius:0;padding:.7rem 1.3rem .7rem .7rem;margin-bottom:1px}.admin-sidebar a.is-active{color:#444;font-weight:700;border-left-color:#2a9d8f}.admin-sidebar a.is-active,.admin-sidebar a:hover{background-color:#e7eef3}.admin-sidebar a:hover{color:#444}.admin-sidebar .fa{width:30px;line-height:1.2rem}.admin-sidebar .menu-heading{padding:0 0 .5rem 1.5rem;font-size:.8rem;text-transform:uppercase;font-weight:700;color:#666}.pagination a{background-color:#fff}.admin-content{padding-top:1rem;margin-bottom:0}.admin-footer{margin-top:2rem}.container.is-fluid{max-width:1600px;margin:0 auto;padding:0 20px!important}.limit-width{max-width:600px}.has-bg-image>.card-image{background:no-repeat 50%;background-size:100%;height:200px}.has-bg-image .card-header-icon{margin:.5rem;border:0;-webkit-box-shadow:0 0 3px hsla(0,0%,4%,.4);box-shadow:0 0 3px hsla(0,0%,4%,.4);border-radius:7px;background-color:#fff;padding:.5rem;color:#212121;font-size:14px!important}.dropdown.show .card-header-icon{color:#444;-webkit-box-shadow:inset 0 2px 2px rgba(0,0,0,.3);box-shadow:inset 0 2px 2px rgba(0,0,0,.3)}.border-top{border-top:1px solid #d3e0e9}select[multiple].multi-select{all:initial;font:inherit;overflow-y:auto;border-radius:3px;padding:.5em 2.5em .5em .625em;background-color:#fff;border:1px solid #ccd0d2;color:#444;cursor:pointer;display:block;outline:none}select[multiple].multi-select:active,select[multiple].multi-select:focus{border-color:#2a9d8f}.public-DraftEditor-content{min-height:200px}.Select{position:relative}.Select input::-webkit-contacts-auto-fill-button,.Select input::-webkit-credentials-auto-fill-button{display:none!important}.Select input::-ms-clear,.Select input::-ms-reveal{display:none!important}.Select,.Select div,.Select input,.Select span{-webkit-box-sizing:border-box;box-sizing:border-box}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{-webkit-box-shadow:none;box-shadow:none}.Select.is-searchable.is-focused:not(.is-open)>.Select-control,.Select.is-searchable.is-open>.Select-control{cursor:text}.Select.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b2b2 #ccc #d9d9d9}.Select.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.Select.is-focused>.Select-control{background:#fff}.Select.is-focused:not(.is-open)>.Select-control{border-color:#2a9d8f #2fb1a1 #2fb1a1;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 0 5px -1px fade(#2a9d8f,50%);box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 0 5px -1px fade(#2a9d8f,50%)}.Select.has-value.is-clearable.Select--single>.Select-control .Select-value{padding-right:42px}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.Select.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#2a9d8f;outline:none;text-decoration:underline}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus{background:#fff}.Select.has-value.is-pseudo-focused .Select-input{opacity:0}.Select.is-open .Select-arrow,.Select .Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select.Select--rtl{direction:rtl;text-align:right}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b2b2;border-radius:2px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{-webkit-box-shadow:0 1px 0 rgba(0,0,0,.06);box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none;background:#fff}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;-webkit-box-shadow:none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:17px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading,.Select-loading-zone{position:relative;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{position:absolute;display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select--rtl .Select-arrow-zone{padding-right:0;padding-left:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}@-webkit-keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:2px;border-bottom-left-radius:2px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.06);box-shadow:0 1px 0 rgba(0,0,0,.06);-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:-1px;position:absolute;left:0;top:100%;width:100%;z-index:1000;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.Select-option.is-selected{background-color:#f5faff;color:#333}.Select-option.is-focused{background-color:#f2f9fc;color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{-webkit-box-sizing:border-box;box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.Select--rtl .Select-input{margin-left:0;margin-right:10px}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#f2f9fc;border-radius:2px;border:1px solid #c9e6f2;color:#08c;display:inline-block;font-size:.9em;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#08c;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c9e6f2;padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#ddeff7;color:#0077b3}.Select--multi .Select-value-icon:active{background-color:#c9e6f2}.Select--multi.Select--rtl .Select-value{margin-left:0;margin-right:5px}.Select--multi.Select--rtl .Select-value-icon{border-right:none;border-left:1px solid #c9e6f2}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e2e2;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e2e2}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}.Select-menu-outer{position:relative!important;max-height:200px;overflow:auto}.info-box{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-webkit-box-orient:vertical;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1rem;position:relative;min-height:102px}.info-box.is-primary .info-box-icon{background-color:#2a9d8f;color:#fff}.document .info-box h1,.document .info-box h2,.document .info-box h3,.document .info-box h4,.document .info-box h5,.info-box .document h1,.info-box .document h2,.info-box .document h3,.info-box .document h4,.info-box .document h5,.info-box .title{font-size:1.25rem;margin-bottom:0}.info-box-text{font-size:2rem;font-weight:700;color:#4d7ec8}.box-footer{margin:1.5rem -1rem 0;padding:1rem 1rem 0;border-top:1px solid #d3e0e9}.is-full-height{height:100%}.card{-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.spinner-overlay{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;-moz-align-items:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-moz-justify-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8);z-index:1500}.overlay-blur,.spinner-overlay{position:fixed;top:0;left:0;bottom:0;right:0}.overlay-blur{z-index:0;-webkit-filter:blur(5px);filter:blur(5px)}.spinner-container{color:#444;font-size:2rem;z-index:10}.spinner-container .is-loading{-webkit-animation:spinAround .5s infinite linear;animation:spinAround .5s infinite linear;border:2px solid #2a9d8f;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:2em;width:2em;left:calc(50% - 0.5em);top:calc(50% - 0.5em);position:absolute}.inline-spinner{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;-moz-align-items:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-moz-justify-content:center;justify-content:center;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#aaa;color:#ddd;font-size:30px}.inline-spinner .inline-spinner-container{text-align:center;font-weight:100}.alert{padding:1rem;background-color:#fff;margin-bottom:1rem;border-radius:2px}.alert a{color:#fff;text-decoration:underline}.alert.is-danger{background-color:#bf5329;color:#fff}.alert.is-success{background-color:#2ab27b;color:#fff}.alert.is-warning{background-color:#f39c12;color:#212121}.alert.is-warning a{color:#212121;text-decoration:underline}.push-notification{width:250px;position:fixed;top:0;right:1em;z-index:1100;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.3);box-shadow:0 2px 8px rgba(0,0,0,.3);visibility:hidden;opacity:0;-webkit-transition:opacity .5s ease-in-out,top 1s ease-in-out,margin-top .25s linear;transition:opacity .5s ease-in-out,top 1s ease-in-out,margin-top .25s linear}.push-notification.show{visibility:visible;opacity:1;top:4.5rem}.push-notification.hiding{visibility:visible;opacity:0;top:-100%}.tooltip{position:relative;display:block;width:100%;text-align:center}.tooltip .tooltip-text{opacity:0;-webkit-transition:opacity .25s linear;transition:opacity .25s linear;width:100%;min-width:120px;background-color:#222;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;visibility:hidden;font-size:1rem!important;font-weight:400!important;white-space:normal!important}.tooltip .tooltip-text.show{opacity:1;visibility:visible}.button .tooltip .tooltip-text{padding:10px}.tooltip .tooltip-text:after{content:" ";position:absolute;border-width:5px;border-style:solid}.tooltip{position:static}.tooltip.top .tooltip-text{bottom:110%;margin-left:-60px;left:50%}.tooltip.top .tooltip-text:after{top:100%;left:50%;margin-left:-5px;border-color:#222 transparent transparent}.tooltip.bottom .tooltip-text{bottom:150%;margin-left:-50%;left:50%}.tooltip.bottom .tooltip-text:after{top:100%;border-color:#222 transparent transparent}.tooltip.left .tooltip-text{top:0;right:110%;margin-top:-8px}.tooltip.left .tooltip-text:after{top:50%;margin-top:-5px;left:100%;border-color:transparent transparent transparent #222}.tooltip.right .tooltip-text{bottom:150%}.tooltip.right .tooltip-text:after{top:100%;border-color:#222 transparent transparent}.relative-block{position:relative;overflow:hidden;height:100%}a.card-header-title:hover{color:#2a9d8f}.card-header-icon{position:relative}.card-header-icon.is-clear{color:#aaa;padding-right:.25rem;padding-left:.25rem;z-index:11;margin-right:.2rem}.card-header-icon.is-clear.is-active .fa-times,.card-header-icon.is-clear:hover .fa-times{color:#bf5329}.card-header-icon.is-clear.is-active .fa-check,.card-header-icon.is-clear:hover .fa-check{color:#2a9d8f}.fade{-webkit-transition:opacity 1s ease;transition:opacity 1s ease;opacity:0}.fade.in{opacity:1}.card-slide-content{-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out;position:absolute;top:0;bottom:0;left:0;right:0;background-color:#f7f7f7;overflow-y:auto!important;-webkit-transform:translateY(130%);transform:translateY(130%);border-top:1px solid #dbdbdb}.card-slide-content.show{-webkit-transform:translate(0);transform:translate(0)}.card-slide-content .close{position:absolute;top:.5rem;right:.5rem;width:30px;height:30px;background-color:#fff;border-radius:50%;font-size:14px;-webkit-box-shadow:0 1px 3px hsla(0,0%,4%,.2);box-shadow:0 1px 3px hsla(0,0%,4%,.2);color:#555;z-index:10;text-align:center}.card-slide-content .close>.fa{line-height:1}.card-slide-content .card-textarea-sm{min-height:80px;max-height:80px;resize:none}.card-slide-container{max-height:100%;overflow-y:auto!important;overflow-x:hidden}.card-footer,.card-footer-item,.sidebar-icons-container .card-footer>a{background-color:#fff;z-index:10}.card-footer-item,.sidebar-icons-container .card-footer>a{position:relative}.marks-section{border-bottom:1px solid #dbdbdb}.marks-section+.card-content{padding-top:1rem}.observation-tools>a{margin-right:.5rem}@media screen and (max-width:768px){.box{overflow-x:auto}}.card-equal-height{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-webkit-box-orient:vertical;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.card-equal-height .card-footer{margin-top:auto}.modal-card-lg{width:90%;max-width:1300px}.close-modal{position:absolute;top:10px;right:10px;background:#fff;border-radius:50%;width:40px;height:40px;border:1px solid #fff;font-size:20px;color:#555;cursor:pointer}.close-modal .fa{line-height:25px}.modal{z-index:1050}.floating-disclaimer{position:fixed;z-index:1100;bottom:-150%;right:1rem;visibility:hidden;opacity:0;max-width:350px;-webkit-box-shadow:-2px 2px 5px rgba(0,0,0,.3);box-shadow:-2px 2px 5px rgba(0,0,0,.3);-webkit-transition:opacity 1s linear,bottom 1s ease-in-out .5s;transition:opacity 1s linear,bottom 1s ease-in-out .5s}.floating-disclaimer.is-active{visibility:visible;opacity:1;bottom:1rem}.item-box{margin-bottom:.5rem;padding:1rem;border-radius:2px}.item-box.is-lighter-dark{background-color:#28394e}.item-box.is-lighter-dark strong{color:#fff}.item-thumbnail{width:45px;height:45px}.hexagon{position:relative;width:40px;height:23.09px;margin:11px 0}.hexagon:after,.hexagon:before{content:"";position:absolute;width:0;border-left:20px solid transparent;border-right:20px solid transparent}.hexagon:before{bottom:100%;border-bottom:11.15px solid transparent}.hexagon:after{top:100%;width:0;border-top:11.15px solid transparent}.hexagon.is-primary{background-color:#2a9d8f;color:#fff}.hexagon.is-primary:before{border-bottom-color:#2a9d8f}.hexagon.is-primary:after{border-top-color:#2a9d8f}.hexagon.is-info{background-color:#4d7ec8;color:#fff}.hexagon.is-info:before{border-bottom-color:#4d7ec8}.hexagon.is-info:after{border-top-color:#4d7ec8}.hexagon.is-success{background-color:#2ab27b;color:#fff}.hexagon.is-success:before{border-bottom-color:#2ab27b}.hexagon.is-success:after{border-top-color:#2ab27b}.hexagon.is-warning{background-color:#f39c12;color:#1f2d3d}.hexagon.is-warning:before{border-bottom-color:#f39c12}.hexagon.is-warning:after{border-top-color:#f39c12}.hexagon.is-danger{background-color:#bf5329;color:#fff}.hexagon.is-danger:before{border-bottom-color:#bf5329}.hexagon.is-danger:after{border-top-color:#bf5329}.hexagon.is-dark{background-color:#1f2d3d;color:#fff}.hexagon.is-dark:before{border-bottom-color:#1f2d3d}.hexagon.is-dark:after{border-top-color:#1f2d3d}.hexagon.is-white{background-color:#fff;color:#1f2d3d}.hexagon.is-white:before{border-bottom-color:#fff}.hexagon.is-white:after{border-top-color:#fff}.input[type=search]{border-radius:2px!important}.checkbox-container,.input,.textarea{-webkit-box-shadow:none;box-shadow:none}.checkbox-container{border:1px solid #dbdbdb;border-bottom:0;border-radius:2px}.checkbox-button{border-radius:0;border:0;border-bottom:1px solid #dbdbdb;background:#eee}.checkbox-button:first-of-type{border-top-left-radius:2px;border-top-right-radius:2px}.checkbox-button:last-of-type{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.checkbox-button:hover{-webkit-box-shadow:none;box-shadow:none}.checkbox-button:focus,.checkbox-button:hover{-webkit-box-shadow:none;box-shadow:none;border-color:#dbdbdb}.checkbox-button .icon{margin-right:.5rem;color:#aaa}.checkbox-button.is-active{background:#fff;-webkit-box-shadow:none;box-shadow:none;border-color:#dedede}.checkbox-button.is-active .icon{color:#2a9d8f}.checkbox-button.is-active:hover{background:#f7f7f7}.buttons-group .button{margin-right:.5rem}.field.is-horizontal .label{line-height:2rem}.field.is-horizontal.has-medium-label .field-label{max-width:60px}.button-select{background-color:#f5f5f5;white-space:normal!important;height:auto;line-height:1.5}.button-select .fa{color:#aaa}.button-select.is-selected{background-color:#fff;border-color:#2a9d8f}.button-select.is-selected,.button-select.is-selected .fa{color:#2a9d8f}.bordered{border:1px solid #dbdbdb;border-radius:2px;padding:1rem}.has-select select.is-full-width,.has-select select.is-full-width>select,.select.is-full-width,.select.is-full-width>select{width:100%}.has-select select,.has-select select select,.select,.select select{max-width:100%}.table{width:100%}.table>thead>tr>th.has-text-right{text-align:right}@media screen and (max-width:1068px){.table-responsive{overflow:auto;width:100%}}.table-fixed{table-layout:fixed}.table-thumbnail-container{width:120px}.table-thumbnail{width:100px;height:auto}div.dataTables_wrapper div.dataTables_length select{width:auto;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:400;text-align:left}div.dataTables_wrapper div.dataTables_paginate{float:right}table.dataTable thead>tr>td.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc{padding-right:30px}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:4px;right:4px;display:block;font-family:FontAwesome;opacity:.5}table.dataTable thead .sorting:after{opacity:.2;content:"\F0DC"}table.dataTable thead .sorting_asc:after{content:"\F0DE"}table.dataTable thead .sorting_desc:after{content:"\F0DD"}table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{color:#eee}@media screen and (max-width:767px){div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_paginate{text-align:center}}.mb-none{margin-bottom:0!important}.mb-auto{margin-bottom:auto}.mb-01{margin-bottom:.1rem!important}.mb-0{margin-bottom:.5rem!important}.mb-1{margin-bottom:1rem!important}.mb-2{margin-bottom:2rem!important}.mt-none{margin-top:0!important}.mt-auto{margin-top:auto}.mt-0{margin-top:.5rem}.mt-1{margin-top:1rem!important}.mt-2{margin-top:1.5rem!important}.mt-3{margin-top:2rem}.ml-auto{margin-left:auto}.ml-0{margin-left:.5rem}.ml-1{margin-left:1rem}.mr-auto{margin-right:auto}.mr-0{margin-right:.5rem!important}.mr-1{margin-right:1rem}.p-0{padding:.5rem!important}.p-1{padding:1rem!important}.pb-none{padding-bottom:0!important}.pt-none{padding-top:0!important}.pt-0{padding-top:.5rem!important}.pt-1{padding-top:1rem!important}.welcomeTile{border:30px;height:300px;width:500px}.mapLink{border:30px;background-color:#f5f8fa}.document h2,.document h3,.document h4,.document h5,.document h6{margin-top:2rem;margin-bottom:1rem!important}.document h1{margin-top:2rem}.document h1:first-of-type{margin-top:0}.document p{margin-bottom:.5rem}.document .body ul{margin-left:20px;list-style-type:circle}.error-page{position:absolute;top:0;left:0;right:0;bottom:0;padding:10% 1rem}.error-page .error-page-container{max-width:600px;margin:0 auto}.error-page .circle{border-radius:50%;background-color:#bf5329;width:120px;height:120px;line-height:120px;font-size:40px;color:#fff;display:inline-block;font-weight:700;margin-bottom:1rem}.text-success{color:#2a9d8f}.help.is-warning{color:#c87f0a;font-weight:700}.help.is-pulled-up{background-color:#f9f9f9;position:absolute;top:0;z-index:10;padding:.25rem;-webkit-box-shadow:0 0 1px rgba(0,0,0,.24);box-shadow:0 0 1px rgba(0,0,0,.24)}.button.is-gray{background-color:#aaa;color:#fff;border:1px solid #aaa}.button.is-gray:hover{background-color:#bf5329;border-color:#bf5329}.button.is-block{width:100%;text-align:center}.no-wrap{white-space:nowrap}.is-positioned-relatively{position:relative}.border-bottom{border-bottom:1px solid #ddd}.icon.is-circle{width:42px;height:42px;line-height:42px;border-radius:50%;background-color:#2a9d8f;color:#fff;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.25);box-shadow:0 1px 2px rgba(0,0,0,.25)}.icon.is-circle.is-success{background-color:#2ab27b}.icon.is-circle.is-danger{background-color:#bf5329}.icon.is-circle.is-info{background-color:#4d7ec8}.icon.is-circle.is-warning{background-color:#f39c12}.has-text-vertically-centered>tbody>tr>td,.has-text-vertically-centered>tbody>tr>th,.has-text-vertically-centered>tfoot>tr>td,.has-text-vertically-centered>tfoot>tr>th,.has-text-vertically-centered>thead>tr>td,.has-text-vertically-centered>thead>tr>th{vertical-align:middle}.img-circle{border-radius:50%}.bg-primary{background-color:#2a9d8f;color:#fff}.text-primary{color:#2a9d8f}.bg-info{background-color:#4d7ec8;color:#fff}.text-info{color:#4d7ec8}.bg-success{background-color:#2ab27b;color:#fff}.text-success{color:#2ab27b}.bg-warning{background-color:#f39c12;color:#1f2d3d}.text-warning{color:#f39c12}.bg-danger{background-color:#bf5329;color:#fff}.text-danger{color:#bf5329}.bg-dark{background-color:#1f2d3d;color:#fff}.bg-white,.text-dark{color:#1f2d3d}.bg-white{background-color:#fff}.text-white{color:#fff}.bg-dark a{color:#2a9d8f}.bg-dark a:hover{color:#fff}.text-muted{color:#6c757d}.text-dark-muted{color:#d7dbdf}.text-small{font-size:14px!important}.elevation-1{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.elevation-2{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23)}.elevation-3{-webkit-box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23)}.elevation-4{-webkit-box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.elevation-5{-webkit-box-shadow:0 19px 38px rgba(0,0,0,.3),0 15px 12px rgba(0,0,0,.22);box-shadow:0 19px 38px rgba(0,0,0,.3),0 15px 12px rgba(0,0,0,.22)}.font-weight-light{font-weight:300!important}.font-weight-bold{font-weight:700!important}.font-weight-normal{font-weight:400!important}.invisible-scrollbar::-webkit-scrollbar{visibility:hidden}.invisible-scrollbar:hover::-webkit-scrollbar{visibility:visible}.invisible-scrollbar{-ms-overflow-style:-ms-autohiding-scrollbar}.is-rounded{border-radius:4px}.is-borderless{border-width:0!important} +/*! minireset.css v0.0.4 | MIT License | github.com/jgthms/minireset.css */blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}embed,iframe,img,object,video{height:auto;max-width:100%}audio{max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left}html{background-color:#fff;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;min-width:300px;overflow-x:hidden;overflow-y:scroll;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}article,aside,figure,footer,header,hgroup,section{display:block}body,button,input,select,textarea{font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif}code,pre{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:auto;font-family:monospace}body{color:#4a4a4a;font-size:1rem;font-weight:400;line-height:1.5}a{color:#2a9d8f;cursor:pointer;text-decoration:none}a strong{color:currentColor}a:hover{color:#363636}code{color:#ff3860;font-size:.875em;font-weight:400;padding:.25em .5em}code,hr{background-color:#f5f5f5}hr{border:none;display:block;height:2px;margin:1.5rem 0}img{height:auto;max-width:100%}input[type=checkbox],input[type=radio]{vertical-align:baseline}small{font-size:.875em}span{font-style:inherit;font-weight:inherit}strong{color:#363636;font-weight:700}fieldset{border:none}pre{-webkit-overflow-scrolling:touch;background-color:#f5f5f5;color:#4a4a4a;font-size:.875em;overflow-x:auto;padding:1.25rem 1.5rem;white-space:pre;word-wrap:normal}pre code{background-color:transparent;color:currentColor;font-size:1em;padding:0}table td,table th{text-align:left;vertical-align:top}table th{color:#363636}.is-clearfix:after{clear:both;content:" ";display:table}.is-pulled-left{float:left!important}.is-pulled-right{float:right!important}.is-clipped{overflow:hidden!important}.is-size-1{font-size:3rem!important}.is-size-2{font-size:2.5rem!important}.is-size-3{font-size:2rem!important}.is-size-4{font-size:1.5rem!important}.is-size-5{font-size:1.25rem!important}.is-size-6{font-size:1rem!important}.is-size-7{font-size:.75rem!important}@media screen and (max-width:768px){.is-size-1-mobile{font-size:3rem!important}.is-size-2-mobile{font-size:2.5rem!important}.is-size-3-mobile{font-size:2rem!important}.is-size-4-mobile{font-size:1.5rem!important}.is-size-5-mobile{font-size:1.25rem!important}.is-size-6-mobile{font-size:1rem!important}.is-size-7-mobile{font-size:.75rem!important}}@media print,screen and (min-width:769px){.is-size-1-tablet{font-size:3rem!important}.is-size-2-tablet{font-size:2.5rem!important}.is-size-3-tablet{font-size:2rem!important}.is-size-4-tablet{font-size:1.5rem!important}.is-size-5-tablet{font-size:1.25rem!important}.is-size-6-tablet{font-size:1rem!important}.is-size-7-tablet{font-size:.75rem!important}}@media screen and (max-width:1023px){.is-size-1-touch{font-size:3rem!important}.is-size-2-touch{font-size:2.5rem!important}.is-size-3-touch{font-size:2rem!important}.is-size-4-touch{font-size:1.5rem!important}.is-size-5-touch{font-size:1.25rem!important}.is-size-6-touch{font-size:1rem!important}.is-size-7-touch{font-size:.75rem!important}}@media screen and (min-width:1024px){.is-size-1-desktop{font-size:3rem!important}.is-size-2-desktop{font-size:2.5rem!important}.is-size-3-desktop{font-size:2rem!important}.is-size-4-desktop{font-size:1.5rem!important}.is-size-5-desktop{font-size:1.25rem!important}.is-size-6-desktop{font-size:1rem!important}.is-size-7-desktop{font-size:.75rem!important}}@media screen and (min-width:1216px){.is-size-1-widescreen{font-size:3rem!important}.is-size-2-widescreen{font-size:2.5rem!important}.is-size-3-widescreen{font-size:2rem!important}.is-size-4-widescreen{font-size:1.5rem!important}.is-size-5-widescreen{font-size:1.25rem!important}.is-size-6-widescreen{font-size:1rem!important}.is-size-7-widescreen{font-size:.75rem!important}}@media screen and (min-width:1408px){.is-size-1-fullhd{font-size:3rem!important}.is-size-2-fullhd{font-size:2.5rem!important}.is-size-3-fullhd{font-size:2rem!important}.is-size-4-fullhd{font-size:1.5rem!important}.is-size-5-fullhd{font-size:1.25rem!important}.is-size-6-fullhd{font-size:1rem!important}.is-size-7-fullhd{font-size:.75rem!important}}.has-text-centered{text-align:center!important}.has-text-justified{text-align:justify!important}.has-text-left{text-align:left!important}.has-text-right{text-align:right!important}@media screen and (max-width:768px){.has-text-centered-mobile{text-align:center!important}}@media print,screen and (min-width:769px){.has-text-centered-tablet{text-align:center!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-centered-tablet-only{text-align:center!important}}@media screen and (max-width:1023px){.has-text-centered-touch{text-align:center!important}}@media screen and (min-width:1024px){.has-text-centered-desktop{text-align:center!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-centered-desktop-only{text-align:center!important}}@media screen and (min-width:1216px){.has-text-centered-widescreen{text-align:center!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-centered-widescreen-only{text-align:center!important}}@media screen and (min-width:1408px){.has-text-centered-fullhd{text-align:center!important}}@media screen and (max-width:768px){.has-text-justified-mobile{text-align:justify!important}}@media print,screen and (min-width:769px){.has-text-justified-tablet{text-align:justify!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-justified-tablet-only{text-align:justify!important}}@media screen and (max-width:1023px){.has-text-justified-touch{text-align:justify!important}}@media screen and (min-width:1024px){.has-text-justified-desktop{text-align:justify!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-justified-desktop-only{text-align:justify!important}}@media screen and (min-width:1216px){.has-text-justified-widescreen{text-align:justify!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-justified-widescreen-only{text-align:justify!important}}@media screen and (min-width:1408px){.has-text-justified-fullhd{text-align:justify!important}}@media screen and (max-width:768px){.has-text-left-mobile{text-align:left!important}}@media print,screen and (min-width:769px){.has-text-left-tablet{text-align:left!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-left-tablet-only{text-align:left!important}}@media screen and (max-width:1023px){.has-text-left-touch{text-align:left!important}}@media screen and (min-width:1024px){.has-text-left-desktop{text-align:left!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-left-desktop-only{text-align:left!important}}@media screen and (min-width:1216px){.has-text-left-widescreen{text-align:left!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-left-widescreen-only{text-align:left!important}}@media screen and (min-width:1408px){.has-text-left-fullhd{text-align:left!important}}@media screen and (max-width:768px){.has-text-right-mobile{text-align:right!important}}@media print,screen and (min-width:769px){.has-text-right-tablet{text-align:right!important}}@media screen and (min-width:769px) and (max-width:1023px){.has-text-right-tablet-only{text-align:right!important}}@media screen and (max-width:1023px){.has-text-right-touch{text-align:right!important}}@media screen and (min-width:1024px){.has-text-right-desktop{text-align:right!important}}@media screen and (min-width:1024px) and (max-width:1215px){.has-text-right-desktop-only{text-align:right!important}}@media screen and (min-width:1216px){.has-text-right-widescreen{text-align:right!important}}@media screen and (min-width:1216px) and (max-width:1407px){.has-text-right-widescreen-only{text-align:right!important}}@media screen and (min-width:1408px){.has-text-right-fullhd{text-align:right!important}}.is-capitalized{text-transform:capitalize!important}.is-lowercase{text-transform:lowercase!important}.is-uppercase{text-transform:uppercase!important}.is-italic{font-style:italic!important}.has-text-white{color:#fff!important}a.has-text-white:focus,a.has-text-white:hover{color:#e6e5e5!important}.has-background-white{background-color:#fff!important}.has-text-black{color:#0a0a0a!important}a.has-text-black:focus,a.has-text-black:hover{color:#000!important}.has-background-black{background-color:#0a0a0a!important}.has-text-light{color:#f5f5f5!important}a.has-text-light:focus,a.has-text-light:hover{color:#dbdbdb!important}.has-background-light{background-color:#f5f5f5!important}.has-text-dark{color:#1f2d3d!important}a.has-text-dark:focus,a.has-text-dark:hover{color:#0e141b!important}.has-background-dark{background-color:#1f2d3d!important}.has-text-primary{color:#2a9d8f!important}a.has-text-primary:focus,a.has-text-primary:hover{color:#1f756a!important}.has-background-primary{background-color:#2a9d8f!important}.has-text-link{color:#2a9d8f!important}a.has-text-link:focus,a.has-text-link:hover{color:#1f756a!important}.has-background-link{background-color:#2a9d8f!important}.has-text-info{color:#4d7ec8!important}a.has-text-info:focus,a.has-text-info:hover{color:#3565ad!important}.has-background-info{background-color:#4d7ec8!important}.has-text-success{color:#2ab27b!important}a.has-text-success:focus,a.has-text-success:hover{color:#20895e!important}.has-background-success{background-color:#2ab27b!important}.has-text-warning{color:#f39c12!important}a.has-text-warning:focus,a.has-text-warning:hover{color:#c87f0a!important}.has-background-warning{background-color:#f39c12!important}.has-text-danger{color:#bf5329!important}a.has-text-danger:focus,a.has-text-danger:hover{color:#954120!important}.has-background-danger{background-color:#bf5329!important}.has-text-black-bis{color:#121212!important}.has-background-black-bis{background-color:#121212!important}.has-text-black-ter{color:#242424!important}.has-background-black-ter{background-color:#242424!important}.has-text-grey-darker{color:#363636!important}.has-background-grey-darker{background-color:#363636!important}.has-text-grey-dark{color:#4a4a4a!important}.has-background-grey-dark{background-color:#4a4a4a!important}.has-text-grey{color:#7a7a7a!important}.has-background-grey{background-color:#7a7a7a!important}.has-text-grey-light{color:#b5b5b5!important}.has-background-grey-light{background-color:#b5b5b5!important}.has-text-grey-lighter{color:#dbdbdb!important}.has-background-grey-lighter{background-color:#dbdbdb!important}.has-text-white-ter{color:#f5f5f5!important}.has-background-white-ter{background-color:#f5f5f5!important}.has-text-white-bis{color:#fafafa!important}.has-background-white-bis{background-color:#fafafa!important}.has-text-weight-light{font-weight:300!important}.has-text-weight-normal{font-weight:400!important}.has-text-weight-semibold{font-weight:600!important}.has-text-weight-bold{font-weight:700!important}.is-family-primary,.is-family-sans-serif,.is-family-secondary{font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif!important}.is-family-code,.is-family-monospace{font-family:monospace!important}.is-block{display:block!important}@media screen and (max-width:768px){.is-block-mobile{display:block!important}}@media print,screen and (min-width:769px){.is-block-tablet{display:block!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-block-tablet-only{display:block!important}}@media screen and (max-width:1023px){.is-block-touch{display:block!important}}@media screen and (min-width:1024px){.is-block-desktop{display:block!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-block-desktop-only{display:block!important}}@media screen and (min-width:1216px){.is-block-widescreen{display:block!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-block-widescreen-only{display:block!important}}@media screen and (min-width:1408px){.is-block-fullhd{display:block!important}}.is-flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}@media screen and (max-width:768px){.is-flex-mobile{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media print,screen and (min-width:769px){.is-flex-tablet{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-flex-tablet-only{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (max-width:1023px){.is-flex-touch{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1024px){.is-flex-desktop{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-flex-desktop-only{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1216px){.is-flex-widescreen{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-flex-widescreen-only{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1408px){.is-flex-fullhd{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}.is-inline{display:inline!important}@media screen and (max-width:768px){.is-inline-mobile{display:inline!important}}@media print,screen and (min-width:769px){.is-inline-tablet{display:inline!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-tablet-only{display:inline!important}}@media screen and (max-width:1023px){.is-inline-touch{display:inline!important}}@media screen and (min-width:1024px){.is-inline-desktop{display:inline!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-desktop-only{display:inline!important}}@media screen and (min-width:1216px){.is-inline-widescreen{display:inline!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-widescreen-only{display:inline!important}}@media screen and (min-width:1408px){.is-inline-fullhd{display:inline!important}}.is-inline-block{display:inline-block!important}@media screen and (max-width:768px){.is-inline-block-mobile{display:inline-block!important}}@media print,screen and (min-width:769px){.is-inline-block-tablet{display:inline-block!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-block-tablet-only{display:inline-block!important}}@media screen and (max-width:1023px){.is-inline-block-touch{display:inline-block!important}}@media screen and (min-width:1024px){.is-inline-block-desktop{display:inline-block!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-block-desktop-only{display:inline-block!important}}@media screen and (min-width:1216px){.is-inline-block-widescreen{display:inline-block!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-block-widescreen-only{display:inline-block!important}}@media screen and (min-width:1408px){.is-inline-block-fullhd{display:inline-block!important}}.is-inline-flex{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}@media screen and (max-width:768px){.is-inline-flex-mobile{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media print,screen and (min-width:769px){.is-inline-flex-tablet{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-inline-flex-tablet-only{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (max-width:1023px){.is-inline-flex-touch{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1024px){.is-inline-flex-desktop{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-inline-flex-desktop-only{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1216px){.is-inline-flex-widescreen{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-inline-flex-widescreen-only{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1408px){.is-inline-flex-fullhd{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}.is-hidden{display:none!important}.is-sr-only{border:none!important;clip:rect(0,0,0,0)!important;height:.01em!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:.01em!important}@media screen and (max-width:768px){.is-hidden-mobile{display:none!important}}@media print,screen and (min-width:769px){.is-hidden-tablet{display:none!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-hidden-tablet-only{display:none!important}}@media screen and (max-width:1023px){.is-hidden-touch{display:none!important}}@media screen and (min-width:1024px){.is-hidden-desktop{display:none!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-hidden-desktop-only{display:none!important}}@media screen and (min-width:1216px){.is-hidden-widescreen{display:none!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-hidden-widescreen-only{display:none!important}}@media screen and (min-width:1408px){.is-hidden-fullhd{display:none!important}}.is-invisible{visibility:hidden!important}@media screen and (max-width:768px){.is-invisible-mobile{visibility:hidden!important}}@media print,screen and (min-width:769px){.is-invisible-tablet{visibility:hidden!important}}@media screen and (min-width:769px) and (max-width:1023px){.is-invisible-tablet-only{visibility:hidden!important}}@media screen and (max-width:1023px){.is-invisible-touch{visibility:hidden!important}}@media screen and (min-width:1024px){.is-invisible-desktop{visibility:hidden!important}}@media screen and (min-width:1024px) and (max-width:1215px){.is-invisible-desktop-only{visibility:hidden!important}}@media screen and (min-width:1216px){.is-invisible-widescreen{visibility:hidden!important}}@media screen and (min-width:1216px) and (max-width:1407px){.is-invisible-widescreen-only{visibility:hidden!important}}@media screen and (min-width:1408px){.is-invisible-fullhd{visibility:hidden!important}}.is-marginless{margin:0!important}.is-paddingless{padding:0!important}.is-radiusless{border-radius:0!important}.is-shadowless{-webkit-box-shadow:none!important;box-shadow:none!important}.box{background-color:#fff;border-radius:2px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);color:#4a4a4a;display:block;padding:1.25rem}a.box:focus,a.box:hover{-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px #2a9d8f;box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px #2a9d8f}a.box:active{-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2),0 0 0 1px #2a9d8f;box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2),0 0 0 1px #2a9d8f}.button{background-color:#fff;border-color:#dbdbdb;border-width:1px;color:#363636;cursor:pointer;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:calc(.375em - 1px) .75em;text-align:center;white-space:nowrap}.button strong{color:inherit}.button .icon,.button .icon.is-large,.button .icon.is-medium,.button .icon.is-small{height:1.5em;width:1.5em}.button .icon:first-child:not(:last-child){margin-left:calc(-.375em - 1px);margin-right:.1875em}.button .icon:last-child:not(:first-child){margin-left:.1875em;margin-right:calc(-.375em - 1px)}.button .icon:first-child:last-child{margin-left:calc(-.375em - 1px);margin-right:calc(-.375em - 1px)}.button.is-hovered,.button:hover{border-color:#b5b5b5;color:#363636}.button.is-focused,.button:focus{border-color:#3273dc;color:#363636}.button.is-focused:not(:active),.button:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.button.is-active,.button:active{border-color:#4a4a4a;color:#363636}.button.is-text{background-color:transparent;border-color:transparent;color:#4a4a4a;text-decoration:underline}.button.is-text.is-focused,.button.is-text.is-hovered,.button.is-text:focus,.button.is-text:hover{background-color:#f5f5f5;color:#363636}.button.is-text.is-active,.button.is-text:active{background-color:#e8e8e8;color:#363636}.button.is-text[disabled],fieldset[disabled] .button.is-text{background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-white{background-color:#fff;border-color:transparent;color:#0a0a0a}.button.is-white.is-hovered,.button.is-white:hover{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.button.is-white.is-focused,.button.is-white:focus{border-color:transparent;color:#0a0a0a}.button.is-white.is-focused:not(:active),.button.is-white:focus:not(:active){-webkit-box-shadow:0 0 0 .125em hsla(0,0%,100%,.25);box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.button.is-white.is-active,.button.is-white:active{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.button.is-white[disabled],fieldset[disabled] .button.is-white{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-white.is-inverted{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted:hover{background-color:#000}.button.is-white.is-inverted[disabled],fieldset[disabled] .button.is-white.is-inverted{background-color:#0a0a0a;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-white.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-white.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-white.is-outlined:focus,.button.is-white.is-outlined:hover{background-color:#fff;border-color:#fff;color:#0a0a0a}.button.is-white.is-outlined.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-white.is-outlined[disabled],fieldset[disabled] .button.is-white.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-white.is-inverted.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-white.is-inverted.is-outlined:focus,.button.is-white.is-inverted.is-outlined:hover{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-white.is-inverted.is-outlined{background-color:transparent;border-color:#0a0a0a;-webkit-box-shadow:none;box-shadow:none;color:#0a0a0a}.button.is-black{background-color:#0a0a0a;border-color:transparent;color:#fff}.button.is-black.is-hovered,.button.is-black:hover{background-color:#040404;border-color:transparent;color:#fff}.button.is-black.is-focused,.button.is-black:focus{border-color:transparent;color:#fff}.button.is-black.is-focused:not(:active),.button.is-black:focus:not(:active){-webkit-box-shadow:0 0 0 .125em hsla(0,0%,4%,.25);box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.button.is-black.is-active,.button.is-black:active{background-color:#000;border-color:transparent;color:#fff}.button.is-black[disabled],fieldset[disabled] .button.is-black{background-color:#0a0a0a;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-black.is-inverted{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted:hover{background-color:#f2f2f2}.button.is-black.is-inverted[disabled],fieldset[disabled] .button.is-black.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#0a0a0a}.button.is-black.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-black.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-black.is-outlined:focus,.button.is-black.is-outlined:hover{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.button.is-black.is-outlined.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-black.is-outlined[disabled],fieldset[disabled] .button.is-black.is-outlined{background-color:transparent;border-color:#0a0a0a;-webkit-box-shadow:none;box-shadow:none;color:#0a0a0a}.button.is-black.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-black.is-inverted.is-outlined:focus,.button.is-black.is-inverted.is-outlined:hover{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-black.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-light{background-color:#f5f5f5;border-color:transparent;color:#1f2d3d}.button.is-light.is-hovered,.button.is-light:hover{background-color:#eee;border-color:transparent;color:#1f2d3d}.button.is-light.is-focused,.button.is-light:focus{border-color:transparent;color:#1f2d3d}.button.is-light.is-focused:not(:active),.button.is-light:focus:not(:active){-webkit-box-shadow:0 0 0 .125em hsla(0,0%,96%,.25);box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.button.is-light.is-active,.button.is-light:active{background-color:#e8e8e8;border-color:transparent;color:#1f2d3d}.button.is-light[disabled],fieldset[disabled] .button.is-light{background-color:#f5f5f5;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-light.is-inverted{background-color:#1f2d3d;color:#f5f5f5}.button.is-light.is-inverted:hover{background-color:#16212c}.button.is-light.is-inverted[disabled],fieldset[disabled] .button.is-light.is-inverted{background-color:#1f2d3d;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#f5f5f5}.button.is-light.is-loading:after{border-color:transparent transparent #1f2d3d #1f2d3d!important}.button.is-light.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-light.is-outlined:focus,.button.is-light.is-outlined:hover{background-color:#f5f5f5;border-color:#f5f5f5;color:#1f2d3d}.button.is-light.is-outlined.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-light.is-outlined[disabled],fieldset[disabled] .button.is-light.is-outlined{background-color:transparent;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#f5f5f5}.button.is-light.is-inverted.is-outlined{background-color:transparent;border-color:#1f2d3d;color:#1f2d3d}.button.is-light.is-inverted.is-outlined:focus,.button.is-light.is-inverted.is-outlined:hover{background-color:#1f2d3d;color:#f5f5f5}.button.is-light.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-light.is-inverted.is-outlined{background-color:transparent;border-color:#1f2d3d;-webkit-box-shadow:none;box-shadow:none;color:#1f2d3d}.button.is-dark{background-color:#1f2d3d;border-color:transparent;color:#f5f5f5}.button.is-dark.is-hovered,.button.is-dark:hover{background-color:#1b2735;border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused,.button.is-dark:focus{border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused:not(:active),.button.is-dark:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(31,45,61,.25);box-shadow:0 0 0 .125em rgba(31,45,61,.25)}.button.is-dark.is-active,.button.is-dark:active{background-color:#16212c;border-color:transparent;color:#f5f5f5}.button.is-dark[disabled],fieldset[disabled] .button.is-dark{background-color:#1f2d3d;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-dark.is-inverted{background-color:#f5f5f5;color:#1f2d3d}.button.is-dark.is-inverted:hover{background-color:#e8e8e8}.button.is-dark.is-inverted[disabled],fieldset[disabled] .button.is-dark.is-inverted{background-color:#f5f5f5;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#1f2d3d}.button.is-dark.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-dark.is-outlined{background-color:transparent;border-color:#1f2d3d;color:#1f2d3d}.button.is-dark.is-outlined:focus,.button.is-dark.is-outlined:hover{background-color:#1f2d3d;border-color:#1f2d3d;color:#f5f5f5}.button.is-dark.is-outlined.is-loading:after{border-color:transparent transparent #1f2d3d #1f2d3d!important}.button.is-dark.is-outlined[disabled],fieldset[disabled] .button.is-dark.is-outlined{background-color:transparent;border-color:#1f2d3d;-webkit-box-shadow:none;box-shadow:none;color:#1f2d3d}.button.is-dark.is-inverted.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-dark.is-inverted.is-outlined:focus,.button.is-dark.is-inverted.is-outlined:hover{background-color:#f5f5f5;color:#1f2d3d}.button.is-dark.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-dark.is-inverted.is-outlined{background-color:transparent;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#f5f5f5}.button.is-primary{background-color:#2a9d8f;border-color:transparent;color:#fff}.button.is-primary.is-hovered,.button.is-primary:hover{background-color:#279386;border-color:transparent;color:#fff}.button.is-primary.is-focused,.button.is-primary:focus{border-color:transparent;color:#fff}.button.is-primary.is-focused:not(:active),.button.is-primary:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.button.is-primary.is-active,.button.is-primary:active{background-color:#25897d;border-color:transparent;color:#fff}.button.is-primary[disabled],fieldset[disabled] .button.is-primary{background-color:#2a9d8f;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-primary.is-inverted{background-color:#fff;color:#2a9d8f}.button.is-primary.is-inverted:hover{background-color:#f2f2f2}.button.is-primary.is-inverted[disabled],fieldset[disabled] .button.is-primary.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#2a9d8f}.button.is-primary.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-primary.is-outlined{background-color:transparent;border-color:#2a9d8f;color:#2a9d8f}.button.is-primary.is-outlined:focus,.button.is-primary.is-outlined:hover{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff}.button.is-primary.is-outlined.is-loading:after{border-color:transparent transparent #2a9d8f #2a9d8f!important}.button.is-primary.is-outlined[disabled],fieldset[disabled] .button.is-primary.is-outlined{background-color:transparent;border-color:#2a9d8f;-webkit-box-shadow:none;box-shadow:none;color:#2a9d8f}.button.is-primary.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-primary.is-inverted.is-outlined:focus,.button.is-primary.is-inverted.is-outlined:hover{background-color:#fff;color:#2a9d8f}.button.is-primary.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-primary.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-link{background-color:#2a9d8f;border-color:transparent;color:#fff}.button.is-link.is-hovered,.button.is-link:hover{background-color:#279386;border-color:transparent;color:#fff}.button.is-link.is-focused,.button.is-link:focus{border-color:transparent;color:#fff}.button.is-link.is-focused:not(:active),.button.is-link:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.button.is-link.is-active,.button.is-link:active{background-color:#25897d;border-color:transparent;color:#fff}.button.is-link[disabled],fieldset[disabled] .button.is-link{background-color:#2a9d8f;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-link.is-inverted{background-color:#fff;color:#2a9d8f}.button.is-link.is-inverted:hover{background-color:#f2f2f2}.button.is-link.is-inverted[disabled],fieldset[disabled] .button.is-link.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#2a9d8f}.button.is-link.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-link.is-outlined{background-color:transparent;border-color:#2a9d8f;color:#2a9d8f}.button.is-link.is-outlined:focus,.button.is-link.is-outlined:hover{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff}.button.is-link.is-outlined.is-loading:after{border-color:transparent transparent #2a9d8f #2a9d8f!important}.button.is-link.is-outlined[disabled],fieldset[disabled] .button.is-link.is-outlined{background-color:transparent;border-color:#2a9d8f;-webkit-box-shadow:none;box-shadow:none;color:#2a9d8f}.button.is-link.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-link.is-inverted.is-outlined:focus,.button.is-link.is-inverted.is-outlined:hover{background-color:#fff;color:#2a9d8f}.button.is-link.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-link.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-info{background-color:#4d7ec8;border-color:transparent;color:#fff}.button.is-info.is-hovered,.button.is-info:hover{background-color:#4377c5;border-color:transparent;color:#fff}.button.is-info.is-focused,.button.is-info:focus{border-color:transparent;color:#fff}.button.is-info.is-focused:not(:active),.button.is-info:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(77,126,200,.25);box-shadow:0 0 0 .125em rgba(77,126,200,.25)}.button.is-info.is-active,.button.is-info:active{background-color:#3b70c0;border-color:transparent;color:#fff}.button.is-info[disabled],fieldset[disabled] .button.is-info{background-color:#4d7ec8;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-info.is-inverted{background-color:#fff;color:#4d7ec8}.button.is-info.is-inverted:hover{background-color:#f2f2f2}.button.is-info.is-inverted[disabled],fieldset[disabled] .button.is-info.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#4d7ec8}.button.is-info.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-info.is-outlined{background-color:transparent;border-color:#4d7ec8;color:#4d7ec8}.button.is-info.is-outlined:focus,.button.is-info.is-outlined:hover{background-color:#4d7ec8;border-color:#4d7ec8;color:#fff}.button.is-info.is-outlined.is-loading:after{border-color:transparent transparent #4d7ec8 #4d7ec8!important}.button.is-info.is-outlined[disabled],fieldset[disabled] .button.is-info.is-outlined{background-color:transparent;border-color:#4d7ec8;-webkit-box-shadow:none;box-shadow:none;color:#4d7ec8}.button.is-info.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-info.is-inverted.is-outlined:focus,.button.is-info.is-inverted.is-outlined:hover{background-color:#fff;color:#4d7ec8}.button.is-info.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-info.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-success{background-color:#2ab27b;border-color:transparent;color:#fff}.button.is-success.is-hovered,.button.is-success:hover{background-color:#28a874;border-color:transparent;color:#fff}.button.is-success.is-focused,.button.is-success:focus{border-color:transparent;color:#fff}.button.is-success.is-focused:not(:active),.button.is-success:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(42,178,123,.25);box-shadow:0 0 0 .125em rgba(42,178,123,.25)}.button.is-success.is-active,.button.is-success:active{background-color:#259d6d;border-color:transparent;color:#fff}.button.is-success[disabled],fieldset[disabled] .button.is-success{background-color:#2ab27b;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-success.is-inverted{background-color:#fff;color:#2ab27b}.button.is-success.is-inverted:hover{background-color:#f2f2f2}.button.is-success.is-inverted[disabled],fieldset[disabled] .button.is-success.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#2ab27b}.button.is-success.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-success.is-outlined{background-color:transparent;border-color:#2ab27b;color:#2ab27b}.button.is-success.is-outlined:focus,.button.is-success.is-outlined:hover{background-color:#2ab27b;border-color:#2ab27b;color:#fff}.button.is-success.is-outlined.is-loading:after{border-color:transparent transparent #2ab27b #2ab27b!important}.button.is-success.is-outlined[disabled],fieldset[disabled] .button.is-success.is-outlined{background-color:transparent;border-color:#2ab27b;-webkit-box-shadow:none;box-shadow:none;color:#2ab27b}.button.is-success.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-success.is-inverted.is-outlined:focus,.button.is-success.is-inverted.is-outlined:hover{background-color:#fff;color:#2ab27b}.button.is-success.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-success.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-warning{background-color:#f39c12;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-hovered,.button.is-warning:hover{background-color:#ec960c;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused,.button.is-warning:focus{border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused:not(:active),.button.is-warning:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(243,156,18,.25);box-shadow:0 0 0 .125em rgba(243,156,18,.25)}.button.is-warning.is-active,.button.is-warning:active{background-color:#e08e0b;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning[disabled],fieldset[disabled] .button.is-warning{background-color:#f39c12;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-warning.is-inverted{color:#f39c12}.button.is-warning.is-inverted,.button.is-warning.is-inverted:hover{background-color:rgba(0,0,0,.7)}.button.is-warning.is-inverted[disabled],fieldset[disabled] .button.is-warning.is-inverted{background-color:rgba(0,0,0,.7);border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#f39c12}.button.is-warning.is-loading:after{border-color:transparent transparent rgba(0,0,0,.7) rgba(0,0,0,.7)!important}.button.is-warning.is-outlined{background-color:transparent;border-color:#f39c12;color:#f39c12}.button.is-warning.is-outlined:focus,.button.is-warning.is-outlined:hover{background-color:#f39c12;border-color:#f39c12;color:rgba(0,0,0,.7)}.button.is-warning.is-outlined.is-loading:after{border-color:transparent transparent #f39c12 #f39c12!important}.button.is-warning.is-outlined[disabled],fieldset[disabled] .button.is-warning.is-outlined{background-color:transparent;border-color:#f39c12;-webkit-box-shadow:none;box-shadow:none;color:#f39c12}.button.is-warning.is-inverted.is-outlined{background-color:transparent;border-color:rgba(0,0,0,.7);color:rgba(0,0,0,.7)}.button.is-warning.is-inverted.is-outlined:focus,.button.is-warning.is-inverted.is-outlined:hover{background-color:rgba(0,0,0,.7);color:#f39c12}.button.is-warning.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-warning.is-inverted.is-outlined{background-color:transparent;border-color:rgba(0,0,0,.7);-webkit-box-shadow:none;box-shadow:none;color:rgba(0,0,0,.7)}.button.is-danger{background-color:#bf5329;border-color:transparent;color:#fff}.button.is-danger.is-hovered,.button.is-danger:hover{background-color:#b54e27;border-color:transparent;color:#fff}.button.is-danger.is-focused,.button.is-danger:focus{border-color:transparent;color:#fff}.button.is-danger.is-focused:not(:active),.button.is-danger:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(191,83,41,.25);box-shadow:0 0 0 .125em rgba(191,83,41,.25)}.button.is-danger.is-active,.button.is-danger:active{background-color:#aa4a24;border-color:transparent;color:#fff}.button.is-danger[disabled],fieldset[disabled] .button.is-danger{background-color:#bf5329;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-danger.is-inverted{background-color:#fff;color:#bf5329}.button.is-danger.is-inverted:hover{background-color:#f2f2f2}.button.is-danger.is-inverted[disabled],fieldset[disabled] .button.is-danger.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#bf5329}.button.is-danger.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-danger.is-outlined{background-color:transparent;border-color:#bf5329;color:#bf5329}.button.is-danger.is-outlined:focus,.button.is-danger.is-outlined:hover{background-color:#bf5329;border-color:#bf5329;color:#fff}.button.is-danger.is-outlined.is-loading:after{border-color:transparent transparent #bf5329 #bf5329!important}.button.is-danger.is-outlined[disabled],fieldset[disabled] .button.is-danger.is-outlined{background-color:transparent;border-color:#bf5329;-webkit-box-shadow:none;box-shadow:none;color:#bf5329}.button.is-danger.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-danger.is-inverted.is-outlined:focus,.button.is-danger.is-inverted.is-outlined:hover{background-color:#fff;color:#bf5329}.button.is-danger.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-danger.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-small{border-radius:2px;font-size:.75rem}.button.is-normal{font-size:1rem}.button.is-medium{font-size:1.25rem}.button.is-large{font-size:1.5rem}.button[disabled],fieldset[disabled] .button{background-color:#fff;border-color:#dbdbdb;-webkit-box-shadow:none;box-shadow:none;opacity:.5}.button.is-fullwidth{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.button.is-loading{color:transparent!important;pointer-events:none}.button.is-loading:after{position:absolute;left:calc(50% - 0.5em);top:calc(50% - 0.5em);position:absolute!important}.button.is-static{background-color:#f5f5f5;border-color:#dbdbdb;color:#7a7a7a;-webkit-box-shadow:none;box-shadow:none;pointer-events:none}.button.is-rounded{border-radius:290486px;padding-left:1em;padding-right:1em}.buttons{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.buttons .button{margin-bottom:.5rem}.buttons .button:not(:last-child):not(.is-fullwidth){margin-right:.5rem}.buttons:last-child{margin-bottom:-.5rem}.buttons:not(:last-child){margin-bottom:1rem}.buttons.are-small .button:not(.is-normal):not(.is-medium):not(.is-large){border-radius:2px;font-size:.75rem}.buttons.are-medium .button:not(.is-small):not(.is-normal):not(.is-large){font-size:1.25rem}.buttons.are-large .button:not(.is-small):not(.is-normal):not(.is-medium){font-size:1.5rem}.buttons.has-addons .button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.buttons.has-addons .button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.buttons.has-addons .button:last-child{margin-right:0}.buttons.has-addons .button.is-hovered,.buttons.has-addons .button:hover{z-index:2}.buttons.has-addons .button.is-active,.buttons.has-addons .button.is-focused,.buttons.has-addons .button.is-selected,.buttons.has-addons .button:active,.buttons.has-addons .button:focus{z-index:3}.buttons.has-addons .button.is-active:hover,.buttons.has-addons .button.is-focused:hover,.buttons.has-addons .button.is-selected:hover,.buttons.has-addons .button:active:hover,.buttons.has-addons .button:focus:hover{z-index:4}.buttons.has-addons .button.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.buttons.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.buttons.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.container{margin:0 auto;position:relative}@media screen and (min-width:1024px){.container{max-width:960px;width:960px}.container.is-fluid{margin-left:32px;margin-right:32px;max-width:none;width:auto}}@media screen and (max-width:1215px){.container.is-widescreen{max-width:1152px;width:auto}}@media screen and (max-width:1407px){.container.is-fullhd{max-width:1344px;width:auto}}@media screen and (min-width:1216px){.container{max-width:1152px;width:1152px}}@media screen and (min-width:1408px){.container{max-width:1344px;width:1344px}}.content li+li{margin-top:.25em}.content blockquote:not(:last-child),.content dl:not(:last-child),.content ol:not(:last-child),.content p:not(:last-child),.content pre:not(:last-child),.content table:not(:last-child),.content ul:not(:last-child){margin-bottom:1em}.content h1,.content h2,.content h3,.content h4,.content h5,.content h6{color:#363636;font-weight:600;line-height:1.125}.content h1{font-size:2em;margin-bottom:.5em}.content h1:not(:first-child){margin-top:1em}.content h2{font-size:1.75em;margin-bottom:.5714em}.content h2:not(:first-child){margin-top:1.1428em}.content h3{font-size:1.5em;margin-bottom:.6666em}.content h3:not(:first-child){margin-top:1.3333em}.content h4{font-size:1.25em;margin-bottom:.8em}.content h5{font-size:1.125em;margin-bottom:.8888em}.content h6{font-size:1em;margin-bottom:1em}.content blockquote{background-color:#f5f5f5;border-left:5px solid #dbdbdb;padding:1.25em 1.5em}.content ol{list-style-position:outside;margin-left:2em;margin-top:1em}.content ol:not([type]){list-style-type:decimal}.content ol:not([type]).is-lower-alpha{list-style-type:lower-alpha}.content ol:not([type]).is-lower-roman{list-style-type:lower-roman}.content ol:not([type]).is-upper-alpha{list-style-type:upper-alpha}.content ol:not([type]).is-upper-roman{list-style-type:upper-roman}.content ul{list-style:disc outside;margin-left:2em;margin-top:1em}.content ul ul{list-style-type:circle;margin-top:.5em}.content ul ul ul{list-style-type:square}.content dd{margin-left:2em}.content figure{margin-left:2em;margin-right:2em;text-align:center}.content figure:not(:first-child){margin-top:2em}.content figure:not(:last-child){margin-bottom:2em}.content figure img{display:inline-block}.content figure figcaption{font-style:italic}.content pre{-webkit-overflow-scrolling:touch;overflow-x:auto;padding:1.25em 1.5em;white-space:pre;word-wrap:normal}.content sub,.content sup{font-size:75%}.content table{width:100%}.content table td,.content table th{border:1px solid #dbdbdb;border-width:0 0 1px;padding:.5em .75em;vertical-align:top}.content table th{color:#363636;text-align:left}.content table thead td,.content table thead th{border-width:0 0 2px;color:#363636}.content table tfoot td,.content table tfoot th{border-width:2px 0 0;color:#363636}.content table tbody tr:last-child td,.content table tbody tr:last-child th{border-bottom-width:0}.content.is-small{font-size:.75rem}.content.is-medium{font-size:1.25rem}.content.is-large{font-size:1.5rem}.input,.textarea{background-color:#fff;border-color:#dbdbdb;color:#363636;-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);max-width:100%;width:100%}.input::-moz-placeholder,.textarea::-moz-placeholder{color:rgba(54,54,54,.3)}.input::-webkit-input-placeholder,.textarea::-webkit-input-placeholder{color:rgba(54,54,54,.3)}.input:-moz-placeholder,.textarea:-moz-placeholder{color:rgba(54,54,54,.3)}.input:-ms-input-placeholder,.textarea:-ms-input-placeholder{color:rgba(54,54,54,.3)}.input.is-hovered,.input:hover,.textarea.is-hovered,.textarea:hover{border-color:#b5b5b5}.input.is-active,.input.is-focused,.input:active,.input:focus,.textarea.is-active,.textarea.is-focused,.textarea:active,.textarea:focus{border-color:#2a9d8f;-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.input[disabled],.textarea[disabled],fieldset[disabled] .input,fieldset[disabled] .textarea{background-color:#f5f5f5;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#7a7a7a}.input[disabled]::-moz-placeholder,.textarea[disabled]::-moz-placeholder,fieldset[disabled] .input::-moz-placeholder,fieldset[disabled] .textarea::-moz-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]::-webkit-input-placeholder,.textarea[disabled]::-webkit-input-placeholder,fieldset[disabled] .input::-webkit-input-placeholder,fieldset[disabled] .textarea::-webkit-input-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]:-moz-placeholder,.textarea[disabled]:-moz-placeholder,fieldset[disabled] .input:-moz-placeholder,fieldset[disabled] .textarea:-moz-placeholder{color:hsla(0,0%,48%,.3)}.input[disabled]:-ms-input-placeholder,.textarea[disabled]:-ms-input-placeholder,fieldset[disabled] .input:-ms-input-placeholder,fieldset[disabled] .textarea:-ms-input-placeholder{color:hsla(0,0%,48%,.3)}.input[readonly],.textarea[readonly]{-webkit-box-shadow:none;box-shadow:none}.input.is-white,.textarea.is-white{border-color:#fff}.input.is-white.is-active,.input.is-white.is-focused,.input.is-white:active,.input.is-white:focus,.textarea.is-white.is-active,.textarea.is-white.is-focused,.textarea.is-white:active,.textarea.is-white:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,100%,.25);box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.input.is-black,.textarea.is-black{border-color:#0a0a0a}.input.is-black.is-active,.input.is-black.is-focused,.input.is-black:active,.input.is-black:focus,.textarea.is-black.is-active,.textarea.is-black.is-focused,.textarea.is-black:active,.textarea.is-black:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,4%,.25);box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.input.is-light,.textarea.is-light{border-color:#f5f5f5}.input.is-light.is-active,.input.is-light.is-focused,.input.is-light:active,.input.is-light:focus,.textarea.is-light.is-active,.textarea.is-light.is-focused,.textarea.is-light:active,.textarea.is-light:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,96%,.25);box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.input.is-dark,.textarea.is-dark{border-color:#1f2d3d}.input.is-dark.is-active,.input.is-dark.is-focused,.input.is-dark:active,.input.is-dark:focus,.textarea.is-dark.is-active,.textarea.is-dark.is-focused,.textarea.is-dark:active,.textarea.is-dark:focus{-webkit-box-shadow:0 0 0 .125em rgba(31,45,61,.25);box-shadow:0 0 0 .125em rgba(31,45,61,.25)}.input.is-primary,.textarea.is-primary{border-color:#2a9d8f}.input.is-primary.is-active,.input.is-primary.is-focused,.input.is-primary:active,.input.is-primary:focus,.textarea.is-primary.is-active,.textarea.is-primary.is-focused,.textarea.is-primary:active,.textarea.is-primary:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.input.is-link,.textarea.is-link{border-color:#2a9d8f}.input.is-link.is-active,.input.is-link.is-focused,.input.is-link:active,.input.is-link:focus,.textarea.is-link.is-active,.textarea.is-link.is-focused,.textarea.is-link:active,.textarea.is-link:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.input.is-info,.textarea.is-info{border-color:#4d7ec8}.input.is-info.is-active,.input.is-info.is-focused,.input.is-info:active,.input.is-info:focus,.textarea.is-info.is-active,.textarea.is-info.is-focused,.textarea.is-info:active,.textarea.is-info:focus{-webkit-box-shadow:0 0 0 .125em rgba(77,126,200,.25);box-shadow:0 0 0 .125em rgba(77,126,200,.25)}.input.is-success,.textarea.is-success{border-color:#2ab27b}.input.is-success.is-active,.input.is-success.is-focused,.input.is-success:active,.input.is-success:focus,.textarea.is-success.is-active,.textarea.is-success.is-focused,.textarea.is-success:active,.textarea.is-success:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,178,123,.25);box-shadow:0 0 0 .125em rgba(42,178,123,.25)}.input.is-warning,.textarea.is-warning{border-color:#f39c12}.input.is-warning.is-active,.input.is-warning.is-focused,.input.is-warning:active,.input.is-warning:focus,.textarea.is-warning.is-active,.textarea.is-warning.is-focused,.textarea.is-warning:active,.textarea.is-warning:focus{-webkit-box-shadow:0 0 0 .125em rgba(243,156,18,.25);box-shadow:0 0 0 .125em rgba(243,156,18,.25)}.input.is-danger,.textarea.is-danger{border-color:#bf5329}.input.is-danger.is-active,.input.is-danger.is-focused,.input.is-danger:active,.input.is-danger:focus,.textarea.is-danger.is-active,.textarea.is-danger.is-focused,.textarea.is-danger:active,.textarea.is-danger:focus{-webkit-box-shadow:0 0 0 .125em rgba(191,83,41,.25);box-shadow:0 0 0 .125em rgba(191,83,41,.25)}.input.is-small,.textarea.is-small{border-radius:2px;font-size:.75rem}.input.is-medium,.textarea.is-medium{font-size:1.25rem}.input.is-large,.textarea.is-large{font-size:1.5rem}.input.is-fullwidth,.textarea.is-fullwidth{display:block;width:100%}.input.is-inline,.textarea.is-inline{display:inline;width:auto}.input.is-rounded{border-radius:290486px;padding-left:1em;padding-right:1em}.input.is-static{background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;padding-left:0;padding-right:0}.textarea{display:block;max-width:100%;min-width:100%;padding:.625em;resize:vertical}.textarea:not([rows]){max-height:600px;min-height:120px}.textarea[rows]{height:auto}.textarea.has-fixed-size{resize:none}.checkbox,.radio{cursor:pointer;display:inline-block;line-height:1.25;position:relative}.checkbox input,.radio input{cursor:pointer}.checkbox:hover,.radio:hover{color:#363636}.checkbox[disabled],.radio[disabled],fieldset[disabled] .checkbox,fieldset[disabled] .radio{color:#7a7a7a;cursor:not-allowed}.radio+.radio{margin-left:.5em}.has-select select,.select{display:inline-block;max-width:100%;position:relative;vertical-align:top}.has-select select:not(.is-multiple),.select:not(.is-multiple){height:2.25em}.has-select select:not(.is-multiple):not(.is-loading):after,.select:not(.is-multiple):not(.is-loading):after{border-color:#2a9d8f;right:1.125em;z-index:4}.has-select select.is-rounded select,.select.is-rounded select{border-radius:290486px;padding-left:1em}.has-select select select,.select select{background-color:#fff;border-color:#dbdbdb;color:#363636;cursor:pointer;display:block;font-size:1em;max-width:100%;outline:none}.has-select select select::-moz-placeholder,.select select::-moz-placeholder{color:rgba(54,54,54,.3)}.has-select select select::-webkit-input-placeholder,.select select::-webkit-input-placeholder{color:rgba(54,54,54,.3)}.has-select select select:-moz-placeholder,.select select:-moz-placeholder{color:rgba(54,54,54,.3)}.has-select select select:-ms-input-placeholder,.select select:-ms-input-placeholder{color:rgba(54,54,54,.3)}.has-select select select.is-hovered,.has-select select select:hover,.select select.is-hovered,.select select:hover{border-color:#b5b5b5}.has-select select select.is-active,.has-select select select.is-focused,.has-select select select:active,.has-select select select:focus,.select select.is-active,.select select.is-focused,.select select:active,.select select:focus{border-color:#2a9d8f;-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.has-select fieldset[disabled] select select,.has-select select select[disabled],.select select[disabled],fieldset[disabled] .has-select select select,fieldset[disabled] .select select{background-color:#f5f5f5;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#7a7a7a}.has-select fieldset[disabled] select select::-moz-placeholder,.has-select select select[disabled]::-moz-placeholder,.select select[disabled]::-moz-placeholder,fieldset[disabled] .has-select select select::-moz-placeholder,fieldset[disabled] .select select::-moz-placeholder{color:hsla(0,0%,48%,.3)}.has-select fieldset[disabled] select select::-webkit-input-placeholder,.has-select select select[disabled]::-webkit-input-placeholder,.select select[disabled]::-webkit-input-placeholder,fieldset[disabled] .has-select select select::-webkit-input-placeholder,fieldset[disabled] .select select::-webkit-input-placeholder{color:hsla(0,0%,48%,.3)}.has-select fieldset[disabled] select select:-moz-placeholder,.has-select select select[disabled]:-moz-placeholder,.select select[disabled]:-moz-placeholder,fieldset[disabled] .has-select select select:-moz-placeholder,fieldset[disabled] .select select:-moz-placeholder{color:hsla(0,0%,48%,.3)}.has-select fieldset[disabled] select select:-ms-input-placeholder,.has-select select select[disabled]:-ms-input-placeholder,.select select[disabled]:-ms-input-placeholder,fieldset[disabled] .has-select select select:-ms-input-placeholder,fieldset[disabled] .select select:-ms-input-placeholder{color:hsla(0,0%,48%,.3)}.has-select select select::-ms-expand,.select select::-ms-expand{display:none}.has-select fieldset[disabled] select select:hover,.has-select select select[disabled]:hover,.select select[disabled]:hover,fieldset[disabled] .has-select select select:hover,fieldset[disabled] .select select:hover{border-color:#f5f5f5}.has-select select select:not([multiple]),.select select:not([multiple]){padding-right:2.5em}.has-select select select[multiple],.select select[multiple]{height:auto;padding:0}.has-select select select[multiple] option,.select select[multiple] option{padding:.5em 1em}.has-select select:not(.is-multiple):not(.is-loading):hover:after,.select:not(.is-multiple):not(.is-loading):hover:after{border-color:#363636}.has-select select.is-white:not(:hover):after,.has-select select.is-white select,.select.is-white:not(:hover):after,.select.is-white select{border-color:#fff}.has-select select.is-white select.is-hovered,.has-select select.is-white select:hover,.select.is-white select.is-hovered,.select.is-white select:hover{border-color:#f2f2f2}.has-select select.is-white select.is-active,.has-select select.is-white select.is-focused,.has-select select.is-white select:active,.has-select select.is-white select:focus,.select.is-white select.is-active,.select.is-white select.is-focused,.select.is-white select:active,.select.is-white select:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,100%,.25);box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.has-select select.is-black:not(:hover):after,.has-select select.is-black select,.select.is-black:not(:hover):after,.select.is-black select{border-color:#0a0a0a}.has-select select.is-black select.is-hovered,.has-select select.is-black select:hover,.select.is-black select.is-hovered,.select.is-black select:hover{border-color:#000}.has-select select.is-black select.is-active,.has-select select.is-black select.is-focused,.has-select select.is-black select:active,.has-select select.is-black select:focus,.select.is-black select.is-active,.select.is-black select.is-focused,.select.is-black select:active,.select.is-black select:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,4%,.25);box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.has-select select.is-light:not(:hover):after,.has-select select.is-light select,.select.is-light:not(:hover):after,.select.is-light select{border-color:#f5f5f5}.has-select select.is-light select.is-hovered,.has-select select.is-light select:hover,.select.is-light select.is-hovered,.select.is-light select:hover{border-color:#e8e8e8}.has-select select.is-light select.is-active,.has-select select.is-light select.is-focused,.has-select select.is-light select:active,.has-select select.is-light select:focus,.select.is-light select.is-active,.select.is-light select.is-focused,.select.is-light select:active,.select.is-light select:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,96%,.25);box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.has-select select.is-dark:not(:hover):after,.has-select select.is-dark select,.select.is-dark:not(:hover):after,.select.is-dark select{border-color:#1f2d3d}.has-select select.is-dark select.is-hovered,.has-select select.is-dark select:hover,.select.is-dark select.is-hovered,.select.is-dark select:hover{border-color:#16212c}.has-select select.is-dark select.is-active,.has-select select.is-dark select.is-focused,.has-select select.is-dark select:active,.has-select select.is-dark select:focus,.select.is-dark select.is-active,.select.is-dark select.is-focused,.select.is-dark select:active,.select.is-dark select:focus{-webkit-box-shadow:0 0 0 .125em rgba(31,45,61,.25);box-shadow:0 0 0 .125em rgba(31,45,61,.25)}.has-select select.is-primary:not(:hover):after,.has-select select.is-primary select,.select.is-primary:not(:hover):after,.select.is-primary select{border-color:#2a9d8f}.has-select select.is-primary select.is-hovered,.has-select select.is-primary select:hover,.select.is-primary select.is-hovered,.select.is-primary select:hover{border-color:#25897d}.has-select select.is-primary select.is-active,.has-select select.is-primary select.is-focused,.has-select select.is-primary select:active,.has-select select.is-primary select:focus,.select.is-primary select.is-active,.select.is-primary select.is-focused,.select.is-primary select:active,.select.is-primary select:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.has-select select.is-link:not(:hover):after,.has-select select.is-link select,.select.is-link:not(:hover):after,.select.is-link select{border-color:#2a9d8f}.has-select select.is-link select.is-hovered,.has-select select.is-link select:hover,.select.is-link select.is-hovered,.select.is-link select:hover{border-color:#25897d}.has-select select.is-link select.is-active,.has-select select.is-link select.is-focused,.has-select select.is-link select:active,.has-select select.is-link select:focus,.select.is-link select.is-active,.select.is-link select.is-focused,.select.is-link select:active,.select.is-link select:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,157,143,.25);box-shadow:0 0 0 .125em rgba(42,157,143,.25)}.has-select select.is-info:not(:hover):after,.has-select select.is-info select,.select.is-info:not(:hover):after,.select.is-info select{border-color:#4d7ec8}.has-select select.is-info select.is-hovered,.has-select select.is-info select:hover,.select.is-info select.is-hovered,.select.is-info select:hover{border-color:#3b70c0}.has-select select.is-info select.is-active,.has-select select.is-info select.is-focused,.has-select select.is-info select:active,.has-select select.is-info select:focus,.select.is-info select.is-active,.select.is-info select.is-focused,.select.is-info select:active,.select.is-info select:focus{-webkit-box-shadow:0 0 0 .125em rgba(77,126,200,.25);box-shadow:0 0 0 .125em rgba(77,126,200,.25)}.has-select select.is-success:not(:hover):after,.has-select select.is-success select,.select.is-success:not(:hover):after,.select.is-success select{border-color:#2ab27b}.has-select select.is-success select.is-hovered,.has-select select.is-success select:hover,.select.is-success select.is-hovered,.select.is-success select:hover{border-color:#259d6d}.has-select select.is-success select.is-active,.has-select select.is-success select.is-focused,.has-select select.is-success select:active,.has-select select.is-success select:focus,.select.is-success select.is-active,.select.is-success select.is-focused,.select.is-success select:active,.select.is-success select:focus{-webkit-box-shadow:0 0 0 .125em rgba(42,178,123,.25);box-shadow:0 0 0 .125em rgba(42,178,123,.25)}.has-select select.is-warning:not(:hover):after,.has-select select.is-warning select,.select.is-warning:not(:hover):after,.select.is-warning select{border-color:#f39c12}.has-select select.is-warning select.is-hovered,.has-select select.is-warning select:hover,.select.is-warning select.is-hovered,.select.is-warning select:hover{border-color:#e08e0b}.has-select select.is-warning select.is-active,.has-select select.is-warning select.is-focused,.has-select select.is-warning select:active,.has-select select.is-warning select:focus,.select.is-warning select.is-active,.select.is-warning select.is-focused,.select.is-warning select:active,.select.is-warning select:focus{-webkit-box-shadow:0 0 0 .125em rgba(243,156,18,.25);box-shadow:0 0 0 .125em rgba(243,156,18,.25)}.has-select select.is-danger:not(:hover):after,.has-select select.is-danger select,.select.is-danger:not(:hover):after,.select.is-danger select{border-color:#bf5329}.has-select select.is-danger select.is-hovered,.has-select select.is-danger select:hover,.select.is-danger select.is-hovered,.select.is-danger select:hover{border-color:#aa4a24}.has-select select.is-danger select.is-active,.has-select select.is-danger select.is-focused,.has-select select.is-danger select:active,.has-select select.is-danger select:focus,.select.is-danger select.is-active,.select.is-danger select.is-focused,.select.is-danger select:active,.select.is-danger select:focus{-webkit-box-shadow:0 0 0 .125em rgba(191,83,41,.25);box-shadow:0 0 0 .125em rgba(191,83,41,.25)}.has-select select.is-small,.select.is-small{border-radius:2px;font-size:.75rem}.has-select select.is-medium,.select.is-medium{font-size:1.25rem}.has-select select.is-large,.select.is-large{font-size:1.5rem}.has-select select.is-disabled:after,.select.is-disabled:after{border-color:#7a7a7a}.has-select select.is-fullwidth,.has-select select.is-fullwidth select,.select.is-fullwidth,.select.is-fullwidth select{width:100%}.has-select select.is-loading:after,.select.is-loading:after{margin-top:0;position:absolute;right:.625em;top:.625em;-webkit-transform:none;transform:none}.has-select select.is-loading.is-small:after,.select.is-loading.is-small:after{font-size:.75rem}.has-select select.is-loading.is-medium:after,.select.is-loading.is-medium:after{font-size:1.25rem}.has-select select.is-loading.is-large:after,.select.is-loading.is-large:after{font-size:1.5rem}.file{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;position:relative}.file.is-white .file-cta{background-color:#fff;border-color:transparent;color:#0a0a0a}.file.is-white.is-hovered .file-cta,.file.is-white:hover .file-cta{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.file.is-white.is-focused .file-cta,.file.is-white:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em hsla(0,0%,100%,.25);box-shadow:0 0 .5em hsla(0,0%,100%,.25);color:#0a0a0a}.file.is-white.is-active .file-cta,.file.is-white:active .file-cta{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.file.is-black .file-cta{background-color:#0a0a0a;border-color:transparent;color:#fff}.file.is-black.is-hovered .file-cta,.file.is-black:hover .file-cta{background-color:#040404;border-color:transparent;color:#fff}.file.is-black.is-focused .file-cta,.file.is-black:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em hsla(0,0%,4%,.25);box-shadow:0 0 .5em hsla(0,0%,4%,.25);color:#fff}.file.is-black.is-active .file-cta,.file.is-black:active .file-cta{background-color:#000;border-color:transparent;color:#fff}.file.is-light .file-cta{background-color:#f5f5f5;border-color:transparent;color:#1f2d3d}.file.is-light.is-hovered .file-cta,.file.is-light:hover .file-cta{background-color:#eee;border-color:transparent;color:#1f2d3d}.file.is-light.is-focused .file-cta,.file.is-light:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em hsla(0,0%,96%,.25);box-shadow:0 0 .5em hsla(0,0%,96%,.25);color:#1f2d3d}.file.is-light.is-active .file-cta,.file.is-light:active .file-cta{background-color:#e8e8e8;border-color:transparent;color:#1f2d3d}.file.is-dark .file-cta{background-color:#1f2d3d;border-color:transparent;color:#f5f5f5}.file.is-dark.is-hovered .file-cta,.file.is-dark:hover .file-cta{background-color:#1b2735;border-color:transparent;color:#f5f5f5}.file.is-dark.is-focused .file-cta,.file.is-dark:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(31,45,61,.25);box-shadow:0 0 .5em rgba(31,45,61,.25);color:#f5f5f5}.file.is-dark.is-active .file-cta,.file.is-dark:active .file-cta{background-color:#16212c;border-color:transparent;color:#f5f5f5}.file.is-primary .file-cta{background-color:#2a9d8f;border-color:transparent;color:#fff}.file.is-primary.is-hovered .file-cta,.file.is-primary:hover .file-cta{background-color:#279386;border-color:transparent;color:#fff}.file.is-primary.is-focused .file-cta,.file.is-primary:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(42,157,143,.25);box-shadow:0 0 .5em rgba(42,157,143,.25);color:#fff}.file.is-primary.is-active .file-cta,.file.is-primary:active .file-cta{background-color:#25897d;border-color:transparent;color:#fff}.file.is-link .file-cta{background-color:#2a9d8f;border-color:transparent;color:#fff}.file.is-link.is-hovered .file-cta,.file.is-link:hover .file-cta{background-color:#279386;border-color:transparent;color:#fff}.file.is-link.is-focused .file-cta,.file.is-link:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(42,157,143,.25);box-shadow:0 0 .5em rgba(42,157,143,.25);color:#fff}.file.is-link.is-active .file-cta,.file.is-link:active .file-cta{background-color:#25897d;border-color:transparent;color:#fff}.file.is-info .file-cta{background-color:#4d7ec8;border-color:transparent;color:#fff}.file.is-info.is-hovered .file-cta,.file.is-info:hover .file-cta{background-color:#4377c5;border-color:transparent;color:#fff}.file.is-info.is-focused .file-cta,.file.is-info:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(77,126,200,.25);box-shadow:0 0 .5em rgba(77,126,200,.25);color:#fff}.file.is-info.is-active .file-cta,.file.is-info:active .file-cta{background-color:#3b70c0;border-color:transparent;color:#fff}.file.is-success .file-cta{background-color:#2ab27b;border-color:transparent;color:#fff}.file.is-success.is-hovered .file-cta,.file.is-success:hover .file-cta{background-color:#28a874;border-color:transparent;color:#fff}.file.is-success.is-focused .file-cta,.file.is-success:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(42,178,123,.25);box-shadow:0 0 .5em rgba(42,178,123,.25);color:#fff}.file.is-success.is-active .file-cta,.file.is-success:active .file-cta{background-color:#259d6d;border-color:transparent;color:#fff}.file.is-warning .file-cta{background-color:#f39c12;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-hovered .file-cta,.file.is-warning:hover .file-cta{background-color:#ec960c;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-focused .file-cta,.file.is-warning:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(243,156,18,.25);box-shadow:0 0 .5em rgba(243,156,18,.25);color:rgba(0,0,0,.7)}.file.is-warning.is-active .file-cta,.file.is-warning:active .file-cta{background-color:#e08e0b;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-danger .file-cta{background-color:#bf5329;border-color:transparent;color:#fff}.file.is-danger.is-hovered .file-cta,.file.is-danger:hover .file-cta{background-color:#b54e27;border-color:transparent;color:#fff}.file.is-danger.is-focused .file-cta,.file.is-danger:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(191,83,41,.25);box-shadow:0 0 .5em rgba(191,83,41,.25);color:#fff}.file.is-danger.is-active .file-cta,.file.is-danger:active .file-cta{background-color:#aa4a24;border-color:transparent;color:#fff}.file.is-small{font-size:.75rem}.file.is-medium{font-size:1.25rem}.file.is-medium .file-icon .fa{font-size:21px}.file.is-large{font-size:1.5rem}.file.is-large .file-icon .fa{font-size:28px}.file.has-name .file-cta{border-bottom-right-radius:0;border-top-right-radius:0}.file.has-name .file-name{border-bottom-left-radius:0;border-top-left-radius:0}.file.has-name.is-empty .file-cta{border-radius:2px}.file.has-name.is-empty .file-name{display:none}.file.is-boxed .file-cta,.file.is-boxed .file-label{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.file.is-boxed .file-cta{height:auto;padding:1em 3em}.file.is-boxed .file-name{border-width:0 1px 1px}.file.is-boxed .file-icon{height:1.5em;width:1.5em}.file.is-boxed .file-icon .fa{font-size:21px}.file.is-boxed.is-small .file-icon .fa{font-size:14px}.file.is-boxed.is-medium .file-icon .fa{font-size:28px}.file.is-boxed.is-large .file-icon .fa{font-size:35px}.file.is-boxed.has-name .file-cta{border-radius:2px 2px 0 0}.file.is-boxed.has-name .file-name{border-radius:0 0 2px 2px;border-width:0 1px 1px}.file.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.file.is-fullwidth .file-label{width:100%}.file.is-fullwidth .file-name{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;max-width:none}.file.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.file.is-right .file-cta{border-radius:0 2px 2px 0}.file.is-right .file-name{border-radius:2px 0 0 2px;border-width:1px 0 1px 1px;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.file-label{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;overflow:hidden;position:relative}.file-label:hover .file-cta{background-color:#eee;color:#363636}.file-label:hover .file-name{border-color:#d5d5d5}.file-label:active .file-cta{background-color:#e8e8e8;color:#363636}.file-label:active .file-name{border-color:#cfcfcf}.file-input{height:100%;left:0;opacity:0;outline:none;position:absolute;top:0;width:100%}.file-cta,.file-name{border-color:#dbdbdb;border-radius:2px;font-size:1em;padding-left:1em;padding-right:1em;white-space:nowrap}.file-cta{background-color:#f5f5f5;color:#4a4a4a}.file-name{border-color:#dbdbdb;border-style:solid;border-width:1px 1px 1px 0;display:block;max-width:16em;overflow:hidden;text-align:left;text-overflow:ellipsis}.file-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:1em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:.5em;width:1em}.file-icon .fa{font-size:14px}.label{color:#363636;display:block;font-size:1rem;font-weight:700}.label:not(:last-child){margin-bottom:.5em}.label.is-small{font-size:.75rem}.label.is-medium{font-size:1.25rem}.label.is-large{font-size:1.5rem}.help{display:block;font-size:.75rem;margin-top:.25rem}.help.is-white{color:#fff}.help.is-black{color:#0a0a0a}.help.is-light{color:#f5f5f5}.help.is-dark{color:#1f2d3d}.help.is-link,.help.is-primary{color:#2a9d8f}.help.is-info{color:#4d7ec8}.help.is-success{color:#2ab27b}.help.is-warning{color:#f39c12}.help.is-danger{color:#bf5329}.field:not(:last-child){margin-bottom:.75rem}.field.has-addons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.field.has-addons .control:not(:last-child){margin-right:-1px}.field.has-addons .control:not(:first-child):not(:last-child) .button,.field.has-addons .control:not(:first-child):not(:last-child) .has-select select select,.field.has-addons .control:not(:first-child):not(:last-child) .input,.field.has-addons .control:not(:first-child):not(:last-child) .select select,.has-select .field.has-addons .control:not(:first-child):not(:last-child) select select{border-radius:0}.field.has-addons .control:first-child:not(:only-child) .button,.field.has-addons .control:first-child:not(:only-child) .has-select select select,.field.has-addons .control:first-child:not(:only-child) .input,.field.has-addons .control:first-child:not(:only-child) .select select,.has-select .field.has-addons .control:first-child:not(:only-child) select select{border-bottom-right-radius:0;border-top-right-radius:0}.field.has-addons .control:last-child:not(:only-child) .button,.field.has-addons .control:last-child:not(:only-child) .has-select select select,.field.has-addons .control:last-child:not(:only-child) .input,.field.has-addons .control:last-child:not(:only-child) .select select,.has-select .field.has-addons .control:last-child:not(:only-child) select select{border-bottom-left-radius:0;border-top-left-radius:0}.field.has-addons .control .button:not([disabled]).is-hovered,.field.has-addons .control .button:not([disabled]):hover,.field.has-addons .control .has-select select select:not([disabled]).is-hovered,.field.has-addons .control .has-select select select:not([disabled]):hover,.field.has-addons .control .input:not([disabled]).is-hovered,.field.has-addons .control .input:not([disabled]):hover,.field.has-addons .control .select select:not([disabled]).is-hovered,.field.has-addons .control .select select:not([disabled]):hover,.has-select .field.has-addons .control select select:not([disabled]).is-hovered,.has-select .field.has-addons .control select select:not([disabled]):hover{z-index:2}.field.has-addons .control .button:not([disabled]).is-active,.field.has-addons .control .button:not([disabled]).is-focused,.field.has-addons .control .button:not([disabled]):active,.field.has-addons .control .button:not([disabled]):focus,.field.has-addons .control .has-select select select:not([disabled]).is-active,.field.has-addons .control .has-select select select:not([disabled]).is-focused,.field.has-addons .control .has-select select select:not([disabled]):active,.field.has-addons .control .has-select select select:not([disabled]):focus,.field.has-addons .control .input:not([disabled]).is-active,.field.has-addons .control .input:not([disabled]).is-focused,.field.has-addons .control .input:not([disabled]):active,.field.has-addons .control .input:not([disabled]):focus,.field.has-addons .control .select select:not([disabled]).is-active,.field.has-addons .control .select select:not([disabled]).is-focused,.field.has-addons .control .select select:not([disabled]):active,.field.has-addons .control .select select:not([disabled]):focus,.has-select .field.has-addons .control select select:not([disabled]).is-active,.has-select .field.has-addons .control select select:not([disabled]).is-focused,.has-select .field.has-addons .control select select:not([disabled]):active,.has-select .field.has-addons .control select select:not([disabled]):focus{z-index:3}.field.has-addons .control .button:not([disabled]).is-active:hover,.field.has-addons .control .button:not([disabled]).is-focused:hover,.field.has-addons .control .button:not([disabled]):active:hover,.field.has-addons .control .button:not([disabled]):focus:hover,.field.has-addons .control .has-select select select:not([disabled]).is-active:hover,.field.has-addons .control .has-select select select:not([disabled]).is-focused:hover,.field.has-addons .control .has-select select select:not([disabled]):active:hover,.field.has-addons .control .has-select select select:not([disabled]):focus:hover,.field.has-addons .control .input:not([disabled]).is-active:hover,.field.has-addons .control .input:not([disabled]).is-focused:hover,.field.has-addons .control .input:not([disabled]):active:hover,.field.has-addons .control .input:not([disabled]):focus:hover,.field.has-addons .control .select select:not([disabled]).is-active:hover,.field.has-addons .control .select select:not([disabled]).is-focused:hover,.field.has-addons .control .select select:not([disabled]):active:hover,.field.has-addons .control .select select:not([disabled]):focus:hover,.has-select .field.has-addons .control select select:not([disabled]).is-active:hover,.has-select .field.has-addons .control select select:not([disabled]).is-focused:hover,.has-select .field.has-addons .control select select:not([disabled]):active:hover,.has-select .field.has-addons .control select select:not([disabled]):focus:hover{z-index:4}.field.has-addons .control.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.field.has-addons.has-addons-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.field.has-addons.has-addons-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.field.has-addons.has-addons-fullwidth .control{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.field.is-grouped{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.field.is-grouped>.control{-ms-flex-negative:0;flex-shrink:0}.field.is-grouped>.control:not(:last-child){margin-bottom:0;margin-right:.75rem}.field.is-grouped>.control.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.field.is-grouped.is-grouped-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.field.is-grouped.is-grouped-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.field.is-grouped.is-grouped-multiline{-ms-flex-wrap:wrap;flex-wrap:wrap}.field.is-grouped.is-grouped-multiline>.control:last-child,.field.is-grouped.is-grouped-multiline>.control:not(:last-child){margin-bottom:.75rem}.field.is-grouped.is-grouped-multiline:last-child{margin-bottom:-.75rem}.field.is-grouped.is-grouped-multiline:not(:last-child){margin-bottom:0}@media print,screen and (min-width:769px){.field.is-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}}.field-label .label{font-size:inherit}@media screen and (max-width:768px){.field-label{margin-bottom:.5rem}}@media print,screen and (min-width:769px){.field-label{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;margin-right:1.5rem;text-align:right}.field-label.is-small{font-size:.75rem;padding-top:.375em}.field-label.is-normal{padding-top:.375em}.field-label.is-medium{font-size:1.25rem;padding-top:.375em}.field-label.is-large{font-size:1.5rem;padding-top:.375em}}.field-body .field .field{margin-bottom:0}@media print,screen and (min-width:769px){.field-body{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:5;-ms-flex-positive:5;flex-grow:5;-ms-flex-negative:1;flex-shrink:1}.field-body .field{margin-bottom:0}.field-body>.field{-ms-flex-negative:1;flex-shrink:1}.field-body>.field:not(.is-narrow){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.field-body>.field:not(:last-child){margin-right:.75rem}}.control{-webkit-box-sizing:border-box;box-sizing:border-box;clear:both;font-size:1rem;position:relative;text-align:left}.control.has-icons-left .has-select select:focus~.icon,.control.has-icons-left .input:focus~.icon,.control.has-icons-left .select:focus~.icon,.control.has-icons-right .has-select select:focus~.icon,.control.has-icons-right .input:focus~.icon,.control.has-icons-right .select:focus~.icon,.has-select .control.has-icons-left select:focus~.icon,.has-select .control.has-icons-right select:focus~.icon{color:#7a7a7a}.control.has-icons-left .has-select select.is-small~.icon,.control.has-icons-left .input.is-small~.icon,.control.has-icons-left .select.is-small~.icon,.control.has-icons-right .has-select select.is-small~.icon,.control.has-icons-right .input.is-small~.icon,.control.has-icons-right .select.is-small~.icon,.has-select .control.has-icons-left select.is-small~.icon,.has-select .control.has-icons-right select.is-small~.icon{font-size:.75rem}.control.has-icons-left .has-select select.is-medium~.icon,.control.has-icons-left .input.is-medium~.icon,.control.has-icons-left .select.is-medium~.icon,.control.has-icons-right .has-select select.is-medium~.icon,.control.has-icons-right .input.is-medium~.icon,.control.has-icons-right .select.is-medium~.icon,.has-select .control.has-icons-left select.is-medium~.icon,.has-select .control.has-icons-right select.is-medium~.icon{font-size:1.25rem}.control.has-icons-left .has-select select.is-large~.icon,.control.has-icons-left .input.is-large~.icon,.control.has-icons-left .select.is-large~.icon,.control.has-icons-right .has-select select.is-large~.icon,.control.has-icons-right .input.is-large~.icon,.control.has-icons-right .select.is-large~.icon,.has-select .control.has-icons-left select.is-large~.icon,.has-select .control.has-icons-right select.is-large~.icon{font-size:1.5rem}.control.has-icons-left .icon,.control.has-icons-right .icon{color:#dbdbdb;height:2.25em;pointer-events:none;position:absolute;top:0;width:2.25em;z-index:4}.control.has-icons-left .has-select select select,.control.has-icons-left .input,.control.has-icons-left .select select,.has-select .control.has-icons-left select select{padding-left:2.25em}.control.has-icons-left .icon.is-left{left:0}.control.has-icons-right .has-select select select,.control.has-icons-right .input,.control.has-icons-right .select select,.has-select .control.has-icons-right select select{padding-right:2.25em}.control.has-icons-right .icon.is-right{right:0}.control.is-loading:after{position:absolute!important;right:.625em;top:.625em;z-index:4}.control.is-loading.is-small:after{font-size:.75rem}.control.is-loading.is-medium:after{font-size:1.25rem}.control.is-loading.is-large:after{font-size:1.5rem}.icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:1.5rem;width:1.5rem}.icon.is-small{height:1rem;width:1rem}.icon.is-medium{height:2rem;width:2rem}.icon.is-large{height:3rem;width:3rem}.image{display:block;position:relative}.image img{display:block;height:auto;width:100%}.image img.is-rounded{border-radius:290486px}.image.is-1by1 .has-ratio,.image.is-1by1 img,.image.is-1by2 .has-ratio,.image.is-1by2 img,.image.is-1by3 .has-ratio,.image.is-1by3 img,.image.is-2by1 .has-ratio,.image.is-2by1 img,.image.is-2by3 .has-ratio,.image.is-2by3 img,.image.is-3by1 .has-ratio,.image.is-3by1 img,.image.is-3by2 .has-ratio,.image.is-3by2 img,.image.is-3by4 .has-ratio,.image.is-3by4 img,.image.is-3by5 .has-ratio,.image.is-3by5 img,.image.is-4by3 .has-ratio,.image.is-4by3 img,.image.is-4by5 .has-ratio,.image.is-4by5 img,.image.is-5by3 .has-ratio,.image.is-5by3 img,.image.is-5by4 .has-ratio,.image.is-5by4 img,.image.is-9by16 .has-ratio,.image.is-9by16 img,.image.is-16by9 .has-ratio,.image.is-16by9 img,.image.is-square .has-ratio,.image.is-square img{height:100%;width:100%}.image.is-1by1,.image.is-square{padding-top:100%}.image.is-5by4{padding-top:80%}.image.is-4by3{padding-top:75%}.image.is-3by2{padding-top:66.6666%}.image.is-5by3{padding-top:60%}.image.is-16by9{padding-top:56.25%}.image.is-2by1{padding-top:50%}.image.is-3by1{padding-top:33.3333%}.image.is-4by5{padding-top:125%}.image.is-3by4{padding-top:133.3333%}.image.is-2by3{padding-top:150%}.image.is-3by5{padding-top:166.6666%}.image.is-9by16{padding-top:177.7777%}.image.is-1by2{padding-top:200%}.image.is-1by3{padding-top:300%}.image.is-16x16{height:16px;width:16px}.image.is-24x24{height:24px;width:24px}.image.is-32x32{height:32px;width:32px}.image.is-48x48{height:48px;width:48px}.image.is-64x64{height:64px;width:64px}.image.is-96x96{height:96px;width:96px}.image.is-128x128{height:128px;width:128px}.notification{background-color:#f5f5f5;border-radius:2px;padding:1.25rem 2.5rem 1.25rem 1.5rem;position:relative}.notification a:not(.button):not(.dropdown-item){color:currentColor;text-decoration:underline}.notification strong{color:currentColor}.notification code,.notification pre{background:#fff}.notification pre code{background:transparent}.notification>.delete{position:absolute;right:.5rem;top:.5rem}.document .notification h1,.document .notification h2,.document .notification h3,.document .notification h4,.document .notification h5,.notification .content,.notification .document h1,.notification .document h2,.notification .document h3,.notification .document h4,.notification .document h5,.notification .subtitle,.notification .title{color:currentColor}.notification.is-white{background-color:#fff;color:#0a0a0a}.notification.is-black{background-color:#0a0a0a;color:#fff}.notification.is-light{background-color:#f5f5f5;color:#1f2d3d}.notification.is-dark{background-color:#1f2d3d;color:#f5f5f5}.notification.is-link,.notification.is-primary{background-color:#2a9d8f;color:#fff}.notification.is-info{background-color:#4d7ec8;color:#fff}.notification.is-success{background-color:#2ab27b;color:#fff}.notification.is-warning{background-color:#f39c12;color:rgba(0,0,0,.7)}.notification.is-danger{background-color:#bf5329;color:#fff}.progress{-moz-appearance:none;-webkit-appearance:none;border:none;border-radius:290486px;display:block;height:1rem;overflow:hidden;padding:0;width:100%}.progress::-webkit-progress-bar{background-color:#dbdbdb}.progress::-webkit-progress-value{background-color:#4a4a4a}.progress::-moz-progress-bar{background-color:#4a4a4a}.progress::-ms-fill{background-color:#4a4a4a;border:none}.progress:indeterminate{-webkit-animation-duration:1.5s;animation-duration:1.5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:moveIndeterminate;animation-name:moveIndeterminate;-webkit-animation-timing-function:linear;animation-timing-function:linear;background-color:#dbdbdb;background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#4a4a4a),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#4a4a4a 30%,#dbdbdb 0);background-position:0 0;background-repeat:no-repeat;background-size:150% 150%}.progress:indeterminate::-webkit-progress-bar{background-color:transparent}.progress:indeterminate::-moz-progress-bar{background-color:transparent}.progress.is-white::-webkit-progress-value{background-color:#fff}.progress.is-white::-moz-progress-bar{background-color:#fff}.progress.is-white::-ms-fill{background-color:#fff}.progress.is-white:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#fff),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#fff 30%,#dbdbdb 0)}.progress.is-black::-webkit-progress-value{background-color:#0a0a0a}.progress.is-black::-moz-progress-bar{background-color:#0a0a0a}.progress.is-black::-ms-fill{background-color:#0a0a0a}.progress.is-black:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#0a0a0a),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#0a0a0a 30%,#dbdbdb 0)}.progress.is-light::-webkit-progress-value{background-color:#f5f5f5}.progress.is-light::-moz-progress-bar{background-color:#f5f5f5}.progress.is-light::-ms-fill{background-color:#f5f5f5}.progress.is-light:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#f5f5f5),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#f5f5f5 30%,#dbdbdb 0)}.progress.is-dark::-webkit-progress-value{background-color:#1f2d3d}.progress.is-dark::-moz-progress-bar{background-color:#1f2d3d}.progress.is-dark::-ms-fill{background-color:#1f2d3d}.progress.is-dark:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#1f2d3d),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#1f2d3d 30%,#dbdbdb 0)}.progress.is-primary::-webkit-progress-value{background-color:#2a9d8f}.progress.is-primary::-moz-progress-bar{background-color:#2a9d8f}.progress.is-primary::-ms-fill{background-color:#2a9d8f}.progress.is-primary:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#2a9d8f),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#2a9d8f 30%,#dbdbdb 0)}.progress.is-link::-webkit-progress-value{background-color:#2a9d8f}.progress.is-link::-moz-progress-bar{background-color:#2a9d8f}.progress.is-link::-ms-fill{background-color:#2a9d8f}.progress.is-link:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#2a9d8f),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#2a9d8f 30%,#dbdbdb 0)}.progress.is-info::-webkit-progress-value{background-color:#4d7ec8}.progress.is-info::-moz-progress-bar{background-color:#4d7ec8}.progress.is-info::-ms-fill{background-color:#4d7ec8}.progress.is-info:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#4d7ec8),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#4d7ec8 30%,#dbdbdb 0)}.progress.is-success::-webkit-progress-value{background-color:#2ab27b}.progress.is-success::-moz-progress-bar{background-color:#2ab27b}.progress.is-success::-ms-fill{background-color:#2ab27b}.progress.is-success:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#2ab27b),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#2ab27b 30%,#dbdbdb 0)}.progress.is-warning::-webkit-progress-value{background-color:#f39c12}.progress.is-warning::-moz-progress-bar{background-color:#f39c12}.progress.is-warning::-ms-fill{background-color:#f39c12}.progress.is-warning:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#f39c12),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#f39c12 30%,#dbdbdb 0)}.progress.is-danger::-webkit-progress-value{background-color:#bf5329}.progress.is-danger::-moz-progress-bar{background-color:#bf5329}.progress.is-danger::-ms-fill{background-color:#bf5329}.progress.is-danger:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#bf5329),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#bf5329 30%,#dbdbdb 0)}.progress.is-small{height:.75rem}.progress.is-medium{height:1.25rem}.progress.is-large{height:1.5rem}@-webkit-keyframes moveIndeterminate{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes moveIndeterminate{0%{background-position:200% 0}to{background-position:-200% 0}}.table{background-color:#fff;color:#363636}.table td,.table th{border:1px solid #dbdbdb;border-width:0 0 1px;padding:.5em .75em;vertical-align:top}.table td.is-white,.table th.is-white{background-color:#fff;border-color:#fff;color:#0a0a0a}.table td.is-black,.table th.is-black{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.table td.is-light,.table th.is-light{background-color:#f5f5f5;border-color:#f5f5f5;color:#1f2d3d}.table td.is-dark,.table th.is-dark{background-color:#1f2d3d;border-color:#1f2d3d;color:#f5f5f5}.table td.is-link,.table td.is-primary,.table th.is-link,.table th.is-primary{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff}.table td.is-info,.table th.is-info{background-color:#4d7ec8;border-color:#4d7ec8;color:#fff}.table td.is-success,.table th.is-success{background-color:#2ab27b;border-color:#2ab27b;color:#fff}.table td.is-warning,.table th.is-warning{background-color:#f39c12;border-color:#f39c12;color:rgba(0,0,0,.7)}.table td.is-danger,.table th.is-danger{background-color:#bf5329;border-color:#bf5329;color:#fff}.table td.is-narrow,.table th.is-narrow{white-space:nowrap;width:1%}.table td.is-selected,.table th.is-selected{background-color:#2a9d8f;color:#fff}.table td.is-selected a,.table td.is-selected strong,.table th.is-selected a,.table th.is-selected strong{color:currentColor}.table th{color:#363636;text-align:left}.table tr.is-selected{background-color:#2a9d8f;color:#fff}.table tr.is-selected a,.table tr.is-selected strong{color:currentColor}.table tr.is-selected td,.table tr.is-selected th{border-color:#fff;color:currentColor}.table thead{background-color:transparent}.table thead td,.table thead th{border-width:0 0 2px;color:#363636}.table tfoot{background-color:transparent}.table tfoot td,.table tfoot th{border-width:2px 0 0;color:#363636}.table tbody{background-color:transparent}.table tbody tr:last-child td,.table tbody tr:last-child th{border-bottom-width:0}.table.is-bordered td,.table.is-bordered th{border-width:1px}.table.is-bordered tr:last-child td,.table.is-bordered tr:last-child th{border-bottom-width:1px}.table.is-fullwidth{width:100%}.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover,.table.is-hoverable tbody tr:not(.is-selected):hover{background-color:#fafafa}.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover:nth-child(2n){background-color:#f5f5f5}.table.is-narrow td,.table.is-narrow th{padding:.25em .5em}.table.is-striped tbody tr:not(.is-selected):nth-child(2n){background-color:#fafafa}.table-container{-webkit-overflow-scrolling:touch;overflow:auto;overflow-y:hidden;max-width:100%}.tags{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.tags .tag{margin-bottom:.5rem}.tags .tag:not(:last-child){margin-right:.5rem}.tags:last-child{margin-bottom:-.5rem}.tags:not(:last-child){margin-bottom:1rem}.tags.are-medium .tag:not(.is-normal):not(.is-large){font-size:1rem}.tags.are-large .tag:not(.is-normal):not(.is-medium){font-size:1.25rem}.tags.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.tags.is-centered .tag{margin-right:.25rem;margin-left:.25rem}.tags.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.tags.is-right .tag:not(:first-child){margin-left:.5rem}.tags.has-addons .tag,.tags.is-right .tag:not(:last-child){margin-right:0}.tags.has-addons .tag:not(:first-child){margin-left:0;border-bottom-left-radius:0;border-top-left-radius:0}.tags.has-addons .tag:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.tag:not(body){-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:2px;color:#4a4a4a;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:.75rem;height:2em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.5;padding-left:.75em;padding-right:.75em;white-space:nowrap}.tag:not(body) .delete{margin-left:.25rem;margin-right:-.375rem}.tag:not(body).is-white{background-color:#fff;color:#0a0a0a}.tag:not(body).is-black{background-color:#0a0a0a;color:#fff}.tag:not(body).is-light{background-color:#f5f5f5;color:#1f2d3d}.tag:not(body).is-dark{background-color:#1f2d3d;color:#f5f5f5}.tag:not(body).is-link,.tag:not(body).is-primary{background-color:#2a9d8f;color:#fff}.tag:not(body).is-info{background-color:#4d7ec8;color:#fff}.tag:not(body).is-success{background-color:#2ab27b;color:#fff}.tag:not(body).is-warning{background-color:#f39c12;color:rgba(0,0,0,.7)}.tag:not(body).is-danger{background-color:#bf5329;color:#fff}.tag:not(body).is-normal{font-size:.75rem}.tag:not(body).is-medium{font-size:1rem}.tag:not(body).is-large{font-size:1.25rem}.tag:not(body) .icon:first-child:not(:last-child){margin-left:-.375em;margin-right:.1875em}.tag:not(body) .icon:last-child:not(:first-child){margin-left:.1875em;margin-right:-.375em}.tag:not(body) .icon:first-child:last-child{margin-left:-.375em;margin-right:-.375em}.tag:not(body).is-delete{margin-left:1px;padding:0;position:relative;width:2em}.tag:not(body).is-delete:after,.tag:not(body).is-delete:before{background-color:currentColor;content:"";display:block;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;transform-origin:center center}.tag:not(body).is-delete:before{height:1px;width:50%}.tag:not(body).is-delete:after{height:50%;width:1px}.tag:not(body).is-delete:focus,.tag:not(body).is-delete:hover{background-color:#e8e8e8}.tag:not(body).is-delete:active{background-color:#dbdbdb}.tag:not(body).is-rounded{border-radius:290486px}a.tag:hover{text-decoration:underline}.document h1,.document h2,.document h3,.document h4,.document h5,.subtitle,.title{word-break:break-word}.document h1 em,.document h1 span,.document h2 em,.document h2 span,.document h3 em,.document h3 span,.document h4 em,.document h4 span,.document h5 em,.document h5 span,.subtitle em,.subtitle span,.title em,.title span{font-weight:inherit}.document h1 sub,.document h1 sup,.document h2 sub,.document h2 sup,.document h3 sub,.document h3 sup,.document h4 sub,.document h4 sup,.document h5 sub,.document h5 sup,.subtitle sub,.subtitle sup,.title sub,.title sup{font-size:.75em}.document h1 .tag,.document h2 .tag,.document h3 .tag,.document h4 .tag,.document h5 .tag,.subtitle .tag,.title .tag{vertical-align:middle}.document h1,.document h2,.document h3,.document h4,.document h5,.title{color:#363636;font-size:2rem;font-weight:400;line-height:1.125}.document h1 strong,.document h2 strong,.document h3 strong,.document h4 strong,.document h5 strong,.title strong{color:inherit;font-weight:inherit}.document h1+.highlight,.document h2+.highlight,.document h3+.highlight,.document h4+.highlight,.document h5+.highlight,.title+.highlight{margin-top:-.75rem}.document h1:not(.is-spaced)+.subtitle,.document h2:not(.is-spaced)+.subtitle,.document h3:not(.is-spaced)+.subtitle,.document h4:not(.is-spaced)+.subtitle,.document h5:not(.is-spaced)+.subtitle,.title:not(.is-spaced)+.subtitle{margin-top:-1.25rem}.document h1.is-1,.document h2.is-1,.document h3.is-1,.document h4.is-1,.document h5.is-1,.title.is-1{font-size:3rem}.document h1,.document h2.is-2,.document h3.is-2,.document h4.is-2,.document h5.is-2,.title.is-2{font-size:2.5rem}.document h1.is-3,.document h2,.document h3.is-3,.document h4.is-3,.document h5.is-3,.title.is-3{font-size:2rem}.document h1.is-4,.document h2.is-4,.document h3,.document h4.is-4,.document h5.is-4,.title.is-4{font-size:1.5rem}.document h1.is-5,.document h2.is-5,.document h3.is-5,.document h4,.document h5.is-5,.title.is-5{font-size:1.25rem}.document h1.is-6,.document h2.is-6,.document h3.is-6,.document h4.is-6,.document h5,.title.is-6{font-size:1rem}.document h1.is-7,.document h2.is-7,.document h3.is-7,.document h4.is-7,.document h5.is-7,.title.is-7{font-size:.75rem}.subtitle{color:#4a4a4a;font-size:1.25rem;font-weight:400;line-height:1.25}.subtitle strong{color:#363636;font-weight:600}.document .subtitle:not(.is-spaced)+h1,.document .subtitle:not(.is-spaced)+h2,.document .subtitle:not(.is-spaced)+h3,.document .subtitle:not(.is-spaced)+h4,.document .subtitle:not(.is-spaced)+h5,.subtitle:not(.is-spaced)+.title{margin-top:-1.25rem}.subtitle.is-1{font-size:3rem}.document h1.subtitle,.subtitle.is-2{font-size:2.5rem}.document h2.subtitle,.subtitle.is-3{font-size:2rem}.document h3.subtitle,.subtitle.is-4{font-size:1.5rem}.document h4.subtitle,.subtitle.is-5{font-size:1.25rem}.document h5.subtitle,.subtitle.is-6{font-size:1rem}.subtitle.is-7{font-size:.75rem}.heading{display:block;font-size:11px;letter-spacing:1px;margin-bottom:5px;text-transform:uppercase}.highlight{font-weight:400;max-width:100%;overflow:hidden;padding:0}.highlight pre{overflow:auto;max-width:100%}.number{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:290486px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:1.25rem;height:2em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:1.5rem;min-width:2.5em;padding:.25rem .5rem;text-align:center;vertical-align:top}.breadcrumb{font-size:1rem;white-space:nowrap}.breadcrumb a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#2a9d8f;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0 .75em}.breadcrumb a:hover{color:#363636}.breadcrumb li{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.breadcrumb li:first-child a{padding-left:0}.breadcrumb li.is-active a{color:#363636;cursor:default;pointer-events:none}.breadcrumb li+li:before{color:#b5b5b5;content:"/"}.breadcrumb ol,.breadcrumb ul{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.breadcrumb .icon:first-child{margin-right:.5em}.breadcrumb .icon:last-child{margin-left:.5em}.breadcrumb.is-centered ol,.breadcrumb.is-centered ul{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.breadcrumb.is-right ol,.breadcrumb.is-right ul{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.breadcrumb.is-small{font-size:.75rem}.breadcrumb.is-medium{font-size:1.25rem}.breadcrumb.is-large{font-size:1.5rem}.breadcrumb.has-arrow-separator li+li:before{content:"\2192"}.breadcrumb.has-bullet-separator li+li:before{content:"\2022"}.breadcrumb.has-dot-separator li+li:before{content:"\B7"}.breadcrumb.has-succeeds-separator li+li:before{content:"\227B"}.card{background-color:#fff;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);color:#4a4a4a;max-width:100%;position:relative}.card-header{background-color:transparent;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-shadow:0 1px 2px hsla(0,0%,4%,.1);box-shadow:0 1px 2px hsla(0,0%,4%,.1)}.card-header,.card-header-title{display:-webkit-box;display:-ms-flexbox;display:flex}.card-header-title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#363636;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;font-weight:700;padding:.75rem}.card-header-icon,.card-header-title.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.card-header-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;padding:.75rem}.card-image{display:block;position:relative}.card-content{background-color:transparent;padding:1.5rem}.card-footer{background-color:transparent;border-top:1px solid #dbdbdb;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex}.card-footer-item,.sidebar-icons-container .card-footer>a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:.75rem}.card-footer-item:not(:last-child),.sidebar-icons-container .card-footer>a:not(:last-child){border-right:1px solid #dbdbdb}.card .media:not(:last-child){margin-bottom:.75rem}.dropdown{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;position:relative;vertical-align:top}.dropdown.is-active .dropdown-menu,.dropdown.is-hoverable:hover .dropdown-menu{display:block}.dropdown.is-right .dropdown-menu{left:auto;right:0}.dropdown.is-up .dropdown-menu{bottom:100%;padding-bottom:4px;padding-top:0;top:auto}.dropdown-menu{display:none;left:0;min-width:12rem;padding-top:4px;position:absolute;top:100%;z-index:20}.dropdown-content{background-color:#fff;border-radius:2px;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);padding-bottom:.5rem;padding-top:.5rem}.dropdown-item{color:#4a4a4a;display:block;font-size:.875rem;line-height:1.5;padding:.375rem 1rem;position:relative}a.dropdown-item,button.dropdown-item{padding-right:3rem;text-align:left;white-space:nowrap;width:100%}a.dropdown-item:hover,button.dropdown-item:hover{background-color:#f5f5f5;color:#0a0a0a}a.dropdown-item.is-active,button.dropdown-item.is-active{background-color:#2a9d8f;color:#fff}.dropdown-divider{background-color:#dbdbdb;border:none;display:block;height:1px;margin:.5rem 0}.level{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.level code{border-radius:2px}.level img{display:inline-block;vertical-align:top}.level.is-mobile,.level.is-mobile .level-left,.level.is-mobile .level-right{display:-webkit-box;display:-ms-flexbox;display:flex}.level.is-mobile .level-left+.level-right{margin-top:0}.level.is-mobile .level-item:not(:last-child){margin-bottom:0;margin-right:.75rem}.level.is-mobile .level-item:not(.is-narrow){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}@media print,screen and (min-width:769px){.level{display:-webkit-box;display:-ms-flexbox;display:flex}.level>.level-item:not(.is-narrow){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}}.level-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.document .level-item h1,.document .level-item h2,.document .level-item h3,.document .level-item h4,.document .level-item h5,.level-item .document h1,.level-item .document h2,.level-item .document h3,.level-item .document h4,.level-item .document h5,.level-item .subtitle,.level-item .title{margin-bottom:0}@media screen and (max-width:768px){.level-item:not(:last-child){margin-bottom:.75rem}}.level-left,.level-right{-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.level-left .level-item.is-flexible,.level-right .level-item.is-flexible{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}@media print,screen and (min-width:769px){.level-left .level-item:not(:last-child),.level-right .level-item:not(:last-child){margin-right:.75rem}}.level-left{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}@media screen and (max-width:768px){.level-left+.level-right{margin-top:1.5rem}}@media print,screen and (min-width:769px){.level-left{display:-webkit-box;display:-ms-flexbox;display:flex}}.level-right{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}@media print,screen and (min-width:769px){.level-right{display:-webkit-box;display:-ms-flexbox;display:flex}}.list{background-color:#fff;border-radius:2px;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1)}.list-item{display:block;padding:.5em 1em}.list-item:not(a){color:#4a4a4a}.list-item:first-child,.list-item:last-child{border-top-left-radius:2px;border-top-right-radius:2px}.list-item:not(:last-child){border-bottom:1px solid #dbdbdb}.list-item.is-active{background-color:#2a9d8f;color:#fff}a.list-item{background-color:#f5f5f5;cursor:pointer}.media{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:left}.media .content:not(:last-child){margin-bottom:.75rem}.media .media{border-top:1px solid hsla(0,0%,86%,.5);display:-webkit-box;display:-ms-flexbox;display:flex;padding-top:.75rem}.media .media .content:not(:last-child),.media .media .control:not(:last-child){margin-bottom:.5rem}.media .media .media{padding-top:.5rem}.media .media .media+.media{margin-top:.5rem}.media+.media{border-top:1px solid hsla(0,0%,86%,.5);margin-top:1rem;padding-top:1rem}.media.is-large+.media{margin-top:1.5rem;padding-top:1.5rem}.media-left,.media-right{-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.media-left{margin-right:1rem}.media-right{margin-left:1rem}.media-content{-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;text-align:left}@media screen and (max-width:768px){.media-content{overflow-x:auto}}.menu{font-size:1rem}.menu.is-small{font-size:.75rem}.menu.is-medium{font-size:1.25rem}.menu.is-large{font-size:1.5rem}.menu-list{line-height:1.25}.menu-list a{border-radius:2px;color:#4a4a4a;display:block;padding:.5em .75em}.menu-list a:hover{background-color:#f5f5f5;color:#363636}.menu-list a.is-active{background-color:#2a9d8f;color:#fff}.menu-list li ul{border-left:1px solid #dbdbdb;margin:.75em;padding-left:.75em}.menu-label{color:#7a7a7a;font-size:.75em;letter-spacing:.1em;text-transform:uppercase}.menu-label:not(:first-child){margin-top:1em}.menu-label:not(:last-child){margin-bottom:1em}.message{background-color:#f5f5f5;border-radius:2px;font-size:1rem}.message strong{color:currentColor}.message a:not(.button):not(.tag):not(.dropdown-item){color:currentColor;text-decoration:underline}.message.is-small{font-size:.75rem}.message.is-medium{font-size:1.25rem}.message.is-large{font-size:1.5rem}.message.is-white{background-color:#fff}.message.is-white .message-header{background-color:#fff;color:#0a0a0a}.message.is-white .message-body{border-color:#fff;color:#4d4c4c}.message.is-black{background-color:#fafafa}.message.is-black .message-header{background-color:#0a0a0a;color:#fff}.message.is-black .message-body{border-color:#0a0a0a;color:#090909}.message.is-light{background-color:#fafafa}.message.is-light .message-header{background-color:#f5f5f5;color:#1f2d3d}.message.is-light .message-body{border-color:#f5f5f5;color:#505050}.message.is-dark{background-color:#f8fafc}.message.is-dark .message-header{background-color:#1f2d3d;color:#f5f5f5}.message.is-dark .message-body{border-color:#1f2d3d;color:#1a2532}.message.is-primary{background-color:#f7fdfc}.message.is-primary .message-header{background-color:#2a9d8f;color:#fff}.message.is-primary .message-body{border-color:#2a9d8f;color:#163e39}.message.is-link{background-color:#f7fdfc}.message.is-link .message-header{background-color:#2a9d8f;color:#fff}.message.is-link .message-body{border-color:#2a9d8f;color:#163e39}.message.is-info{background-color:#f7f9fd}.message.is-info .message-header{background-color:#4d7ec8;color:#fff}.message.is-info .message-body{border-color:#4d7ec8;color:#325384}.message.is-success{background-color:#f7fdfb}.message.is-success .message-header{background-color:#2ab27b;color:#fff}.message.is-success .message-body{border-color:#2ab27b;color:#143c2c}.message.is-warning{background-color:#fffbf5}.message.is-warning .message-header{background-color:#f39c12;color:rgba(0,0,0,.7)}.message.is-warning .message-body{border-color:#f39c12;color:#4f340b}.message.is-danger{background-color:#fdf8f7}.message.is-danger .message-header{background-color:#bf5329;color:#fff}.message.is-danger .message-body{border-color:#bf5329;color:#793920}.message-header{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#4a4a4a;border-radius:2px 2px 0 0;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-weight:700;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:1.25;padding:.75em 1em;position:relative}.message-header .delete{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;margin-left:.75em}.message-header+.message-body{border-width:0;border-top-left-radius:0;border-top-right-radius:0}.message-body{border-color:#dbdbdb;border-radius:2px;border-style:solid;border-width:0 0 0 4px;color:#4a4a4a;padding:1.25em 1.5em}.message-body code,.message-body pre{background-color:#fff}.message-body pre code{background-color:transparent}.modal{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;position:fixed;z-index:40}.modal.is-active{display:-webkit-box;display:-ms-flexbox;display:flex}.modal-background{background-color:hsla(0,0%,4%,.86)}.modal-card,.modal-content{margin:0 20px;max-height:calc(100vh - 160px);overflow:auto;position:relative;width:100%}@media print,screen and (min-width:769px){.modal-card,.modal-content{margin:0 auto;max-height:calc(100vh - 40px);width:640px}}.modal-close{background:none;height:40px;position:fixed;right:20px;top:20px;width:40px}.modal-card{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:calc(100vh - 40px);overflow:hidden;-ms-overflow-y:visible}.modal-card,.modal-card-foot,.modal-card-head{display:-webkit-box;display:-ms-flexbox;display:flex}.modal-card-foot,.modal-card-head{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:20px;position:relative}.modal-card-head{border-bottom:1px solid #dbdbdb;border-top-left-radius:2px;border-top-right-radius:2px}.modal-card-title{color:#363636;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;font-size:1.5rem;line-height:1}.modal-card-foot{border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:1px solid #dbdbdb}.modal-card-foot .button:not(:last-child){margin-right:10px}.modal-card-body{-webkit-overflow-scrolling:touch;background-color:#fff;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;overflow:auto;padding:20px}.navbar{background-color:#fff;min-height:3.5rem;position:relative;z-index:30}.navbar.is-white{background-color:#fff;color:#0a0a0a}.navbar.is-white .navbar-brand .navbar-link,.navbar.is-white .navbar-brand>.navbar-item{color:#0a0a0a}.navbar.is-white .navbar-brand .navbar-link.is-active,.navbar.is-white .navbar-brand .navbar-link:hover,.navbar.is-white .navbar-brand>a.navbar-item.is-active,.navbar.is-white .navbar-brand>a.navbar-item:hover{background-color:#f2f2f2;color:#0a0a0a}.navbar.is-white .navbar-brand .navbar-link:after{border-color:#0a0a0a}.navbar.is-white .navbar-burger{color:#0a0a0a}@media screen and (min-width:1024px){.navbar.is-white .navbar-end .navbar-link,.navbar.is-white .navbar-end>.navbar-item,.navbar.is-white .navbar-start .navbar-link,.navbar.is-white .navbar-start>.navbar-item{color:#0a0a0a}.navbar.is-white .navbar-end .navbar-link.is-active,.navbar.is-white .navbar-end .navbar-link:hover,.navbar.is-white .navbar-end>a.navbar-item.is-active,.navbar.is-white .navbar-end>a.navbar-item:hover,.navbar.is-white .navbar-start .navbar-link.is-active,.navbar.is-white .navbar-start .navbar-link:hover,.navbar.is-white .navbar-start>a.navbar-item.is-active,.navbar.is-white .navbar-start>a.navbar-item:hover{background-color:#f2f2f2;color:#0a0a0a}.navbar.is-white .navbar-end .navbar-link:after,.navbar.is-white .navbar-start .navbar-link:after{border-color:#0a0a0a}.navbar.is-white .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-white .navbar-item.has-dropdown:hover .navbar-link{background-color:#f2f2f2;color:#0a0a0a}.navbar.is-white .navbar-dropdown a.navbar-item.is-active{background-color:#fff;color:#0a0a0a}}.navbar.is-black{background-color:#0a0a0a;color:#fff}.navbar.is-black .navbar-brand .navbar-link,.navbar.is-black .navbar-brand>.navbar-item{color:#fff}.navbar.is-black .navbar-brand .navbar-link.is-active,.navbar.is-black .navbar-brand .navbar-link:hover,.navbar.is-black .navbar-brand>a.navbar-item.is-active,.navbar.is-black .navbar-brand>a.navbar-item:hover{background-color:#000;color:#fff}.navbar.is-black .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-black .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-black .navbar-end .navbar-link,.navbar.is-black .navbar-end>.navbar-item,.navbar.is-black .navbar-start .navbar-link,.navbar.is-black .navbar-start>.navbar-item{color:#fff}.navbar.is-black .navbar-end .navbar-link.is-active,.navbar.is-black .navbar-end .navbar-link:hover,.navbar.is-black .navbar-end>a.navbar-item.is-active,.navbar.is-black .navbar-end>a.navbar-item:hover,.navbar.is-black .navbar-start .navbar-link.is-active,.navbar.is-black .navbar-start .navbar-link:hover,.navbar.is-black .navbar-start>a.navbar-item.is-active,.navbar.is-black .navbar-start>a.navbar-item:hover{background-color:#000;color:#fff}.navbar.is-black .navbar-end .navbar-link:after,.navbar.is-black .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-black .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-black .navbar-item.has-dropdown:hover .navbar-link{background-color:#000;color:#fff}.navbar.is-black .navbar-dropdown a.navbar-item.is-active{background-color:#0a0a0a;color:#fff}}.navbar.is-light{background-color:#f5f5f5;color:#1f2d3d}.navbar.is-light .navbar-brand .navbar-link,.navbar.is-light .navbar-brand>.navbar-item{color:#1f2d3d}.navbar.is-light .navbar-brand .navbar-link.is-active,.navbar.is-light .navbar-brand .navbar-link:hover,.navbar.is-light .navbar-brand>a.navbar-item.is-active,.navbar.is-light .navbar-brand>a.navbar-item:hover{background-color:#e8e8e8;color:#1f2d3d}.navbar.is-light .navbar-brand .navbar-link:after{border-color:#1f2d3d}.navbar.is-light .navbar-burger{color:#1f2d3d}@media screen and (min-width:1024px){.navbar.is-light .navbar-end .navbar-link,.navbar.is-light .navbar-end>.navbar-item,.navbar.is-light .navbar-start .navbar-link,.navbar.is-light .navbar-start>.navbar-item{color:#1f2d3d}.navbar.is-light .navbar-end .navbar-link.is-active,.navbar.is-light .navbar-end .navbar-link:hover,.navbar.is-light .navbar-end>a.navbar-item.is-active,.navbar.is-light .navbar-end>a.navbar-item:hover,.navbar.is-light .navbar-start .navbar-link.is-active,.navbar.is-light .navbar-start .navbar-link:hover,.navbar.is-light .navbar-start>a.navbar-item.is-active,.navbar.is-light .navbar-start>a.navbar-item:hover{background-color:#e8e8e8;color:#1f2d3d}.navbar.is-light .navbar-end .navbar-link:after,.navbar.is-light .navbar-start .navbar-link:after{border-color:#1f2d3d}.navbar.is-light .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-light .navbar-item.has-dropdown:hover .navbar-link{background-color:#e8e8e8;color:#1f2d3d}.navbar.is-light .navbar-dropdown a.navbar-item.is-active{background-color:#f5f5f5;color:#1f2d3d}}.navbar.is-dark{background-color:#1f2d3d;color:#f5f5f5}.navbar.is-dark .navbar-brand .navbar-link,.navbar.is-dark .navbar-brand>.navbar-item{color:#f5f5f5}.navbar.is-dark .navbar-brand .navbar-link.is-active,.navbar.is-dark .navbar-brand .navbar-link:hover,.navbar.is-dark .navbar-brand>a.navbar-item.is-active,.navbar.is-dark .navbar-brand>a.navbar-item:hover{background-color:#16212c;color:#f5f5f5}.navbar.is-dark .navbar-brand .navbar-link:after{border-color:#f5f5f5}.navbar.is-dark .navbar-burger{color:#f5f5f5}@media screen and (min-width:1024px){.navbar.is-dark .navbar-end .navbar-link,.navbar.is-dark .navbar-end>.navbar-item,.navbar.is-dark .navbar-start .navbar-link,.navbar.is-dark .navbar-start>.navbar-item{color:#f5f5f5}.navbar.is-dark .navbar-end .navbar-link.is-active,.navbar.is-dark .navbar-end .navbar-link:hover,.navbar.is-dark .navbar-end>a.navbar-item.is-active,.navbar.is-dark .navbar-end>a.navbar-item:hover,.navbar.is-dark .navbar-start .navbar-link.is-active,.navbar.is-dark .navbar-start .navbar-link:hover,.navbar.is-dark .navbar-start>a.navbar-item.is-active,.navbar.is-dark .navbar-start>a.navbar-item:hover{background-color:#16212c;color:#f5f5f5}.navbar.is-dark .navbar-end .navbar-link:after,.navbar.is-dark .navbar-start .navbar-link:after{border-color:#f5f5f5}.navbar.is-dark .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-dark .navbar-item.has-dropdown:hover .navbar-link{background-color:#16212c;color:#f5f5f5}.navbar.is-dark .navbar-dropdown a.navbar-item.is-active{background-color:#1f2d3d;color:#f5f5f5}}.navbar.is-primary{background-color:#2a9d8f;color:#fff}.navbar.is-primary .navbar-brand .navbar-link,.navbar.is-primary .navbar-brand>.navbar-item{color:#fff}.navbar.is-primary .navbar-brand .navbar-link.is-active,.navbar.is-primary .navbar-brand .navbar-link:hover,.navbar.is-primary .navbar-brand>a.navbar-item.is-active,.navbar.is-primary .navbar-brand>a.navbar-item:hover{background-color:#25897d;color:#fff}.navbar.is-primary .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-primary .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-primary .navbar-end .navbar-link,.navbar.is-primary .navbar-end>.navbar-item,.navbar.is-primary .navbar-start .navbar-link,.navbar.is-primary .navbar-start>.navbar-item{color:#fff}.navbar.is-primary .navbar-end .navbar-link.is-active,.navbar.is-primary .navbar-end .navbar-link:hover,.navbar.is-primary .navbar-end>a.navbar-item.is-active,.navbar.is-primary .navbar-end>a.navbar-item:hover,.navbar.is-primary .navbar-start .navbar-link.is-active,.navbar.is-primary .navbar-start .navbar-link:hover,.navbar.is-primary .navbar-start>a.navbar-item.is-active,.navbar.is-primary .navbar-start>a.navbar-item:hover{background-color:#25897d;color:#fff}.navbar.is-primary .navbar-end .navbar-link:after,.navbar.is-primary .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-primary .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link{background-color:#25897d;color:#fff}.navbar.is-primary .navbar-dropdown a.navbar-item.is-active{background-color:#2a9d8f;color:#fff}}.navbar.is-link{background-color:#2a9d8f;color:#fff}.navbar.is-link .navbar-brand .navbar-link,.navbar.is-link .navbar-brand>.navbar-item{color:#fff}.navbar.is-link .navbar-brand .navbar-link.is-active,.navbar.is-link .navbar-brand .navbar-link:hover,.navbar.is-link .navbar-brand>a.navbar-item.is-active,.navbar.is-link .navbar-brand>a.navbar-item:hover{background-color:#25897d;color:#fff}.navbar.is-link .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-link .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-link .navbar-end .navbar-link,.navbar.is-link .navbar-end>.navbar-item,.navbar.is-link .navbar-start .navbar-link,.navbar.is-link .navbar-start>.navbar-item{color:#fff}.navbar.is-link .navbar-end .navbar-link.is-active,.navbar.is-link .navbar-end .navbar-link:hover,.navbar.is-link .navbar-end>a.navbar-item.is-active,.navbar.is-link .navbar-end>a.navbar-item:hover,.navbar.is-link .navbar-start .navbar-link.is-active,.navbar.is-link .navbar-start .navbar-link:hover,.navbar.is-link .navbar-start>a.navbar-item.is-active,.navbar.is-link .navbar-start>a.navbar-item:hover{background-color:#25897d;color:#fff}.navbar.is-link .navbar-end .navbar-link:after,.navbar.is-link .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-link .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-link .navbar-item.has-dropdown:hover .navbar-link{background-color:#25897d;color:#fff}.navbar.is-link .navbar-dropdown a.navbar-item.is-active{background-color:#2a9d8f;color:#fff}}.navbar.is-info{background-color:#4d7ec8;color:#fff}.navbar.is-info .navbar-brand .navbar-link,.navbar.is-info .navbar-brand>.navbar-item{color:#fff}.navbar.is-info .navbar-brand .navbar-link.is-active,.navbar.is-info .navbar-brand .navbar-link:hover,.navbar.is-info .navbar-brand>a.navbar-item.is-active,.navbar.is-info .navbar-brand>a.navbar-item:hover{background-color:#3b70c0;color:#fff}.navbar.is-info .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-info .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-info .navbar-end .navbar-link,.navbar.is-info .navbar-end>.navbar-item,.navbar.is-info .navbar-start .navbar-link,.navbar.is-info .navbar-start>.navbar-item{color:#fff}.navbar.is-info .navbar-end .navbar-link.is-active,.navbar.is-info .navbar-end .navbar-link:hover,.navbar.is-info .navbar-end>a.navbar-item.is-active,.navbar.is-info .navbar-end>a.navbar-item:hover,.navbar.is-info .navbar-start .navbar-link.is-active,.navbar.is-info .navbar-start .navbar-link:hover,.navbar.is-info .navbar-start>a.navbar-item.is-active,.navbar.is-info .navbar-start>a.navbar-item:hover{background-color:#3b70c0;color:#fff}.navbar.is-info .navbar-end .navbar-link:after,.navbar.is-info .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-info .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-info .navbar-item.has-dropdown:hover .navbar-link{background-color:#3b70c0;color:#fff}.navbar.is-info .navbar-dropdown a.navbar-item.is-active{background-color:#4d7ec8;color:#fff}}.navbar.is-success{background-color:#2ab27b;color:#fff}.navbar.is-success .navbar-brand .navbar-link,.navbar.is-success .navbar-brand>.navbar-item{color:#fff}.navbar.is-success .navbar-brand .navbar-link.is-active,.navbar.is-success .navbar-brand .navbar-link:hover,.navbar.is-success .navbar-brand>a.navbar-item.is-active,.navbar.is-success .navbar-brand>a.navbar-item:hover{background-color:#259d6d;color:#fff}.navbar.is-success .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-success .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-success .navbar-end .navbar-link,.navbar.is-success .navbar-end>.navbar-item,.navbar.is-success .navbar-start .navbar-link,.navbar.is-success .navbar-start>.navbar-item{color:#fff}.navbar.is-success .navbar-end .navbar-link.is-active,.navbar.is-success .navbar-end .navbar-link:hover,.navbar.is-success .navbar-end>a.navbar-item.is-active,.navbar.is-success .navbar-end>a.navbar-item:hover,.navbar.is-success .navbar-start .navbar-link.is-active,.navbar.is-success .navbar-start .navbar-link:hover,.navbar.is-success .navbar-start>a.navbar-item.is-active,.navbar.is-success .navbar-start>a.navbar-item:hover{background-color:#259d6d;color:#fff}.navbar.is-success .navbar-end .navbar-link:after,.navbar.is-success .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-success .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-success .navbar-item.has-dropdown:hover .navbar-link{background-color:#259d6d;color:#fff}.navbar.is-success .navbar-dropdown a.navbar-item.is-active{background-color:#2ab27b;color:#fff}}.navbar.is-warning{background-color:#f39c12}.navbar.is-warning,.navbar.is-warning .navbar-brand .navbar-link,.navbar.is-warning .navbar-brand>.navbar-item{color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-brand .navbar-link.is-active,.navbar.is-warning .navbar-brand .navbar-link:hover,.navbar.is-warning .navbar-brand>a.navbar-item.is-active,.navbar.is-warning .navbar-brand>a.navbar-item:hover{background-color:#e08e0b;color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-brand .navbar-link:after{border-color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-burger{color:rgba(0,0,0,.7)}@media screen and (min-width:1024px){.navbar.is-warning .navbar-end .navbar-link,.navbar.is-warning .navbar-end>.navbar-item,.navbar.is-warning .navbar-start .navbar-link,.navbar.is-warning .navbar-start>.navbar-item{color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-end .navbar-link.is-active,.navbar.is-warning .navbar-end .navbar-link:hover,.navbar.is-warning .navbar-end>a.navbar-item.is-active,.navbar.is-warning .navbar-end>a.navbar-item:hover,.navbar.is-warning .navbar-start .navbar-link.is-active,.navbar.is-warning .navbar-start .navbar-link:hover,.navbar.is-warning .navbar-start>a.navbar-item.is-active,.navbar.is-warning .navbar-start>a.navbar-item:hover{background-color:#e08e0b;color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-end .navbar-link:after,.navbar.is-warning .navbar-start .navbar-link:after{border-color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-warning .navbar-item.has-dropdown:hover .navbar-link{background-color:#e08e0b;color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-dropdown a.navbar-item.is-active{background-color:#f39c12;color:rgba(0,0,0,.7)}}.navbar.is-danger{background-color:#bf5329;color:#fff}.navbar.is-danger .navbar-brand .navbar-link,.navbar.is-danger .navbar-brand>.navbar-item{color:#fff}.navbar.is-danger .navbar-brand .navbar-link.is-active,.navbar.is-danger .navbar-brand .navbar-link:hover,.navbar.is-danger .navbar-brand>a.navbar-item.is-active,.navbar.is-danger .navbar-brand>a.navbar-item:hover{background-color:#aa4a24;color:#fff}.navbar.is-danger .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-danger .navbar-burger{color:#fff}@media screen and (min-width:1024px){.navbar.is-danger .navbar-end .navbar-link,.navbar.is-danger .navbar-end>.navbar-item,.navbar.is-danger .navbar-start .navbar-link,.navbar.is-danger .navbar-start>.navbar-item{color:#fff}.navbar.is-danger .navbar-end .navbar-link.is-active,.navbar.is-danger .navbar-end .navbar-link:hover,.navbar.is-danger .navbar-end>a.navbar-item.is-active,.navbar.is-danger .navbar-end>a.navbar-item:hover,.navbar.is-danger .navbar-start .navbar-link.is-active,.navbar.is-danger .navbar-start .navbar-link:hover,.navbar.is-danger .navbar-start>a.navbar-item.is-active,.navbar.is-danger .navbar-start>a.navbar-item:hover{background-color:#aa4a24;color:#fff}.navbar.is-danger .navbar-end .navbar-link:after,.navbar.is-danger .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-danger .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-danger .navbar-item.has-dropdown:hover .navbar-link{background-color:#aa4a24;color:#fff}.navbar.is-danger .navbar-dropdown a.navbar-item.is-active{background-color:#bf5329;color:#fff}}.navbar>.container{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;min-height:3.5rem;width:100%}.navbar.has-shadow{-webkit-box-shadow:0 2px 0 0 #f5f5f5;box-shadow:0 2px 0 0 #f5f5f5}.navbar.is-fixed-bottom,.navbar.is-fixed-top{left:0;position:fixed;right:0;z-index:30}.navbar.is-fixed-bottom{bottom:0}.navbar.is-fixed-bottom.has-shadow{-webkit-box-shadow:0 -2px 0 0 #f5f5f5;box-shadow:0 -2px 0 0 #f5f5f5}.navbar.is-fixed-top{top:0}body.has-navbar-fixed-top,html.has-navbar-fixed-top{padding-top:3.5rem}body.has-navbar-fixed-bottom,html.has-navbar-fixed-bottom{padding-bottom:3.5rem}.navbar-brand,.navbar-tabs{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;min-height:3.5rem}.navbar-brand a.navbar-item:hover{background-color:transparent}.navbar-tabs{-webkit-overflow-scrolling:touch;max-width:100vw;overflow-x:auto;overflow-y:hidden}.navbar-burger{color:#4a4a4a;cursor:pointer;display:block;height:3.5rem;position:relative;width:3.5rem;margin-left:auto}.navbar-burger span{background-color:currentColor;display:block;height:1px;left:calc(50% - 8px);position:absolute;-webkit-transform-origin:center;transform-origin:center;-webkit-transition-duration:86ms;transition-duration:86ms;-webkit-transition-property:background-color,opacity,-webkit-transform;transition-property:background-color,opacity,-webkit-transform;transition-property:background-color,opacity,transform;transition-property:background-color,opacity,transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;width:16px}.navbar-burger span:first-child{top:calc(50% - 6px)}.navbar-burger span:nth-child(2){top:calc(50% - 1px)}.navbar-burger span:nth-child(3){top:calc(50% + 4px)}.navbar-burger:hover{background-color:rgba(0,0,0,.05)}.navbar-burger.is-active span:first-child{-webkit-transform:translateY(5px) rotate(45deg);transform:translateY(5px) rotate(45deg)}.navbar-burger.is-active span:nth-child(2){opacity:0}.navbar-burger.is-active span:nth-child(3){-webkit-transform:translateY(-5px) rotate(-45deg);transform:translateY(-5px) rotate(-45deg)}.navbar-menu{display:none}.navbar-item,.navbar-link{color:#4a4a4a;display:block;line-height:1.5;padding:.5rem .75rem;position:relative}.navbar-item .icon:only-child,.navbar-link .icon:only-child{margin-left:-.25rem;margin-right:-.25rem}.navbar-link,a.navbar-item{cursor:pointer}.navbar-link.is-active,.navbar-link:hover,a.navbar-item.is-active,a.navbar-item:hover{background-color:#fafafa;color:#2a9d8f}.navbar-item{display:block;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.navbar-item img{max-height:1.75rem}.navbar-item.has-dropdown{padding:0}.navbar-item.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.navbar-item.is-tab{border-bottom:1px solid transparent;min-height:3.5rem;padding-bottom:calc(.5rem - 1px)}.navbar-item.is-tab.is-active,.navbar-item.is-tab:hover{background-color:transparent;border-bottom-color:#2a9d8f}.navbar-item.is-tab.is-active{border-bottom-style:solid;border-bottom-width:3px;color:#2a9d8f;padding-bottom:calc(.5rem - 3px)}.navbar-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.navbar-link:not(.is-arrowless){padding-right:2.5em}.navbar-link:not(.is-arrowless):after{border-color:#2a9d8f;margin-top:-.375em;right:1.125em}.navbar-dropdown{font-size:.875rem;padding-bottom:.5rem;padding-top:.5rem}.navbar-dropdown .navbar-item{padding-left:1.5rem;padding-right:1.5rem}.navbar-divider{background-color:#f5f5f5;border:none;display:none;height:2px;margin:.5rem 0}@media screen and (max-width:1023px){.navbar>.container{display:block}.navbar-brand .navbar-item,.navbar-tabs .navbar-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.navbar-link:after{display:none}.navbar-menu{background-color:#fff;-webkit-box-shadow:0 8px 16px hsla(0,0%,4%,.1);box-shadow:0 8px 16px hsla(0,0%,4%,.1);padding:.5rem 0}.navbar-menu.is-active{display:block}.navbar.is-fixed-bottom-touch,.navbar.is-fixed-top-touch{left:0;position:fixed;right:0;z-index:30}.navbar.is-fixed-bottom-touch{bottom:0}.navbar.is-fixed-bottom-touch.has-shadow{-webkit-box-shadow:0 -2px 3px hsla(0,0%,4%,.1);box-shadow:0 -2px 3px hsla(0,0%,4%,.1)}.navbar.is-fixed-top-touch{top:0}.navbar.is-fixed-top-touch .navbar-menu,.navbar.is-fixed-top .navbar-menu{-webkit-overflow-scrolling:touch;max-height:calc(100vh - 3.5rem);overflow:auto}body.has-navbar-fixed-top-touch,html.has-navbar-fixed-top-touch{padding-top:3.5rem}body.has-navbar-fixed-bottom-touch,html.has-navbar-fixed-bottom-touch{padding-bottom:3.5rem}}@media screen and (min-width:1024px){.navbar,.navbar-end,.navbar-menu,.navbar-start{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex}.navbar{min-height:3.5rem}.navbar.is-spaced{padding:1rem 2rem}.navbar.is-spaced .navbar-end,.navbar.is-spaced .navbar-start{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.navbar.is-spaced .navbar-link,.navbar.is-spaced a.navbar-item{border-radius:2px}.navbar.is-transparent .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-transparent .navbar-item.has-dropdown.is-hoverable:hover .navbar-link,.navbar.is-transparent .navbar-link.is-active,.navbar.is-transparent .navbar-link:hover,.navbar.is-transparent a.navbar-item.is-active,.navbar.is-transparent a.navbar-item:hover{background-color:transparent!important}.navbar.is-transparent .navbar-dropdown a.navbar-item:hover{background-color:#f5f5f5;color:#0a0a0a}.navbar.is-transparent .navbar-dropdown a.navbar-item.is-active{background-color:#f5f5f5;color:#2a9d8f}.navbar-burger{display:none}.navbar-item,.navbar-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.navbar-item,.navbar-link{display:-webkit-box;display:-ms-flexbox;display:flex}.navbar-item.has-dropdown{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.navbar-item.has-dropdown-up .navbar-link:after{-webkit-transform:rotate(135deg) translate(.25em,-.25em);transform:rotate(135deg) translate(.25em,-.25em)}.navbar-item.has-dropdown-up .navbar-dropdown{border-bottom:2px solid #dbdbdb;border-radius:2px 2px 0 0;border-top:none;bottom:100%;-webkit-box-shadow:0 -8px 8px hsla(0,0%,4%,.1);box-shadow:0 -8px 8px hsla(0,0%,4%,.1);top:auto}.navbar-item.is-active .navbar-dropdown,.navbar-item.is-hoverable:hover .navbar-dropdown{display:block}.navbar-item.is-active .navbar-dropdown.is-boxed,.navbar-item.is-hoverable:hover .navbar-dropdown.is-boxed,.navbar.is-spaced .navbar-item.is-active .navbar-dropdown,.navbar.is-spaced .navbar-item.is-hoverable:hover .navbar-dropdown{opacity:1;pointer-events:auto;-webkit-transform:translateY(0);transform:translateY(0)}.navbar-menu{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.navbar-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin-right:auto}.navbar-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-left:auto}.navbar-dropdown{background-color:#fff;border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:2px solid #dbdbdb;-webkit-box-shadow:0 8px 8px hsla(0,0%,4%,.1);box-shadow:0 8px 8px hsla(0,0%,4%,.1);display:none;font-size:.875rem;left:0;min-width:100%;position:absolute;top:100%;z-index:20}.navbar-dropdown .navbar-item{padding:.375rem 1rem;white-space:nowrap}.navbar-dropdown a.navbar-item{padding-right:3rem}.navbar-dropdown a.navbar-item:hover{background-color:#f5f5f5;color:#0a0a0a}.navbar-dropdown a.navbar-item.is-active{background-color:#f5f5f5;color:#2a9d8f}.navbar-dropdown.is-boxed,.navbar.is-spaced .navbar-dropdown{border-radius:2px;border-top:none;-webkit-box-shadow:0 8px 8px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 8px 8px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);display:block;opacity:0;pointer-events:none;top:calc(100% + -4px);-webkit-transform:translateY(-5px);transform:translateY(-5px);-webkit-transition-duration:86ms;transition-duration:86ms;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.navbar-dropdown.is-right{left:auto;right:0}.navbar-divider{display:block}.container>.navbar .navbar-brand,.navbar>.container .navbar-brand{margin-left:-.75rem}.container>.navbar .navbar-menu,.navbar>.container .navbar-menu{margin-right:-.75rem}.navbar.is-fixed-bottom-desktop,.navbar.is-fixed-top-desktop{left:0;position:fixed;right:0;z-index:30}.navbar.is-fixed-bottom-desktop{bottom:0}.navbar.is-fixed-bottom-desktop.has-shadow{-webkit-box-shadow:0 -2px 3px hsla(0,0%,4%,.1);box-shadow:0 -2px 3px hsla(0,0%,4%,.1)}.navbar.is-fixed-top-desktop{top:0}body.has-navbar-fixed-top-desktop,html.has-navbar-fixed-top-desktop{padding-top:3.5rem}body.has-navbar-fixed-bottom-desktop,html.has-navbar-fixed-bottom-desktop{padding-bottom:3.5rem}body.has-spaced-navbar-fixed-top,html.has-spaced-navbar-fixed-top{padding-top:5.5rem}body.has-spaced-navbar-fixed-bottom,html.has-spaced-navbar-fixed-bottom{padding-bottom:5.5rem}.navbar-link.is-active,a.navbar-item.is-active{color:#0a0a0a}.navbar-link.is-active:not(:hover),a.navbar-item.is-active:not(:hover){background-color:transparent}.navbar-item.has-dropdown.is-active .navbar-link,.navbar-item.has-dropdown:hover .navbar-link{background-color:#fafafa}}.hero.is-fullheight-with-navbar{min-height:calc(100vh - 3.5rem)}.pagination{font-size:1rem;margin:-.25rem}.pagination.is-small{font-size:.75rem}.pagination.is-medium{font-size:1.25rem}.pagination.is-large{font-size:1.5rem}.pagination.is-rounded .pagination-next,.pagination.is-rounded .pagination-previous{padding-left:1em;padding-right:1em;border-radius:290486px}.pagination.is-rounded .pagination-link{border-radius:290486px}.pagination,.pagination-list{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center}.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous{font-size:1em;padding-left:.5em;padding-right:.5em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:.25rem;text-align:center}.pagination-link,.pagination-next,.pagination-previous{border-color:#dbdbdb;color:#363636;min-width:2.25em}.pagination-link:hover,.pagination-next:hover,.pagination-previous:hover{border-color:#b5b5b5;color:#363636}.pagination-link:focus,.pagination-next:focus,.pagination-previous:focus{border-color:#3273dc}.pagination-link:active,.pagination-next:active,.pagination-previous:active{-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2)}.pagination-link[disabled],.pagination-next[disabled],.pagination-previous[disabled]{background-color:#dbdbdb;border-color:#dbdbdb;-webkit-box-shadow:none;box-shadow:none;color:#7a7a7a;opacity:.5}.pagination-next,.pagination-previous{padding-left:.75em;padding-right:.75em;white-space:nowrap}.pagination-link.is-current{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff}.pagination-ellipsis{color:#b5b5b5;pointer-events:none}.pagination-list{-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (max-width:768px){.pagination{-ms-flex-wrap:wrap;flex-wrap:wrap}.pagination-list li,.pagination-next,.pagination-previous{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}}@media print,screen and (min-width:769px){.pagination-list{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.pagination-previous{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.pagination-next{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.pagination{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.pagination.is-centered .pagination-previous{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.pagination.is-centered .pagination-list{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.pagination.is-centered .pagination-next{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.pagination.is-right .pagination-previous{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.pagination.is-right .pagination-next{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.pagination.is-right .pagination-list{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}}.panel{font-size:1rem}.panel:not(:last-child){margin-bottom:1.5rem}.panel-block,.panel-heading,.panel-tabs{border-bottom:1px solid #dbdbdb;border-left:1px solid #dbdbdb;border-right:1px solid #dbdbdb}.panel-block:first-child,.panel-heading:first-child,.panel-tabs:first-child{border-top:1px solid #dbdbdb}.panel-heading{background-color:#f5f5f5;border-radius:2px 2px 0 0;color:#363636;font-size:1.25em;font-weight:300;line-height:1.25;padding:.5em .75em}.panel-tabs{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:.875em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.panel-tabs a{border-bottom:1px solid #dbdbdb;margin-bottom:-1px;padding:.5em}.panel-tabs a.is-active{border-bottom-color:#4a4a4a;color:#363636}.panel-list a{color:#4a4a4a}.panel-list a:hover{color:#2a9d8f}.panel-block{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#363636;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:.5em .75em}.panel-block input[type=checkbox]{margin-right:.75em}.panel-block>.control{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;width:100%}.panel-block.is-wrapped{-ms-flex-wrap:wrap;flex-wrap:wrap}.panel-block.is-active{border-left-color:#2a9d8f;color:#363636}.panel-block.is-active .panel-icon{color:#2a9d8f}a.panel-block,label.panel-block{cursor:pointer}a.panel-block:hover,label.panel-block:hover{background-color:#f5f5f5}.panel-icon{display:inline-block;font-size:14px;height:1em;line-height:1em;text-align:center;vertical-align:top;width:1em;color:#7a7a7a;margin-right:.75em}.panel-icon .fa{font-size:inherit;line-height:inherit}.tabs{-webkit-overflow-scrolling:touch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;font-size:1rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden;overflow-x:auto;white-space:nowrap}.tabs,.tabs a{display:-webkit-box;display:-ms-flexbox;display:flex}.tabs a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom-color:#dbdbdb;border-bottom-style:solid;border-bottom-width:1px;color:#4a4a4a;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:-1px;padding:.5em 1em;vertical-align:top}.tabs a:hover{border-bottom-color:#363636;color:#363636}.tabs li{display:block}.tabs li.is-active a{border-bottom-color:#2a9d8f;color:#2a9d8f}.tabs ul{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom-color:#dbdbdb;border-bottom-style:solid;border-bottom-width:1px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.tabs ul.is-center,.tabs ul.is-left{padding-right:.75em}.tabs ul.is-center{-webkit-box-flex:0;-ms-flex:none;flex:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding-left:.75em}.tabs ul.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding-left:.75em}.tabs .icon:first-child{margin-right:.5em}.tabs .icon:last-child{margin-left:.5em}.tabs.is-centered ul{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.tabs.is-right ul{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.tabs.is-boxed a{border:1px solid transparent;border-radius:2px 2px 0 0}.tabs.is-boxed a:hover{background-color:#f5f5f5;border-bottom-color:#dbdbdb}.tabs.is-boxed li.is-active a{background-color:#fff;border-color:#dbdbdb;border-bottom-color:transparent!important}.tabs.is-fullwidth li{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.tabs.is-toggle a{border:1px solid #dbdbdb;margin-bottom:0;position:relative}.tabs.is-toggle a:hover{background-color:#f5f5f5;border-color:#b5b5b5;z-index:2}.tabs.is-toggle li+li{margin-left:-1px}.tabs.is-toggle li:first-child a{border-radius:2px 0 0 2px}.tabs.is-toggle li:last-child a{border-radius:0 2px 2px 0}.tabs.is-toggle li.is-active a{background-color:#2a9d8f;border-color:#2a9d8f;color:#fff;z-index:1}.tabs.is-toggle ul{border-bottom:none}.tabs.is-toggle.is-toggle-rounded li:first-child a{border-bottom-left-radius:290486px;border-top-left-radius:290486px;padding-left:1.25em}.tabs.is-toggle.is-toggle-rounded li:last-child a{border-bottom-right-radius:290486px;border-top-right-radius:290486px;padding-right:1.25em}.tabs.is-small{font-size:.75rem}.tabs.is-medium{font-size:1.25rem}.tabs.is-large{font-size:1.5rem}.column{display:block;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;padding:.75rem}.columns.is-mobile>.column.is-full,.columns.is-mobile>.column.is-narrow{-webkit-box-flex:0;-ms-flex:none;flex:none}.columns.is-mobile>.column.is-full{width:100%}.columns.is-mobile>.column.is-three-quarters{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.columns.is-mobile>.column.is-two-thirds{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.columns.is-mobile>.column.is-half{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.columns.is-mobile>.column.is-one-third{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.columns.is-mobile>.column.is-one-quarter{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.columns.is-mobile>.column.is-one-fifth{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.columns.is-mobile>.column.is-two-fifths{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.columns.is-mobile>.column.is-three-fifths{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.columns.is-mobile>.column.is-four-fifths{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.columns.is-mobile>.column.is-offset-three-quarters{margin-left:75%}.columns.is-mobile>.column.is-offset-two-thirds{margin-left:66.6666%}.columns.is-mobile>.column.is-offset-half{margin-left:50%}.columns.is-mobile>.column.is-offset-one-third{margin-left:33.3333%}.columns.is-mobile>.column.is-offset-one-quarter{margin-left:25%}.columns.is-mobile>.column.is-offset-one-fifth{margin-left:20%}.columns.is-mobile>.column.is-offset-two-fifths{margin-left:40%}.columns.is-mobile>.column.is-offset-three-fifths{margin-left:60%}.columns.is-mobile>.column.is-offset-four-fifths{margin-left:80%}.columns.is-mobile>.column.is-1{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.columns.is-mobile>.column.is-offset-1{margin-left:8.33333333%}.columns.is-mobile>.column.is-2,.document .columns.is-mobile>h1.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.columns.is-mobile>.column.is-offset-2{margin-left:16.66666667%}.columns.is-mobile>.column.is-3,.document .columns.is-mobile>h2.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.columns.is-mobile>.column.is-offset-3{margin-left:25%}.columns.is-mobile>.column.is-4,.document .columns.is-mobile>h3.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.columns.is-mobile>.column.is-offset-4{margin-left:33.33333333%}.columns.is-mobile>.column.is-5,.document .columns.is-mobile>h4.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.columns.is-mobile>.column.is-offset-5{margin-left:41.66666667%}.columns.is-mobile>.column.is-6,.document .columns.is-mobile>h5.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.columns.is-mobile>.column.is-offset-6{margin-left:50%}.columns.is-mobile>.column.is-7{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.columns.is-mobile>.column.is-offset-7{margin-left:58.33333333%}.columns.is-mobile>.column.is-8{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.columns.is-mobile>.column.is-offset-8{margin-left:66.66666667%}.columns.is-mobile>.column.is-9{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.columns.is-mobile>.column.is-offset-9{margin-left:75%}.columns.is-mobile>.column.is-10{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.columns.is-mobile>.column.is-offset-10{margin-left:83.33333333%}.columns.is-mobile>.column.is-11{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.columns.is-mobile>.column.is-offset-11{margin-left:91.66666667%}.columns.is-mobile>.column.is-12{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.columns.is-mobile>.column.is-offset-12{margin-left:100%}@media screen and (max-width:768px){.column.is-full-mobile,.column.is-narrow-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-mobile{width:100%}.column.is-three-quarters-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-mobile{margin-left:75%}.column.is-offset-two-thirds-mobile{margin-left:66.6666%}.column.is-offset-half-mobile{margin-left:50%}.column.is-offset-one-third-mobile{margin-left:33.3333%}.column.is-offset-one-quarter-mobile{margin-left:25%}.column.is-offset-one-fifth-mobile{margin-left:20%}.column.is-offset-two-fifths-mobile{margin-left:40%}.column.is-offset-three-fifths-mobile{margin-left:60%}.column.is-offset-four-fifths-mobile{margin-left:80%}.column.is-1-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-mobile{margin-left:8.33333333%}.column.is-2-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-mobile{margin-left:16.66666667%}.column.is-3-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-mobile{margin-left:25%}.column.is-4-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-mobile{margin-left:33.33333333%}.column.is-5-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-mobile{margin-left:41.66666667%}.column.is-6-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-mobile{margin-left:50%}.column.is-7-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-mobile{margin-left:58.33333333%}.column.is-8-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-mobile{margin-left:66.66666667%}.column.is-9-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-mobile{margin-left:75%}.column.is-10-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-mobile{margin-left:83.33333333%}.column.is-11-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-mobile{margin-left:91.66666667%}.column.is-12-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-mobile{margin-left:100%}}@media print,screen and (min-width:769px){.column.is-full,.column.is-full-tablet,.column.is-narrow,.column.is-narrow-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full,.column.is-full-tablet{width:100%}.column.is-three-quarters,.column.is-three-quarters-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds,.column.is-two-thirds-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half,.column.is-half-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third,.column.is-one-third-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter,.column.is-one-quarter-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth,.column.is-one-fifth-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths,.column.is-two-fifths-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths,.column.is-three-fifths-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths,.column.is-four-fifths-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters,.column.is-offset-three-quarters-tablet{margin-left:75%}.column.is-offset-two-thirds,.column.is-offset-two-thirds-tablet{margin-left:66.6666%}.column.is-offset-half,.column.is-offset-half-tablet{margin-left:50%}.column.is-offset-one-third,.column.is-offset-one-third-tablet{margin-left:33.3333%}.column.is-offset-one-quarter,.column.is-offset-one-quarter-tablet{margin-left:25%}.column.is-offset-one-fifth,.column.is-offset-one-fifth-tablet{margin-left:20%}.column.is-offset-two-fifths,.column.is-offset-two-fifths-tablet{margin-left:40%}.column.is-offset-three-fifths,.column.is-offset-three-fifths-tablet{margin-left:60%}.column.is-offset-four-fifths,.column.is-offset-four-fifths-tablet{margin-left:80%}.column.is-1,.column.is-1-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1,.column.is-offset-1-tablet{margin-left:8.33333333%}.column.is-2,.column.is-2-tablet,.document h1.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2,.column.is-offset-2-tablet{margin-left:16.66666667%}.column.is-3,.column.is-3-tablet,.document h2.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3,.column.is-offset-3-tablet{margin-left:25%}.column.is-4,.column.is-4-tablet,.document h3.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4,.column.is-offset-4-tablet{margin-left:33.33333333%}.column.is-5,.column.is-5-tablet,.document h4.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5,.column.is-offset-5-tablet{margin-left:41.66666667%}.column.is-6,.column.is-6-tablet,.document h5.column{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6,.column.is-offset-6-tablet{margin-left:50%}.column.is-7,.column.is-7-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7,.column.is-offset-7-tablet{margin-left:58.33333333%}.column.is-8,.column.is-8-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8,.column.is-offset-8-tablet{margin-left:66.66666667%}.column.is-9,.column.is-9-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9,.column.is-offset-9-tablet{margin-left:75%}.column.is-10,.column.is-10-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10,.column.is-offset-10-tablet{margin-left:83.33333333%}.column.is-11,.column.is-11-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11,.column.is-offset-11-tablet{margin-left:91.66666667%}.column.is-12,.column.is-12-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12,.column.is-offset-12-tablet{margin-left:100%}}@media screen and (max-width:1023px){.column.is-full-touch,.column.is-narrow-touch{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-touch{width:100%}.column.is-three-quarters-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-touch{margin-left:75%}.column.is-offset-two-thirds-touch{margin-left:66.6666%}.column.is-offset-half-touch{margin-left:50%}.column.is-offset-one-third-touch{margin-left:33.3333%}.column.is-offset-one-quarter-touch{margin-left:25%}.column.is-offset-one-fifth-touch{margin-left:20%}.column.is-offset-two-fifths-touch{margin-left:40%}.column.is-offset-three-fifths-touch{margin-left:60%}.column.is-offset-four-fifths-touch{margin-left:80%}.column.is-1-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-touch{margin-left:8.33333333%}.column.is-2-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-touch{margin-left:16.66666667%}.column.is-3-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-touch{margin-left:25%}.column.is-4-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-touch{margin-left:33.33333333%}.column.is-5-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-touch{margin-left:41.66666667%}.column.is-6-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-touch{margin-left:50%}.column.is-7-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-touch{margin-left:58.33333333%}.column.is-8-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-touch{margin-left:66.66666667%}.column.is-9-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-touch{margin-left:75%}.column.is-10-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-touch{margin-left:83.33333333%}.column.is-11-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-touch{margin-left:91.66666667%}.column.is-12-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-touch{margin-left:100%}}@media screen and (min-width:1024px){.column.is-full-desktop,.column.is-narrow-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-desktop{width:100%}.column.is-three-quarters-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-desktop{margin-left:75%}.column.is-offset-two-thirds-desktop{margin-left:66.6666%}.column.is-offset-half-desktop{margin-left:50%}.column.is-offset-one-third-desktop{margin-left:33.3333%}.column.is-offset-one-quarter-desktop{margin-left:25%}.column.is-offset-one-fifth-desktop{margin-left:20%}.column.is-offset-two-fifths-desktop{margin-left:40%}.column.is-offset-three-fifths-desktop{margin-left:60%}.column.is-offset-four-fifths-desktop{margin-left:80%}.column.is-1-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-desktop{margin-left:8.33333333%}.column.is-2-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-desktop{margin-left:16.66666667%}.column.is-3-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-desktop{margin-left:25%}.column.is-4-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-desktop{margin-left:33.33333333%}.column.is-5-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-desktop{margin-left:41.66666667%}.column.is-6-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-desktop{margin-left:50%}.column.is-7-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-desktop{margin-left:58.33333333%}.column.is-8-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-desktop{margin-left:66.66666667%}.column.is-9-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-desktop{margin-left:75%}.column.is-10-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-desktop{margin-left:83.33333333%}.column.is-11-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-desktop{margin-left:91.66666667%}.column.is-12-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-desktop{margin-left:100%}}@media screen and (min-width:1216px){.column.is-full-widescreen,.column.is-narrow-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-widescreen{width:100%}.column.is-three-quarters-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-widescreen{margin-left:75%}.column.is-offset-two-thirds-widescreen{margin-left:66.6666%}.column.is-offset-half-widescreen{margin-left:50%}.column.is-offset-one-third-widescreen{margin-left:33.3333%}.column.is-offset-one-quarter-widescreen{margin-left:25%}.column.is-offset-one-fifth-widescreen{margin-left:20%}.column.is-offset-two-fifths-widescreen{margin-left:40%}.column.is-offset-three-fifths-widescreen{margin-left:60%}.column.is-offset-four-fifths-widescreen{margin-left:80%}.column.is-1-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-widescreen{margin-left:8.33333333%}.column.is-2-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-widescreen{margin-left:16.66666667%}.column.is-3-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-widescreen{margin-left:25%}.column.is-4-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-widescreen{margin-left:33.33333333%}.column.is-5-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-widescreen{margin-left:41.66666667%}.column.is-6-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-widescreen{margin-left:50%}.column.is-7-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-widescreen{margin-left:58.33333333%}.column.is-8-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-widescreen{margin-left:66.66666667%}.column.is-9-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-widescreen{margin-left:75%}.column.is-10-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-widescreen{margin-left:83.33333333%}.column.is-11-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-widescreen{margin-left:91.66666667%}.column.is-12-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-widescreen{margin-left:100%}}@media screen and (min-width:1408px){.column.is-full-fullhd,.column.is-narrow-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-fullhd{width:100%}.column.is-three-quarters-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-fullhd{margin-left:75%}.column.is-offset-two-thirds-fullhd{margin-left:66.6666%}.column.is-offset-half-fullhd{margin-left:50%}.column.is-offset-one-third-fullhd{margin-left:33.3333%}.column.is-offset-one-quarter-fullhd{margin-left:25%}.column.is-offset-one-fifth-fullhd{margin-left:20%}.column.is-offset-two-fifths-fullhd{margin-left:40%}.column.is-offset-three-fifths-fullhd{margin-left:60%}.column.is-offset-four-fifths-fullhd{margin-left:80%}.column.is-1-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.33333333%}.column.is-offset-1-fullhd{margin-left:8.33333333%}.column.is-2-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.66666667%}.column.is-offset-2-fullhd{margin-left:16.66666667%}.column.is-3-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-fullhd{margin-left:25%}.column.is-4-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.column.is-offset-4-fullhd{margin-left:33.33333333%}.column.is-5-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.column.is-offset-5-fullhd{margin-left:41.66666667%}.column.is-6-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-fullhd{margin-left:50%}.column.is-7-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.33333333%}.column.is-offset-7-fullhd{margin-left:58.33333333%}.column.is-8-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.66666667%}.column.is-offset-8-fullhd{margin-left:66.66666667%}.column.is-9-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-fullhd{margin-left:75%}.column.is-10-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.33333333%}.column.is-offset-10-fullhd{margin-left:83.33333333%}.column.is-11-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.66666667%}.column.is-offset-11-fullhd{margin-left:91.66666667%}.column.is-12-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-fullhd{margin-left:100%}}.columns{margin-left:-.75rem;margin-right:-.75rem;margin-top:-.75rem}.columns:last-child{margin-bottom:-.75rem}.columns:not(:last-child){margin-bottom:0.75rem}.columns.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.columns.is-gapless{margin-left:0;margin-right:0;margin-top:0}.columns.is-gapless>.column{margin:0;padding:0!important}.columns.is-gapless:not(:last-child){margin-bottom:1.5rem}.columns.is-gapless:last-child{margin-bottom:0}.columns.is-mobile{display:-webkit-box;display:-ms-flexbox;display:flex}.columns.is-multiline{-ms-flex-wrap:wrap;flex-wrap:wrap}.columns.is-vcentered{-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media print,screen and (min-width:769px){.columns:not(.is-desktop){display:-webkit-box;display:-ms-flexbox;display:flex}}@media screen and (min-width:1024px){.columns.is-desktop{display:-webkit-box;display:-ms-flexbox;display:flex}}.columns.is-variable{--columnGap:0.75rem;margin-left:calc(-1 * var(--columnGap));margin-right:calc(-1 * var(--columnGap))}.columns.is-variable .column{padding-left:var(--columnGap);padding-right:var(--columnGap)}.columns.is-variable.is-0{--columnGap:0rem}@media screen and (max-width:768px){.columns.is-variable.is-0-mobile{--columnGap:0rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-0-tablet{--columnGap:0rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-0-tablet-only{--columnGap:0rem}}@media screen and (max-width:1023px){.columns.is-variable.is-0-touch{--columnGap:0rem}}@media screen and (min-width:1024px){.columns.is-variable.is-0-desktop{--columnGap:0rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-0-desktop-only{--columnGap:0rem}}@media screen and (min-width:1216px){.columns.is-variable.is-0-widescreen{--columnGap:0rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-0-widescreen-only{--columnGap:0rem}}@media screen and (min-width:1408px){.columns.is-variable.is-0-fullhd{--columnGap:0rem}}.columns.is-variable.is-1{--columnGap:0.25rem}@media screen and (max-width:768px){.columns.is-variable.is-1-mobile{--columnGap:0.25rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-1-tablet{--columnGap:0.25rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-1-tablet-only{--columnGap:0.25rem}}@media screen and (max-width:1023px){.columns.is-variable.is-1-touch{--columnGap:0.25rem}}@media screen and (min-width:1024px){.columns.is-variable.is-1-desktop{--columnGap:0.25rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-1-desktop-only{--columnGap:0.25rem}}@media screen and (min-width:1216px){.columns.is-variable.is-1-widescreen{--columnGap:0.25rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-1-widescreen-only{--columnGap:0.25rem}}@media screen and (min-width:1408px){.columns.is-variable.is-1-fullhd{--columnGap:0.25rem}}.columns.is-variable.is-2,.document h1.columns.is-variable{--columnGap:0.5rem}@media screen and (max-width:768px){.columns.is-variable.is-2-mobile{--columnGap:0.5rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-2-tablet{--columnGap:0.5rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-2-tablet-only{--columnGap:0.5rem}}@media screen and (max-width:1023px){.columns.is-variable.is-2-touch{--columnGap:0.5rem}}@media screen and (min-width:1024px){.columns.is-variable.is-2-desktop{--columnGap:0.5rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-2-desktop-only{--columnGap:0.5rem}}@media screen and (min-width:1216px){.columns.is-variable.is-2-widescreen{--columnGap:0.5rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-2-widescreen-only{--columnGap:0.5rem}}@media screen and (min-width:1408px){.columns.is-variable.is-2-fullhd{--columnGap:0.5rem}}.columns.is-variable.is-3,.document h2.columns.is-variable{--columnGap:0.75rem}@media screen and (max-width:768px){.columns.is-variable.is-3-mobile{--columnGap:0.75rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-3-tablet{--columnGap:0.75rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-3-tablet-only{--columnGap:0.75rem}}@media screen and (max-width:1023px){.columns.is-variable.is-3-touch{--columnGap:0.75rem}}@media screen and (min-width:1024px){.columns.is-variable.is-3-desktop{--columnGap:0.75rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-3-desktop-only{--columnGap:0.75rem}}@media screen and (min-width:1216px){.columns.is-variable.is-3-widescreen{--columnGap:0.75rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-3-widescreen-only{--columnGap:0.75rem}}@media screen and (min-width:1408px){.columns.is-variable.is-3-fullhd{--columnGap:0.75rem}}.columns.is-variable.is-4,.document h3.columns.is-variable{--columnGap:1rem}@media screen and (max-width:768px){.columns.is-variable.is-4-mobile{--columnGap:1rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-4-tablet{--columnGap:1rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-4-tablet-only{--columnGap:1rem}}@media screen and (max-width:1023px){.columns.is-variable.is-4-touch{--columnGap:1rem}}@media screen and (min-width:1024px){.columns.is-variable.is-4-desktop{--columnGap:1rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-4-desktop-only{--columnGap:1rem}}@media screen and (min-width:1216px){.columns.is-variable.is-4-widescreen{--columnGap:1rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-4-widescreen-only{--columnGap:1rem}}@media screen and (min-width:1408px){.columns.is-variable.is-4-fullhd{--columnGap:1rem}}.columns.is-variable.is-5,.document h4.columns.is-variable{--columnGap:1.25rem}@media screen and (max-width:768px){.columns.is-variable.is-5-mobile{--columnGap:1.25rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-5-tablet{--columnGap:1.25rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-5-tablet-only{--columnGap:1.25rem}}@media screen and (max-width:1023px){.columns.is-variable.is-5-touch{--columnGap:1.25rem}}@media screen and (min-width:1024px){.columns.is-variable.is-5-desktop{--columnGap:1.25rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-5-desktop-only{--columnGap:1.25rem}}@media screen and (min-width:1216px){.columns.is-variable.is-5-widescreen{--columnGap:1.25rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-5-widescreen-only{--columnGap:1.25rem}}@media screen and (min-width:1408px){.columns.is-variable.is-5-fullhd{--columnGap:1.25rem}}.columns.is-variable.is-6,.document h5.columns.is-variable{--columnGap:1.5rem}@media screen and (max-width:768px){.columns.is-variable.is-6-mobile{--columnGap:1.5rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-6-tablet{--columnGap:1.5rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-6-tablet-only{--columnGap:1.5rem}}@media screen and (max-width:1023px){.columns.is-variable.is-6-touch{--columnGap:1.5rem}}@media screen and (min-width:1024px){.columns.is-variable.is-6-desktop{--columnGap:1.5rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-6-desktop-only{--columnGap:1.5rem}}@media screen and (min-width:1216px){.columns.is-variable.is-6-widescreen{--columnGap:1.5rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-6-widescreen-only{--columnGap:1.5rem}}@media screen and (min-width:1408px){.columns.is-variable.is-6-fullhd{--columnGap:1.5rem}}.columns.is-variable.is-7{--columnGap:1.75rem}@media screen and (max-width:768px){.columns.is-variable.is-7-mobile{--columnGap:1.75rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-7-tablet{--columnGap:1.75rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-7-tablet-only{--columnGap:1.75rem}}@media screen and (max-width:1023px){.columns.is-variable.is-7-touch{--columnGap:1.75rem}}@media screen and (min-width:1024px){.columns.is-variable.is-7-desktop{--columnGap:1.75rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-7-desktop-only{--columnGap:1.75rem}}@media screen and (min-width:1216px){.columns.is-variable.is-7-widescreen{--columnGap:1.75rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-7-widescreen-only{--columnGap:1.75rem}}@media screen and (min-width:1408px){.columns.is-variable.is-7-fullhd{--columnGap:1.75rem}}.columns.is-variable.is-8{--columnGap:2rem}@media screen and (max-width:768px){.columns.is-variable.is-8-mobile{--columnGap:2rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-8-tablet{--columnGap:2rem}}@media screen and (min-width:769px) and (max-width:1023px){.columns.is-variable.is-8-tablet-only{--columnGap:2rem}}@media screen and (max-width:1023px){.columns.is-variable.is-8-touch{--columnGap:2rem}}@media screen and (min-width:1024px){.columns.is-variable.is-8-desktop{--columnGap:2rem}}@media screen and (min-width:1024px) and (max-width:1215px){.columns.is-variable.is-8-desktop-only{--columnGap:2rem}}@media screen and (min-width:1216px){.columns.is-variable.is-8-widescreen{--columnGap:2rem}}@media screen and (min-width:1216px) and (max-width:1407px){.columns.is-variable.is-8-widescreen-only{--columnGap:2rem}}@media screen and (min-width:1408px){.columns.is-variable.is-8-fullhd{--columnGap:2rem}}.tile{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:block;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;min-height:-webkit-min-content;min-height:-moz-min-content;min-height:min-content}.tile.is-ancestor{margin-left:-.75rem;margin-right:-.75rem;margin-top:-.75rem}.tile.is-ancestor:last-child{margin-bottom:-.75rem}.tile.is-ancestor:not(:last-child){margin-bottom:.75rem}.tile.is-child{margin:0!important}.tile.is-parent{padding:.75rem}.tile.is-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.tile.is-vertical>.tile.is-child:not(:last-child){margin-bottom:1.5rem!important}@media print,screen and (min-width:769px){.tile:not(.is-child){display:-webkit-box;display:-ms-flexbox;display:flex}.tile.is-1{width:8.33333333%}.document h1.tile,.tile.is-1,.tile.is-2{-webkit-box-flex:0;-ms-flex:none;flex:none}.document h1.tile,.tile.is-2{width:16.66666667%}.document h2.tile,.tile.is-3{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.document h3.tile,.tile.is-4{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.33333333%}.document h4.tile,.tile.is-5{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.66666667%}.document h5.tile,.tile.is-6{width:50%}.document h5.tile,.tile.is-6,.tile.is-7{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-7{width:58.33333333%}.tile.is-8{width:66.66666667%}.tile.is-8,.tile.is-9{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-9{width:75%}.tile.is-10{width:83.33333333%}.tile.is-10,.tile.is-11{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-11{width:91.66666667%}.tile.is-12{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}}.hero{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.hero .navbar{background:none}.hero .tabs ul{border-bottom:none}.hero.is-white{background-color:#fff;color:#0a0a0a}.hero.is-white a:not(.button):not(.dropdown-item):not(.tag),.hero.is-white strong{color:inherit}.document .hero.is-white h1,.document .hero.is-white h2,.document .hero.is-white h3,.document .hero.is-white h4,.document .hero.is-white h5,.hero.is-white .document h1,.hero.is-white .document h2,.hero.is-white .document h3,.hero.is-white .document h4,.hero.is-white .document h5,.hero.is-white .title{color:#0a0a0a}.hero.is-white .subtitle{color:hsla(0,0%,4%,.9)}.hero.is-white .subtitle a:not(.button),.hero.is-white .subtitle strong{color:#0a0a0a}@media screen and (max-width:1023px){.hero.is-white .navbar-menu{background-color:#fff}}.hero.is-white .navbar-item,.hero.is-white .navbar-link{color:hsla(0,0%,4%,.7)}.hero.is-white .navbar-link.is-active,.hero.is-white .navbar-link:hover,.hero.is-white a.navbar-item.is-active,.hero.is-white a.navbar-item:hover{background-color:#f2f2f2;color:#0a0a0a}.hero.is-white .tabs a{color:#0a0a0a;opacity:.9}.hero.is-white .tabs a:hover,.hero.is-white .tabs li.is-active a{opacity:1}.hero.is-white .tabs.is-boxed a,.hero.is-white .tabs.is-toggle a{color:#0a0a0a}.hero.is-white .tabs.is-boxed a:hover,.hero.is-white .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-white .tabs.is-boxed li.is-active a,.hero.is-white .tabs.is-boxed li.is-active a:hover,.hero.is-white .tabs.is-toggle li.is-active a,.hero.is-white .tabs.is-toggle li.is-active a:hover{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.hero.is-white.is-bold{background-image:linear-gradient(141deg,#e6e5e5,#fff 71%,#fff)}@media screen and (max-width:768px){.hero.is-white.is-bold .navbar-menu{background-image:linear-gradient(141deg,#e6e5e5,#fff 71%,#fff)}}.hero.is-black{background-color:#0a0a0a;color:#fff}.hero.is-black a:not(.button):not(.dropdown-item):not(.tag),.hero.is-black strong{color:inherit}.document .hero.is-black h1,.document .hero.is-black h2,.document .hero.is-black h3,.document .hero.is-black h4,.document .hero.is-black h5,.hero.is-black .document h1,.hero.is-black .document h2,.hero.is-black .document h3,.hero.is-black .document h4,.hero.is-black .document h5,.hero.is-black .title{color:#fff}.hero.is-black .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-black .subtitle a:not(.button),.hero.is-black .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-black .navbar-menu{background-color:#0a0a0a}}.hero.is-black .navbar-item,.hero.is-black .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-black .navbar-link.is-active,.hero.is-black .navbar-link:hover,.hero.is-black a.navbar-item.is-active,.hero.is-black a.navbar-item:hover{background-color:#000;color:#fff}.hero.is-black .tabs a{color:#fff;opacity:.9}.hero.is-black .tabs a:hover,.hero.is-black .tabs li.is-active a{opacity:1}.hero.is-black .tabs.is-boxed a,.hero.is-black .tabs.is-toggle a{color:#fff}.hero.is-black .tabs.is-boxed a:hover,.hero.is-black .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-black .tabs.is-boxed li.is-active a,.hero.is-black .tabs.is-boxed li.is-active a:hover,.hero.is-black .tabs.is-toggle li.is-active a,.hero.is-black .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#0a0a0a}.hero.is-black.is-bold{background-image:linear-gradient(141deg,#000,#0a0a0a 71%,#181616)}@media screen and (max-width:768px){.hero.is-black.is-bold .navbar-menu{background-image:linear-gradient(141deg,#000,#0a0a0a 71%,#181616)}}.hero.is-light{background-color:#f5f5f5;color:#1f2d3d}.hero.is-light a:not(.button):not(.dropdown-item):not(.tag),.hero.is-light strong{color:inherit}.document .hero.is-light h1,.document .hero.is-light h2,.document .hero.is-light h3,.document .hero.is-light h4,.document .hero.is-light h5,.hero.is-light .document h1,.hero.is-light .document h2,.hero.is-light .document h3,.hero.is-light .document h4,.hero.is-light .document h5,.hero.is-light .title{color:#1f2d3d}.hero.is-light .subtitle{color:rgba(31,45,61,.9)}.hero.is-light .subtitle a:not(.button),.hero.is-light .subtitle strong{color:#1f2d3d}@media screen and (max-width:1023px){.hero.is-light .navbar-menu{background-color:#f5f5f5}}.hero.is-light .navbar-item,.hero.is-light .navbar-link{color:rgba(31,45,61,.7)}.hero.is-light .navbar-link.is-active,.hero.is-light .navbar-link:hover,.hero.is-light a.navbar-item.is-active,.hero.is-light a.navbar-item:hover{background-color:#e8e8e8;color:#1f2d3d}.hero.is-light .tabs a{color:#1f2d3d;opacity:.9}.hero.is-light .tabs a:hover,.hero.is-light .tabs li.is-active a{opacity:1}.hero.is-light .tabs.is-boxed a,.hero.is-light .tabs.is-toggle a{color:#1f2d3d}.hero.is-light .tabs.is-boxed a:hover,.hero.is-light .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-light .tabs.is-boxed li.is-active a,.hero.is-light .tabs.is-boxed li.is-active a:hover,.hero.is-light .tabs.is-toggle li.is-active a,.hero.is-light .tabs.is-toggle li.is-active a:hover{background-color:#1f2d3d;border-color:#1f2d3d;color:#f5f5f5}.hero.is-light.is-bold{background-image:linear-gradient(141deg,#dfd8d9,#f5f5f5 71%,#fff)}@media screen and (max-width:768px){.hero.is-light.is-bold .navbar-menu{background-image:linear-gradient(141deg,#dfd8d9,#f5f5f5 71%,#fff)}}.hero.is-dark{background-color:#1f2d3d;color:#f5f5f5}.hero.is-dark a:not(.button):not(.dropdown-item):not(.tag),.hero.is-dark strong{color:inherit}.document .hero.is-dark h1,.document .hero.is-dark h2,.document .hero.is-dark h3,.document .hero.is-dark h4,.document .hero.is-dark h5,.hero.is-dark .document h1,.hero.is-dark .document h2,.hero.is-dark .document h3,.hero.is-dark .document h4,.hero.is-dark .document h5,.hero.is-dark .title{color:#f5f5f5}.hero.is-dark .subtitle{color:hsla(0,0%,96%,.9)}.hero.is-dark .subtitle a:not(.button),.hero.is-dark .subtitle strong{color:#f5f5f5}@media screen and (max-width:1023px){.hero.is-dark .navbar-menu{background-color:#1f2d3d}}.hero.is-dark .navbar-item,.hero.is-dark .navbar-link{color:hsla(0,0%,96%,.7)}.hero.is-dark .navbar-link.is-active,.hero.is-dark .navbar-link:hover,.hero.is-dark a.navbar-item.is-active,.hero.is-dark a.navbar-item:hover{background-color:#16212c;color:#f5f5f5}.hero.is-dark .tabs a{color:#f5f5f5;opacity:.9}.hero.is-dark .tabs a:hover,.hero.is-dark .tabs li.is-active a{opacity:1}.hero.is-dark .tabs.is-boxed a,.hero.is-dark .tabs.is-toggle a{color:#f5f5f5}.hero.is-dark .tabs.is-boxed a:hover,.hero.is-dark .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-dark .tabs.is-boxed li.is-active a,.hero.is-dark .tabs.is-boxed li.is-active a:hover,.hero.is-dark .tabs.is-toggle li.is-active a,.hero.is-dark .tabs.is-toggle li.is-active a:hover{background-color:#f5f5f5;border-color:#f5f5f5;color:#1f2d3d}.hero.is-dark.is-bold{background-image:linear-gradient(141deg,#0c171d,#1f2d3d 71%,#253251)}@media screen and (max-width:768px){.hero.is-dark.is-bold .navbar-menu{background-image:linear-gradient(141deg,#0c171d,#1f2d3d 71%,#253251)}}.hero.is-primary{background-color:#2a9d8f;color:#fff}.hero.is-primary a:not(.button):not(.dropdown-item):not(.tag),.hero.is-primary strong{color:inherit}.document .hero.is-primary h1,.document .hero.is-primary h2,.document .hero.is-primary h3,.document .hero.is-primary h4,.document .hero.is-primary h5,.hero.is-primary .document h1,.hero.is-primary .document h2,.hero.is-primary .document h3,.hero.is-primary .document h4,.hero.is-primary .document h5,.hero.is-primary .title{color:#fff}.hero.is-primary .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-primary .subtitle a:not(.button),.hero.is-primary .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-primary .navbar-menu{background-color:#2a9d8f}}.hero.is-primary .navbar-item,.hero.is-primary .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-primary .navbar-link.is-active,.hero.is-primary .navbar-link:hover,.hero.is-primary a.navbar-item.is-active,.hero.is-primary a.navbar-item:hover{background-color:#25897d;color:#fff}.hero.is-primary .tabs a{color:#fff;opacity:.9}.hero.is-primary .tabs a:hover,.hero.is-primary .tabs li.is-active a{opacity:1}.hero.is-primary .tabs.is-boxed a,.hero.is-primary .tabs.is-toggle a{color:#fff}.hero.is-primary .tabs.is-boxed a:hover,.hero.is-primary .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-primary .tabs.is-boxed li.is-active a,.hero.is-primary .tabs.is-boxed li.is-active a:hover,.hero.is-primary .tabs.is-toggle li.is-active a,.hero.is-primary .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#2a9d8f}.hero.is-primary.is-bold{background-image:linear-gradient(141deg,#187c5f,#2a9d8f 71%,#2ab0b7)}@media screen and (max-width:768px){.hero.is-primary.is-bold .navbar-menu{background-image:linear-gradient(141deg,#187c5f,#2a9d8f 71%,#2ab0b7)}}.hero.is-link{background-color:#2a9d8f;color:#fff}.hero.is-link a:not(.button):not(.dropdown-item):not(.tag),.hero.is-link strong{color:inherit}.document .hero.is-link h1,.document .hero.is-link h2,.document .hero.is-link h3,.document .hero.is-link h4,.document .hero.is-link h5,.hero.is-link .document h1,.hero.is-link .document h2,.hero.is-link .document h3,.hero.is-link .document h4,.hero.is-link .document h5,.hero.is-link .title{color:#fff}.hero.is-link .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-link .subtitle a:not(.button),.hero.is-link .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-link .navbar-menu{background-color:#2a9d8f}}.hero.is-link .navbar-item,.hero.is-link .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-link .navbar-link.is-active,.hero.is-link .navbar-link:hover,.hero.is-link a.navbar-item.is-active,.hero.is-link a.navbar-item:hover{background-color:#25897d;color:#fff}.hero.is-link .tabs a{color:#fff;opacity:.9}.hero.is-link .tabs a:hover,.hero.is-link .tabs li.is-active a{opacity:1}.hero.is-link .tabs.is-boxed a,.hero.is-link .tabs.is-toggle a{color:#fff}.hero.is-link .tabs.is-boxed a:hover,.hero.is-link .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-link .tabs.is-boxed li.is-active a,.hero.is-link .tabs.is-boxed li.is-active a:hover,.hero.is-link .tabs.is-toggle li.is-active a,.hero.is-link .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#2a9d8f}.hero.is-link.is-bold{background-image:linear-gradient(141deg,#187c5f,#2a9d8f 71%,#2ab0b7)}@media screen and (max-width:768px){.hero.is-link.is-bold .navbar-menu{background-image:linear-gradient(141deg,#187c5f,#2a9d8f 71%,#2ab0b7)}}.hero.is-info{background-color:#4d7ec8;color:#fff}.hero.is-info a:not(.button):not(.dropdown-item):not(.tag),.hero.is-info strong{color:inherit}.document .hero.is-info h1,.document .hero.is-info h2,.document .hero.is-info h3,.document .hero.is-info h4,.document .hero.is-info h5,.hero.is-info .document h1,.hero.is-info .document h2,.hero.is-info .document h3,.hero.is-info .document h4,.hero.is-info .document h5,.hero.is-info .title{color:#fff}.hero.is-info .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-info .subtitle a:not(.button),.hero.is-info .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-info .navbar-menu{background-color:#4d7ec8}}.hero.is-info .navbar-item,.hero.is-info .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-info .navbar-link.is-active,.hero.is-info .navbar-link:hover,.hero.is-info a.navbar-item.is-active,.hero.is-info a.navbar-item:hover{background-color:#3b70c0;color:#fff}.hero.is-info .tabs a{color:#fff;opacity:.9}.hero.is-info .tabs a:hover,.hero.is-info .tabs li.is-active a{opacity:1}.hero.is-info .tabs.is-boxed a,.hero.is-info .tabs.is-toggle a{color:#fff}.hero.is-info .tabs.is-boxed a:hover,.hero.is-info .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-info .tabs.is-boxed li.is-active a,.hero.is-info .tabs.is-boxed li.is-active a:hover,.hero.is-info .tabs.is-toggle li.is-active a,.hero.is-info .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#4d7ec8}.hero.is-info.is-bold{background-image:linear-gradient(141deg,#2a7ab8,#4d7ec8 71%,#5b77d3)}@media screen and (max-width:768px){.hero.is-info.is-bold .navbar-menu{background-image:linear-gradient(141deg,#2a7ab8,#4d7ec8 71%,#5b77d3)}}.hero.is-success{background-color:#2ab27b;color:#fff}.hero.is-success a:not(.button):not(.dropdown-item):not(.tag),.hero.is-success strong{color:inherit}.document .hero.is-success h1,.document .hero.is-success h2,.document .hero.is-success h3,.document .hero.is-success h4,.document .hero.is-success h5,.hero.is-success .document h1,.hero.is-success .document h2,.hero.is-success .document h3,.hero.is-success .document h4,.hero.is-success .document h5,.hero.is-success .title{color:#fff}.hero.is-success .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-success .subtitle a:not(.button),.hero.is-success .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-success .navbar-menu{background-color:#2ab27b}}.hero.is-success .navbar-item,.hero.is-success .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-success .navbar-link.is-active,.hero.is-success .navbar-link:hover,.hero.is-success a.navbar-item.is-active,.hero.is-success a.navbar-item:hover{background-color:#259d6d;color:#fff}.hero.is-success .tabs a{color:#fff;opacity:.9}.hero.is-success .tabs a:hover,.hero.is-success .tabs li.is-active a{opacity:1}.hero.is-success .tabs.is-boxed a,.hero.is-success .tabs.is-toggle a{color:#fff}.hero.is-success .tabs.is-boxed a:hover,.hero.is-success .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-success .tabs.is-boxed li.is-active a,.hero.is-success .tabs.is-boxed li.is-active a:hover,.hero.is-success .tabs.is-toggle li.is-active a,.hero.is-success .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#2ab27b}.hero.is-success.is-bold{background-image:linear-gradient(141deg,#18914c,#2ab27b 71%,#29cda6)}@media screen and (max-width:768px){.hero.is-success.is-bold .navbar-menu{background-image:linear-gradient(141deg,#18914c,#2ab27b 71%,#29cda6)}}.hero.is-warning{background-color:#f39c12;color:rgba(0,0,0,.7)}.hero.is-warning a:not(.button):not(.dropdown-item):not(.tag),.hero.is-warning strong{color:inherit}.document .hero.is-warning h1,.document .hero.is-warning h2,.document .hero.is-warning h3,.document .hero.is-warning h4,.document .hero.is-warning h5,.hero.is-warning .document h1,.hero.is-warning .document h2,.hero.is-warning .document h3,.hero.is-warning .document h4,.hero.is-warning .document h5,.hero.is-warning .title{color:rgba(0,0,0,.7)}.hero.is-warning .subtitle{color:rgba(0,0,0,.9)}.hero.is-warning .subtitle a:not(.button),.hero.is-warning .subtitle strong{color:rgba(0,0,0,.7)}@media screen and (max-width:1023px){.hero.is-warning .navbar-menu{background-color:#f39c12}}.hero.is-warning .navbar-item,.hero.is-warning .navbar-link{color:rgba(0,0,0,.7)}.hero.is-warning .navbar-link.is-active,.hero.is-warning .navbar-link:hover,.hero.is-warning a.navbar-item.is-active,.hero.is-warning a.navbar-item:hover{background-color:#e08e0b;color:rgba(0,0,0,.7)}.hero.is-warning .tabs a{color:rgba(0,0,0,.7);opacity:.9}.hero.is-warning .tabs a:hover,.hero.is-warning .tabs li.is-active a{opacity:1}.hero.is-warning .tabs.is-boxed a,.hero.is-warning .tabs.is-toggle a{color:rgba(0,0,0,.7)}.hero.is-warning .tabs.is-boxed a:hover,.hero.is-warning .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-warning .tabs.is-boxed li.is-active a,.hero.is-warning .tabs.is-boxed li.is-active a:hover,.hero.is-warning .tabs.is-toggle li.is-active a,.hero.is-warning .tabs.is-toggle li.is-active a:hover{background-color:rgba(0,0,0,.7);border-color:rgba(0,0,0,.7);color:#f39c12}.hero.is-warning.is-bold{background-image:linear-gradient(141deg,#d25e00,#f39c12 71%,#facb25)}@media screen and (max-width:768px){.hero.is-warning.is-bold .navbar-menu{background-image:linear-gradient(141deg,#d25e00,#f39c12 71%,#facb25)}}.hero.is-danger{background-color:#bf5329;color:#fff}.hero.is-danger a:not(.button):not(.dropdown-item):not(.tag),.hero.is-danger strong{color:inherit}.document .hero.is-danger h1,.document .hero.is-danger h2,.document .hero.is-danger h3,.document .hero.is-danger h4,.document .hero.is-danger h5,.hero.is-danger .document h1,.hero.is-danger .document h2,.hero.is-danger .document h3,.hero.is-danger .document h4,.hero.is-danger .document h5,.hero.is-danger .title{color:#fff}.hero.is-danger .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-danger .subtitle a:not(.button),.hero.is-danger .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-danger .navbar-menu{background-color:#bf5329}}.hero.is-danger .navbar-item,.hero.is-danger .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-danger .navbar-link.is-active,.hero.is-danger .navbar-link:hover,.hero.is-danger a.navbar-item.is-active,.hero.is-danger a.navbar-item:hover{background-color:#aa4a24;color:#fff}.hero.is-danger .tabs a{color:#fff;opacity:.9}.hero.is-danger .tabs a:hover,.hero.is-danger .tabs li.is-active a{opacity:1}.hero.is-danger .tabs.is-boxed a,.hero.is-danger .tabs.is-toggle a{color:#fff}.hero.is-danger .tabs.is-boxed a:hover,.hero.is-danger .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-danger .tabs.is-boxed li.is-active a,.hero.is-danger .tabs.is-boxed li.is-active a:hover,.hero.is-danger .tabs.is-toggle li.is-active a,.hero.is-danger .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#bf5329}.hero.is-danger.is-bold{background-image:linear-gradient(141deg,#9e2617,#bf5329 71%,#d97729)}@media screen and (max-width:768px){.hero.is-danger.is-bold .navbar-menu{background-image:linear-gradient(141deg,#9e2617,#bf5329 71%,#d97729)}}.hero.is-small .hero-body{padding-bottom:1.5rem;padding-top:1.5rem}@media print,screen and (min-width:769px){.hero.is-medium .hero-body{padding-bottom:9rem;padding-top:9rem}}@media print,screen and (min-width:769px){.hero.is-large .hero-body{padding-bottom:18rem;padding-top:18rem}}.hero.is-fullheight-with-navbar .hero-body,.hero.is-fullheight .hero-body,.hero.is-halfheight .hero-body{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.hero.is-fullheight-with-navbar .hero-body>.container,.hero.is-fullheight .hero-body>.container,.hero.is-halfheight .hero-body>.container{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.hero.is-halfheight{min-height:50vh}.hero.is-fullheight{min-height:100vh}.hero-video{overflow:hidden}.hero-video video{left:50%;min-height:100%;min-width:100%;position:absolute;top:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.hero-video.is-transparent{opacity:.3}@media screen and (max-width:768px){.hero-video{display:none}}.hero-buttons{margin-top:1.5rem}@media screen and (max-width:768px){.hero-buttons .button{display:-webkit-box;display:-ms-flexbox;display:flex}.hero-buttons .button:not(:last-child){margin-bottom:.75rem}}@media print,screen and (min-width:769px){.hero-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.hero-buttons .button:not(:last-child){margin-right:1.5rem}}.hero-foot,.hero-head{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.hero-body,.hero-foot,.hero-head{-ms-flex-negative:0;flex-shrink:0}.hero-body{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.hero-body,.section{padding:3rem 1.5rem}@media screen and (min-width:1024px){.section.is-medium{padding:9rem 1.5rem}.section.is-large{padding:18rem 1.5rem}}.footer{background-color:#fafafa;padding:3rem 1.5rem 6rem}#app-root,#app-root>div,body,html{min-height:100%;font-weight:500;background-color:#f5f8fa}.font-family{font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif!important}.app-footer{border-top:1px solid #d3e0e9;padding:10px 0;color:#666}.main-content{padding-top:40px;margin-bottom:20px;min-height:calc(100% - 140px)}.flexbox{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;width:100%}.flex-v-center{-webkit-box-align:center;-ms-flex-align:center;-moz-align-items:center;align-items:center}.flex-h-center{-webkit-box-pack:center;-ms-flex-pack:center;-moz-justify-content:center;justify-content:center}.flex-column{-webkit-box-orient:vertical;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.flex-column,.flex-right{-webkit-box-direction:normal}.flex-right{-webkit-box-orient:horizontal;-moz-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;justify-content:flex-end;text-align:right}.flex-space-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-moz-justify-content:space-between;justify-content:space-between}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.button.is-full{width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:left}.text-underline{border-bottom:1px solid #dedede;padding-bottom:.5em}a.box{color:#444}.copyright{position:fixed;top:65px;right:5px;z-index:4;text-align:right;font-size:12px;text-decoration:underline;background:hsla(0,0%,100%,.8);padding:0 3px}.copyright,.copyright>a{color:#777}@media screen and (max-width:768px){.container{padding:0 1rem}}.image-slider{overflow:hidden}.image-slider img{width:100%;height:auto}.image-gallery-image{margin:0 auto;text-align:center}.image-gallery-image img{max-height:100vh;max-width:100%;width:auto!important;height:auto!important}.image-gallery-image.max-h-90vh img{max-width:90vh!important}.image-gallery-slide{background-color:transparent!important}#map2,.filters-button,.horizontal-bar,.reset-map-button{-webkit-transition:left .25s linear;transition:left .25s linear}.sidebar{-webkit-transition:-webkit-transform .25s linear;transition:-webkit-transform .25s linear;transition:transform .25s linear;transition:transform .25s linear,-webkit-transform .25s linear}.sidebar-visible .sidebar{-webkit-transform:translate(0);transform:translate(0)}.sidebar-visible #map2,.sidebar-visible .horizontal-bar{left:300px}.mock-container{text-align:left}.mockup-img{max-height:500px}.apple-badge-img{position:relative;height:68px;top:-15px!important}@media screen and (max-width:768px){.apple-badge-img{margin-top:0}}.google-badge-img{height:100px;width:auto;max-width:100%}.home{background:#2a9d8f url("/images/bg4-compressed.jpg") repeat 50%}.document .home h1,.document .home h2,.document .home h3,.document .home h4,.document .home h5,.home,.home .document h1,.home .document h2,.home .document h3,.home .document h4,.home .document h5,.home .title{color:#fff}.home-text{margin-top:10%}.home-text h1{font-weight:bolder}.home-inner{padding:2rem 0}.container.is-small{max-width:1024px}@media screen and (min-width:769px) and (max-width:1023px){.container{padding:0 16px}}.home-section{padding:2rem 0}.control:first-of-type{width:100%}.feature-icon{width:100px;height:auto}@media screen and (max-width:1023px){.feature-icon{width:70px}}.feature-tile{-webkit-box-shadow:1px 1px 0 2px rgba(0,0,0,.1);box-shadow:1px 1px 0 2px rgba(0,0,0,.1)}.feature-tile .media-left{padding-right:10px}.feature-tile .media-right{padding-left:10px}@media screen and (max-width:1023px){.document .feature-tile h1,.document .feature-tile h2,.document .feature-tile h3,.document .feature-tile h4,.document .feature-tile h5,.feature-tile .document h1,.feature-tile .document h2,.feature-tile .document h3,.feature-tile .document h4,.feature-tile .document h5,.feature-tile .title{font-size:1.6rem}}.feature-text{color:#444}.home-footer{background:#1f2d3d;color:#eee;padding:2rem 0}.home-footer img{max-height:100px}.home-footer .logos{margin-top:1rem}.home-footer a{color:#ddd}.home-footer a:hover{color:#fff;text-decoration:underline;font-weight:700}.featured-title{display:inline-block;position:relative;border-bottom:2px solid #dbdbdb;padding-bottom:8px}.featured-title:before{position:absolute;content:" ";background:#2a9d8f;left:0;bottom:-2px;height:2px;width:50px}.text-ellipsis{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.image-gallery-image.show-scroll{background-color:#222}@media screen and (max-width:768px){.has-text-centered-mobile{text-align:center}}.us-tile{-webkit-box-shadow:1px 1px 0 2px rgba(0,0,0,.1);box-shadow:1px 1px 0 2px rgba(0,0,0,.1)}@media screen and (max-width:1023px){.document .us-tile h1,.document .us-tile h2,.document .us-tile h3,.document .us-tile h4,.document .us-tile h5,.us-tile .document h1,.us-tile .document h2,.us-tile .document h3,.us-tile .document h4,.us-tile .document h5,.us-tile .title{font-size:1.6rem}}.align-items-end{-webkit-box-align:end;-ms-flex-align:end;-moz-align-items:flex-end;align-items:flex-end}.has-no-shadow{-webkit-box-shadow:none!important;box-shadow:none!important}.cursor-pointer{cursor:pointer}.map-page .navbar{position:absolute;top:0;left:0;right:0}.navbar{z-index:900;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.2);box-shadow:0 3px 8px rgba(0,0,0,.2);background-color:#2a9d8f}.navbar>.container{-webkit-box-shadow:none;box-shadow:none}.navbar .has-dropdown>.navbar-link,.navbar .navbar-item{color:#fff!important}.navbar .has-dropdown>.navbar-link:after,.navbar .navbar-item:after{border-color:#fff}@media screen and (max-width:1023px){.navbar .navbar-item.has-dropdown>a.navbar-link{color:#4a4a4a!important}.navbar .navbar-item.has-dropdown:hover>a.navbar-link{background-color:#f5f5f5!important}}.navbar .navbar-item.has-dropdown:hover>.navbar-link{background-color:#25897d}.navbar .navbar-item.has-dropdown:hover .navbar-item{background-color:#fff;color:#4a4a4a!important}.navbar .navbar-item.has-dropdown:hover .navbar-item:hover{background-color:#f5f5f5}.navbar .container.is-fluid{width:100%}.navbar a.navbar-item{border-bottom:2px solid transparent}.navbar a.navbar-item.is-active,.navbar a.navbar-item:hover{color:#fff;background:#25897d}.navbar .logo-img{margin-right:5px;height:1.75rem;width:auto;line-height:3.5rem}.navbar .navbar-item:last-of-type .navbar-dropdown{left:auto;right:0}.navbar-brand{overflow:hidden}.navbar-brand>.navbar-item{font-size:1.6rem;font-weight:400}.navbar-brand>.navbar-item>b{font-weight:700}.navbar-brand>small.navbar-item{font-size:14px}.navbar-burger>span{background-color:#fff}.navbar-burger:hover{background-color:#25897d}@media screen and (max-width:1023px){.navbar .navbar-menu{background-color:#fff!important;margin:0 -16px}.navbar .navbar-menu .navbar-item{color:#4a4a4a!important}.navbar .navbar-menu .navbar-end:first-of-type{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;-moz-justify-content:center;justify-content:center}.navbar .navbar-menu .navbar-end:first-of-type .navbar-item{border-bottom-width:0}.navbar .navbar-menu .navbar-end a.navbar-item:last-of-type{border-bottom:0}.navbar .navbar-menu .navbar-end a.navbar-item.is-active,.navbar .navbar-menu .navbar-end a.navbar-item:hover{background-color:#f4f4f4!important}}.navbar.home-nav,.navbar.home-nav>.container{position:relative;background-color:transparent!important;-webkit-box-shadow:none;box-shadow:none}.navbar.home-nav .has-dropdown:hover>.navbar-link,.navbar.home-nav>.container .has-dropdown:hover>.navbar-link{background-color:hsla(0,0%,100%,.1)}.navbar.home-nav .has-dropdown:hover .navbar-item,.navbar.home-nav>.container .has-dropdown:hover .navbar-item{background-color:#fff;color:#4a4a4a!important}.navbar.home-nav .has-dropdown:hover .navbar-item:hover,.navbar.home-nav>.container .has-dropdown:hover .navbar-item:hover{background-color:#f5f5f5}@media screen and (max-width:768px){.navbar.home-nav .navbar-end a.navbar-item,.navbar.home-nav>.container .navbar-end a.navbar-item{color:#777!important}}@media screen and (max-width:768px) and (max-width:768px){.navbar.home-nav .navbar-end a.navbar-item.is-active,.navbar.home-nav .navbar-end a.navbar-item:hover,.navbar.home-nav>.container .navbar-end a.navbar-item.is-active,.navbar.home-nav>.container .navbar-end a.navbar-item:hover{color:#000!important}}.navbar.home-nav .navbar-burger.is-active,.navbar.home-nav>.container .navbar-burger.is-active,.navbar.home-nav>.container a.navbar-item.is-active,.navbar.home-nav a.navbar-item.is-active{background-color:transparent!important}@media screen and (min-width:1024px){.navbar.home-nav .navbar-burger.is-active,.navbar.home-nav>.container .navbar-burger.is-active,.navbar.home-nav>.container a.navbar-item.is-active,.navbar.home-nav a.navbar-item.is-active{border-bottom-color:#fff!important}}.navbar.home-nav .navbar-burger:hover,.navbar.home-nav>.container .navbar-burger:hover,.navbar.home-nav>.container a.navbar-item:hover,.navbar.home-nav a.navbar-item:hover{background-color:hsla(0,0%,100%,.1)}.navbar.home-nav .navbar-brand>.navbar-item,.navbar.home-nav>.container .navbar-brand>.navbar-item{font-size:1.6rem;padding-left:0}.navbar.home-nav .navbar-brand>.navbar-item:hover,.navbar.home-nav>.container .navbar-brand>.navbar-item:hover{border-bottom-color:transparent!important;background-color:transparent!important}.navbar.home-nav .logo-img,.navbar.home-nav>.container .logo-img{height:48px!important;max-height:48px;margin-right:10px}.tabs{background-color:#fff;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1)}.tabs a.is-active{border-bottom:1px solid #2a9d8f;color:#2a9d8f}.home-tabs{margin:-30px -16px 0}.home-tabs a{padding-top:1rem;padding-bottom:1rem}a.sortable-th{color:#444;-webkit-box-align:center;-ms-flex-align:center;-moz-align-items:center;align-items:center}a.sortable-th:hover{color:#2a9d8f}.sidebar{width:300px;position:absolute;top:3.5rem;left:0;-webkit-transform:translate(-300px);transform:translate(-300px);bottom:0;background:#f5f8fa;-webkit-box-shadow:3px 0 3px rgba(0,0,0,.16);box-shadow:3px 0 3px rgba(0,0,0,.16);z-index:5;max-height:100%;overflow-y:auto;-ms-overflow-style:-ms-autohiding-scrollbar}.sidebar-content-container{position:relative;height:100%}.sidebar-content-container .close{display:block;position:absolute;right:5px;top:5px;background:hsla(0,0%,100%,.9);width:50px;height:30px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.3);box-shadow:0 1px 3px rgba(0,0,0,.3);border-radius:3px;text-align:center;color:#555;z-index:3100}.sidebar-content-container .close:hover{background-color:#fff;color:#222}.sidebar-content-container .close>.fa{line-height:28px;font-size:1rem}.sidebar-img{width:100%;height:200px;background:no-repeat 50%;background-size:300px;position:relative;-webkit-transition:background-size .25s linear;transition:background-size .25s linear}.sidebar-img:hover{background-size:350px}.sidebar-img-overlay{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .25s ease-in-out;transition:opacity .25s ease-in-out;opacity:0;z-index:2100;color:#fff}.sidebar-img-overlay:hover{opacity:1;color:#fff}.sidebar-img-overlay .fa{font-size:2rem}.sidebar-icons-container{border-bottom:1px solid #d3e0e9;background-color:#fff}.sidebar-icons-container .card-footer>a{margin:0!important;color:#618293}.sidebar-icons-container .card-footer>a.is-danger{color:#bf5329}.sidebar-icons-container .card-footer>a.is-success{color:#2ab27b}.sidebar-icons-container .card-footer>a:hover{color:#384c56}.sidebar-icon{margin-left:-20px}.sidebar-icon>.fa{font-size:1.3rem;margin-top:5px}.sidebar-icon>span{display:inline-block;margin-left:.5rem;margin-top:4px;font-size:.9rem}.sidebar-content{padding:1rem;padding-bottom:0;background-color:#fff;border-bottom:1px solid #d3e0e9}.document .sidebar-content h1,.document .sidebar-content h2,.document .sidebar-content h3,.document .sidebar-content h4,.document .sidebar-content h5,.sidebar-content .document h1,.sidebar-content .document h2,.sidebar-content .document h3,.sidebar-content .document h4,.sidebar-content .document h5,.sidebar-content .title{margin-bottom:1rem}.sidebar-item{margin:0 -1rem;padding:.5rem 1rem;border-bottom:1px solid #d3e0e9}.sidebar-item:first-of-type{border-top:1px solid #d3e0e9}.sidebar-item:last-of-type{border-bottom:none}.sidebar-item:nth-child(2n){background-color:#f5f8fa}.sidebar-bottom-bar{position:relative;background-color:#fff;-webkit-box-shadow:0 -1px 1px hsla(0,0%,4%,.1);box-shadow:0 -1px 1px hsla(0,0%,4%,.1);text-align:center;padding:15px 0}.sidebar-bottom-bar .icon{position:absolute;top:50%;margin-top:-8px;left:10px}.sidebar-bottom-bar>a{color:#777}.sidebar-bottom-bar>a:hover{color:#2a9d8f}.opacity-05{opacity:.5!important}#map{position:absolute;top:3.5rem;left:300px;bottom:0;right:0;background-color:#fff}@media screen and (max-width:768px){#map{left:0}}#map2{position:absolute;top:3.5rem;left:0;bottom:115px;right:0;background-color:#fff}@media screen and (max-width:768px){#map2,.sidebar-visible #map2{left:0}}.callout{font-weight:400}.filters-button,.reset-map-button{position:absolute;top:4.5rem;left:10px;background:#fff;border-radius:2px;z-index:20;font-size:14px;border:0;-webkit-box-shadow:0 3px 2px hsla(0,0%,4%,.1)!important;box-shadow:0 3px 2px hsla(0,0%,4%,.1)!important;height:2.5em;font-weight:700;padding:0 15px}.filters-button:hover,.reset-map-button:hover{background:#ddd;color:#000}.sidebar-visible .filters-button,.sidebar-visible .reset-map-button{left:310px}@media screen and (max-width:768px){.filters-button,.reset-map-button{left:10px}.sidebar-visible .filters-button,.sidebar-visible .reset-map-button{left:310px}}.reset-map-button{top:7.5rem}.sidebar-filters{padding:1rem}.horizontal-bar{background-color:#323b44;height:115px;position:fixed;bottom:0;left:0;right:0}@media screen and (max-width:768px){.horizontal-bar,.sidebar-visible .horizontal-bar{left:0}}.horizontal-bar .scroll{position:absolute;bottom:0;height:115px;display:block;text-align:center;background:rgba(0,0,0,.2);width:40px;-webkit-box-shadow:0 0 10px rgba(0,0,0,.7);box-shadow:0 0 10px rgba(0,0,0,.7)}.horizontal-bar .scroll,.horizontal-bar .scroll:hover{cursor:pointer;color:#fff;font-size:1.7rem}.horizontal-bar .scroll:hover{background:rgba(0,0,0,.5)}.horizontal-bar .scroll>.fa{position:relative;top:47.5px}.horizontal-bar .scroll-right{right:0;border-left:1px solid hsla(0,0%,100%,.2)}.horizontal-bar .scroll-left{left:0;border-right:1px solid hsla(0,0%,100%,.2)}.hide-scroll-bar{-ms-overflow-style:none}.hide-scroll-bar .bar-items-container::-webkit-scrollbar{display:none}.bar-items-container{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-ms-flex-wrap:none;flex-wrap:nowrap;padding:.5rem 50px;width:100%;overflow-x:scroll}.bar-item{-webkit-box-flex:0;-moz-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:100px;width:190px;background-color:#272e35;border-radius:2px;margin-right:.5rem;background:no-repeat 50%;background-size:200px}.bar-item:last-of-type{margin-right:70px}.bar-item:active>.bar-item-field,.bar-item:focus>.bar-item-field,.bar-item:hover>.bar-item-field{background-color:transparent}.bar-item,.bar-item .media-content>strong{color:#fff}.bar-item-field{height:100%;width:100%;padding:.5rem;background:rgba(0,0,0,.4);text-shadow:0 0 2px rgba(0,0,0,.8);display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-webkit-box-orient:vertical;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;justify-content:flex-end}.admin-app{overflow:hidden}.admin-sidebar{margin-top:1rem;padding-left:0}.admin-sidebar a{border-left:6px solid transparent;border-radius:0;padding:.7rem 1.3rem .7rem .7rem;margin-bottom:1px}.admin-sidebar a.is-active{color:#444;font-weight:700;border-left-color:#2a9d8f}.admin-sidebar a.is-active,.admin-sidebar a:hover{background-color:#e7eef3}.admin-sidebar a:hover{color:#444}.admin-sidebar .fa{width:30px;line-height:1.2rem}.admin-sidebar .menu-heading{padding:0 0 .5rem 1.5rem;font-size:.8rem;text-transform:uppercase;font-weight:700;color:#666}.pagination a{background-color:#fff}.admin-content{padding-top:1rem;margin-bottom:0}.admin-footer{margin-top:2rem}.container.is-fluid{max-width:1600px;margin:0 auto;padding:0 20px!important}.limit-width{max-width:600px}.has-bg-image>.card-image{background:no-repeat 50%;background-size:100%;height:200px}.has-bg-image .card-header-icon{margin:.5rem;border:0;-webkit-box-shadow:0 0 3px hsla(0,0%,4%,.4);box-shadow:0 0 3px hsla(0,0%,4%,.4);border-radius:7px;background-color:#fff;padding:.5rem;color:#212121;font-size:14px!important}.dropdown.show .card-header-icon{color:#444;-webkit-box-shadow:inset 0 2px 2px rgba(0,0,0,.3);box-shadow:inset 0 2px 2px rgba(0,0,0,.3)}.border-top{border-top:1px solid #d3e0e9}select[multiple].multi-select{all:initial;font:inherit;overflow-y:auto;border-radius:3px;padding:.5em 2.5em .5em .625em;background-color:#fff;border:1px solid #ccd0d2;color:#444;cursor:pointer;display:block;outline:none}select[multiple].multi-select:active,select[multiple].multi-select:focus{border-color:#2a9d8f}.public-DraftEditor-content{min-height:200px}.Select{position:relative}.Select input::-webkit-contacts-auto-fill-button,.Select input::-webkit-credentials-auto-fill-button{display:none!important}.Select input::-ms-clear,.Select input::-ms-reveal{display:none!important}.Select,.Select div,.Select input,.Select span{-webkit-box-sizing:border-box;box-sizing:border-box}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{-webkit-box-shadow:none;box-shadow:none}.Select.is-searchable.is-focused:not(.is-open)>.Select-control,.Select.is-searchable.is-open>.Select-control{cursor:text}.Select.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b2b2 #ccc #d9d9d9}.Select.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.Select.is-focused>.Select-control{background:#fff}.Select.is-focused:not(.is-open)>.Select-control{border-color:#2a9d8f #2fb1a1 #2fb1a1;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 0 5px -1px fade(#2a9d8f,50%);box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 0 5px -1px fade(#2a9d8f,50%)}.Select.has-value.is-clearable.Select--single>.Select-control .Select-value{padding-right:42px}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.Select.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#2a9d8f;outline:none;text-decoration:underline}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus{background:#fff}.Select.has-value.is-pseudo-focused .Select-input{opacity:0}.Select.is-open .Select-arrow,.Select .Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select.Select--rtl{direction:rtl;text-align:right}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b2b2;border-radius:2px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{-webkit-box-shadow:0 1px 0 rgba(0,0,0,.06);box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none;background:#fff}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;-webkit-box-shadow:none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:17px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading,.Select-loading-zone{position:relative;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{position:absolute;display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select--rtl .Select-arrow-zone{padding-right:0;padding-left:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}@-webkit-keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:2px;border-bottom-left-radius:2px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.06);box-shadow:0 1px 0 rgba(0,0,0,.06);-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:-1px;position:absolute;left:0;top:100%;width:100%;z-index:1000;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.Select-option.is-selected{background-color:#f5faff;color:#333}.Select-option.is-focused{background-color:#f2f9fc;color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{-webkit-box-sizing:border-box;box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.Select--rtl .Select-input{margin-left:0;margin-right:10px}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#f2f9fc;border-radius:2px;border:1px solid #c9e6f2;color:#08c;display:inline-block;font-size:.9em;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#08c;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c9e6f2;padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#ddeff7;color:#0077b3}.Select--multi .Select-value-icon:active{background-color:#c9e6f2}.Select--multi.Select--rtl .Select-value{margin-left:0;margin-right:5px}.Select--multi.Select--rtl .Select-value-icon{border-right:none;border-left:1px solid #c9e6f2}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e2e2;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e2e2}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}.Select-menu-outer{position:relative!important;max-height:200px;overflow:auto}.info-box{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-webkit-box-orient:vertical;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1rem;position:relative;min-height:102px}.info-box.is-primary .info-box-icon{background-color:#2a9d8f;color:#fff}.document .info-box h1,.document .info-box h2,.document .info-box h3,.document .info-box h4,.document .info-box h5,.info-box .document h1,.info-box .document h2,.info-box .document h3,.info-box .document h4,.info-box .document h5,.info-box .title{font-size:1.25rem;margin-bottom:0}.info-box-text{font-size:2rem;font-weight:700;color:#4d7ec8}.box-footer{margin:1.5rem -1rem 0;padding:1rem 1rem 0;border-top:1px solid #d3e0e9}.is-full-height{height:100%}.card{-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.spinner-overlay{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;-moz-align-items:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-moz-justify-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8);z-index:1500}.overlay-blur,.spinner-overlay{position:fixed;top:0;left:0;bottom:0;right:0}.overlay-blur{z-index:0;-webkit-filter:blur(5px);filter:blur(5px)}.spinner-container{color:#444;font-size:2rem;z-index:10}.spinner-container .is-loading{-webkit-animation:spinAround .5s infinite linear;animation:spinAround .5s infinite linear;border:2px solid #2a9d8f;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:2em;width:2em;left:calc(50% - 0.5em);top:calc(50% - 0.5em);position:absolute}.inline-spinner{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;-moz-align-items:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-moz-justify-content:center;justify-content:center;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#aaa;color:#ddd;font-size:30px}.inline-spinner .inline-spinner-container{text-align:center;font-weight:100}.alert{padding:1rem;background-color:#fff;margin-bottom:1rem;border-radius:2px}.alert a{color:#fff;text-decoration:underline}.alert.is-danger{background-color:#bf5329;color:#fff}.alert.is-success{background-color:#2ab27b;color:#fff}.alert.is-warning{background-color:#f39c12;color:#212121}.alert.is-warning a{color:#212121;text-decoration:underline}.push-notification{width:250px;position:fixed;top:0;right:1em;z-index:1100;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.3);box-shadow:0 2px 8px rgba(0,0,0,.3);visibility:hidden;opacity:0;-webkit-transition:opacity .5s ease-in-out,top 1s ease-in-out,margin-top .25s linear;transition:opacity .5s ease-in-out,top 1s ease-in-out,margin-top .25s linear}.push-notification.show{visibility:visible;opacity:1;top:4.5rem}.push-notification.hiding{visibility:visible;opacity:0;top:-100%}.tooltip{position:relative;display:block;width:100%;text-align:center}.tooltip .tooltip-text{opacity:0;-webkit-transition:opacity .25s linear;transition:opacity .25s linear;width:100%;min-width:120px;background-color:#222;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;visibility:hidden;font-size:1rem!important;font-weight:400!important;white-space:normal!important}.tooltip .tooltip-text.show{opacity:1;visibility:visible}.button .tooltip .tooltip-text{padding:10px}.tooltip .tooltip-text:after{content:" ";position:absolute;border-width:5px;border-style:solid}.tooltip{position:static}.tooltip.top .tooltip-text{bottom:110%;margin-left:-60px;left:50%}.tooltip.top .tooltip-text:after{top:100%;left:50%;margin-left:-5px;border-color:#222 transparent transparent}.tooltip.bottom .tooltip-text{bottom:150%;margin-left:-50%;left:50%}.tooltip.bottom .tooltip-text:after{top:100%;border-color:#222 transparent transparent}.tooltip.left .tooltip-text{top:0;right:110%;margin-top:-8px}.tooltip.left .tooltip-text:after{top:50%;margin-top:-5px;left:100%;border-color:transparent transparent transparent #222}.tooltip.right .tooltip-text{bottom:150%}.tooltip.right .tooltip-text:after{top:100%;border-color:#222 transparent transparent}.relative-block{position:relative;overflow:hidden;height:100%}a.card-header-title:hover{color:#2a9d8f}.card-header-icon{position:relative}.card-header-icon.is-clear{color:#aaa;padding-right:.25rem;padding-left:.25rem;z-index:11;margin-right:.2rem}.card-header-icon.is-clear.is-active .fa-times,.card-header-icon.is-clear:hover .fa-times{color:#bf5329}.card-header-icon.is-clear.is-active .fa-check,.card-header-icon.is-clear:hover .fa-check{color:#2a9d8f}.fade{-webkit-transition:opacity 1s ease;transition:opacity 1s ease;opacity:0}.fade.in{opacity:1}.card-slide-content{-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out;position:absolute;top:0;bottom:0;left:0;right:0;background-color:#f7f7f7;overflow-y:auto!important;-webkit-transform:translateY(130%);transform:translateY(130%);border-top:1px solid #dbdbdb}.card-slide-content.show{-webkit-transform:translate(0);transform:translate(0)}.card-slide-content .close{position:absolute;top:.5rem;right:.5rem;width:30px;height:30px;background-color:#fff;border-radius:50%;font-size:14px;-webkit-box-shadow:0 1px 3px hsla(0,0%,4%,.2);box-shadow:0 1px 3px hsla(0,0%,4%,.2);color:#555;z-index:10;text-align:center}.card-slide-content .close>.fa{line-height:1}.card-slide-content .card-textarea-sm{min-height:80px;max-height:80px;resize:none}.card-slide-container{max-height:100%;overflow-y:auto!important;overflow-x:hidden}.card-footer,.card-footer-item,.sidebar-icons-container .card-footer>a{background-color:#fff;z-index:10}.card-footer-item,.sidebar-icons-container .card-footer>a{position:relative}.marks-section{border-bottom:1px solid #dbdbdb}.marks-section+.card-content{padding-top:1rem}.observation-tools>a{margin-right:.5rem}@media screen and (max-width:768px){.box{overflow-x:auto}}.card-equal-height{display:-webkit-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-webkit-box-orient:vertical;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.card-equal-height .card-footer{margin-top:auto}.img-bg-zoom{-webkit-transition:background-size .25s linear;transition:background-size .25s linear}.img-bg-zoom:hover{background-size:110%}.z-10{z-index:10!important}.modal-card-lg{width:90%;max-width:1300px}.close-modal{position:absolute;top:10px;right:10px;background:#fff;border-radius:50%;width:40px;height:40px;border:1px solid #fff;font-size:20px;color:#555;cursor:pointer}.close-modal .fa{line-height:25px}.modal{z-index:1050}.floating-disclaimer{position:fixed;z-index:1100;bottom:-150%;right:1rem;visibility:hidden;opacity:0;max-width:350px;-webkit-box-shadow:-2px 2px 5px rgba(0,0,0,.3);box-shadow:-2px 2px 5px rgba(0,0,0,.3);-webkit-transition:opacity 1s linear,bottom 1s ease-in-out .5s;transition:opacity 1s linear,bottom 1s ease-in-out .5s}.floating-disclaimer.is-active{visibility:visible;opacity:1;bottom:1rem}.item-box{margin-bottom:.5rem;padding:1rem;border-radius:2px}.item-box.is-lighter-dark{background-color:#28394e}.item-box.is-lighter-dark strong{color:#fff}.item-thumbnail{width:45px;height:45px}.hexagon{position:relative;width:40px;height:23.09px;margin:11px 0}.hexagon:after,.hexagon:before{content:"";position:absolute;width:0;border-left:20px solid transparent;border-right:20px solid transparent}.hexagon:before{bottom:100%;border-bottom:11.15px solid transparent}.hexagon:after{top:100%;width:0;border-top:11.15px solid transparent}.hexagon.is-primary{background-color:#2a9d8f;color:#fff}.hexagon.is-primary:before{border-bottom-color:#2a9d8f}.hexagon.is-primary:after{border-top-color:#2a9d8f}.hexagon.is-info{background-color:#4d7ec8;color:#fff}.hexagon.is-info:before{border-bottom-color:#4d7ec8}.hexagon.is-info:after{border-top-color:#4d7ec8}.hexagon.is-success{background-color:#2ab27b;color:#fff}.hexagon.is-success:before{border-bottom-color:#2ab27b}.hexagon.is-success:after{border-top-color:#2ab27b}.hexagon.is-warning{background-color:#f39c12;color:#1f2d3d}.hexagon.is-warning:before{border-bottom-color:#f39c12}.hexagon.is-warning:after{border-top-color:#f39c12}.hexagon.is-danger{background-color:#bf5329;color:#fff}.hexagon.is-danger:before{border-bottom-color:#bf5329}.hexagon.is-danger:after{border-top-color:#bf5329}.hexagon.is-dark{background-color:#1f2d3d;color:#fff}.hexagon.is-dark:before{border-bottom-color:#1f2d3d}.hexagon.is-dark:after{border-top-color:#1f2d3d}.hexagon.is-white{background-color:#fff;color:#1f2d3d}.hexagon.is-white:before{border-bottom-color:#fff}.hexagon.is-white:after{border-top-color:#fff}.input[type=search]{border-radius:2px!important}.checkbox-container,.input,.textarea{-webkit-box-shadow:none;box-shadow:none}.checkbox-container{border:1px solid #dbdbdb;border-bottom:0;border-radius:2px}.checkbox-button{border-radius:0;border:0;border-bottom:1px solid #dbdbdb;background:#eee}.checkbox-button:first-of-type{border-top-left-radius:2px;border-top-right-radius:2px}.checkbox-button:last-of-type{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.checkbox-button:hover{-webkit-box-shadow:none;box-shadow:none}.checkbox-button:focus,.checkbox-button:hover{-webkit-box-shadow:none;box-shadow:none;border-color:#dbdbdb}.checkbox-button .icon{margin-right:.5rem;color:#aaa}.checkbox-button.is-active{background:#fff;-webkit-box-shadow:none;box-shadow:none;border-color:#dedede}.checkbox-button.is-active .icon{color:#2a9d8f}.checkbox-button.is-active:hover{background:#f7f7f7}.buttons-group .button{margin-right:.5rem}.field.is-horizontal .label{line-height:2rem}.field.is-horizontal.has-medium-label .field-label{max-width:60px}.button-select{background-color:#f5f5f5;white-space:normal!important;height:auto;line-height:1.5}.button-select .fa{color:#aaa}.button-select.is-selected{background-color:#fff;border-color:#2a9d8f}.button-select.is-selected,.button-select.is-selected .fa{color:#2a9d8f}.bordered{border:1px solid #dbdbdb;border-radius:2px;padding:1rem}.has-select select.is-full-width,.has-select select.is-full-width>select,.select.is-full-width,.select.is-full-width>select{width:100%}.has-select select,.has-select select select,.select,.select select{max-width:100%}.table{width:100%}.table>thead>tr>th.has-text-right{text-align:right}@media screen and (max-width:1068px){.table-responsive{overflow:auto;width:100%}}.table-fixed{table-layout:fixed}.table-thumbnail-container{width:120px}.table-thumbnail{width:100px;height:auto}div.dataTables_wrapper div.dataTables_length select{width:auto;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:400;text-align:left}div.dataTables_wrapper div.dataTables_paginate{float:right}table.dataTable thead>tr>td.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc{padding-right:30px}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:4px;right:4px;display:block;font-family:FontAwesome;opacity:.5}table.dataTable thead .sorting:after{opacity:.2;content:"\F0DC"}table.dataTable thead .sorting_asc:after{content:"\F0DE"}table.dataTable thead .sorting_desc:after{content:"\F0DD"}table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{color:#eee}@media screen and (max-width:767px){div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_paginate{text-align:center}}.mb-none{margin-bottom:0!important}.mb-auto{margin-bottom:auto}.mb-01{margin-bottom:.1rem!important}.mb-0{margin-bottom:.5rem!important}.mb-1{margin-bottom:1rem!important}.mb-2{margin-bottom:2rem!important}.mt-none{margin-top:0!important}.mt-auto{margin-top:auto}.mt-0{margin-top:.5rem}.mt-1{margin-top:1rem!important}.mt-2{margin-top:1.5rem!important}.mt-3{margin-top:2rem}.ml-auto{margin-left:auto}.ml-0{margin-left:.5rem}.ml-1{margin-left:1rem}.mr-auto{margin-right:auto}.mr-0{margin-right:.5rem!important}.mr-1{margin-right:1rem}.p-0{padding:.5rem!important}.p-1{padding:1rem!important}.pb-none{padding-bottom:0!important}.pt-none{padding-top:0!important}.pt-0{padding-top:.5rem!important}.pt-1{padding-top:1rem!important}.welcomeTile{border:30px;height:300px;width:500px}.mapLink{border:30px;background-color:#f5f8fa}.document h2,.document h3,.document h4,.document h5,.document h6{margin-top:2rem;margin-bottom:1rem!important}.document h1{margin-top:2rem}.document h1:first-of-type{margin-top:0}.document p{margin-bottom:.5rem}.document .body ul{margin-left:20px;list-style-type:circle}.error-page{position:absolute;top:0;left:0;right:0;bottom:0;padding:10% 1rem}.error-page .error-page-container{max-width:600px;margin:0 auto}.error-page .circle{border-radius:50%;background-color:#bf5329;width:120px;height:120px;line-height:120px;font-size:40px;color:#fff;display:inline-block;font-weight:700;margin-bottom:1rem}.text-success{color:#2a9d8f}.help.is-warning{color:#c87f0a;font-weight:700}.help.is-pulled-up{background-color:#f9f9f9;position:absolute;top:0;z-index:10;padding:.25rem;-webkit-box-shadow:0 0 1px rgba(0,0,0,.24);box-shadow:0 0 1px rgba(0,0,0,.24)}.button.is-gray{background-color:#aaa;color:#fff;border:1px solid #aaa}.button.is-gray:hover{background-color:#bf5329;border-color:#bf5329}.button.is-block{width:100%;text-align:center}.no-wrap{white-space:nowrap}.is-positioned-relatively{position:relative}.border-bottom{border-bottom:1px solid #ddd}.icon.is-circle{width:42px;height:42px;line-height:42px;border-radius:50%;background-color:#2a9d8f;color:#fff;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.25);box-shadow:0 1px 2px rgba(0,0,0,.25)}.icon.is-circle.is-success{background-color:#2ab27b}.icon.is-circle.is-danger{background-color:#bf5329}.icon.is-circle.is-info{background-color:#4d7ec8}.icon.is-circle.is-warning{background-color:#f39c12}.has-text-vertically-centered>tbody>tr>td,.has-text-vertically-centered>tbody>tr>th,.has-text-vertically-centered>tfoot>tr>td,.has-text-vertically-centered>tfoot>tr>th,.has-text-vertically-centered>thead>tr>td,.has-text-vertically-centered>thead>tr>th{vertical-align:middle}.img-circle{border-radius:50%}.bg-primary{background-color:#2a9d8f;color:#fff}.text-primary{color:#2a9d8f}.bg-info{background-color:#4d7ec8;color:#fff}.text-info{color:#4d7ec8}.bg-success{background-color:#2ab27b;color:#fff}.text-success{color:#2ab27b}.bg-warning{background-color:#f39c12;color:#1f2d3d}.text-warning{color:#f39c12}.bg-danger{background-color:#bf5329;color:#fff}.text-danger{color:#bf5329}.bg-dark{background-color:#1f2d3d;color:#fff}.bg-white,.text-dark{color:#1f2d3d}.bg-white{background-color:#fff}.text-white{color:#fff}.bg-dark a{color:#2a9d8f}.bg-dark a:hover{color:#fff}.text-muted{color:#6c757d}.text-dark-muted{color:#d7dbdf}.text-small{font-size:14px!important}.elevation-1{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.elevation-2{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23)}.elevation-3{-webkit-box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23)}.elevation-4{-webkit-box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.elevation-5{-webkit-box-shadow:0 19px 38px rgba(0,0,0,.3),0 15px 12px rgba(0,0,0,.22);box-shadow:0 19px 38px rgba(0,0,0,.3),0 15px 12px rgba(0,0,0,.22)}.font-weight-light{font-weight:300!important}.font-weight-bold{font-weight:700!important}.font-weight-normal{font-weight:400!important}.invisible-scrollbar::-webkit-scrollbar{visibility:hidden}.invisible-scrollbar:hover::-webkit-scrollbar{visibility:visible}.invisible-scrollbar{-ms-overflow-style:-ms-autohiding-scrollbar}.is-rounded{border-radius:4px}.is-borderless{border-width:0!important} /*! Ionicons, v2.0.0 diff --git a/public/js/0.825a5c484855705e19a3.js b/public/js/0.825a5c484855705e19a3.js deleted file mode 100644 index 9279781f..00000000 --- a/public/js/0.825a5c484855705e19a3.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([0],{"+1gT":function(e,t,n){"use strict";var r=n("x5U2");e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,l=e.offsetHeight,u="width"===t?s:l;n||(u-=parseFloat(a["padding"+o])+parseFloat(a["padding"+i])+parseFloat(a["border"+o+"Width"])+parseFloat(a["border"+i+"Width"]));r&&(u+=parseFloat(a["margin"+o])+parseFloat(a["margin"+i]));return u}},"/Tzs":function(e,t,n){e.exports=n("h8mb").default},"/plk":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;si&&(a=0),n.setState({previousIndex:o,currentIndex:a,isTransitioning:a!==o,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new u.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,l.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,o){var i=n.state,a=i.scrollingUpDown,s=i.scrollingLeftRight,l=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var u=(t>0?1:-1)*(l?-1:1);n._handleOnSwipedTo(u,o)}},n._handleSwiping=function(e,t,r,o){var i=n.state,a=i.galleryWidth,s=i.isTransitioning,l=i.scrollingUpDown,u=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||l)n.setState({offsetPercentage:0});else{var c=t<0?1:-1,f=o/a*100;Math.abs(f)>=100&&(f=100);var d={transition:"transform "+u+"ms ease-out"};n.setState({offsetPercentage:c*f,style:d})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return i.default.createElement("div",{className:"image-gallery-image"},e.imageSet?i.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return i.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),i.default.createElement("img",{alt:e.originalAlt,src:e.original})):i.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&i.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return i.default.createElement("div",{className:"image-gallery-thumbnail-inner"},i.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&i.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this._intervalId){var n=this.props,r=n.slideInterval,o=n.slideDuration;this.setState({isPlaying:!0}),this._intervalId=window.setInterval(function(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,o)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;d.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;d.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,o=n.scrollingLeftRight,i=Math.abs(e);Math.abs(t)>i&&!r&&!o?this.setState({scrollingUpDown:!0}):o||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,o=n.isTransitioning,i=r;!this._sufficientSwipeOffset()&&!t||o||(i+=e),e<0?this._canSlideLeft()||(i=r):this._canSlideRight()||(i=r),this._unthrottledSlideToIndex(i)}},{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.currentIndex0&&(er&&this._setThumbsTranslate(n+i))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,o=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){if(this._thumbnails.scrollHeight<=r)return 0;o=this._thumbnails.scrollHeight-r}else{if(this._thumbnails.scrollWidth<=n||n<=0)return 0;o=this._thumbnails.scrollWidth-n}return e*(o/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,o=t.previousIndex,i=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?i=-100+r:1===n&&0===e&&r<0&&(i=100+r),n!==o?0===o&&0===e&&0===r&&"left"===this.direction?i=100:1===o&&1===e&&0===r&&"right"===this.direction&&(i=-100):0===n&&1===e&&0===r&&"left"===this.direction?i=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(i=100),i}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,o=t.currentIndex;return n&&!(e===r||e===o)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,o=this.props,i=o.infinite,a=o.items,s=o.useTranslate3D,l=o.isRTL,u=-100*n,c=a.length-1,f=(u+100*e)*(l?-1:1)+r;i&&a.length>2&&(0===n&&e===c?f=-100*(l?-1:1)+r:n===c&&0===e&&(f=100*(l?-1:1)+r)),i&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var d="translate("+f+"%, 0)";return s&&(d="translate3d("+f+"%, 0, 0)"),{WebkitTransform:d,MozTransform:d,msTransform:d,OTransform:d,transform:d}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,o=this.state.thumbsTranslate,i=r?-1*o:o;return this._isThumbnailHorizontal()?(e="translate(0, "+o+"px)",n&&(e="translate3d(0, "+o+"px, 0)")):(e="translate("+i+"px, 0)",n&&(e="translate3d("+i+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,o=t.isFullscreen,s=t.modalFullscreen,l=t.isPlaying,u=t.scrollingLeftRight,c=this.props,f=c.infinite,d=c.preventDefaultTouchmoveEvent,h=c.isRTL,p=this._getThumbnailStyle(),y=this.props.thumbnailPosition,v=this._slideLeft,m=this._slideRight,g=[],b=[],_=[];this.props.items.forEach(function(t,o){var a=e._getAlignmentClassName(o),s=t.originalClass?" "+t.originalClass:"",l=t.thumbnailClass?" "+t.thumbnailClass:"",u=t.renderItem||e.props.renderItem||e._renderItem,c=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,d=!e.props.lazyLoad||a||e._lazyLoaded[o];d&&e.props.lazyLoad&&(e._lazyLoaded[o]=!0);var h=e._getSlideStyle(o),p=i.default.createElement("div",{key:o,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},d?u(t):i.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(o)&&g.push(p):g.push(p),e.props.showThumbnails&&b.push(i.default.createElement("a",{key:o,role:"button","aria-pressed":n===o?"true":"false","aria-label":"Go to Slide "+(o+1),className:"image-gallery-thumbnail"+(n===o?" active":"")+l,onClick:function(t){return e._onThumbnailClick(t,o)}},c(t))),e.props.showBullets){_.push(i.default.createElement("button",{key:o,type:"button",className:["image-gallery-bullet",n===o?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:o,currentIndex:n}),e.slideToIndex.call(e,o,r)},"aria-pressed":n===o?"true":"false","aria-label":"Go to Slide "+(o+1)}))}});var w=i.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+y+" "+(h?"image-gallery-rtl":"")},this.props.renderCustomControls&&this.props.renderCustomControls(),this.props.showFullscreenButton&&this.props.renderFullscreenButton(this._toggleFullScreen,o),this.props.showPlayButton&&this.props.renderPlayPauseButton(this._togglePlay,l),this._canNavigate()?[this.props.showNav&&i.default.createElement("span",{key:"navigation"},this.props.renderLeftNav(v,!this._canSlideLeft()),this.props.renderRightNav(m,!this._canSlideRight())),i.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:d||u},i.default.createElement("div",{className:"image-gallery-slides"},g))]:i.default.createElement("div",{className:"image-gallery-slides"},g),this.props.showBullets&&i.default.createElement("div",{className:"image-gallery-bullets"},i.default.createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},_)),this.props.showIndex&&i.default.createElement("div",{className:"image-gallery-index"},i.default.createElement("span",{className:"image-gallery-index-current"},this.state.currentIndex+1),i.default.createElement("span",{className:"image-gallery-index-separator"},this.props.indexSeparator),i.default.createElement("span",{className:"image-gallery-index-total"},this.props.items.length))),k=["image-gallery",this.props.additionalClass,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return i.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:k,"aria-live":"polite"},i.default.createElement("div",{className:"image-gallery-content"+(o?" fullscreen":"")},("bottom"===y||"right"===y)&&w,this.props.showThumbnails&&i.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+y+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},i.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},i.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:p,"aria-label":"Thumbnail Navigation"},b))),("top"===y||"left"===y)&&w))}}]),t}();h.propTypes={flickThreshold:c.default.number,items:c.default.array.isRequired,showNav:c.default.bool,autoPlay:c.default.bool,lazyLoad:c.default.bool,infinite:c.default.bool,showIndex:c.default.bool,showBullets:c.default.bool,showThumbnails:c.default.bool,showPlayButton:c.default.bool,showFullscreenButton:c.default.bool,disableThumbnailScroll:c.default.bool,disableArrowKeys:c.default.bool,disableSwipe:c.default.bool,useBrowserFullscreen:c.default.bool,preventDefaultTouchmoveEvent:c.default.bool,defaultImage:c.default.string,indexSeparator:c.default.string,thumbnailPosition:c.default.string,startIndex:c.default.number,slideDuration:c.default.number,slideInterval:c.default.number,swipeThreshold:c.default.number,swipingTransitionDuration:c.default.number,onSlide:c.default.func,onScreenChange:c.default.func,onPause:c.default.func,onPlay:c.default.func,onClick:c.default.func,onImageLoad:c.default.func,onImageError:c.default.func,onTouchMove:c.default.func,onTouchEnd:c.default.func,onTouchStart:c.default.func,onMouseOver:c.default.func,onMouseLeave:c.default.func,onThumbnailError:c.default.func,onThumbnailClick:c.default.func,renderCustomControls:c.default.func,renderLeftNav:c.default.func,renderRightNav:c.default.func,renderPlayPauseButton:c.default.func,renderFullscreenButton:c.default.func,renderItem:c.default.func,stopPropagation:c.default.bool,additionalClass:c.default.string,useTranslate3D:c.default.bool,isRTL:c.default.bool},h.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(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"0z1n":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6TBu");t.default=i.default.oneOf([a.OPEN_DOWN,a.OPEN_UP])},"1B1h":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=[{to:"/account",icon:"fa-address-card-o",label:"Settings"},{to:"/account/observations",icon:"fa-tree",label:"Observations"},{to:"/account/groups",icon:"fa-users",label:"Groups"},{to:"/account/collections",icon:"fa-th",label:"Collections"},{to:"/account/filters",icon:"fa-filter",label:"Filters"}],a=n("cabM"),s=n("TIMf"),l=n("ePhh"),u=function(){function e(e,t){for(var n=0;n0&&(F||j||a!==w)){var q=g||this.today;K=this.deleteModifierFromRange(K,q,q.clone().add(w,"days"),"blocked-minimum-nights"),K=this.deleteModifierFromRange(K,q,q.clone().add(w,"days"),"blocked")}(F||L)&&(0,f.default)(T).forEach(function(e){Object.keys(e).forEach(function(e){var n=(0,c.default)(e),r=!1;(F||P)&&(s(n)?(K=t.addModifier(K,n,"blocked-out-of-range"),r=!0):K=t.deleteModifier(K,n,"blocked-out-of-range")),(F||I)&&(l(n)?(K=t.addModifier(K,n,"blocked-calendar"),r=!0):K=t.deleteModifier(K,n,"blocked-calendar")),K=r?t.addModifier(K,n,"blocked"):t.deleteModifier(K,n,"blocked"),(F||x)&&(K=u(n)?t.addModifier(K,n,"highlighted-calendar"):t.deleteModifier(K,n,"highlighted-calendar"))})}),a>0&&n&&o===N.END_DATE&&(K=this.addModifierToRange(K,n,n.clone().add(a,"days"),"blocked-minimum-nights"),K=this.addModifierToRange(K,n,n.clone().add(a,"days"),"blocked"));var G=(0,c.default)();if((0,m.default)(this.today,G)||(K=this.deleteModifier(K,this.today,"today"),K=this.addModifier(K,G,"today"),this.today=G),Object.keys(K).length>0&&this.setState({visibleDays:(0,i.default)({},T,K)}),F||d!==D){var V=R(d,o);this.setState({phrases:(0,i.default)({},d,{chooseAvailableDate:V})})}}}()},{key:"onDayClick",value:function(){return function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,i=n.onBlur,a=n.focusedInput,s=n.onFocusChange,l=n.onClose,u=n.onDatesChange,c=n.startDateOffset,f=n.endDateOffset,d=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var h=this.props,p=h.startDate,v=h.endDate;if(c||f)p=(0,k.default)(c,e),v=(0,k.default)(f,e),r||(s(null),l({startDate:p,endDate:v}));else if(a===N.START_DATE){var m=v&&v.clone().subtract(o,"days"),_=(0,b.default)(m,e)||(0,g.default)(p,v),w=d===N.END_DATE;w&&_||(p=e,_&&(v=null)),w&&!_?(s(null),l({startDate:p,endDate:v})):w||s(N.END_DATE)}else if(a===N.END_DATE){var E=p&&p.clone().add(o,"days");p?(0,y.default)(e,E)?(v=e,r||(s(null),l({startDate:p,endDate:v}))):d!==N.START_DATE&&(p=e,v=null):(v=e,s(N.START_DATE))}u({startDate:p,endDate:v}),i()}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,a=t.minimumNights,s=t.startDateOffset,l=t.endDateOffset,u=this.state,c=u.hoverDate,f=u.visibleDays,d=null;if(o){var h=s||l,p={};if(h){var y=(0,k.default)(s,e),v=(0,k.default)(l,e,function(e){return e.add(1,"day")});d={start:y,end:v},this.state.dateOffset&&this.state.dateOffset.start&&this.state.dateOffset.end&&(p=this.deleteModifierFromRange(p,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),p=this.addModifierToRange(p,y,v,"hovered-offset")}if(!h){if(p=this.deleteModifier(p,c,"hovered"),p=this.addModifier(p,e,"hovered"),n&&!r&&o===N.END_DATE){if((0,g.default)(c,n)){var _=c.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,_,"hovered-span")}if(!this.isBlocked(e)&&(0,g.default)(e,n)){var w=e.clone().add(1,"day");p=this.addModifierToRange(p,n,w,"hovered-span")}}if(!n&&r&&o===N.START_DATE&&((0,b.default)(c,r)&&(p=this.deleteModifierFromRange(p,c,r,"hovered-span")),!this.isBlocked(e)&&(0,b.default)(e,r)&&(p=this.addModifierToRange(p,e,r,"hovered-span"))),n){var E=n.clone().add(1,"day"),S=n.clone().add(a+1,"days");if(p=this.deleteModifierFromRange(p,E,S,"after-hovered-start"),(0,m.default)(e,n)){var D=n.clone().add(1,"day"),O=n.clone().add(a+1,"days");p=this.addModifierToRange(p,D,O,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:d,visibleDays:(0,i.default)({},f,p)})}}}}()},{key:"onDayMouseLeave",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=this.state,s=a.hoverDate,l=a.visibleDays,u=a.dateOffset;if(!this.isTouchDevice&&s){var c={};if(c=this.deleteModifier(c,s,"hovered"),u&&(c=this.deleteModifierFromRange(c,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!r&&(0,g.default)(s,n)){var f=s.clone().add(1,"day");c=this.deleteModifierFromRange(c,n,f,"hovered-span")}if(!n&&r&&(0,g.default)(r,s)&&(c=this.deleteModifierFromRange(c,s,r,"hovered-span")),n&&(0,m.default)(e,n)){var d=n.clone().add(1,"day"),h=n.clone().add(o+1,"days");c=this.deleteModifierFromRange(c,d,h,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,i.default)({},l,c)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,l={};Object.keys(s).sort().slice(0,n+1).forEach(function(e){l[e]=s[e]});var u=a.clone().subtract(2,"months"),c=(0,_.default)(u,1,r,!0),f=a.clone().subtract(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},l,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,l={};Object.keys(s).sort().slice(1).forEach(function(e){l[e]=s[e]});var u=a.clone().add(n+1,"month"),c=(0,_.default)(u,1,r,!0),f=a.clone().add(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},l,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===N.VERTICAL_SCROLLABLE,i=(0,_.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===N.VERTICAL_SCROLLABLE,i=(0,_.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onMultiplyScrollableMonths",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,a=r.visibleDays,s=Object.keys(a).length,l=o.clone().add(s,"month"),u=(0,_.default)(l,t,n,!0);this.setState({visibleDays:(0,i.default)({},a,this.getModifiers(u))})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,o=n.startDate,i=n.endDate,a=n.focusedInput,s=n.minimumNights,l=n.numberOfMonths,u=e.clone().startOf("month");if(a===N.START_DATE&&o?u=o.clone():a===N.END_DATE&&!i&&o?u=o.clone().add(s,"days"):a===N.END_DATE&&i&&(u=i.clone()),this.isBlocked(u)){for(var c=[],f=e.clone().add(l-1,"months").endOf("month"),d=u.clone();!(0,g.default)(d,f);)d=d.clone().add(1,"day"),c.push(d);var h=c.filter(function(e){return!t.isBlocked(e)});h.length>0&&(u=r(h,1)[0])}return u}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,E.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,i=e.orientation,a=e.startDate,s=(n||(a?function(){return a}:function(){return t.today}))(),l=i===N.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,_.default)(s,r,o,l))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,l=this.state,u=l.currentMonth,c=l.visibleDays,f=u,d=o;if(s===N.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,w.default)(t,f,d,a))return e;var h=(0,E.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.add(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},h,a))))},p);else{var y=(0,S.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.add(n),p=(0,i.default)({},p,x({},y,(0,i.default)({},v,x({},h,m))))}return p}}()},{key:"addModifierToRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,b.default)(i,n);)o=this.addModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,l=this.state,u=l.currentMonth,c=l.visibleDays,f=u,d=o;if(s===N.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,w.default)(t,f,d,a))return e;var h=(0,E.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.delete(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},h,a))))},p);else{var y=(0,S.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.delete(n),p=(0,i.default)({},p,x({},y,(0,i.default)({},v,x({},h,m))))}return p}}()},{key:"deleteModifierFromRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,b.default)(i,n);)o=this.deleteModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"doesNotMeetMinimumNights",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,i=t.minimumNights;if(o!==N.END_DATE)return!1;if(n){var a=e.diff(n.clone().startOf("day").hour(12),"days");return a=0}return r((0,c.default)(e).subtract(i,"days"))}}()},{key:"isDayAfterHoveredStartDate",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,v.default)(i,e)&&o>0&&(0,m.default)(i,n)}}()},{key:"isEndDate",value:function(){return function(e){var t=this.props.endDate;return(0,m.default)(e,t)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,m.default)(e,t)}}()},{key:"isInHoveredSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,i=!!n&&!r&&(e.isBetween(n,o)||(0,m.default)(o,e)),a=!!r&&!n&&(e.isBetween(o,r)||(0,m.default)(o,e)),s=o&&!this.isBlocked(o);return(i||a)&&s}}()},{key:"isInSelectedSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}}()},{key:"isLastInRange",value:function(){return function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,v.default)(e,t)}}()},{key:"isStartDate",value:function(){return function(e){var t=this.props.startDate;return(0,m.default)(e,t)}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}}()},{key:"isToday",value:function(){return function(e){return(0,m.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||c.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||c.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,s=e.navNext,l=e.noNavButtons,u=e.onOutsideClick,c=e.withPortal,f=e.enableOutsideDays,d=e.firstDayOfWeek,h=e.hideKeyboardShortcutsPanel,p=e.daySize,y=e.focusedInput,v=e.renderCalendarDay,m=e.renderDayContents,g=e.renderCalendarInfo,b=e.renderMonthElement,_=e.calendarInfoPosition,w=e.onBlur,k=e.isFocused,E=e.showKeyboardShortcuts,S=e.isRTL,D=e.weekDayFormat,O=e.dayAriaLabelFormat,M=e.verticalHeight,C=e.noBorder,T=e.transitionDuration,N=e.verticalBorderSpacing,I=e.horizontalMonthPadding,x=this.state,L=x.currentMonth,j=x.phrases,R=x.visibleDays;return a.default.createElement(P.default,{orientation:n,enableOutsideDays:f,modifiers:R,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:r,renderMonthText:o,withPortal:c,hidden:!y,initialVisibleMonth:function(){return L},daySize:p,onOutsideClick:u,navPrev:i,navNext:s,noNavButtons:l,renderCalendarDay:v,renderDayContents:m,renderCalendarInfo:g,renderMonthElement:b,calendarInfoPosition:_,firstDayOfWeek:d,hideKeyboardShortcutsPanel:h,isFocused:k,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:w,showKeyboardShortcuts:E,phrases:j,isRTL:S,weekDayFormat:D,dayAriaLabelFormat:O,verticalHeight:M,verticalBorderSpacing:N,noBorder:C,transitionDuration:T,horizontalMonthPadding:I})}}()}]),t}();t.default=A,A.propTypes=L,A.defaultProps=j},"32hK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDateRangePicker=void 0;var r=Object.assign||function(e){for(var t=1;t0?" is-danger":"")},o.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},o.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return o.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Or Create New Collection"),o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})),o.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),o.a.createElement(s.a,{visible:this.state.loading})):o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You must be logged in to add this observation to a collection."),o.a.createElement("p",null,"Please ",o.a.createElement("a",{href:"/login"},"login")," or ",o.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},c.defaultProps={collections:[],onSubmit:function(){}}},"5xeA":function(e,t,n){"use strict";var r=n("Lffp"),o=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var i=r.ArraySpeciesCreate(e,0);return function e(t,n,i,a,s){for(var l=a,u=0;u0&&(d=r.IsArray(f)),d)l=e(t,f,r.ToLength(r.Get(f,"length")),l,s-1);else{if(l>=o)throw new TypeError("index too large");r.CreateDataPropertyOrThrow(t,r.ToString(l),f),l+=1}}u+=1}return l}(i,e,t,0,n),i}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("O27J"),a=n.n(i),s=n("KSGD"),l=n.n(s),u=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),u(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return o.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},o.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(o.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=c,c.propTypes={message:l.a.string.isRequired,type:l.a.string,container:l.a.object.isRequired},c.defaultProps={type:"success"},c.stack=[]},"6MiT":function(e,t,n){var r=n("aCM0"),o=n("UnEC"),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},"6TBu":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},"6yBs":function(e,t,n){"use strict";e.exports=n("t0Wu")},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,o=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:o,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,o=t.onSwiping,i=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,u=t.onSwipingRight,c=t.onSwipedRight,f=t.onSwipingUp,d=t.onSwipedUp,h=t.onSwipingDown,p=t.onSwipedDown,y=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var v=l(e,this.swipeable);if(!(v.absXv.absY?v.deltaX>0?(a||s)&&(a&&a(e,v.absX),m=!0):(u||c)&&(u&&u(e,v.absX),m=!0):v.deltaY>0?(f||d)&&(f&&f(e,v.absY),m=!0):(h||p)&&(h&&h(e,v.absY),m=!0),this.swipeable.swiping=!0,m&&y&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,o=t.onSwiped,i=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,u=t.onSwipedDown,c=t.onTap;if(this.swipeable.swiping){var f=l(e,this.swipeable);n&&e.stopPropagation();var d=f.velocity>r;o&&o(e,f.deltaX,f.deltaY,d,f.velocity),f.absX>f.absY?f.deltaX>0?i&&i(e,f.deltaX,d):a&&a(e,f.deltaX,d):f.deltaY>0?s&&s(e,f.deltaY,d):u&&u(e,f.deltaY,d)}else c&&c(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,o.createElement(this.props.nodeName,e,this.props.children)},t}(o.Component);u.propTypes={onSwiped:i.func,onSwiping:i.func,onSwipingUp:i.func,onSwipingRight:i.func,onSwipingDown:i.func,onSwipingLeft:i.func,onSwipedUp:i.func,onSwipedRight:i.func,onSwipedDown:i.func,onSwipedLeft:i.func,onTap:i.func,flickThreshold:i.number,delta:i.number,preventDefaultTouchmoveEvent:i.bool,stopPropagation:i.bool,nodeName:i.string,trackMouse:i.bool,disabled:i.bool,innerRef:i.func,children:i.node,rotationAngle:i.number},u.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=u},"76UX":function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n("9MlZ");e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(t,n("DuR2"))},"7ciz":function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n("t+1C"),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=u&&n;if(s&&e.length>0&&!o.call(e,0))for(var y=0;y0)for(var v=0;v>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}var i=-1;e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,a,s){return r(function(r,l,u,c,f,d,h){var p=u[c],y=typeof p,v=function(e,t,n,r){var a=void 0===r,s=null===r;if(e){if(a)return o(n,t,"undefined");if(s)return o(n,t,"null")}return a||s?null:i}(r,f=f||n.anonymousMessage,h=h||c,p);if(v!==i)return v;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+c+"` of type `"+y+"` supplied to `"+f+"`, expected `"+e+"`.");if(!a(p))return new Error(n.baseInvalidMessage+d+" `"+c+"` of type `"+y+"` supplied to `"+f+"`, expected `"+s+"`.");if(l&&!l(p)){var m=l.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+c+"` of type `"+y+"` supplied to `"+f+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null})},messages:n}},"9+gG":function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},"9LH0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.DISPLAY_FORMAT):null};var r=a(n("PJh5")),o=a(n("8Pcz")),i=n("6TBu");function a(e){return e&&e.__esModule?e:{default:e}}},"9MlZ":function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},"9ge7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_MONTH_FORMAT):null};var r=a(n("PJh5")),o=a(n("8Pcz")),i=n("6TBu");function a(e){return e&&e.__esModule?e:{default:e}}},AByj:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=n("h7v/"),l=n("NdNt"),u=n("c8iI"),c=n("0dG/"),f=n.n(c),d=n("PJh5"),h=n.n(d),p=n("LZyd"),y=n("iwoP"),v=n("5L7H"),m=n("jVml"),g=n("mOuh"),b=n("OE/d"),_=n("t4LX"),w=n("F8kA"),k=n("xC2h"),E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},o.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return o.a.createElement(u.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},o.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:o.a.createElement("div",null,o.a.createElement("div",{className:"flexbox observation-tools"},o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-star text-success"})),o.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-flag text-danger"})),o.a.createElement("span",null,"Flag Observation")):null,b.a.can("contact users")?o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-envelope text-info"})),o.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return o.a.createElement(p.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return o.a.createElement(y.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return o.a.createElement("div",null,o.a.createElement("h3",{className:"title is-4"},"Add to Collection"),o.a.createElement(v.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":E(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:o.a.createElement("tr",{key:n},o.a.createElement("th",null,e),o.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?o.a.createElement("p",{className:"help"},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-lock"})),o.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),_.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return o.a.createElement("div",{className:"box has-text-centered"},o.a.createElement("div",{className:"content"},o.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),o.a.createElement("p",null,"Observation has been deleted successfully"),o.a.createElement(w.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return b.a.can("contact users")?o.a.createElement(k.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return o.a.createElement("div",{className:"box"},o.a.createElement("div",{className:"columns is-mobile flex-v-center"},o.a.createElement("div",{className:"column"},o.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),o.a.createElement("div",{className:"column is-narrow"},o.a.createElement("span",{className:"select"},o.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},o.a.createElement("option",{value:"US"},"US Units"),o.a.createElement("option",{value:"metric"},"Metric Units")))),b.a.can("delete observations")||b.a.owns(this.observation)?o.a.createElement("div",{className:"column is-narrow"},o.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-trash"})),o.a.createElement("span",null,"Delete"))):null),o.a.createElement("div",{className:"columns mb-none"},o.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},o.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},o.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("th",null,"Submitted By"),o.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?o.a.createElement("tr",null,o.a.createElement("th",null,"Custom Tree Identifier"),o.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?o.a.createElement("tr",null,o.a.createElement("th",null,"ID"),o.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,o=void 0!==m.a[n]?m.a[n]:n,i=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],i=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(o,i,n,r)}),o.a.createElement("tr",null,o.a.createElement("th",null,"Coordinates"),o.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?o.a.createElement("tr",null,o.a.createElement("th",null,"Location Accuracy"),o.a.createElement("td",null,b.a.can("view accurate location")||b.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,o.a.createElement("tr",null,o.a.createElement("th",null,"Date Collected"),o.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:o.a.createElement("tr",null,o.a.createElement("th",null,"Photos"),o.a.createElement("td",null,o.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),o.a.createElement("div",{className:"column"},o.a.createElement("div",{className:"tabs has-no-shadow"},o.a.createElement("ul",null,o.a.createElement("li",{className:this.getTabClass("photos")},o.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),o.a.createElement("li",{className:this.getTabClass("map")},o.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?o.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},o.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return o.a.createElement(l.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?o.a.createElement("div",{className:"callout"},o.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?o.a.createElement("div",{style:{width:"100%",position:"relative"}},o.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=D,D.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},D.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},"Atm/":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=function(){function e(e,t){for(var n=0;n-1?" is-selected":""}},{key:"_toggleSelected",value:function(e){var t=[];t=this.props.value.indexOf(e)>-1?this.props.value.filter(function(t){return t!==e}):this.props.value.concat(e),console.log(t),this.props.onChange(t)}},{key:"render",value:function(){var e=this;return a.a.createElement("div",{className:"control buttons-group"},this.props.list.map(function(t,n){return a.a.createElement("button",{type:"button",className:"button mb-0 button-select"+e._setActiveSelected(t),key:n,onClick:function(){return e._toggleSelected(t)}},a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-check"})),a.a.createElement("span",null,t))}))}}]),t}(),f=c;c.propTypes={list:l.a.array.isRequired,onChange:l.a.func.isRequired,value:l.a.array.isRequired};var d=n("mOuh"),h=function(){function e(e,t){for(var n=0;n 75%"],onChange:function(t){return e._update("crownAssessment",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Disease"),a.a.createElement(f,{value:this.state.madroneDisease,list:["Wilting leaves","Leaf spots","Rust","Blight","Defoliation","Lesions","Cankers"],onChange:function(t){return e._update("madroneDisease",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Stand Diversity"),a.a.createElement(f,{value:this.state.standDiversity,list:["Pure stand of this species","Mixed stand (this species and others)","Tree is standing alone","Not sure"],onChange:function(t){return e._update("standDiversity",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Tree Diameter (",d.a.unit("inches"),")"),a.a.createElement("div",{className:"field is-horizontal"},a.a.createElement("div",{className:"field-body"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Min.",value:this.state.diameterNumericMin,onChange:function(t){var n=t.target;return e._update("diameterNumericMin",n.value)}}))),a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Max.",value:this.state.diameterNumericMax,onChange:function(t){var n=t.target;return e._update("diameterNumericMax",n.value)}}))))))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Tree Height (",d.a.unit("feet"),")"),a.a.createElement("div",{className:"field is-horizontal"},a.a.createElement("div",{className:"field-body"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Min.",value:this.state.heightNumericMin,onChange:function(t){var n=t.target;return e._update("heightNumericMin",n.value)}}))),a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Max.",value:this.state.heightNumericMax,onChange:function(t){var n=t.target;return e._update("heightNumericMax",n.value)}}))))))))}}]),t}(),$=Z;Z.propTypes={onChange:l.a.func.isRequired};var J=function(){function e(e,t){for(var n=0;n2?arguments[2]:[];if(!this.IsCallable(e))throw new s(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=E(e)?e:o(e,d);if("symbol"==typeof t)throw new s("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(S(M(t,2),2));if(T(t))return this.ToNumber(S(M(t,2),8));if(I(t)||x(t))return NaN;var n=function(e){return V(e,G,"")}(t);if(n!==t)return this.ToNumber(n)}return d(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!g(t))return 0;var n=w(t)*B(K(t));return k(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=B(e);return n+.5b?b:t},CanonicalNumericIndexString:function(e){if("[object String]"!==j(e))throw new s("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Q.CheckObjectCoercible,IsArray:u.isArray||function(e){return"[object Array]"===j(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!E(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!g(e))return!1;var t=K(e);return B(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(y){var t=e[h.match];if(void 0!==t)return Q.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new s(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Q.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new s("O.constructor is not an Object");var r=y&&h.species?n[h.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new s("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");if("Boolean"!==this.Type(r))throw new s("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(y&&"symbol"==typeof h.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");var n=O(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!y)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,h.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new s("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new s("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new s("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var i=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(i))throw new s("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new s("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new s("R must be an Object");if("String"!==this.Type(t))throw new s("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new s('"exec" method must return `null` or an Object')}return N(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new s("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&y&&h.species&&null===(n=this.Get(n,h.species))&&(n=void 0)),void 0===n)return u(r);if(!this.IsConstructor(n))throw new s("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=U(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new s("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new s("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new l("es-abstract does not yet support internal slots");if(null===e&&!H)throw new l("native Object.create support is required to create null objects");return H(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new s("S must be a String");if(!this.IsInteger(t)||t<0||t>b)throw new s("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new s("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=L(e,t);if(r<55296||r>56319)return t+1;var o=L(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!Y(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!Y(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");return i(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:R(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:A(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:F(e)},thisTimeValue:function(e){return z(e)}});delete $.CheckObjectCoercible,e.exports=$},GN0G:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.localeData().firstDayOfWeek(),n=function(e,t){return(e.day()-t+7)%7}(e.clone().startOf("month"),t);return Math.ceil((n+e.daysInMonth())/7)};var r,o=n("PJh5"),i=(r=o)&&r.__esModule?r:{default:r}},H1lJ:function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},"HOE/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t)||(0,o.default)(e,t))};var r=i(n("PJh5")),o=i(n("RHtK"));function i(e){return e&&e.__esModule?e:{default:e}}},"I/WY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=i(n("PJh5")),o=i(n("+LBX"));function i(e){return e&&e.__esModule?e:{default:e}}},IFrJ:function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is-active";return this.setPath(),t&&this.path===e?n:!t&&this.path.indexOf(e)>=0?n:null}},{key:"parseUrl",value:function(e){var t={};return(e=e.substr(1)).split("&").forEach(function(e){if(e){var n=(e=e.split("+").join(" ")).indexOf("="),r=n>-1?e.substr(0,n):e,o=n>-1?decodeURIComponent(e.substr(n+1)):"",i=r.indexOf("[");if(-1===i)t[decodeURIComponent(r)]=o;else{var a=r.indexOf("]",i),s=decodeURIComponent(r.substring(i+1,a));r=decodeURIComponent(r.substring(0,i)),t[r]||(t[r]=[]),s?t[r][s]=o:t[r].push(o)}}}),t}}]),e}();t.a=new o},IMKR:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("O27J"),o=n.n(r),i=n("GiK3"),a=n.n(i),s=n("KSGD"),l=n.n(s),u=!("undefined"==typeof window||!window.document||!window.document.createElement),c=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return o.a.createElement(d.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},o.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},o.a.createElement("div",{className:"media callout"},o.a.createElement("div",{className:"media-left mr-0"},o.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),o.a.createElement("div",{className:"media-content"},o.a.createElement("div",{className:"mb-0"},o.a.createElement("strong",null,t.observation_category)),o.a.createElement("div",{className:"mb-0"},"By ",t.user.name),o.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return o.a.createElement("div",{className:"card-slide-container"},o.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?o.a.createElement("div",{className:"content"},o.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),o.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},o.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),o.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):o.a.createElement(c.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return o.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},o.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),o.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return o.a.createElement("div",{className:"card-slide-container"},o.a.createElement("h3",{className:"title is-5"},"Flag Observation"),o.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),y.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";y.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return o.a.createElement("div",{className:"card-footer marks-section"},o.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},o.a.createElement("span",null,this.state.incorrectMarks),o.a.createElement("span",{className:"icon ml-0 mr-0"},o.a.createElement("b",{className:"fa fa-times text-danger"})),o.a.createElement("span",null,"Marks")),o.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},o.a.createElement("span",null,this.state.correctMarks),o.a.createElement("span",{className:"icon ml-0 mr-0"},o.a.createElement("b",{className:"fa fa-check text-success"})),o.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":k(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,i=this.getAddress(t),a=i.address,l=i.addressLine1,c=i.addressLine2;return o.a.createElement("div",{className:"observation-card-container"},o.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},o.a.createElement("header",{className:"card-header"},o.a.createElement(_.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),w.a.can("confirm species")?o.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},o.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},o.a.createElement("span",{className:"icon"},o.a.createElement("i",{className:"fa fa-times"})))):null,w.a.can("confirm species")?o.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},o.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},o.a.createElement("span",{className:"icon"},o.a.createElement("i",{className:"fa fa-check"})))):null),o.a.createElement("div",{className:"relative-block"},o.a.createElement(p.a,{visible:this.state.loading}),o.a.createElement("div",{className:"has-bg-image relative-block"},o.a.createElement("div",{className:"card-image",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}})),this._renderMarks(),o.a.createElement("div",{className:"card-content"},o.a.createElement("div",{className:"content"},this.props.owner?null:o.a.createElement("span",null,"By ",t.user.name,o.a.createElement("br",null)),o.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),o.a.createElement("br",null),t.custom_id?o.a.createElement("div",null,o.a.createElement("small",null,o.a.createElement("strong",null,"Custom ID")," ",t.custom_id),o.a.createElement("br",null)):o.a.createElement("div",null,o.a.createElement("small",null,o.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||w.a.can("view accurate location")?o.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,o.a.createElement("br",null)):null,o.a.createElement("small",null,u()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?o.a.createElement("div",{className:"text-ellipsis",title:a},o.a.createElement("small",null,o.a.createElement("b",null,"Near")," ",l),o.a.createElement("br",null),o.a.createElement("small",{style:{marginLeft:"35px"}},c)):o.a.createElement("div",{style:{height:48}},"Address is unavailable"))),o.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},o.a.createElement("div",{className:"p-1 relative-block"},o.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},o.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),o.a.createElement("footer",{className:"card-footer card-footer-z-index"},o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},o.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-star"})))),o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},o.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-map"})))),w.a.can("contact users")&&!this.props.owner?o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},o.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},o.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?o.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},o.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?o.a.createElement(b,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=S;S.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},S.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},K45F:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t= 0");var n=this.ToLength(t);if(!this.SameValueZero(t,n))throw new RangeError("index must be >= 0 and < 2 ** 53 - 1");return n},EnumerableOwnProperties:function(e,t){var n=o.EnumerableOwnNames(e);if("key"===t)return n;if("value"===t||"key+value"===t){var r=[];return a(n,function(n){u(e,n)&&c(r,["value"===t?e[n]:[n,e[n]]])}),r}throw new l('Assertion failed: "kind" is not "key", "value", or "key+value": '+t)}});delete f.EnumerableOwnNames,e.exports=f},LlVb:function(e,t,n){var r=n("PJh5");e.exports={isValidMoment:function(e){return!("function"==typeof r.isMoment&&!r.isMoment(e))&&("function"==typeof e.isValid?e.isValid():!isNaN(e))}}},"MUv+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BOTTOM_RIGHT=t.TOP_RIGHT=t.TOP_LEFT=void 0;var r=Object.assign||function(e){for(var t=1;t=t||n<0||m&&e-y>=f}function w(){var e=o();if(_(e))return k(e);h=setTimeout(w,function(e){var n=t-(e-p);return m?l(n,f-(e-y)):n}(e))}function k(e){return h=void 0,g&&u?b(e):(u=c=void 0,d)}function E(){var e=o(),n=_(e);if(u=arguments,c=this,p=e,n){if(void 0===h)return function(e){return y=e,h=setTimeout(w,t),v?b(e):d}(p);if(m)return h=setTimeout(w,t),b(p)}return void 0===h&&(h=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(v=!!n.leading,f=(m="maxWait"in n)?s(i(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==h&&clearTimeout(h),y=0,u=p=c=h=void 0},E.flush=function(){return void 0===h?d:k(o())},E}},"OE/d":function(e,t,n){"use strict";var r=n("t4LX"),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n-1}},{key:"owns",value:function(e,t){return void 0===t&&(t="user_id"),"object"===(void 0===e?"undefined":o(e))?Array.isArray(e)?e.every(this.owns.bind(this)):void 0!==e[t]&&e[t]===this._user.id:"number"==typeof e&&this._user.id===e}},{key:"inGroupWith",value:function(e){for(var t in this._groups)if(this._groups[t].users.indexOf(e)>-1)return!0;return!1}},{key:"inGroup",value:function(e){for(var t in this._groups)if(this._groups[t].id===e)return!0;return!1}},{key:"authenticated",value:function(){return this._isLoggedIn}},{key:"admin",value:function(){return this._isAdmin}},{key:"scientist",value:function(){return this._isScientist}},{key:"role",value:function(){return this._role}},{key:"user",value:function(){return this._user}}]),e}();t.a=new a},OjkW:function(e,t,n){e.exports=n("YZwx")},OpPv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e)return e;if("function"==typeof e)return e(t);return""}},PiFy:function(e,t,n){"use strict";var r=n("fRHV");e.exports=Function.prototype.bind||r},Pkwz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=t||n<0||d&&e-c>=a}function w(){var e=v();if(_(e))return k(e);l=setTimeout(w,function(e){var n=t-(e-u);return d?y(n,a-(e-c)):n}(e))}function k(e){return l=void 0,h&&o?m(e):(o=i=void 0,s)}function E(){var e=v(),n=_(e);if(o=arguments,i=this,u=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),f?m(e):s}(u);if(d)return l=setTimeout(w,t),m(u)}return void 0===l&&(l=setTimeout(w,t)),s}return t=b(t)||0,g(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(b(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),E.cancel=function(){void 0!==l&&clearTimeout(l),c=0,o=u=i=l=void 0},E.flush=function(){return void 0===l?s:k(v())},E}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}}).call(t,n("DuR2"))},R8PD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),o=n.n(r),i=n("JsH4"),a=n("saAw"),s=n("IFrJ"),l=n("1B1h"),u=n("C6vg"),c=n("Atm/"),f=n("DakW"),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){function e(e,t){for(var n=0;n0?e.advancedFiltersRules:null);var i={page:e.page,per_page:e.perPage,search:e.search||"",category:e.selectedCategory||"",group_id:parseInt(e.selectedGroup)||"",collection_id:parseInt(e.selectedCollection)||"",advanced_filters:n};return t&&(delete i.page,delete i.per_page),i}},{key:"loadCollections",value:function(){var e=this;axios.get("/web/collections/1").then(function(t){var n=t.data.data;e.setState({collections:n})}).catch(function(e){console.log(e)}),axios.get("/web/collections/customizable/1").then(function(t){e.setState({ownedCollections:t.data.data})}).catch(function(e){console.log(e)})}},{key:"loadCategories",value:function(){var e=this;axios.get("/web/observations/categories").then(function(t){var n=t.data.data;e.setState({categories:n.map(function(e){return{label:e,value:e}})})}).catch(function(e){console.log(e)})}},{key:"loadGroups",value:function(){var e=this;axios.get("/web/groups").then(function(t){e.setState({groups:t.data.data})}).catch(function(e){console.log(e)})}},{key:"loadFilters",value:function(){var e=this;axios.get("/web/filters").then(function(t){e.setState({filters:t.data.data})}).catch(function(e){console.log(e)})}},{key:"generatePages",value:function(e,t){for(var n=[],r=Math.ceil(e/t),o=1;o<=r;o++)n.push(o);return n}},{key:"setBrowserHistory",value:function(e){var t=[];e.page&&t.push("page="+e.page),e.selectedCollection&&t.push("collection="+e.selectedCollection),e.selectedGroup&&!e.selectedCollection&&t.push("group="+e.selectedGroup);var n=t.join("&");this.props.history.replace("/account/observations/?"+n)}},{key:"getBrowserState",value:function(){var e=s.a.parseUrl(this.props.history.location.search),t=1,n=0,r=0,o=!1,i=!1;if(void 0!==e.page){var a=parseInt(e.page);isNaN(a)||(t=a)}if(void 0!==e.collection){var l=parseInt(e.collection);isNaN(l)||(n=l,o=!0)}if(void 0!==e.group&&!n){var u=parseInt(e.group);isNaN(u)||(r=u,i=!0)}return{page:t,collection:n,group:r,disableGroups:o,disableCollections:i}}},{key:"nextPage",value:function(){if(this.state.hasMorePages){var e=this.state.page+1;this.goToPage(e)}}},{key:"prevPage",value:function(){if(1!==this.state.page){var e=this.state.page-1;this.goToPage(e)}}},{key:"goToPage",value:function(e){var t=this.state;t.page=e,this.loadObservations(t),this.setBrowserHistory(t),window.scrollTo&&window.scrollTo(0,0)}},{key:"_renderPageLinks",value:function(){var e=this;return o.a.createElement("nav",{className:"pagination is-centered"},o.a.createElement("a",{href:"javascript:;",className:"pagination-previous",onClick:this.prevPage.bind(this),disabled:1===this.state.page},"Previous"),this.state.pages.length>0?o.a.createElement("ul",{className:"pagination-list"},o.a.createElement("li",null,"Page ",o.a.createElement("span",{className:"select is-small"},o.a.createElement("select",{value:this.state.page,onChange:function(t){var n=t.target;return e.goToPage(n.value)}},this.state.pages.map(function(e){return o.a.createElement("option",{value:e,key:"page_"+e},e)})))," out of ",this.state.pages.length," pages")):null,o.a.createElement("a",{href:"javascript:;",className:"pagination-next",onClick:this.nextPage.bind(this),disabled:!this.state.hasMorePages},"Next"))}},{key:"_renderObservation",value:function(e){var t=this;return o.a.createElement("div",{className:"column is-4-widescreen is-6-desktop is-6-tablet",key:e.observation_id},o.a.createElement(i.a,{owner:!0,observation:e,loading:this.state.loading,collections:this.state.ownedCollections,onCollectionCreated:function(n){var r=!e.collections.every(function(e){return e.id!==n.id});!t.state.ownedCollections.every(function(e){return e.value!==n.id})||t.setState({ownedCollections:t.state.ownedCollections.concat({label:n.label,value:n.id})}),r||(e.collections.push(n),t.forceUpdate())},onRemovedFromCollection:function(n){e.collections=e.collections.filter(function(e){return e.id!==n.id}),t.forceUpdate()}}))}},{key:"getEmptyMessage",value:function(){return o.a.createElement("div",{className:"box"},o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You have not submitted any observations matching the specified filters yet."),o.a.createElement("p",null,"To submit new observations, please download the TreeSnap mobile app from ",o.a.createElement("a",{href:"https://play.google.com/store/apps/details?id=com.treesource"},"Google Play for Android")," or ",o.a.createElement("a",{href:"https://itunes.apple.com/us/app/treesnap/id1226499160?mt=8"},"Apple App Store for iOS"))))}},{key:"searchFilter",value:function(e){var t=this.state;t.search=e,t.page=1,this.setState({search:e}),this.loadObservations(t)}},{key:"collectionFilter",value:function(e){var t=this.state;t.selectedCollection=parseInt(e),t.page=1;var n=0!==t.selectedCollection;this.setState({selectedCollection:e,disableGroups:n}),this.loadObservations(t)}},{key:"categoriesFilter",value:function(e){var t=this.state;t.selectedCategory=e,t.page=1,this.setState({selectedCategory:e}),this.loadObservations(t)}},{key:"groupsFilter",value:function(e){var t=this.state;t.selectedGroup=parseInt(e),t.page=1;var n=0!==t.selectedGroup;this.setState({selectedGroup:e,disableCollections:n}),this.loadObservations(t)}},{key:"advancedFilter",value:function(e){var t=this.state;t.selectedFilter=parseInt(e),t.page=1,this.setState({selectedFilter:e}),this.loadObservations(t)}},{key:"applyAdvancedFilters",value:function(e){this.setState({showAdvancedFiltersModal:!1});var t=e.data;if(t.filter){var n=this.state.filters;return n.push(t.filter),this.setState({filters:n}),void this.advancedFilter(t.filter.id)}var r=this.state;r.advancedFiltersRules=e.params,r.page=1,this.setState({page:1,advancedFiltersRules:r.advancedFiltersRules}),this.loadObservations(r)}},{key:"changePerPage",value:function(e){var t=this.state;t.perPage=e,t.page=1,this.setState({perPage:e,page:1}),this.loadObservations(t)}},{key:"_renderFilters",value:function(){var e=this,t=this.getParams(this.state,!0),n="";return Object.keys(t).map(function(e){t[e]&&("object"===d(t[e])&&(t[e]=JSON.stringify(t[e])),n+="&"+e+"="+t[e])}),o.a.createElement("div",{className:"columns is-multiline"},o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Search"),o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"search",className:"input",placeholder:"Search",onChange:function(t){var n=t.target;return e.searchFilter(n.value)},value:this.state.search})))),o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Species"),o.a.createElement("div",{className:"control"},o.a.createElement("span",{className:"select is-full-width"},o.a.createElement("select",{value:this.state.selectedCategory,onChange:function(t){var n=t.target;return e.categoriesFilter(n.value)}},o.a.createElement("option",{value:""},"All Species"),this.state.categories.map(function(e){return o.a.createElement("option",{key:e.value,value:e.value},e.label)})))))),o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Collections"),o.a.createElement("div",{className:"control is-positioned-relatively"},o.a.createElement("span",{className:"select is-full-width"},o.a.createElement("select",{value:this.state.selectedCollection,onChange:function(t){var n=t.target;return e.collectionFilter(n.value)},disabled:this.state.disableCollections},o.a.createElement("option",{value:0},"None"),this.state.collections.map(function(e){return o.a.createElement("option",{key:e.value,value:e.value},e.label)}))),this.state.disableCollections?o.a.createElement("p",{className:"help is-warning is-pulled-up"},"Collections filter can only be applied when the groups filter is not applied."):null),0!==this.state.collections.length||this.state.loading?null:o.a.createElement("p",{className:"help is-warning"},"You currently have no collections. Use ",o.a.createElement("i",{className:"fa fa-star"})," to create one."))),o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Group"),o.a.createElement("div",{className:"control is-positioned-relatively"},o.a.createElement("span",{className:"select is-full-width"},o.a.createElement("select",{value:this.state.selectedGroup,onChange:function(t){var n=t.target;return e.groupsFilter(n.value)},disabled:this.state.disableGroups},o.a.createElement("option",{value:0},"My observations only"),this.state.groups.map(function(e){return o.a.createElement("option",{key:e.id,value:e.id},e.name)}))),this.state.disableGroups?o.a.createElement("p",{className:"help is-warning is-pulled-up"},"Group filter can only be applied when the collections filter is not applied."):null))),o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Saved Advanced Filters"),o.a.createElement("div",{className:"control"},o.a.createElement("span",{className:"select is-full-width"},o.a.createElement("select",{value:this.state.selectedFilter,onChange:function(t){var n=t.target;return e.advancedFilter(n.value)}},o.a.createElement("option",{value:0},"None"),this.state.filters.map(function(e){return o.a.createElement("option",{key:e.id,value:e.id},e.name)})))))),o.a.createElement("div",{className:"column is-2"},o.a.createElement("div",{className:"mt-3"},o.a.createElement("button",{type:"button",className:"button is-primary is-block",onClick:function(){e.setState({showAdvancedFiltersModal:!0}),e._advancedFilterState&&setTimeout(function(){e.advancedFilterModal.reapplyState(e._advancedFilterState)},200)}},"Advanced Filters"))),this.state.total>0?o.a.createElement("div",{className:"column is-2 has-text-right"},o.a.createElement("div",{className:"mt-3"},o.a.createElement(c.a,{right:!0,isBlock:!0,trigger:o.a.createElement("button",{className:"button is-block","aria-haspopup":"true","aria-controls":"dropdown-menu"},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-download"})),o.a.createElement("span",null,"Download"),o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-angle-down","aria-hidden":"true"})))},o.a.createElement("a",{href:"/services/download/observations/tsv?"+n,className:"dropdown-item"},"TSV Format"),o.a.createElement("a",{href:"/services/download/observations/csv?"+n,className:"dropdown-item"},"CSV Format")))):null)}},{key:"saveFilterState",value:function(e){this._advancedFilterState=e}},{key:"render",value:function(){var e=this,t=this.state.total;return o.a.createElement(l.a,null,o.a.createElement("div",{className:"columns"},o.a.createElement("div",{className:"column"},o.a.createElement("h3",{className:"title is-3"},"Observations")),o.a.createElement("div",{className:"column has-text-right-desktop"},o.a.createElement("p",null,"Show ",o.a.createElement("span",{className:"select is-small"},o.a.createElement("select",{value:this.state.perPage,onChange:function(t){var n=t.target;return e.changePerPage(n.value)}},o.a.createElement("option",{value:"6"},"6"),o.a.createElement("option",{value:"12"},"12"),o.a.createElement("option",{value:"24"},"24"),o.a.createElement("option",{value:"48"},"48"),o.a.createElement("option",{value:"96"},"96")))," per page. Total of ",t," observations found"))),this._renderFilters(),0===this.state.observations.length?this.getEmptyMessage():null,o.a.createElement("div",{className:"columns is-multiline"},this.state.observations.map(this._renderObservation.bind(this))),this._renderPageLinks(),o.a.createElement(u.a,{ref:function(t){return e.advancedFilterModal=t},visible:this.state.showAdvancedFiltersModal,onCloseRequest:function(){return e.setState({showAdvancedFiltersModal:!1})},onCreate:this.applyAdvancedFilters.bind(this),onStateChange:this.saveFilterState.bind(this),withObservations:!1,resetForm:!1,showCount:!1}),o.a.createElement(a.a,{visible:this.state.pageLoading}))}}]),t}();t.default=p},RHtK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!i.default.isMoment(e)||!i.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),a=t.month(),s=n===o;return s&&r===a?e.date()=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),y}}}function _(e,t,n,r){var o=t&&t.prototype instanceof k?t:k,i=Object.create(o.prototype),a=new N(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=w(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function k(){}function E(){}function S(){}function D(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,a){var s=w(e[n],e,r);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){l.value=e,i(l)},a)}a(s.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function M(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,M(e,t),"throw"===t.method))return y;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,a=void 0===n?"styles":n,c=t.themePropName,d=void 0===c?"theme":c,p=t.cssPropName,g=void 0===p?"css":p,b=t.flushBefore,_=void 0!==b&&b,w=t.pureComponent,k=void 0,E=void 0,S=void 0,D=void 0,O=function(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}(void 0!==w&&w);function M(t,n){var r=function(e){return e===u.DIRECTIONS.LTR?S:D}(t),o=t===u.DIRECTIONS.LTR?k:E,i=f.default.get();if(o&&r===i)return o;var a=t===u.DIRECTIONS.RTL;return a?(E=e?f.default.createRTL(e):y,D=i,o=E):(k=e?f.default.createLTR(e):y,S=i,o=k),o}function C(e,t){return{resolveMethod:function(e){return e===u.DIRECTIONS.LTR?f.default.resolveLTR:f.default.resolveRTL}(e),styleDef:M(e,t)}}return function(){return function(e){var t=e.displayName||e.name||"Component",n=function(n){function s(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e,n)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():m;return r.state=C(o,t),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,n),o(s,[{key:"componentDidMount",value:function(){return function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe(function(n){e.setState(C(n,t))}))}}()},{key:"componentWillUnmount",value:function(){return function(){this.channelUnsubscribe&&this.channelUnsubscribe()}}()},{key:"render",value:function(){return function(){var t;_&&f.default.flush();var n=this.state,o=n.resolveMethod,s=n.styleDef;return i.default.createElement(e,r({},this.props,(h(t={},d,f.default.get()),h(t,a,s()),h(t,g,o),t)))}}()}]),s}(O);n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=v,e.propTypes&&(n.propTypes=(0,l.default)({},e.propTypes),delete n.propTypes[a],delete n.propTypes[d],delete n.propTypes[g]);e.defaultProps&&(n.defaultProps=(0,l.default)({},e.defaultProps));return(0,s.default)(n,e)}}()};var i=d(n("GiK3")),a=d(n("KSGD")),s=d(n("wfLM")),l=d(n("i3rX")),u=n("Z+/y"),c=d(n("rgbP")),f=d(n("F+Ye"));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=f.default.resolveLTR,t.withStylesPropTypes={styles:a.default.object.isRequired,theme:a.default.object.isRequired,css:a.default.func.isRequired};var p={},y=function(){return p};var v=h({},u.CHANNEL,c.default),m=u.DIRECTIONS.LTR},Vop6:function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},X0xs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDayPicker=t.defaultProps=void 0;var r=Object.assign||function(e){for(var t=1;tt.clientHeight?t:o(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),a=o(e);return t.set(a,a.style.overflowY),a===n?t:i(a,t)}},XqC7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return e?n(e(t.clone())):t};var r=function(e){return e}},Xxa5:function(e,t,n){e.exports=n("jyFz")},YL1d:function(e,t,n){"use strict";function r(e,t,n){var r="number"==typeof t,o="number"==typeof n,i="number"==typeof e;return r&&o?t+n:r&&i?t+e:r?t:o&&i?n+e:o?n:i?2*e:0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.font.input,o=n.lineHeight,i=n.lineHeight_small,a=e.spacing,s=a.inputPadding,l=a.displayTextPaddingVertical,u=a.displayTextPaddingTop,c=a.displayTextPaddingBottom,f=a.displayTextPaddingVertical_small,d=a.displayTextPaddingTop_small,h=a.displayTextPaddingBottom_small,p=t?i:o,y=t?r(f,d,h):r(l,u,c);return parseInt(p,10)+2*s+y}},YZwx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("B2tZ");Object.defineProperty(t,"CalendarDay",{enumerable:!0,get:function(){return function(){return E(r).default}}()});var o=n("Pkwz");Object.defineProperty(t,"CalendarMonth",{enumerable:!0,get:function(){return function(){return E(o).default}}()});var i=n("cw5X");Object.defineProperty(t,"CalendarMonthGrid",{enumerable:!0,get:function(){return function(){return E(i).default}}()});var a=n("32hK");Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return function(){return E(a).default}}()});var s=n("K45F");Object.defineProperty(t,"DateRangePickerInput",{enumerable:!0,get:function(){return function(){return E(s).default}}()});var l=n("VB2b");Object.defineProperty(t,"DateRangePickerInputController",{enumerable:!0,get:function(){return function(){return E(l).default}}()});var u=n("uy+U");Object.defineProperty(t,"DateRangePickerShape",{enumerable:!0,get:function(){return function(){return E(u).default}}()});var c=n("X0xs");Object.defineProperty(t,"DayPicker",{enumerable:!0,get:function(){return function(){return E(c).default}}()});var f=n("2ZMP");Object.defineProperty(t,"DayPickerRangeController",{enumerable:!0,get:function(){return function(){return E(f).default}}()});var d=n("tHAx");Object.defineProperty(t,"DayPickerSingleDateController",{enumerable:!0,get:function(){return function(){return E(d).default}}()});var h=n("YgGm");Object.defineProperty(t,"SingleDatePicker",{enumerable:!0,get:function(){return function(){return E(h).default}}()});var p=n("4NsZ");Object.defineProperty(t,"SingleDatePickerInput",{enumerable:!0,get:function(){return function(){return E(p).default}}()});var y=n("0Tdo");Object.defineProperty(t,"SingleDatePickerShape",{enumerable:!0,get:function(){return function(){return E(y).default}}()});var v=n("HOE/");Object.defineProperty(t,"isInclusivelyAfterDay",{enumerable:!0,get:function(){return function(){return E(v).default}}()});var m=n("JMu1");Object.defineProperty(t,"isInclusivelyBeforeDay",{enumerable:!0,get:function(){return function(){return E(m).default}}()});var g=n("I/WY");Object.defineProperty(t,"isNextDay",{enumerable:!0,get:function(){return function(){return E(g).default}}()});var b=n("+LBX");Object.defineProperty(t,"isSameDay",{enumerable:!0,get:function(){return function(){return E(b).default}}()});var _=n("TRqI");Object.defineProperty(t,"toISODateString",{enumerable:!0,get:function(){return function(){return E(_).default}}()});var w=n("9LH0");Object.defineProperty(t,"toLocalizedDateString",{enumerable:!0,get:function(){return function(){return E(w).default}}()});var k=n("8Pcz");function E(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"toMomentObject",{enumerable:!0,get:function(){return function(){return E(k).default}}()})},YgGm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureSingleDatePicker=void 0;var r=Object.assign||function(e){for(var t=1;t0?String(e)+"__":"")+String(t)}},aaLQ:function(e,t,n){"use strict";var r=n("/ymf"),o=n("x5U2"),i=n("+1gT"),a=n("EBef"),s=i();r(s,{getPolyfill:i,implementation:o,shim:a}),e.exports=s},adrs:function(e,t,n){"use strict";var r=n("QqhH"),o=n("/ymf");e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},bidq:function(e,t,n){"use strict";var r=Array.prototype.slice,o=n("t+1C"),i=Object.keys,a=i?function(e){return i(e)}:n("7ciz"),s=Object.keys;a.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)}):Object.keys=a;return Object.keys||a},e.exports=a},blYT:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n("DuR2"))},bvnS:function(e,t,n){"use strict";var r=n("teQR"),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n("XfW5"),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),s=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&s)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=s[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t);console.log(a(e,r),r)}},"c+e1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){var i="undefined"!=typeof window?window.innerWidth:0,a=e===r.ANCHOR_LEFT?i-n:n,s=o||0;return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},e,Math.min(t+a-s,0))};var r=n("6TBu")},c8iI:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();c=c?l({},C,c):C;var _=(0,E.default)((o(e={},M.default.editor,!0),o(e,M.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=p);var w=void 0;return h||(w=f.default.createElement(b.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:y})),f.default.createElement("div",{className:(0,E.default)(M.default.root,r)},w,f.default.createElement("div",{className:_},f.default.createElement(d.Editor,l({},m,{blockStyleFn:(0,k.default)(i,v),customStyleMap:c,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:u,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(d.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),o=d.Modifier.removeRange(r,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());o=d.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),this._onChange(d.EditorState.push(t,o,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if((0,m.default)(o)&&0===o.getLength()){var i=o.getDepth(),a=0===i?(0,y.default)(e,r,O.BLOCK_TYPE.UNSTYLED):(0,p.default)(e,r,i-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!(0,m.default)(o)&&o.getType()!==O.BLOCK_TYPE.UNSTYLED&&o.getLength()===t.getStartOffset()){var i=(0,v.default)(e,r,O.BLOCK_TYPE.UNSTYLED);return this._onChange(i),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=d.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=d.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=T;var N=new d.CompositeDecorator([w.default]);Object.assign(T,{EditorValue:_.default,decorator:N,createEmptyValue:a,createValueFromString:s}),t.EditorValue=_.default,t.decorator=N,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(6),a=n(40),s=n(7),l=n(32),u=n(41),c=n(43),f=n(44),d=n(50),h=n(9),p=n(14),y=n(16),v=n(29),m=n(100),g=n(131),b=n(33),_=n(133),w={Editor:f,EditorBlock:d,EditorState:v,CompositeDecorator:a,Entity:p,EntityInstance:y,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:l,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:c,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:_,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=w},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(7),a=n(9),s=n(29),l=n(5),u=n(21),c=l.List,f=l.Repeat,d={insertAtomicBlock:function(e,t,n){var l=e.getCurrentContent(),d=e.getSelection(),h=a.removeRange(l,d,"backward"),p=h.getSelectionAfter(),y=a.splitBlock(h,p),v=y.getSelectionAfter(),m=a.setBlockType(y,v,"atomic"),g=o.create({entity:t}),b=[new i({key:u(),type:"atomic",text:n,characterList:c(f(g,n.length))}),new i({key:u(),type:"unstyled",text:"",characterList:c()})],_=r.createFromArray(b),w=a.replaceWithFragment(m,v,_),k=w.merge({selectionBefore:d,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return s.push(e,k,"insert-fragment")}};e.exports=d},function(e,t,n){"use strict";var r=n(5).OrderedMap,o={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=o},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:T(e)}function n(e){return a(e)?e:N(e)}function r(e){return s(e)?e:P(e)}function o(e){return i(e)&&!l(e)?e:I(e)}function i(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ht])}function s(e){return!(!e||!e[Ut])}function l(e){return a(e)||s(e)}function u(e){return!(!e||!e[Wt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?p(e)+t:t}function v(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function E(){return{value:void 0,done:!0}}function S(e){return!!M(e)}function D(e){return e&&"function"==typeof e.next}function O(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function C(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?F():i(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function N(e){return null===e||void 0===e?F().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():z(e)}function P(e){return null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():B(e)}function I(e){return(null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e:B(e)).toSetSeq()}function x(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function A(e){return!(!e||!e[sn])}function F(){return rn||(rn=new x([]))}function z(e){var t=Array.isArray(e)?new x(e).fromEntrySeq():D(e)?new R(e).fromEntrySeq():S(e)?new j(e).fromEntrySeq():"object"==typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return C(e)?new x(e):D(e)?new R(e):S(e)?new j(e):void 0}function H(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new w(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,P(n).map(function(r,o){return e(t,r,o,n)})):q(n)?t.call(o,r,N(n).map(function(r,o){return e(t,r,o,n)})):n}(t,e,"",{"":e}):Y(e)}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():q(e)?N(e).map(Y).toMap():e}function q(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function V(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&G(o[1],e)&&(n||G(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!G(t,e.get(r,Vt)):!G(e.get(r,Vt),t))return f=!1,!1});return f&&e.size===d}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function Z(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var o=0|e;for(o!==e&&(o^=4294967295*e);e>4294967295;)o^=e/=4294967295;return ne(o)}if("string"===r)return e.length>yn?(void 0===(n=gn[t=e])&&(n=oe(t),mn===vn&&(mn=0,gn={}),mn++,gn[t]=n),n):oe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(dn&&void 0!==(t=ln.get(e)))return t;if(void 0!==(t=e[pn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[pn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),dn)ln.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[pn]=t}}return t}(e);if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function oe(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,l=a===s?[we(e,t,n+Yt,r,o)]:(i=new de(t,r,o),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Me(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function Ce(e){var t=xe();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),o=n.size;return 0===o?t:(ie(o),o>0&&or?0:r-n,u=o-n;return u>qt&&(u=qt),function(){if(l===u)return Tn;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,i,a){var s,l=e&&e.array,u=a>r?0:r-a>>i,c=1+(o-a>>i);return c>qt&&(c=qt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(u===c)return Tn;var r=t?--c:u++;s=n(l&&l[r],i-Yt,a+(r<>>n&Gt,l=e&&s0){var u=e&&e.array[s],c=Le(u,t,n-Yt,r,o,i);return c===u?e:((a=je(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(f(i),a=je(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function je(e,t){return t&&e&&t===e.ownerID?e:new Ne(e?e.array.slice():[],t)}function Re(e,t){if(t>=ze(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Yt;return n}}function Ae(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new Ne(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=Yt);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=ze(i),h=ze(s);h>=1<f?new Ne([],r):p;if(p&&h>f&&aYt;m-=Yt){var g=f>>>m≫v=v.array[g]=je(v.array[g],r)}v.array[f>>>Yt&Gt]=p}if(s=h)a-=h,s-=h,l=Yt,u=null,y=y&&y.removeBefore(r,0,a);else if(a>o||h>>l≫if(b!==h>>>l&Gt)break;b&&(c+=(1<o&&(u=u.removeBefore(r,l,a-c)),u&&ha&&(a=u.size),i(l)||(u=u.map(function(e){return W(e)})),o.push(u)}return a>e.size&&(e=e.setSize(a)),De(e,t,o)}function ze(e){return e>>Yt<=qt&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):He(r,o)}function Ye(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qe(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===Xt){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Jt?$t:Jt,n)},t}function Ze(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,Vt);return i===Vt?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Xt,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),o)})},r}function $e(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Je(e,t,n,r){var o=ct(e);return r&&(o.has=function(r){var o=e.get(r,Vt);return o!==Vt&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,Vt);return i!==Vt&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Xt,i),s=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return k(o,r?u:s++,c,i)}})},o}function Xe(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),m(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!=i||a!=a)return Xe(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=ct(e);return u.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(u.get=function(t,n){return(t=y(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===Jt?e:k(t,l-1,t===$t?void 0:e.value[1],e)})},u}function et(e,t,n,r){var o=ct(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)}),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Xt,i),l=!0,u=0;return new w(function(){var e,i,c;do{if((e=s.next()).done)return r||o===Jt?e:k(o,u++,o===$t?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],l&&(l=t.call(n,c,i,a))}while(l);return o===Xt?e:k(o,i,c,e)})},o}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(l,u){var c=this;l.__iterate(function(o,l){return(!t||u0}function it(e,n,r){var o=ct(e);return o.size=new x(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Jt,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function at(e,t){return A(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function lt(e){return ie(e.size),p(e)}function ut(e){return a(e)?n:s(e)?r:o}function ct(e){return Object.create((a(e)?N:s(e)?P:I).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function dt(e,t){return e>t?1:et?-1:0}function Ft(e){if(e.size===1/0)return 0;var t=u(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+zt(re(e),re(t))|0}:function(e,t){r=r+zt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=un(t,3432918353),t=un(t<<15|t>>>-15,461845907),t=un(t<<13|t>>>-13,5),t=un((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=un(t^t>>>13,3266489909))^t>>>16)}(o,r)}function zt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Bt=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=l,t.isOrdered=u,t.Keyed=n,t.Indexed=r,t.Set=o;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ht="@@__IMMUTABLE_KEYED__@@",Ut="@@__IMMUTABLE_INDEXED__@@",Wt="@@__IMMUTABLE_ORDERED__@@",Yt=5,qt=1<r?{value:void 0,done:!0}:k(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:k(e,a,n[a])})},L.prototype[Wt]=!0,e(j,P),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(D(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!D(r))return new w(E);var o=0;return new w(function(){var t=r.next();return t.done?t:k(e,o++,t.value)})},e(R,P),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return k(e,o,r[o++])})},e(Q,P),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return G(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,b(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return G(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},$.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},$.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:k(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:V(this,e)},e(J,t),e(X,J),e(ee,J),e(te,J),J.Keyed=X,J.Indexed=ee,J.Set=te;var ln,un="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),dn="function"==typeof WeakMap;dn&&(ln=new WeakMap);var hn=0,pn="__immutablehash__";"function"==typeof Symbol&&(pn=Symbol(pn));var yn=16,vn=255,mn=0,gn={};e(ae,X),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Vt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Vt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Vt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===Vt,a=n.next();if(a.done){var s=i?r:t,l=o(s);return l===s?t:l}Z(i||t&&t.set,"invalid keyPath");var u=a.value,c=i?Vt:t.get(u,Vt),f=e(c,n,r,o);return f===c?t:f===Vt?t.remove(u):(i?me():t).set(u,f)}(this,ht(e),t,n);return r===Vt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return ke(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Bt.call(arguments,1);return ke(this,e,t)},ae.prototype.mergeIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return ke(this,Ee,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Bt.call(arguments,1);return ke(this,Se(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Be(nt(this,e))},ae.prototype.sortBy=function(e,t){return Be(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var bn="@@__IMMUTABLE_MAP__@@",_n=ae.prototype;_n[bn]=!0,_n.delete=_n.remove,_n.removeIn=_n.deleteIn,le.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=kn)return function(e,t,n,r){e||(e=new d);for(var o=new de(e,re(n),[n,r]),i=0;i>>e)&Gt),i=this.bitmap;return 0==(i&o)?r:this.nodes[Oe(i&o-1)].get(e+Yt,t,n,r)},ue.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,l=1<=En)return function(e,t,n,r,o){for(var i=0,a=new Array(qt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ce(e,i+1,a)}(e,d,u,s,p);if(c&&!p&&2===d.length&&_e(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&_e(p))return p;var y=e&&e===this.ownerID,v=c?p?u:u^l:u|l,m=c?p?Me(d,f,p,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&Gt,i=this.nodes[o];return i?i.get(e+Yt,t,n,r):r},ce.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,l=o===Vt,u=this.nodes,c=u[s];if(l&&!c)return this;var f=be(c,e,t+Yt,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Ae(e,t).set(0,n):Ae(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(Zt);return t>=ze(e._capacity)?r=Le(r,e.__ownerID,0,t,n,i):o=Le(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ie(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},Ce.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ce.prototype.insert=function(e,t){return this.splice(e,0,t)},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Yt,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xe()},Ce.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ae(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ne([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-Yt,n))===a&&i)return this}if(i&&!o)return this;var s=je(this,e);if(!i)for(var l=0;l>>t≫if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-Yt,n))===i&&o===this.array.length-1)return this}var a=je(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Mn,Cn,Tn={};e(Be,ae),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Be.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ue()},Be.prototype.set=function(e,t){return We(this,e,t)},Be.prototype.remove=function(e){return We(this,e,Vt)},Be.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Be.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Be.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Be.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?He(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Be.isOrderedMap=Ke,Be.prototype[Wt]=!0,Be.prototype.delete=Be.prototype.remove,e(Ye,N),Ye.prototype.get=function(e,t){return this._iter.get(e,t)},Ye.prototype.has=function(e){return this._iter.has(e)},Ye.prototype.valueSeq=function(){return this._iter.valueSeq()},Ye.prototype.reverse=function(){var e=this,t=$e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ye.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ye.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?lt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Ye.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Jt,t),r=t?lt(this):0;return new w(function(){var o=n.next();return o.done?o:k(e,t?--r:r++,o.value,o)})},Ye.prototype[Wt]=!0,e(qe,P),qe.prototype.includes=function(e){return this._iter.includes(e)},qe.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(Ge,I),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(Ve,N),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var o=i(r);return k(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},qe.prototype.cacheResult=Ye.prototype.cacheResult=Ge.prototype.cacheResult=Ve.prototype.cacheResult=ft,e(pt,X),pt.prototype.toString=function(){return this.__toString(vt(this)+" {","}")},pt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},pt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},pt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=yt(this,me()))},pt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+vt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:yt(this,n)},pt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:yt(this,t)},pt.prototype.wasAltered=function(){return this._map.wasAltered()},pt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},pt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?yt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Nn=pt.prototype;Nn.delete=Nn.remove,Nn.deleteIn=Nn.removeIn=_n.removeIn,Nn.merge=_n.merge,Nn.mergeWith=_n.mergeWith,Nn.mergeIn=_n.mergeIn,Nn.mergeDeep=_n.mergeDeep,Nn.mergeDeepWith=_n.mergeDeepWith,Nn.mergeDeepIn=_n.mergeDeepIn,Nn.setIn=_n.setIn,Nn.update=_n.update,Nn.updateIn=_n.updateIn,Nn.withMutations=_n.withMutations,Nn.asMutable=_n.asMutable,Nn.asImmutable=_n.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return bt(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return bt(this,this._map.remove(e))},mt.prototype.clear=function(){return bt(this,this._map.clear())},mt.prototype.union=function(){var e=Bt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ct(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;ie(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ct(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):Tt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=b(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ct(o,i)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Mt;var Rn,An="@@__IMMUTABLE_STACK__@@",Fn=Ot.prototype;Fn[An]=!0,Fn.withMutations=_n.withMutations,Fn.asMutable=_n.asMutable,Fn.asImmutable=_n.asImmutable,Fn.wasAltered=_n.wasAltered,t.Iterator=w,Nt(t,{toArray:function(){ie(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new qe(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Ye(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){ie(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Be(this.toKeyedSeq())},toOrderedSet:function(){return kt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Ce(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Bt.call(arguments,0);return at(this,function(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?z(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var l=o[0];if(l===e||r&&a(l)||s(e)&&s(l))return l}var u=new x(o);return r?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(Xt)},every:function(e,t){ie(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return at(this,Je(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ie(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ie(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator($t)},map:function(e,t){return at(this,Ze(this,e,t))},reduce:function(e,t,n){var r,o;return ie(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,$e(this,!0))},slice:function(e,t){return at(this,Xe(this,e,t,!0))},some:function(e,t){return!this.every(xt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Jt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return p(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return V(this,e)},entrySeq:function(){var e=this;if(e._cache)return new x(e._cache);var t=e.toSeq().map(It).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(xt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(v)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ut(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=ht(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,Vt):Vt)===Vt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),o=(u(e)?Be():ae()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=ut(e);return o.map(function(t){return at(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,Vt)!==Vt},hasIn:function(e){return this.getIn(e,Vt)!==Vt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Pt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?Lt(e):At)},minBy:function(e,t){return rt(this,t?Lt(t):At,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(xt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Xt,o),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(n,u,l,i)?r===Xt?e:k(r,l,u,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(xt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Ft(this))}});var zn=t.prototype;zn[Kt]=!0,zn[nn]=zn.values,zn.__toJS=zn.toArray,zn.__toStringMapper=jt,zn.inspect=zn.toSource=function(){return this.toString()},zn.chain=zn.flatMap,zn.contains=zn.includes,function(){try{Object.defineProperty(zn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Nt(n,{flip:function(){return at(this,Qe(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Bn=n.prototype;return Bn[Ht]=!0,Bn[nn]=zn.entries,Bn.__toJS=zn.toObject,Bn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+jt(e)},Nt(r,{toKeyedSeq:function(){return new Ye(this,!1)},filter:function(e,t){return at(this,Je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,$e(this,!1))},slice:function(e,t){return at(this,Xe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var d=f[0];if("IMMUTABLE"===c)return t.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});var h=o.getRemovalRange(s,l,e.getText().slice(d.start,d.end),d.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,l=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,c,t),h=d.start,p=d.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}(u.getCharacterList(),a,l):u.getCharacterList().slice(0,a).concat(c.getCharacterList().slice(l));var f=u.merge({text:u.getText().slice(0,a)+c.getText().slice(l),characterList:n}),d=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===i?f:null});return o=o.merge(d).filter(function(e){return!!e}),e.merge({blockMap:o,selectionBefore:t,selectionAfter:t.merge({anchorKey:i,anchorOffset:a,focusKey:i,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),o=n(21),i=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||i(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),l=s.get(n),u=l.getText(),c=l.getCharacterList(),f=l.merge({text:u.slice(0,r),characterList:c.slice(0,r)}),d=o(),h=f.merge({key:d,text:u.slice(r),characterList:c.slice(r),data:a()}),p=s.toSeq().takeUntil(function(e){return e===l}),y=s.toSeq().skipUntil(function(e){return e===l}).rest(),v=p.concat([[f.getKey(),f],[h.getKey(),h]],y).toOrderedMap();return e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:0,focusKey:d,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return v.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function o(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function i(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return d()}var a=n(15)||function(e){for(var t=1;t0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):i(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r0?o.getInlineStyleAt(r-1):i(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,i=u.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),l=t.getUndoStack(),c=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(l=l.push(s),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var d={currentContent:c,directionMap:i,undoStack:l,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,d)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=u.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=u.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=v},function(e,t,n){"use strict";function r(e,t){return e===t}var o=n(5),i=n(31),a=n(8),s=o.List,l=o.Repeat,u=o.Record,c=i.thatReturnsTrue,f=u({start:null,end:null}),d=u({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new d({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var o=[],i=t?t.getDecorations(e):s(l(null,n)),u=e.getCharacterList();return a(i,r,c,function(e,t){var n,l,h,p;o.push(new d({start:e,end:t,decoratorKey:i.get(e),leaves:(n=u.slice(e,t).toList(),l=e,h=[],p=n.map(function(e){return e.getStyle()}).toList(),a(p,r,c,function(e,t){h.push(new f({start:e+l,end:t+l}))}),s(h))}))}),s(o)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(7),a=n(5),s=n(33),l=n(21),u=n(34),c=a.List,f=a.Record,d=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),o=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:o,selectionAfter:o})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=u(e),new i({key:l(),text:e,type:"unstyled",characterList:c(d(o.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset();return t<=this.getEndOffset()&&i<=n}if(e!==r&&e!==o)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,o=n(5),i=n(36),a=n(39),s=o.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),l=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),u=s(n.keySeq().zip(l));return null!=t&&o.is(t,u)?t:u}};e.exports=l},function(e,t,n){"use strict";var r=n(37),o=n(38),i=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?o.isStrong(t)||i(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function o(e){var t=r(e);return null==t?s.NEUTRAL:d.exec(t)?s.RTL:s.LTR}function i(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=o(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||l(!1),i(e,t)}var s=n(38),l=n(17),u="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",c="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+u+c+"]"),d=new RegExp("["+u+c+"]"),h={firstStrongChar:r,firstStrongCharDir:o,resolveBlockDir:i,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===l}function o(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function i(e){u=e}var a=n(17),s="LTR",l="RTL",u=null,c={NEUTRAL:"NEUTRAL",LTR:s,RTL:l,isStrong:r,getHTMLDir:o,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:o(e)},setGlobalDir:i,initGlobalDir:function(){i(s)},getGlobalDir:function(){return u||this.initGlobalDir(),u||a(!1),u}};e.exports=c},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,o=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var o=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==i;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var d=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return void this.update(o.push(t,d,"insert-characters"))}f&&this.update(o.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===o.get(e).getMutability()?e:null}var o=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?r(e.getBlockForKey(n).getEntityAt(o-1)):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some(function(e){return o===e.get("start")?(i=!0,!0):o_,N));var F=M||i,z={className:A,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":P,key:S};void 0!==T&&(z=o({},z,{contentEditable:T,suppressContentEditableWarning:!0}));var B=s.createElement(j,z,s.createElement(F,I));b.push({block:B,wrapperTemplate:L,key:S,offsetKey:P}),_=L?E.getDepth():null,w=L}for(var K=[],H=0;H0&&window.scrollTo(i.x,i.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(o.offsetHeight+i.y))>0&&u.setTop(o,u.getTop(o)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),l=t.getText(),u=this.props.tree.size-1,c=r(this.props.selection,n);return this.props.tree.map(function(r,h){var p=r.get("leaves"),y=p.size-1,v=p.map(function(r,o){var f=a.encode(n,h,o),d=r.get("start"),p=r.get("end");return s.createElement(i,{key:f,offsetKey:f,blockKey:n,start:d,selection:c?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:l.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===u&&o===y})}).toArray(),g=r.get("decoratorKey");if(null==g)return v;if(!e.props.decorator)return v;var b=m(e.props.decorator),_=b.getComponentForKey(g);if(!_)return v;var w=b.getPropsForKey(g),k=a.encode(n,h,0),E=l.slice(p.first().get("start"),p.last().get("end")),S=d.getHTMLDirIfDifferent(f.getDirection(E),e.props.direction);return s.createElement(_,o({},w,{decoratedText:E,dir:S,key:k,entityKey:t.getEntityAt(r.get("start")),offsetKey:k}),v)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),o=n(52),i=n(1),a=n(53),s=(n(33),n(61)),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,o=r+t.text.length;if(e.hasEdgeWithin(n,r,o)){var i,l=a.findDOMNode(this),u=l.firstChild;i=u.nodeType===Node.TEXT_NODE?u:"BR"===u.tagName?l:u.firstChild,s(e,i,n,r,o)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,l=t.styleSet,u=l.reduce(function(e,t){var o={},i=n[t];return void 0!==i&&e.textDecoration!==i.textDecoration&&(o.textDecoration=[e.textDecoration,i.textDecoration].join(" ").trim()),r(e,i,o)},{});if(a){var c=a(l);u=r(u,c)}return i.createElement("span",{"data-offset-key":s,ref:"leaf",style:u},i.createElement(o,null,e))},t}(i.Component);e.exports=l},function(e,t,n){"use strict";var r=n(1),o=n(53),i=n(54).isBrowser("IE <= 11"),a=i?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=i?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=o.findDOMNode(this);return""===e.children?!function(e){return i?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=l},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,a.contains(o,t))}function o(e){return"Windows"===i.platformName?e.replace(/^\s*NT/,""):e}var i=n(55),a=n(58),s=n(59),l=n(60),u={isBrowser:function(e){return r(i.browserName,i.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(i.browserArchitecture,null,e)},isDevice:function(e){return r(i.deviceName,null,e)},isEngine:function(e){return r(i.engineName,i.engineVersion,e)},isPlatform:function(e){return r(i.platformName,i.platformFullVersion,e,o)},isPlatformArchitecture:function(e){return r(i.platformArchitecture,null,e)}};e.exports=s(u,l)},function(e,t,n){"use strict";var r,o="Unknown",i={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),l={browserArchitecture:a.cpu.architecture||o,browserFullVersion:a.browser.version||o,browserMinorVersion:s.minor||o,browserName:a.browser.name||o,browserVersion:a.browser.major||o,deviceName:a.device.model||o,engineName:a.engine.name||o,engineVersion:a.engine.version||o,platformArchitecture:a.cpu.architecture||o,platformName:(r=a.os.name,i[r]||r||o),platformVersion:a.os.version||o,platformFullVersion:a.os.version||o};e.exports=l},function(e,t,n){var r;!function(o,i){"use strict";var a="model",s="name",l="type",u="vendor",c="version",f="mobile",d="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},p={rgx:function(){for(var e,t,n,r,o,i,a,s=0,l=arguments;s0?2==o.length?"function"==typeof o[1]?e[o[0]]=o[1].call(this,a):e[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?e[o[0]]=a?a.replace(o[1],o[2]):void 0:e[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(e[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):e[o]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return _.contains(e,t)}):function(e,t){var n=e.split(m);if(n.length>0&&n.length<=2||p(!1),1===n.length)return o(n[0],t);var r=n[0],i=n[1];return u(r)&&u(i)||p(!1),o(">="+r,t)&&o("<="+i,t)}(e=n[0].trim(),t)}function o(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(y),o=s(e),u=o.modifier,c=o.rangeComponents;switch(u){case"<":return i(r,c);case"<=":return-1===(n=h(r,c))||0===n;case">=":return a(r,c);case">":return function(e,t){return 1===h(e,t)}(r,c);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,s=parseInt(r[o],10);return l(s)&&(r[o]=s+1+""),a(e,n)&&i(e,r)}(r,c);default:return function(e,t){return 0===h(e,t)}(r,c)}}function i(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(y),n=t[0].match(g);return n||p(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function l(e){return!isNaN(e)&&isFinite(e)}function u(e){return!s(e).modifier}function c(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,b=/^(\d*)(.*)/,_={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=_},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var o={};for(var i in e)n.call(e,i)&&(o[i]=t.call(r,e[i],i,e));return o}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&i(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function o(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var i=n(62),a=n(65);e.exports=function(e,n,a,s,l){if(i(document.documentElement,n)){var u=t.getSelection(),c=e.getAnchorKey(),f=e.getAnchorOffset(),d=e.getFocusKey(),h=e.getFocusOffset(),p=e.getIsBackward();if(!u.extend&&p){var y=c,v=f;c=d,f=h,d=y,h=v,p=!1}var m=c===a&&s<=f&&l>=f,g=d===a&&s<=h&&l>=h;if(m&&g)return u.removeAllRanges(),o(u,n,f-s),void r(u,n,h-s);if(p){if(g&&(u.removeAllRanges(),o(u,n,h-s)),m){var b=u.focusNode,_=u.focusOffset;u.removeAllRanges(),o(u,n,f-s),r(u,b,_)}}else m&&(u.removeAllRanges(),o(u,n,f-s)),g&&r(u,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],o=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(o,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=o},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var o=n(70),i=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(i(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(i(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[o(t)]:e.style&&e.style[o(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),o=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=o(e),i=e===t?document.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function o(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}o.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=o},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,p)))return;return void l(p,function(e){e&&t.update(r(d,c(h),e))})}var y=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,y)))return this._internalDrag?void this.update(function(e,t){var n=i.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(d,h)):void this.update(r(d,h,n.getText()))}}};e.exports=d},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var o=n(81),i=n(82),a=n(31),s=new RegExp("\r\n","g"),l={"text/rtf":1,"text/html":1},u=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?i(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return l[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=u},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o=0;h--)if(!(null!=d&&h>0&&i.isSurrogatePair(d,h-1))){if(e.setStart(c,h),!r(a(e),n))break;l=c,u=h}if(-1===h||0===c.childNodes.length)break;f=o(c=c.childNodes[h])}return e.setStart(l,u),e}},function(e,t,n){"use strict";function r(e){return l<=e&&e<=f}function o(e){return d.test(e)}function i(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!o(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var c=null;if(null!=s)c=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);c=u(a(f))}return{key:c,offset:0}}var d=r.childNodes[n-1],h=null,p=null;if(a(d)){var y=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(d);h=u(a(y)),p=o(y)}else h=u(s),p=o(d);return{key:h,offset:p}}function o(e){var t=e.textContent;return"\n"===t?0:t.length}var i=n(83),a=n(84),s=n(86),l=n(17),u=n(39);e.exports=function(e,t,n,o,a,l){var c=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:s(e,u(i(n)),o,u(i(a)),l),needsRecovery:!1};var d=null,h=null,p=!0;return c?(d={key:u(i(n)),offset:o},h=r(t,a,l)):f?(h={key:u(i(a)),offset:l},d=r(t,n,o)):(d=r(t,n,o),h=r(t,a,l),n===a&&o===l&&(p=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,d.key,d.offset,h.key,h.offset),needsRecovery:p}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var l=r.getKeyBefore(o);null==l?a=o:(a=l,s=r.getBlockForKey(l).getText().length)}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var o=e.getSelection(),i=e.getCurrentContent(),a=o;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i}else if(e.isSelectionAtStartOfContent())return i;if((a=t(e))===o)return i}return r.removeRange(i,a,n)}},function(e,t,n){"use strict";var r=n(110),o=n(29),i=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var o="\\s|(?![_])"+n(111).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:['‘’]|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:['‘’]|(?!"+o+").)*(?:"+o+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),o=n(29),i=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),o=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),o=n(104),i=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),o=n(104),i=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),o=n(29),i=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,l=t.getAnchorKey(),u=e.getCurrentContent(),c=u.getBlockForKey(l).getLength();if(c<=1)return e;n===c?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(u,a),d=r.removeRange(u,a,"backward"),h=d.getSelectionAfter(),p=h.getAnchorOffset()-1,y=h.merge({anchorOffset:p,focusOffset:p}),v=r.replaceWithFragment(d,y,f),m=o.push(e,v,"insert-fragment");return o.acceptSelection(m,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(o)},0)):void n(o);var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return u.push(e,n,"insert-fragment")}var o=n(4),i=n(6),a=n(80),s=n(9),l=n(122),u=n(29),c=n(47),f=n(85),d=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var p=n.getFiles(),y=n.getText();if(p.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(p)))return;return void f(p,function(e){if(e=e||y){var n=t.props.editorState,r=d(e),a=i.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),f=l.processText(r,a),h=o.createFromArray(f),p=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(u.push(n,p,"insert-fragment"))}})}}var v=[],m=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(m,g))){if(m&&(v=d(m)),!this.props.stripPastedStyles){var b=this.getClipboard();if(n.isRichText()&&b){if(-1!==g.indexOf(this.getEditorKey())||1===v.length&&1===b.size&&b.first().getText()===m)return void this.update(r(this.props.editorState,b))}else if(b&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(v,b))return void this.update(r(this.props.editorState,b));if(g){var _=l.processHTML(g,this.props.blockRenderMap);if(_){var w=o.createFromArray(_);return void this.update(r(this.props.editorState,w))}}this.setClipboard(null)}if(v){var k=this.props.editorState,E=i.create({style:k.getCurrentInlineStyle(),entity:c(k.getCurrentContent(),k.getSelection())}),S=l.processText(v,E),D=o.createFromArray(S);this.update(r(this.props.editorState,D))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),o=n(5),i=n(123),a=n(21),s=n(125),l=n(34),u=o.List,c=o.Repeat,f={processHTML:function(e,t){return i(e,s,t)},processText:function(e,t){return e.map(function(e){return e=l(e),new r({key:a(),type:"unstyled",text:e,characterList:u(c(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[E()],entities:new Array(1),blocks:[]}}function o(e,t){return{text:"\r",inlines:[E()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(D,t))}]}}function i(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):I.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(m,e,t),"ul"!==m&&"ol"!==m||(n&&(d+=1),n=m),i||-1===f.indexOf(m)?n&&"li"===i&&"li"===m&&(k=o(a(m,n,h),d),i=m,g=!0,b="ul"===n?"unordered-list-item":"ordered-list-item"):(k=o(a(m,n,h),d),i=m,g=!0);var D=e.firstChild;null!=D&&(m=D.nodeName.toLowerCase());for(var O=null;D;){D instanceof HTMLAnchorElement&&D.href&&l(D)?function(){var e=D,t={};L.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new v(e.href).toString(),O=p.create("LINK","MUTABLE",t)}():O=void 0,k=s(k,u(D,t,n,i,f,d,h,O||y));var C=D.nextSibling;C&&f.indexOf(m)>=0&&i&&(k=s(k,r())),C&&(m=C.nodeName.toLowerCase()),D=C}return g&&(k=s(k,o(b,d))),k}var c,f=n(6),d=n(7),h=n(41),p=n(14),y=n(5),v=n(124),m=n(21),g=n(125),b=n(17),_=n(39),w=n(34),k=y.List,E=y.OrderedSet,S=" ",D=4,O=new RegExp("\r","g"),M=new RegExp("\n","g"),C=new RegExp(" ","g"),T=new RegExp(" ?","g"),N=new RegExp("​?","g"),P=["bold","bolder","500","600","700","800","900"],I=["light","lighter","100","200","300","400"],x={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},L=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(O,"").replace(C,S).replace(T,"").replace(N,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),o=t(e);if(!o)return null;c=null;var i=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=u(o,E(),"ul",null,i,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=w(e);var o=n+e.length,i=_(t).inlines.slice(n,o),a=_(t).entities.slice(n,o),s=k(i.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=o+1,new d({key:m(),type:_(t).blocks[r].type,depth:_(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),o=n(53),i=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=i(e,o.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var o=t.getSelection();return 0===o.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),o=n(42),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=i},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var o=n(100),i=n(46),a=n(54),s=a.isPlatform("Mac OS X"),l=a.isPlatform("Windows"),u=s&&a.isBrowser("Firefox < 29"),c=o.hasCommandModifier,f=o.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return!l&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?l?"redo":"secondary-paste":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case i.RETURN:return"split-block";case i.DELETE:return function(e){return l&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case i.BACKSPACE:return function(e){return c(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case i.LEFT:return u&&c(e)?"move-selection-to-start-of-block":null;case i.RIGHT:return u&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),o=n(9),i=n(29),a=(n(33),n(132)),s=n(39),l={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return l.toggleInlineStyle(e,"BOLD");case"italic":return l.toggleInlineStyle(e,"ITALIC");case"underline":return l.toggleInlineStyle(e,"UNDERLINE");case"code":return l.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return l.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return l.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=o.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=i.push(e,t,"insert-characters");return i.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),u=o.setBlockType(n,s,n.getBlockForKey(r).getType()),c=o.removeRange(u,s,"backward");if(c!==n)return i.push(e,c,"remove-range")}var f=l.tryToRemoveBlockStyle(e);return f?i.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),l=i.getBlockBefore(r);if("code-block"===s&&l&&"code-block"===l.getType())return null;if("unstyled"!==s)return o.setBlockType(i,t,"unstyled")}return null}};e.exports=l},function(e,t){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,a.get(i)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),o=n(134),i=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var i=o.stringify(e.getEntityAt(r));n.hasOwnProperty(i)||(n[i]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:i(e,n),data:e.getData().toObject()})});var l={};return Object.keys(n).forEach(function(e,t){var n=r.get(o.unstringify(e));l[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:l,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),o=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(i,a){var s=e.getText(),l=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(l)])})}),n}},function(e,t,n){"use strict";var r=n(104),o=n(8),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],l=t.map(function(e){return e.has(n)}).toList();return o(l,i,a,function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,o.is)(n,r)&&(a.push([e.slice(s,l),r]),s=l)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,o=null,i=[],a=0,s=0,l=e.length;s0&&n!==o&&(i.push([o,r(e.slice(a,s),t.slice(a,s))]),a=s)}return i.push([n,r(e.slice(a),t.slice(a))]),i};var o=n(150),i=t.EMPTY_SET=new o.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:T(e)}function n(e){return a(e)?e:N(e)}function r(e){return s(e)?e:P(e)}function o(e){return i(e)&&!l(e)?e:I(e)}function i(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ht])}function s(e){return!(!e||!e[Ut])}function l(e){return a(e)||s(e)}function u(e){return!(!e||!e[Wt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?p(e)+t:t}function v(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function E(){return{value:void 0,done:!0}}function S(e){return!!M(e)}function D(e){return e&&"function"==typeof e.next}function O(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function C(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?F():i(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function N(e){return null===e||void 0===e?F().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():z(e)}function P(e){return null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():B(e)}function I(e){return(null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e:B(e)).toSetSeq()}function x(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function A(e){return!(!e||!e[sn])}function F(){return rn||(rn=new x([]))}function z(e){var t=Array.isArray(e)?new x(e).fromEntrySeq():D(e)?new R(e).fromEntrySeq():S(e)?new j(e).fromEntrySeq():"object"==typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return C(e)?new x(e):D(e)?new R(e):S(e)?new j(e):void 0}function H(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new w(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,P(n).map(function(r,o){return e(t,r,o,n)})):q(n)?t.call(o,r,N(n).map(function(r,o){return e(t,r,o,n)})):n}(t,e,"",{"":e}):Y(e)}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():q(e)?N(e).map(Y).toMap():e}function q(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function V(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&G(o[1],e)&&(n||G(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!G(t,e.get(r,Vt)):!G(e.get(r,Vt),t))return f=!1,!1});return f&&e.size===d}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function Z(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var o=0|e;for(o!==e&&(o^=4294967295*e);e>4294967295;)o^=e/=4294967295;return ne(o)}if("string"===r)return e.length>yn?(void 0===(n=gn[t=e])&&(n=oe(t),mn===vn&&(mn=0,gn={}),mn++,gn[t]=n),n):oe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(dn&&void 0!==(t=ln.get(e)))return t;if(void 0!==(t=e[pn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[pn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),dn)ln.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[pn]=t}}return t}(e);if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function oe(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,l=a===s?[we(e,t,n+Yt,r,o)]:(i=new de(t,r,o),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Me(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function Ce(e){var t=xe();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),o=n.size;return 0===o?t:(ie(o),o>0&&or?0:r-n,u=o-n;return u>qt&&(u=qt),function(){if(l===u)return Tn;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,i,a){var s,l=e&&e.array,u=a>r?0:r-a>>i,c=1+(o-a>>i);return c>qt&&(c=qt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(u===c)return Tn;var r=t?--c:u++;s=n(l&&l[r],i-Yt,a+(r<>>n&Gt,l=e&&s0){var u=e&&e.array[s],c=Le(u,t,n-Yt,r,o,i);return c===u?e:((a=je(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(f(i),a=je(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function je(e,t){return t&&e&&t===e.ownerID?e:new Ne(e?e.array.slice():[],t)}function Re(e,t){if(t>=ze(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Yt;return n}}function Ae(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new Ne(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=Yt);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=ze(i),h=ze(s);h>=1<f?new Ne([],r):p;if(p&&h>f&&aYt;m-=Yt){var g=f>>>m≫v=v.array[g]=je(v.array[g],r)}v.array[f>>>Yt&Gt]=p}if(s=h)a-=h,s-=h,l=Yt,u=null,y=y&&y.removeBefore(r,0,a);else if(a>o||h>>l≫if(b!==h>>>l&Gt)break;b&&(c+=(1<o&&(u=u.removeBefore(r,l,a-c)),u&&ha&&(a=u.size),i(l)||(u=u.map(function(e){return W(e)})),o.push(u)}return a>e.size&&(e=e.setSize(a)),De(e,t,o)}function ze(e){return e>>Yt<=qt&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):He(r,o)}function Ye(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qe(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===Xt){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Jt?$t:Jt,n)},t}function Ze(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,Vt);return i===Vt?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Xt,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),o)})},r}function $e(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Je(e,t,n,r){var o=ct(e);return r&&(o.has=function(r){var o=e.get(r,Vt);return o!==Vt&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,Vt);return i!==Vt&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Xt,i),s=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return k(o,r?u:s++,c,i)}})},o}function Xe(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),m(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!=i||a!=a)return Xe(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=ct(e);return u.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(u.get=function(t,n){return(t=y(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===Jt?e:k(t,l-1,t===$t?void 0:e.value[1],e)})},u}function et(e,t,n,r){var o=ct(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)}),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Xt,i),l=!0,u=0;return new w(function(){var e,i,c;do{if((e=s.next()).done)return r||o===Jt?e:k(o,u++,o===$t?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],l&&(l=t.call(n,c,i,a))}while(l);return o===Xt?e:k(o,i,c,e)})},o}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(l,u){var c=this;l.__iterate(function(o,l){return(!t||u0}function it(e,n,r){var o=ct(e);return o.size=new x(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Jt,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function at(e,t){return A(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function lt(e){return ie(e.size),p(e)}function ut(e){return a(e)?n:s(e)?r:o}function ct(e){return Object.create((a(e)?N:s(e)?P:I).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function dt(e,t){return e>t?1:et?-1:0}function Ft(e){if(e.size===1/0)return 0;var t=u(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+zt(re(e),re(t))|0}:function(e,t){r=r+zt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=un(t,3432918353),t=un(t<<15|t>>>-15,461845907),t=un(t<<13|t>>>-13,5),t=un((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=un(t^t>>>13,3266489909))^t>>>16)}(o,r)}function zt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Bt=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=l,t.isOrdered=u,t.Keyed=n,t.Indexed=r,t.Set=o;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ht="@@__IMMUTABLE_KEYED__@@",Ut="@@__IMMUTABLE_INDEXED__@@",Wt="@@__IMMUTABLE_ORDERED__@@",Yt=5,qt=1<r?{value:void 0,done:!0}:k(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:k(e,a,n[a])})},L.prototype[Wt]=!0,e(j,P),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(D(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!D(r))return new w(E);var o=0;return new w(function(){var t=r.next();return t.done?t:k(e,o++,t.value)})},e(R,P),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return k(e,o,r[o++])})},e(Q,P),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return G(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,b(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return G(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:k(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:V(this,e)},e(J,t),e(X,J),e(ee,J),e(te,J),J.Keyed=X,J.Indexed=ee,J.Set=te;var ln,un="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),dn="function"==typeof WeakMap;dn&&(ln=new WeakMap);var hn=0,pn="__immutablehash__";"function"==typeof Symbol&&(pn=Symbol(pn));var yn=16,vn=255,mn=0,gn={};e(ae,X),ae.of=function(){var e=Bt.call(arguments,0);return me().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Vt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Vt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Vt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===Vt,a=n.next();if(a.done){var s=i?r:t,l=o(s);return l===s?t:l}Z(i||t&&t.set,"invalid keyPath");var u=a.value,c=i?Vt:t.get(u,Vt),f=e(c,n,r,o);return f===c?t:f===Vt?t.remove(u):(i?me():t).set(u,f)}(this,ht(e),t,n);return r===Vt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return ke(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Bt.call(arguments,1);return ke(this,e,t)},ae.prototype.mergeIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return ke(this,Ee,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Bt.call(arguments,1);return ke(this,Se(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Be(nt(this,e))},ae.prototype.sortBy=function(e,t){return Be(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var bn="@@__IMMUTABLE_MAP__@@",_n=ae.prototype;_n[bn]=!0,_n.delete=_n.remove,_n.removeIn=_n.deleteIn,le.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=kn)return function(e,t,n,r){e||(e=new d);for(var o=new de(e,re(n),[n,r]),i=0;i>>e)&Gt),i=this.bitmap;return 0==(i&o)?r:this.nodes[Oe(i&o-1)].get(e+Yt,t,n,r)},ue.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,l=1<=En)return function(e,t,n,r,o){for(var i=0,a=new Array(qt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ce(e,i+1,a)}(e,d,u,s,p);if(c&&!p&&2===d.length&&_e(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&_e(p))return p;var y=e&&e===this.ownerID,v=c?p?u:u^l:u|l,m=c?p?Me(d,f,p,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&Gt,i=this.nodes[o];return i?i.get(e+Yt,t,n,r):r},ce.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,l=o===Vt,u=this.nodes,c=u[s];if(l&&!c)return this;var f=be(c,e,t+Yt,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Ae(e,t).set(0,n):Ae(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(Zt);return t>=ze(e._capacity)?r=Le(r,e.__ownerID,0,t,n,i):o=Le(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ie(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},Ce.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ce.prototype.insert=function(e,t){return this.splice(e,0,t)},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Yt,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xe()},Ce.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ae(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ne([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-Yt,n))===a&&i)return this}if(i&&!o)return this;var s=je(this,e);if(!i)for(var l=0;l>>t≫if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-Yt,n))===i&&o===this.array.length-1)return this}var a=je(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Mn,Cn,Tn={};e(Be,ae),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Be.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ue()},Be.prototype.set=function(e,t){return We(this,e,t)},Be.prototype.remove=function(e){return We(this,e,Vt)},Be.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Be.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Be.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Be.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?He(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Be.isOrderedMap=Ke,Be.prototype[Wt]=!0,Be.prototype.delete=Be.prototype.remove,e(Ye,N),Ye.prototype.get=function(e,t){return this._iter.get(e,t)},Ye.prototype.has=function(e){return this._iter.has(e)},Ye.prototype.valueSeq=function(){return this._iter.valueSeq()},Ye.prototype.reverse=function(){var e=this,t=$e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ye.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ye.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?lt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Ye.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Jt,t),r=t?lt(this):0;return new w(function(){var o=n.next();return o.done?o:k(e,t?--r:r++,o.value,o)})},Ye.prototype[Wt]=!0,e(qe,P),qe.prototype.includes=function(e){return this._iter.includes(e)},qe.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(Ge,I),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(Ve,N),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var o=i(r);return k(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},qe.prototype.cacheResult=Ye.prototype.cacheResult=Ge.prototype.cacheResult=Ve.prototype.cacheResult=ft,e(pt,X),pt.prototype.toString=function(){return this.__toString(vt(this)+" {","}")},pt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},pt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},pt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=yt(this,me()))},pt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+vt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:yt(this,r)},pt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:yt(this,t)},pt.prototype.wasAltered=function(){return this._map.wasAltered()},pt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},pt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?yt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Nn=pt.prototype;Nn.delete=Nn.remove,Nn.deleteIn=Nn.removeIn=_n.removeIn,Nn.merge=_n.merge,Nn.mergeWith=_n.mergeWith,Nn.mergeIn=_n.mergeIn,Nn.mergeDeep=_n.mergeDeep,Nn.mergeDeepWith=_n.mergeDeepWith,Nn.mergeDeepIn=_n.mergeDeepIn,Nn.setIn=_n.setIn,Nn.update=_n.update,Nn.updateIn=_n.updateIn,Nn.withMutations=_n.withMutations,Nn.asMutable=_n.asMutable,Nn.asImmutable=_n.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return bt(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return bt(this,this._map.remove(e))},mt.prototype.clear=function(){return bt(this,this._map.clear())},mt.prototype.union=function(){var e=Bt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ct(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;ie(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ct(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):Tt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=b(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ct(o,i)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Mt;var Rn,An="@@__IMMUTABLE_STACK__@@",Fn=Ot.prototype;Fn[An]=!0,Fn.withMutations=_n.withMutations,Fn.asMutable=_n.asMutable,Fn.asImmutable=_n.asImmutable,Fn.wasAltered=_n.wasAltered,t.Iterator=w,Nt(t,{toArray:function(){ie(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new qe(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Ye(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){ie(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Be(this.toKeyedSeq())},toOrderedSet:function(){return kt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Ce(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Bt.call(arguments,0);return at(this,function(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?z(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var l=o[0];if(l===e||r&&a(l)||s(e)&&s(l))return l}var u=new x(o);return r?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(Xt)},every:function(e,t){ie(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return at(this,Je(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ie(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ie(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator($t)},map:function(e,t){return at(this,Ze(this,e,t))},reduce:function(e,t,n){var r,o;return ie(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,$e(this,!0))},slice:function(e,t){return at(this,Xe(this,e,t,!0))},some:function(e,t){return!this.every(xt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Jt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return p(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return V(this,e)},entrySeq:function(){var e=this;if(e._cache)return new x(e._cache);var t=e.toSeq().map(It).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(xt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(v)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ut(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=ht(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,Vt):Vt)===Vt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),o=(u(e)?Be():ae()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=ut(e);return o.map(function(t){return at(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,Vt)!==Vt},hasIn:function(e){return this.getIn(e,Vt)!==Vt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(Pt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?Lt(e):At)},minBy:function(e,t){return rt(this,t?Lt(t):At,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(xt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Xt,o),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(n,u,l,i)?r===Xt?e:k(r,l,u,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(xt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Ft(this))}});var zn=t.prototype;zn[Kt]=!0,zn[nn]=zn.values,zn.__toJS=zn.toArray,zn.__toStringMapper=jt,zn.inspect=zn.toSource=function(){return this.toString()},zn.chain=zn.flatMap,zn.contains=zn.includes,Nt(n,{flip:function(){return at(this,Qe(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Bn=n.prototype;return Bn[Ht]=!0,Bn[nn]=zn.entries,Bn.__toJS=zn.toObject,Bn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+jt(e)},Nt(r,{toKeyedSeq:function(){return new Ye(this,!1)},filter:function(e,t){return at(this,Je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,$e(this,!1))},slice:function(e,t){return at(this,Xe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(151),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(l.default,o({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,u.default)(n,(o(e={},d.default.root,!0),o(e,d.default.isActive,h),e)),l.default.createElement(f.default,null,l.default.createElement(c.default,i({},p,{title:a,className:n}),l.default.createElement("span",{className:d.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,l.default)(t,c.default.root);var u=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=i?"submit":"button";return s.default.createElement("button",o({type:f},a,{onMouseDown:u,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var s=a,l=t[s];"function"==typeof l&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var l=y++;n=p||(p=s(t)),r=u.bind(null,n,l,!1),o=u.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function u(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}var c={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},d=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),p=null,y=0,v=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=d()),void 0===t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(l.default,o({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(u.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,c.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return l.default.createElement("span",{className:r,title:s},l.default.createElement("select",i({},o,{value:n,onChange:this._onChange}),this._renderChoices()),l.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=o(e,2),n=t[0],r=t[1],i=r.label,a=r.className;return l.default.createElement("option",{key:n,value:n,className:a},i)})}}]),t}();t.default=d},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),o=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var o=r,i=e.getLength();o=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return i(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,u.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,i){return new e(a.EditorState.push(this._editorState,o(t,n,i),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,i,s){var l=o(t,n,s);return new e(a.EditorState.createWithContent(l,i),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){switch(e){case m.BLOCK_TYPE.HEADER_ONE:return["h1"];case m.BLOCK_TYPE.HEADER_TWO:return["h2"];case m.BLOCK_TYPE.HEADER_THREE:return["h3"];case m.BLOCK_TYPE.HEADER_FOUR:return["h4"];case m.BLOCK_TYPE.HEADER_FIVE:return["h5"];case m.BLOCK_TYPE.HEADER_SIX:return["h6"];case m.BLOCK_TYPE.UNORDERED_LIST_ITEM:case m.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case m.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case m.BLOCK_TYPE.CODE:return["pre","code"];case m.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,l=e[s];null!=l&&t.push(" "+s+'="'+(l+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,l,u,c=Object.assign||function(e){for(var t=1;t",S=/^data-([a-z0-9-]+)$/,D=(o(s={},g,{element:"strong"}),o(s,b,{element:"code"}),o(s,_,{element:"em"}),o(s,w,{element:"del"}),o(s,k,{element:"ins"}),s),O=[g,_,k,w,b],M=(o(l={},m.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),o(l,m.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),l),C=(o(u={},m.ENTITY_TYPE.LINK,function(e,t){var n=M.hasOwnProperty(e)?M[e]:{},r=t.getData(),o={},i=!0,a=!1,s=void 0;try{for(var l,u=Object.keys(r)[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value,f=r[c];if(n.hasOwnProperty(c))o[n[c]]=f;else S.test(c)&&(o[c]=f)}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return o}),o(u,m.ENTITY_TYPE.IMAGE,function(e,t){var n=M.hasOwnProperty(e)?M[e]:{},r=t.getData(),o={},i=!0,a=!1,s=void 0;try{for(var l,u=Object.keys(r)[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value,f=r[c];if(n.hasOwnProperty(c))o[n[c]]=f;else S.test(c)&&(o[c]=f)}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return o}),u),T=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[D,O]),o=f(r,2),i=o[0],a=o[1];this.inlineStyles=i,this.styleOrder=a}return d(e,[{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")}}catch(e){f=!0,d=e}finally{try{!u&&v.return&&v.return()}finally{if(f)throw d}}}},{key:"writeEndTag",value:function(e){var t=i(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,o=!1,a=void 0;try{for(var s,l=t[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var u=s.value;n.unshift("")}}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return E;r=this.preserveWhitespace(r);var o=e.getCharacterList();return(0,m.getEntityRanges)(r,o).map(function(e){var r=f(e,2),o=r[0],i=r[1].map(function(e){var r=f(e,2),o=r[0],i=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(E+"\n")}(o),l=!0,u=!1,d=void 0;try{for(var h,v=t.styleOrder[Symbol.iterator]();!(l=(h=v.next()).done);l=!0){var g=h.value;if((g!==b||n!==m.BLOCK_TYPE.CODE)&&i.has(g)){var _=t.inlineStyles[g],w=_.element,k=_.attributes,S=_.style;if(null==w&&(w="span"),k=(0,p.default)(k),null!=S){var D=(0,y.default)(S);k=null==k?{style:D}:c({},k,{style:D})}s="<"+w+a(k)+">"+s+""}}}catch(e){u=!0,d=e}finally{try{!l&&v.return&&v.return()}finally{if(u)throw d}}return s}).join(""),s=o?v.Entity.get(o):null,l=null==s?null:s.getType().toUpperCase();return null!=l&&l===m.ENTITY_TYPE.LINK?""+i+"":null!=l&&l===m.ENTITY_TYPE.IMAGE?"":i}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,l.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,o=n.characterMeta,i=!1;if(r===p&&(i=!0,r=""),"pre"===e.tagName){var u=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,o);r=u.text,o=u.characterMeta}else{var c=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var o=e.length;o--;)" "===e.charAt(o)&&" "===e.charAt(o-1)&&(e=e.slice(0,o)+e.slice(o+1),t=t.slice(0,o).concat(t.slice(o+1)));var i=(0,a.default)({text:e,characterMeta:t},p+" ",p);e=i.text,t=i.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+p,p);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,o);r=c.text,o=c.characterMeta}((r=r.split(p).join("\n")).length||i)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:o.toList(),depth:e.depth}))}),t.length?t:[d]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?u.BLOCK_TYPE.ORDERED_LIST_ITEM:u.BLOCK_TYPE.UNORDERED_LIST_ITEM;case"blockquote":return u.BLOCK_TYPE.BLOCKQUOTE;case"h1":return u.BLOCK_TYPE.HEADER_ONE;case"h2":return u.BLOCK_TYPE.HEADER_TWO;case"h3":return u.BLOCK_TYPE.HEADER_THREE;case"h4":return u.BLOCK_TYPE.HEADER_FOUR;case"h5":return u.BLOCK_TYPE.HEADER_FIVE;case"h6":return u.BLOCK_TYPE.HEADER_SIX;case"pre":return u.BLOCK_TYPE.CODE;case"figure":return u.BLOCK_TYPE.ATOMIC;default:return u.BLOCK_TYPE.UNSTYLED}}},{key:"processBlockElement",value:function(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),o=!_.hasOwnProperty(t),i={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};o&&(this.blockList.push(i),r&&(this.depth+=1)),this.blockStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),o&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],o=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(u.INLINE_STYLE.BOLD);case"i":case"em":return e.add(u.INLINE_STYLE.ITALIC);case"ins":return e.add(u.INLINE_STYLE.UNDERLINE);case"code":return e.add(u.INLINE_STYLE.CODE);case"del":return e.add(u.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(o=g[t](t,e)||o),n.styleStack.push(r),n.entityStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),w.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(p)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(p),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],o=s.CharacterMetadata.create({style:n,entity:r}),i=(0,l.Repeat)(o,e.length);t.textFragments.push({text:e,characterMeta:i})}},{key:"processNode",value:function(e){if(e.nodeType===c.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();b.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===c.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var o=e.text,i=e.characterMeta,a=t.length,s=r.length,l=[],u=i.slice(0,0),c=0,f=o.indexOf(t);-1!==f;)l.push(o.slice(c,f)+r),u=u.concat(i.slice(c,f),n(i.slice(f,f+1),s)),c=f+a,f=o.indexOf(t,c);return l.push(o.slice(c)),u=u.concat(i.slice(c)),{text:l.join(""),characterMeta:u}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var u=!0===f[e];return a.nodeType=l,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=u,!u&&o&&o.forEach(a.appendChild,a),a}return o(t,d),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=this.attributes[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,l=s.name,u=s.value;t.push(l+(u?'="'+u.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}var c=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+c+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+c+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=c,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return o(t,d),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case l.BLOCK_TYPE.UNORDERED_LIST_ITEM:case l.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function o(e){return e.replace(/\)/g,"%29")}function i(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case l.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.getDepth(),o=this.currentBlock-1,i=this.blocks[o];i&&r(i.getType())&&i.getDepth()>n;)o-=1,i=this.blocks[o];return i&&i.getType()===t&&i.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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,l.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],o=n[1];if(!r)return"";var i=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return o.has(c)&&(i="**"+i+"**"),o.has(p)&&(i="++"+i+"++"),o.has(d)&&(i="_"+i+"_"),o.has(h)&&(i="~~"+i+"~~"),o.has(f)&&(i=t===l.BLOCK_TYPE.CODE?i:"`"+i+"`"),i}).join(""),y=r?u.Entity.get(r):null;if(null!=y&&y.getType()===l.ENTITY_TYPE.LINK){var v=y.getData(),m=v.url||"",g=v.title?' "'+i(v.title)+'"':"";return"["+s+"]("+o(m)+g+")"}if(null!=y&&y.getType()===l.ENTITY_TYPE.IMAGE){var b=y.getData(),_=b.src||"";return"!["+(b.alt?' "'+i(b.alt)+'"':"")+"]("+o(_)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=i.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,o=n(203),i=(r=o)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=c({},e||d),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function o(e,t){if(this.options=c({},t||d),this.links=e,this.rules=p.normal,this.renderer=this.options.renderer||new i,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=p.breaks:this.rules=p.gfm:this.options.pedantic&&(this.rules=p.pedantic)}function i(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=c({},e||d),this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=(o=o.source||o).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,o),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var l=n(197),u=Object.prototype.hasOwnProperty,c=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=c({},h),h.gfm=c({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,o,i,a,s,l,u,c,f;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(i=this.rules.lheading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:"="===i[2]?1:2,text:i[1]});else if(i=this.rules.hr.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"hr"});else if(i=this.rules.blockquote.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"blockquote_start"}),i=i[0].replace(/^ *> ?/gm,""),this.token(i,t,!0),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),a=i[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(i=i[0].match(this.rules.item)).length,c=0;c1&&s.length>1||(e=i.slice(c+1).join("\n")+e,c=f-1)),o=r||/\n\n(?!\s*$)/.test(l),c!==f-1&&(r="\n"===l.charAt(l.length-1),o||(o=r)),this.tokens.push({type:o?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(!n&&t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),this.tokens.links[i[1].toLowerCase()]={href:i[2],title:i[3]};else if(t&&(i=this.rules.paragraph.exec(e)))e=e.substring(i[0].length),this.tokens.push({type:"paragraph",text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1]});else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"text",text:i[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var p={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};p.link=s(p.link)("inside",p._inside)("href",p._href)(),p.reflink=s(p.reflink)("inside",p._inside)(),p.normal=c({},p),p.pedantic=c({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=c({},p.normal,{escape:s(p.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(p.text)("]|","~+]|")()}),p.breaks=c({},p.gfm,{br:s(p.br)("{2,}","*")(),text:s(p.gfm.text)("{2,}","*")()}),o.rules=p,o.parse=function(e,t,n){return new o(t,n).parse(e)},o.prototype.parse=function(e){for(var t,n,r=new l.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new l.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new l.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new l.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},o.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},i.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new l.ElementNode("code",n,[e]);return new l.ElementNode("pre",[],[r])},i.prototype.blockquote=function(e){return new l.ElementNode("blockquote",[],[e])},i.prototype.heading=function(e,t){return new l.ElementNode("h"+t,[],[e])},i.prototype.hr=function(){return new l.ElementNode("hr",[],l.SELF_CLOSING)},i.prototype.list=function(e,t){return new l.ElementNode(t?"ol":"ul",[],[e])},i.prototype.listitem=function(e){return new l.ElementNode("li",[],[e])},i.prototype.paragraph=function(e){return new l.ElementNode("p",[],[e])},i.prototype.strong=function(e){return new l.ElementNode("strong",[],[e])},i.prototype.em=function(e){return new l.ElementNode("em",[],[e])},i.prototype.codespan=function(e){return new l.ElementNode("code",[],[new l.TextNode(e)])},i.prototype.br=function(){return new l.ElementNode("br",[],l.SELF_CLOSING)},i.prototype.del=function(e){return new l.ElementNode("del",[],[e])},i.prototype.ins=function(e){return new l.ElementNode("ins",[],[e])},i.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new l.ElementNode("a",r,[n])},i.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new l.ElementNode("img",r,l.SELF_CLOSING)},i.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new o(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new l.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new l.TextNode("");case"hr":return this.renderer.hr();case"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 e=new l.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new l.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,n);case"list_item_start":for(var r=new l.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 o=new l.FragmentNode;"list_item_end"!==this.next().type;)o.appendChild(this.tok());return this.renderer.listitem(o);case"paragraph":return this.renderer.paragraph(this.inline.parse(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};var y={parse:function(e,t){t=c({},d,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new l.FragmentNode([new l.ElementNode("p",[],[new l.TextNode("An error occured:")]),new l.ElementNode("pre",[],[new l.TextNode(e.message)])])}return t.getAST?new l.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return i.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(i(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),a=(u=n.slice()).length,l=0;l0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},cw5X:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=o&&i2&&void 0!==arguments[2]?arguments[2]:i.default.localeData().firstDayOfWeek();if(!i.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===a.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),s=(r.day()+7-n)%7,l=(n+6-o.day())%7,u=r.clone().subtract(s,"day"),c=o.clone().add(l,"day").diff(u,"days")+1,f=u.clone(),d=[],h=0;h=s&&h1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?o.a.Children.map(this.props.children,function(t){return t.type===s.a?o.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return o.a.createElement("div",u({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},h8mb:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=l(n("4kv9")),o=l(n("UZlY")),i=n("mtpF"),a=l(n("aQzc")),s=l(n("UtRD"));function l(e){return e&&e.__esModule?e:{default:e}}t.default={create:function(e){var t={},n=Object.keys(e),r=(o.default.get(i.GLOBAL_CACHE_KEY)||{}).namespace,s=void 0===r?"":r;return n.forEach(function(e){var n=(0,a.default)(s,e);t[e]=n}),t},resolve:function(e){var t=(0,r.default)(e,1/0),n=(0,s.default)(t),o=n.classNames,i=n.hasInlineStyles,a=n.inlineStyles,l={className:o.map(function(e,t){return String(e)+" "+String(e)+"_"+String(t+1)}).join(" ")};return i&&(l.style=a),l}}},hAtu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("GiK3"),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){return function(e){return i.default.createElement("svg",e,i.default.createElement("path",{d:"M694.4 242.4l249.1 249.1c11 11 11 21 0 32L694.4 772.7c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210.1-210.1H67.1c-13 0-23-10-23-23s10-23 23-23h805.4L662.4 274.5c-21-21.1 11-53.1 32-32.1z"}))}}();a.defaultProps={viewBox:"0 0 1000 1000"},t.default=a},i3rX:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){var n;return t&&!0===t.clone&&r(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e}function a(e,t,n){var o=e.slice();return t.forEach(function(t,a){void 0===o[a]?o[a]=i(t,n):r(t)?o[a]=s(e[a],t,n):-1===e.indexOf(t)&&o.push(i(t,n))}),o}function s(e,t,n){var o=Array.isArray(t);return o===Array.isArray(e)?o?((n||{arrayMerge:a}).arrayMerge||a)(e,t,n):function(e,t,n){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=i(e[t],n)}),Object.keys(t).forEach(function(a){r(t[a])&&e[a]?o[a]=s(e[a],t[a],n):o[a]=i(t[a],n)}),o}(e,t,n):i(t,n)}s.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return s(e,n,t)})};var l=s;e.exports=l},i7Em:function(e,t,n){"use strict";var r=n("teQR"),o=r("%Object%"),i=r("%TypeError%"),a=r("%String%"),s=n("bvnS"),l=n("No8i"),u=n("9+gG"),c=n("xeqp"),f=n("H1lJ"),d=n("vRXZ"),h=n("wSG+"),p=n("XfW5"),y={ToPrimitive:h,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return l(t)?0:0!==t&&u(t)?c(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(l(t)||0===t||!u(t))return 0;var n=c(t)*Math.floor(Math.abs(t));return f(n,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:d,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:l(e)&&l(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(p(e,n)&&!t[n])return!1;var r=p(e,"[[Value]]"),o=p(e,"[[Get]]")||p(e,"[[Set]]");if(r&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Get]]")&&!p(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Value]]")&&!p(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(s(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(p(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),p(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),p(e,"value")&&(t["[[Value]]"]=e.value),p(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),p(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(p(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new i("setter must be a function");t["[[Set]]"]=r}if((p(t,"[[Get]]")||p(t,"[[Set]]"))&&(p(t,"[[Value]]")||p(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=y},iB3Z:function(e,t,n){var r=n("PJh5"),o=n("LlVb"),i=n("8qqi");e.exports={momentObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return o.isValidMoment(e)},"Moment"),momentString:i.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return o.isValidMoment(r(e))},"Moment"),momentDurationObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isDuration(e)},"Duration")}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=n("saAw"),l=n("OE/d"),u=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},o.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},o.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return o.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Additional Comments"),o.a.createElement("div",{className:"control"},o.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return o.a.createElement("div",null,o.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),o.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return l.a.authenticated()?o.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),o.a.createElement(s.a,{visible:this.state.loading})):o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You must be logged in to flag this observation."),o.a.createElement("p",null,"Please ",o.a.createElement("a",{href:"/login"},"login")," or ",o.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},c.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jIVq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCustomizableCalendarDay=t.selectedStyles=t.lastInRangeStyles=t.selectedSpanStyles=t.hoveredSpanStyles=t.blockedOutOfRangeStyles=t.blockedCalendarStyles=t.blockedMinNightsStyles=t.highlightedCalendarStyles=t.outsideStyles=t.defaultStyles=void 0;var r=Object.assign||function(e){for(var t=1;t=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},klZv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(0,o.default)(e.clone().add(1,"month"),t)};var r=i(n("PJh5")),o=i(n("lmFy"));function i(e){return e&&e.__esModule?e:{default:e}}},kxzG:function(e,t,n){var r=n("yCNF"),o=n("6MiT"),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},lWrn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(r.default)};var r=i(n("/Tzs")),o=i(n("/z+2"));function i(e){return e&&e.__esModule?e:{default:e}}},"lb+b":function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},lf1y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0&&"[object Function]"===r.call(e.callee)),n}},t0Wu:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n("fXO7"),i=n("vRXZ"),a=n("lb+b"),s=n("lq6M");e.exports=function(e){if(o(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!==n&&void 0!==n){if(!i(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var l=t.call(e,n);if(o(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a0&&this.setState({visibleDays:(0,i.default)({},E,P)})}}()},{key:"componentWillUpdate",value:function(){return function(){this.today=(0,c.default)()}}()},{key:"onDayClick",value:function(){return function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({date:e}))}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,i.default)({},r,o)})}}}()},{key:"onDayMouseLeave",value:function(){return function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,i.default)({},n,r)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,l={};Object.keys(s).sort().slice(0,n+1).forEach(function(e){l[e]=s[e]});var u=a.clone().subtract(1,"month"),c=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,i.default)({},l,this.getModifiers(c))},function(){t(u.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,l={};Object.keys(s).sort().slice(1).forEach(function(e){l[e]=s[e]});var u=a.clone().add(n,"month"),c=(0,m.default)(u,1,r),f=a.clone().add(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},l,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===S.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===S.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,o=n.date,i=n.numberOfMonths,a=e.clone().startOf("month");if(o&&(a=o.clone()),this.isBlocked(a)){for(var s=[],l=e.clone().add(i-1,"months").endOf("month"),u=a.clone();!(0,v.default)(u,l);)u=u.clone().add(1,"day"),s.push(u);var c=s.filter(function(e){return!t.isBlocked(e)&&(0,v.default)(e,a)});if(c.length>0){var f=r(c,1);a=f[0]}}return a}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,b.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,m.default)(a,o,i))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,l=this.state,u=l.currentMonth,c=l.visibleDays,f=u,d=o;if(s===S.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,g.default)(t,f,d,a))return e;var h=(0,b.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.add(n),(0,i.default)({},t,M({},r,(0,i.default)({},o,M({},h,a))))},p);else{var y=(0,_.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.add(n),p=(0,i.default)({},p,M({},y,(0,i.default)({},v,M({},h,m))))}return p}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,l=this.state,u=l.currentMonth,c=l.visibleDays,f=u,d=o;if(s===S.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,g.default)(t,f,d,a))return e;var h=(0,b.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.delete(n),(0,i.default)({},t,M({},r,(0,i.default)({},o,M({},h,a))))},p);else{var y=(0,_.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.delete(n),p=(0,i.default)({},p,M({},y,(0,i.default)({},v,M({},h,m))))}return p}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return(0,y.default)(e,t)}}()},{key:"isSelected",value:function(){return function(e){var t=this.props.date;return(0,y.default)(e,t)}}()},{key:"isToday",value:function(){return function(e){return(0,y.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||c.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||c.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,s=e.navNext,l=e.onOutsideClick,u=e.withPortal,c=e.focused,f=e.enableOutsideDays,d=e.hideKeyboardShortcutsPanel,h=e.daySize,p=e.firstDayOfWeek,y=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,g=e.renderMonthElement,b=e.calendarInfoPosition,_=e.isFocused,w=e.isRTL,k=e.phrases,E=e.dayAriaLabelFormat,S=e.onBlur,O=e.showKeyboardShortcuts,M=e.weekDayFormat,C=e.verticalHeight,T=e.noBorder,N=e.transitionDuration,P=e.verticalBorderSpacing,I=e.horizontalMonthPadding,x=this.state,L=x.currentMonth,j=x.visibleDays;return a.default.createElement(D.default,{orientation:n,enableOutsideDays:f,modifiers:j,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:u,hidden:!c,hideKeyboardShortcutsPanel:d,initialVisibleMonth:function(){return L},firstDayOfWeek:p,onOutsideClick:l,navPrev:i,navNext:s,renderMonthText:o,renderCalendarDay:y,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:g,calendarInfoPosition:b,isFocused:_,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:S,phrases:k,daySize:h,isRTL:w,showKeyboardShortcuts:O,weekDayFormat:M,dayAriaLabelFormat:E,verticalHeight:C,noBorder:T,transitionDuration:N,verticalBorderSpacing:P,horizontalMonthPadding:I})}}()}]),t}();t.default=N,N.propTypes=C,N.defaultProps=T},teQR:function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,s="undefined"==typeof Uint8Array?void 0:i(Uint8Array),l={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in l))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===l[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return l[n]}},uLhX:function(e,t,n){var r=n("NkRn"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},umyC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("GiK3"),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){return function(e){return i.default.createElement("svg",e,i.default.createElement("path",{d:"M336.2 274.5l-210.1 210h805.4c13 0 23 10 23 23s-10 23-23 23H126.1l210.1 210.1c11 11 11 21 0 32-5 5-10 7-16 7s-11-2-16-7l-249.1-249c-11-11-11-21 0-32l249.1-249.1c21-21.1 53 10.9 32 32z"}))}}();a.defaultProps={viewBox:"0 0 1000 1000"},t.default=a},"uy+U":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n("KSGD")),o=v(n("iB3Z")),i=n("0IMB"),a=n("Nip3"),s=v(n("XZy4")),l=v(n("ykZC")),u=v(n("3s8g")),c=v(n("vWaV")),f=v(n("UnHD")),d=v(n("Kg4d")),h=v(n("0z1n")),p=v(n("CHcs")),y=v(n("Tb8W"));function v(e){return e&&e.__esModule?e:{default:e}}t.default={startDate:o.default.momentObj,endDate:o.default.momentObj,onDatesChange:r.default.func.isRequired,focusedInput:l.default,onFocusChange:r.default.func.isRequired,onClose:r.default.func,startDateId:r.default.string.isRequired,startDatePlaceholderText:r.default.string,endDateId:r.default.string.isRequired,endDatePlaceholderText:r.default.string,disabled:f.default,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDates:r.default.bool,showDefaultInputIcon:r.default.bool,inputIconPosition:u.default,customInputIcon:r.default.node,customArrowIcon:r.default.node,customCloseIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,keepFocusOnInput:r.default.bool,renderMonthText:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:c.default,anchorDirection:d.default,openDirection:h.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,daySize:i.nonNegativeInteger,isRTL:r.default.bool,firstDayOfWeek:p.default,initialVisibleMonth:r.default.func,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDates:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:y.default,hideKeyboardShortcutsPanel:r.default.bool,verticalHeight:i.nonNegativeInteger,transitionDuration:i.nonNegativeInteger,verticalSpacing:i.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,minimumNights:r.default.number,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(a.DateRangePickerPhrases)),dayAriaLabelFormat:r.default.string}},v0MV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("0IMB");t.default=(0,a.and)([i.default.instanceOf(Set),function(){return function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},wmWA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},x5U2:function(e,t,n){"use strict";var r=n("bidq"),o=n("PiFy"),i=n("9MlZ")(),a=Object,s=o.call(Function.call,Array.prototype.push),l=o.call(Function.call,Object.prototype.propertyIsEnumerable),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(void 0===(n=e)||null===n)throw new TypeError("target must be an object");var n,o,c,f,d,h,p,y,v=a(e);for(o=1;o0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"To")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"CC/BCC")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Subject")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"}),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("label",{className:"checkbox"},o.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Message")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control is-expanded"},o.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Message")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control is-expanded"},o.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}),o.a.createElement("p",{className:"help"},"You may use ",o.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return o.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},o.a.createElement("h5",{className:"title is-5"},"Message Preview"),o.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?o.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?o.a.createElement("table",{className:"table"},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("th",null,"Category"),o.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?o.a.createElement("tr",null,o.a.createElement("th",null,"Found Near"),o.a.createElement("td",null,t.formatted)):null,o.a.createElement("tr",null,o.a.createElement("th",null,"Date Collected"),o.a.createElement("td",null,l()(e.date.date).format("LL"))),o.a.createElement("tr",null,o.a.createElement("th",{colSpan:2},o.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?o.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):o.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return o.a.createElement("div",{className:"column"},o.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return o.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},o.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),o.a.createElement("div",{className:"modal-card modal-card-lg"},o.a.createElement(u.a,{visible:this.state.loading}),o.a.createElement("header",{className:"modal-card-head"},o.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),o.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),o.a.createElement("section",{className:"modal-card-body"},o.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),o.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?o.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):o.a.createElement("div",{className:"flexbox flex-space-between"},o.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),o.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},xeqp:function(e,t){e.exports=function(e){return e>=0?1:-1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=c||f||Function("return this")(),h=Object.prototype.toString,p=Math.max,y=Math.min,v=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o,i,a,s,l,u,c=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function _(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-c>=a}function w(){var e=v();if(_(e))return k(e);l=setTimeout(w,function(e){var n=t-(e-u);return d?y(n,a-(e-c)):n}(e))}function k(e){return l=void 0,h&&o?b(e):(o=i=void 0,s)}function E(){var e=v(),n=_(e);if(o=arguments,i=this,u=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),f?b(e):s}(u);if(d)return l=setTimeout(w,t),b(u)}return void 0===l&&(l=setTimeout(w,t)),s}return t=g(t)||0,m(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),E.cancel=function(){void 0!==l&&clearTimeout(l),c=0,o=u=i=l=void 0},E.flush=function(){return void 0===l?s:k(v())},E}}).call(t,n("DuR2"))},yCNF:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},yYPf:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{-webkit-transition:height .2s ease-in-out;-moz-transition:height .2s ease-in-out;transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}",""])},ykZC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6TBu");t.default=i.default.oneOf([a.START_DATE,a.END_DATE])},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,S=function(){return function e(t){if(!(this instanceof e))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 k(t,n,this);E.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){S.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}});var D=void 0!==o.ResizeObserver?o.ResizeObserver:S;t.default=D}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/0.99d5c823070e6284ffaa.js b/public/js/0.99d5c823070e6284ffaa.js new file mode 100644 index 00000000..786a42ec --- /dev/null +++ b/public/js/0.99d5c823070e6284ffaa.js @@ -0,0 +1 @@ +webpackJsonp([0],{"+1gT":function(e,t,n){"use strict";var r=n("x5U2");e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,l=e.offsetHeight,u="width"===t?s:l;n||(u-=parseFloat(a["padding"+o])+parseFloat(a["padding"+i])+parseFloat(a["border"+o+"Width"])+parseFloat(a["border"+i+"Width"]));r&&(u+=parseFloat(a["margin"+o])+parseFloat(a["margin"+i]));return u}},"/Tzs":function(e,t,n){e.exports=n("h8mb").default},"/plk":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;si&&(a=0),n.setState({previousIndex:o,currentIndex:a,isTransitioning:a!==o,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new u.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,l.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,o){var i=n.state,a=i.scrollingUpDown,s=i.scrollingLeftRight,l=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var u=(t>0?1:-1)*(l?-1:1);n._handleOnSwipedTo(u,o)}},n._handleSwiping=function(e,t,r,o){var i=n.state,a=i.galleryWidth,s=i.isTransitioning,l=i.scrollingUpDown,u=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||l)n.setState({offsetPercentage:0});else{var c=t<0?1:-1,f=o/a*100;Math.abs(f)>=100&&(f=100);var d={transition:"transform "+u+"ms ease-out"};n.setState({offsetPercentage:c*f,style:d})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return i.default.createElement("div",{className:"image-gallery-image"},e.imageSet?i.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return i.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),i.default.createElement("img",{alt:e.originalAlt,src:e.original})):i.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&i.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return i.default.createElement("div",{className:"image-gallery-thumbnail-inner"},i.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&i.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this._intervalId){var n=this.props,r=n.slideInterval,o=n.slideDuration;this.setState({isPlaying:!0}),this._intervalId=window.setInterval(function(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,o)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;d.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;d.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,o=n.scrollingLeftRight,i=Math.abs(e);Math.abs(t)>i&&!r&&!o?this.setState({scrollingUpDown:!0}):o||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,o=n.isTransitioning,i=r;!this._sufficientSwipeOffset()&&!t||o||(i+=e),e<0?this._canSlideLeft()||(i=r):this._canSlideRight()||(i=r),this._unthrottledSlideToIndex(i)}},{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.currentIndex0&&(er&&this._setThumbsTranslate(n+i))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,o=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){if(this._thumbnails.scrollHeight<=r)return 0;o=this._thumbnails.scrollHeight-r}else{if(this._thumbnails.scrollWidth<=n||n<=0)return 0;o=this._thumbnails.scrollWidth-n}return e*(o/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,o=t.previousIndex,i=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?i=-100+r:1===n&&0===e&&r<0&&(i=100+r),n!==o?0===o&&0===e&&0===r&&"left"===this.direction?i=100:1===o&&1===e&&0===r&&"right"===this.direction&&(i=-100):0===n&&1===e&&0===r&&"left"===this.direction?i=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(i=100),i}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,o=t.currentIndex;return n&&!(e===r||e===o)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,o=this.props,i=o.infinite,a=o.items,s=o.useTranslate3D,l=o.isRTL,u=-100*n,c=a.length-1,f=(u+100*e)*(l?-1:1)+r;i&&a.length>2&&(0===n&&e===c?f=-100*(l?-1:1)+r:n===c&&0===e&&(f=100*(l?-1:1)+r)),i&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var d="translate("+f+"%, 0)";return s&&(d="translate3d("+f+"%, 0, 0)"),{WebkitTransform:d,MozTransform:d,msTransform:d,OTransform:d,transform:d}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,o=this.state.thumbsTranslate,i=r?-1*o:o;return this._isThumbnailHorizontal()?(e="translate(0, "+o+"px)",n&&(e="translate3d(0, "+o+"px, 0)")):(e="translate("+i+"px, 0)",n&&(e="translate3d("+i+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,o=t.isFullscreen,s=t.modalFullscreen,l=t.isPlaying,u=t.scrollingLeftRight,c=this.props,f=c.infinite,d=c.preventDefaultTouchmoveEvent,h=c.isRTL,p=this._getThumbnailStyle(),y=this.props.thumbnailPosition,v=this._slideLeft,m=this._slideRight,g=[],b=[],_=[];this.props.items.forEach(function(t,o){var a=e._getAlignmentClassName(o),s=t.originalClass?" "+t.originalClass:"",l=t.thumbnailClass?" "+t.thumbnailClass:"",u=t.renderItem||e.props.renderItem||e._renderItem,c=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,d=!e.props.lazyLoad||a||e._lazyLoaded[o];d&&e.props.lazyLoad&&(e._lazyLoaded[o]=!0);var h=e._getSlideStyle(o),p=i.default.createElement("div",{key:o,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},d?u(t):i.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(o)&&g.push(p):g.push(p),e.props.showThumbnails&&b.push(i.default.createElement("a",{key:o,role:"button","aria-pressed":n===o?"true":"false","aria-label":"Go to Slide "+(o+1),className:"image-gallery-thumbnail"+(n===o?" active":"")+l,onClick:function(t){return e._onThumbnailClick(t,o)}},c(t))),e.props.showBullets){_.push(i.default.createElement("button",{key:o,type:"button",className:["image-gallery-bullet",n===o?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:o,currentIndex:n}),e.slideToIndex.call(e,o,r)},"aria-pressed":n===o?"true":"false","aria-label":"Go to Slide "+(o+1)}))}});var w=i.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+y+" "+(h?"image-gallery-rtl":"")},this.props.renderCustomControls&&this.props.renderCustomControls(),this.props.showFullscreenButton&&this.props.renderFullscreenButton(this._toggleFullScreen,o),this.props.showPlayButton&&this.props.renderPlayPauseButton(this._togglePlay,l),this._canNavigate()?[this.props.showNav&&i.default.createElement("span",{key:"navigation"},this.props.renderLeftNav(v,!this._canSlideLeft()),this.props.renderRightNav(m,!this._canSlideRight())),i.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:d||u},i.default.createElement("div",{className:"image-gallery-slides"},g))]:i.default.createElement("div",{className:"image-gallery-slides"},g),this.props.showBullets&&i.default.createElement("div",{className:"image-gallery-bullets"},i.default.createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},_)),this.props.showIndex&&i.default.createElement("div",{className:"image-gallery-index"},i.default.createElement("span",{className:"image-gallery-index-current"},this.state.currentIndex+1),i.default.createElement("span",{className:"image-gallery-index-separator"},this.props.indexSeparator),i.default.createElement("span",{className:"image-gallery-index-total"},this.props.items.length))),k=["image-gallery",this.props.additionalClass,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return i.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:k,"aria-live":"polite"},i.default.createElement("div",{className:"image-gallery-content"+(o?" fullscreen":"")},("bottom"===y||"right"===y)&&w,this.props.showThumbnails&&i.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+y+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},i.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},i.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:p,"aria-label":"Thumbnail Navigation"},b))),("top"===y||"left"===y)&&w))}}]),t}();h.propTypes={flickThreshold:c.default.number,items:c.default.array.isRequired,showNav:c.default.bool,autoPlay:c.default.bool,lazyLoad:c.default.bool,infinite:c.default.bool,showIndex:c.default.bool,showBullets:c.default.bool,showThumbnails:c.default.bool,showPlayButton:c.default.bool,showFullscreenButton:c.default.bool,disableThumbnailScroll:c.default.bool,disableArrowKeys:c.default.bool,disableSwipe:c.default.bool,useBrowserFullscreen:c.default.bool,preventDefaultTouchmoveEvent:c.default.bool,defaultImage:c.default.string,indexSeparator:c.default.string,thumbnailPosition:c.default.string,startIndex:c.default.number,slideDuration:c.default.number,slideInterval:c.default.number,swipeThreshold:c.default.number,swipingTransitionDuration:c.default.number,onSlide:c.default.func,onScreenChange:c.default.func,onPause:c.default.func,onPlay:c.default.func,onClick:c.default.func,onImageLoad:c.default.func,onImageError:c.default.func,onTouchMove:c.default.func,onTouchEnd:c.default.func,onTouchStart:c.default.func,onMouseOver:c.default.func,onMouseLeave:c.default.func,onThumbnailError:c.default.func,onThumbnailClick:c.default.func,renderCustomControls:c.default.func,renderLeftNav:c.default.func,renderRightNav:c.default.func,renderPlayPauseButton:c.default.func,renderFullscreenButton:c.default.func,renderItem:c.default.func,stopPropagation:c.default.bool,additionalClass:c.default.string,useTranslate3D:c.default.bool,isRTL:c.default.bool},h.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(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"0z1n":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6TBu");t.default=i.default.oneOf([a.OPEN_DOWN,a.OPEN_UP])},"1B1h":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=[{to:"/account",icon:"fa-address-card-o",label:"Settings"},{to:"/account/observations",icon:"fa-tree",label:"Observations"},{to:"/account/groups",icon:"fa-users",label:"Groups"},{to:"/account/collections",icon:"fa-th",label:"Collections"},{to:"/account/filters",icon:"fa-filter",label:"Filters"}],a=n("cabM"),s=n("TIMf"),l=n("ePhh"),u=function(){function e(e,t){for(var n=0;n0&&(z||j||a!==w)){var q=g||this.today;K=this.deleteModifierFromRange(K,q,q.clone().add(w,"days"),"blocked-minimum-nights"),K=this.deleteModifierFromRange(K,q,q.clone().add(w,"days"),"blocked")}(z||L)&&(0,f.default)(T).forEach(function(e){Object.keys(e).forEach(function(e){var n=(0,c.default)(e),r=!1;(z||P)&&(s(n)?(K=t.addModifier(K,n,"blocked-out-of-range"),r=!0):K=t.deleteModifier(K,n,"blocked-out-of-range")),(z||I)&&(l(n)?(K=t.addModifier(K,n,"blocked-calendar"),r=!0):K=t.deleteModifier(K,n,"blocked-calendar")),K=r?t.addModifier(K,n,"blocked"):t.deleteModifier(K,n,"blocked"),(z||x)&&(K=u(n)?t.addModifier(K,n,"highlighted-calendar"):t.deleteModifier(K,n,"highlighted-calendar"))})}),a>0&&n&&o===N.END_DATE&&(K=this.addModifierToRange(K,n,n.clone().add(a,"days"),"blocked-minimum-nights"),K=this.addModifierToRange(K,n,n.clone().add(a,"days"),"blocked"));var G=(0,c.default)();if((0,m.default)(this.today,G)||(K=this.deleteModifier(K,this.today,"today"),K=this.addModifier(K,G,"today"),this.today=G),Object.keys(K).length>0&&this.setState({visibleDays:(0,i.default)({},T,K)}),z||d!==D){var V=R(d,o);this.setState({phrases:(0,i.default)({},d,{chooseAvailableDate:V})})}}}()},{key:"onDayClick",value:function(){return function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,i=n.onBlur,a=n.focusedInput,s=n.onFocusChange,l=n.onClose,u=n.onDatesChange,c=n.startDateOffset,f=n.endDateOffset,d=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var h=this.props,p=h.startDate,v=h.endDate;if(c||f)p=(0,k.default)(c,e),v=(0,k.default)(f,e),r||(s(null),l({startDate:p,endDate:v}));else if(a===N.START_DATE){var m=v&&v.clone().subtract(o,"days"),_=(0,b.default)(m,e)||(0,g.default)(p,v),w=d===N.END_DATE;w&&_||(p=e,_&&(v=null)),w&&!_?(s(null),l({startDate:p,endDate:v})):w||s(N.END_DATE)}else if(a===N.END_DATE){var E=p&&p.clone().add(o,"days");p?(0,y.default)(e,E)?(v=e,r||(s(null),l({startDate:p,endDate:v}))):d!==N.START_DATE&&(p=e,v=null):(v=e,s(N.START_DATE))}u({startDate:p,endDate:v}),i()}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,a=t.minimumNights,s=t.startDateOffset,l=t.endDateOffset,u=this.state,c=u.hoverDate,f=u.visibleDays,d=null;if(o){var h=s||l,p={};if(h){var y=(0,k.default)(s,e),v=(0,k.default)(l,e,function(e){return e.add(1,"day")});d={start:y,end:v},this.state.dateOffset&&this.state.dateOffset.start&&this.state.dateOffset.end&&(p=this.deleteModifierFromRange(p,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),p=this.addModifierToRange(p,y,v,"hovered-offset")}if(!h){if(p=this.deleteModifier(p,c,"hovered"),p=this.addModifier(p,e,"hovered"),n&&!r&&o===N.END_DATE){if((0,g.default)(c,n)){var _=c.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,_,"hovered-span")}if(!this.isBlocked(e)&&(0,g.default)(e,n)){var w=e.clone().add(1,"day");p=this.addModifierToRange(p,n,w,"hovered-span")}}if(!n&&r&&o===N.START_DATE&&((0,b.default)(c,r)&&(p=this.deleteModifierFromRange(p,c,r,"hovered-span")),!this.isBlocked(e)&&(0,b.default)(e,r)&&(p=this.addModifierToRange(p,e,r,"hovered-span"))),n){var E=n.clone().add(1,"day"),S=n.clone().add(a+1,"days");if(p=this.deleteModifierFromRange(p,E,S,"after-hovered-start"),(0,m.default)(e,n)){var D=n.clone().add(1,"day"),O=n.clone().add(a+1,"days");p=this.addModifierToRange(p,D,O,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:d,visibleDays:(0,i.default)({},f,p)})}}}}()},{key:"onDayMouseLeave",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=this.state,s=a.hoverDate,l=a.visibleDays,u=a.dateOffset;if(!this.isTouchDevice&&s){var c={};if(c=this.deleteModifier(c,s,"hovered"),u&&(c=this.deleteModifierFromRange(c,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!r&&(0,g.default)(s,n)){var f=s.clone().add(1,"day");c=this.deleteModifierFromRange(c,n,f,"hovered-span")}if(!n&&r&&(0,g.default)(r,s)&&(c=this.deleteModifierFromRange(c,s,r,"hovered-span")),n&&(0,m.default)(e,n)){var d=n.clone().add(1,"day"),h=n.clone().add(o+1,"days");c=this.deleteModifierFromRange(c,d,h,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,i.default)({},l,c)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,l={};Object.keys(s).sort().slice(0,n+1).forEach(function(e){l[e]=s[e]});var u=a.clone().subtract(2,"months"),c=(0,_.default)(u,1,r,!0),f=a.clone().subtract(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},l,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,l={};Object.keys(s).sort().slice(1).forEach(function(e){l[e]=s[e]});var u=a.clone().add(n+1,"month"),c=(0,_.default)(u,1,r,!0),f=a.clone().add(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},l,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===N.VERTICAL_SCROLLABLE,i=(0,_.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===N.VERTICAL_SCROLLABLE,i=(0,_.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onMultiplyScrollableMonths",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,a=r.visibleDays,s=Object.keys(a).length,l=o.clone().add(s,"month"),u=(0,_.default)(l,t,n,!0);this.setState({visibleDays:(0,i.default)({},a,this.getModifiers(u))})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,o=n.startDate,i=n.endDate,a=n.focusedInput,s=n.minimumNights,l=n.numberOfMonths,u=e.clone().startOf("month");if(a===N.START_DATE&&o?u=o.clone():a===N.END_DATE&&!i&&o?u=o.clone().add(s,"days"):a===N.END_DATE&&i&&(u=i.clone()),this.isBlocked(u)){for(var c=[],f=e.clone().add(l-1,"months").endOf("month"),d=u.clone();!(0,g.default)(d,f);)d=d.clone().add(1,"day"),c.push(d);var h=c.filter(function(e){return!t.isBlocked(e)});h.length>0&&(u=r(h,1)[0])}return u}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,E.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,i=e.orientation,a=e.startDate,s=(n||(a?function(){return a}:function(){return t.today}))(),l=i===N.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,_.default)(s,r,o,l))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,l=this.state,u=l.currentMonth,c=l.visibleDays,f=u,d=o;if(s===N.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,w.default)(t,f,d,a))return e;var h=(0,E.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.add(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},h,a))))},p);else{var y=(0,S.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.add(n),p=(0,i.default)({},p,x({},y,(0,i.default)({},v,x({},h,m))))}return p}}()},{key:"addModifierToRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,b.default)(i,n);)o=this.addModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,l=this.state,u=l.currentMonth,c=l.visibleDays,f=u,d=o;if(s===N.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,w.default)(t,f,d,a))return e;var h=(0,E.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.delete(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},h,a))))},p);else{var y=(0,S.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.delete(n),p=(0,i.default)({},p,x({},y,(0,i.default)({},v,x({},h,m))))}return p}}()},{key:"deleteModifierFromRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,b.default)(i,n);)o=this.deleteModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"doesNotMeetMinimumNights",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,i=t.minimumNights;if(o!==N.END_DATE)return!1;if(n){var a=e.diff(n.clone().startOf("day").hour(12),"days");return a=0}return r((0,c.default)(e).subtract(i,"days"))}}()},{key:"isDayAfterHoveredStartDate",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,v.default)(i,e)&&o>0&&(0,m.default)(i,n)}}()},{key:"isEndDate",value:function(){return function(e){var t=this.props.endDate;return(0,m.default)(e,t)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,m.default)(e,t)}}()},{key:"isInHoveredSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,i=!!n&&!r&&(e.isBetween(n,o)||(0,m.default)(o,e)),a=!!r&&!n&&(e.isBetween(o,r)||(0,m.default)(o,e)),s=o&&!this.isBlocked(o);return(i||a)&&s}}()},{key:"isInSelectedSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}}()},{key:"isLastInRange",value:function(){return function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,v.default)(e,t)}}()},{key:"isStartDate",value:function(){return function(e){var t=this.props.startDate;return(0,m.default)(e,t)}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}}()},{key:"isToday",value:function(){return function(e){return(0,m.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||c.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||c.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,s=e.navNext,l=e.noNavButtons,u=e.onOutsideClick,c=e.withPortal,f=e.enableOutsideDays,d=e.firstDayOfWeek,h=e.hideKeyboardShortcutsPanel,p=e.daySize,y=e.focusedInput,v=e.renderCalendarDay,m=e.renderDayContents,g=e.renderCalendarInfo,b=e.renderMonthElement,_=e.calendarInfoPosition,w=e.onBlur,k=e.isFocused,E=e.showKeyboardShortcuts,S=e.isRTL,D=e.weekDayFormat,O=e.dayAriaLabelFormat,M=e.verticalHeight,C=e.noBorder,T=e.transitionDuration,N=e.verticalBorderSpacing,I=e.horizontalMonthPadding,x=this.state,L=x.currentMonth,j=x.phrases,R=x.visibleDays;return a.default.createElement(P.default,{orientation:n,enableOutsideDays:f,modifiers:R,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:r,renderMonthText:o,withPortal:c,hidden:!y,initialVisibleMonth:function(){return L},daySize:p,onOutsideClick:u,navPrev:i,navNext:s,noNavButtons:l,renderCalendarDay:v,renderDayContents:m,renderCalendarInfo:g,renderMonthElement:b,calendarInfoPosition:_,firstDayOfWeek:d,hideKeyboardShortcutsPanel:h,isFocused:k,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:w,showKeyboardShortcuts:E,phrases:j,isRTL:S,weekDayFormat:D,dayAriaLabelFormat:O,verticalHeight:M,verticalBorderSpacing:N,noBorder:C,transitionDuration:T,horizontalMonthPadding:I})}}()}]),t}();t.default=A,A.propTypes=L,A.defaultProps=j},"32hK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDateRangePicker=void 0;var r=Object.assign||function(e){for(var t=1;t0?" is-danger":"")},o.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},o.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return o.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Or Create New Collection"),o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})),o.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),o.a.createElement(s.a,{visible:this.state.loading})):o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You must be logged in to add this observation to a collection."),o.a.createElement("p",null,"Please ",o.a.createElement("a",{href:"/login"},"login")," or ",o.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},c.defaultProps={collections:[],onSubmit:function(){}}},"5xeA":function(e,t,n){"use strict";var r=n("Lffp"),o=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var i=r.ArraySpeciesCreate(e,0);return function e(t,n,i,a,s){for(var l=a,u=0;u0&&(d=r.IsArray(f)),d)l=e(t,f,r.ToLength(r.Get(f,"length")),l,s-1);else{if(l>=o)throw new TypeError("index too large");r.CreateDataPropertyOrThrow(t,r.ToString(l),f),l+=1}}u+=1}return l}(i,e,t,0,n),i}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("O27J"),a=n.n(i),s=n("KSGD"),l=n.n(s),u=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),u(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return o.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},o.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(o.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=c,c.propTypes={message:l.a.string.isRequired,type:l.a.string,container:l.a.object.isRequired},c.defaultProps={type:"success"},c.stack=[]},"6MiT":function(e,t,n){var r=n("aCM0"),o=n("UnEC"),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},"6TBu":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},"6yBs":function(e,t,n){"use strict";e.exports=n("t0Wu")},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,o=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:o,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,o=t.onSwiping,i=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,u=t.onSwipingRight,c=t.onSwipedRight,f=t.onSwipingUp,d=t.onSwipedUp,h=t.onSwipingDown,p=t.onSwipedDown,y=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var v=l(e,this.swipeable);if(!(v.absXv.absY?v.deltaX>0?(a||s)&&(a&&a(e,v.absX),m=!0):(u||c)&&(u&&u(e,v.absX),m=!0):v.deltaY>0?(f||d)&&(f&&f(e,v.absY),m=!0):(h||p)&&(h&&h(e,v.absY),m=!0),this.swipeable.swiping=!0,m&&y&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,o=t.onSwiped,i=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,u=t.onSwipedDown,c=t.onTap;if(this.swipeable.swiping){var f=l(e,this.swipeable);n&&e.stopPropagation();var d=f.velocity>r;o&&o(e,f.deltaX,f.deltaY,d,f.velocity),f.absX>f.absY?f.deltaX>0?i&&i(e,f.deltaX,d):a&&a(e,f.deltaX,d):f.deltaY>0?s&&s(e,f.deltaY,d):u&&u(e,f.deltaY,d)}else c&&c(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,o.createElement(this.props.nodeName,e,this.props.children)},t}(o.Component);u.propTypes={onSwiped:i.func,onSwiping:i.func,onSwipingUp:i.func,onSwipingRight:i.func,onSwipingDown:i.func,onSwipingLeft:i.func,onSwipedUp:i.func,onSwipedRight:i.func,onSwipedDown:i.func,onSwipedLeft:i.func,onTap:i.func,flickThreshold:i.number,delta:i.number,preventDefaultTouchmoveEvent:i.bool,stopPropagation:i.bool,nodeName:i.string,trackMouse:i.bool,disabled:i.bool,innerRef:i.func,children:i.node,rotationAngle:i.number},u.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=u},"76UX":function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n("9MlZ");e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(t,n("DuR2"))},"7ciz":function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n("t+1C"),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=u&&n;if(s&&e.length>0&&!o.call(e,0))for(var y=0;y0)for(var v=0;v>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}var i=-1;e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,a,s){return r(function(r,l,u,c,f,d,h){var p=u[c],y=typeof p,v=function(e,t,n,r){var a=void 0===r,s=null===r;if(e){if(a)return o(n,t,"undefined");if(s)return o(n,t,"null")}return a||s?null:i}(r,f=f||n.anonymousMessage,h=h||c,p);if(v!==i)return v;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+c+"` of type `"+y+"` supplied to `"+f+"`, expected `"+e+"`.");if(!a(p))return new Error(n.baseInvalidMessage+d+" `"+c+"` of type `"+y+"` supplied to `"+f+"`, expected `"+s+"`.");if(l&&!l(p)){var m=l.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+c+"` of type `"+y+"` supplied to `"+f+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null})},messages:n}},"9+gG":function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},"9LH0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.DISPLAY_FORMAT):null};var r=a(n("PJh5")),o=a(n("8Pcz")),i=n("6TBu");function a(e){return e&&e.__esModule?e:{default:e}}},"9MlZ":function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},"9ge7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_MONTH_FORMAT):null};var r=a(n("PJh5")),o=a(n("8Pcz")),i=n("6TBu");function a(e){return e&&e.__esModule?e:{default:e}}},AByj:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=n("h7v/"),l=n("NdNt"),u=n("c8iI"),c=n("0dG/"),f=n.n(c),d=n("PJh5"),h=n.n(d),p=n("LZyd"),y=n("iwoP"),v=n("5L7H"),m=n("jVml"),g=n("mOuh"),b=n("OE/d"),_=n("t4LX"),w=n("F8kA"),k=n("xC2h"),E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},o.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return o.a.createElement(u.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},o.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:o.a.createElement("div",null,o.a.createElement("div",{className:"flexbox observation-tools"},o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-star text-success"})),o.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-flag text-danger"})),o.a.createElement("span",null,"Flag Observation")):null,b.a.can("contact users")?o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-envelope text-info"})),o.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return o.a.createElement(p.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return o.a.createElement(y.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return o.a.createElement("div",null,o.a.createElement("h3",{className:"title is-4"},"Add to Collection"),o.a.createElement(v.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":E(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:o.a.createElement("tr",{key:n},o.a.createElement("th",null,e),o.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?o.a.createElement("p",{className:"help"},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-lock"})),o.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),_.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return o.a.createElement("div",{className:"box has-text-centered"},o.a.createElement("div",{className:"content"},o.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),o.a.createElement("p",null,"Observation has been deleted successfully"),o.a.createElement(w.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return b.a.can("contact users")?o.a.createElement(k.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return o.a.createElement("div",{className:"box"},o.a.createElement("div",{className:"columns is-mobile flex-v-center"},o.a.createElement("div",{className:"column"},o.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),o.a.createElement("div",{className:"column is-narrow"},o.a.createElement("span",{className:"select"},o.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},o.a.createElement("option",{value:"US"},"US Units"),o.a.createElement("option",{value:"metric"},"Metric Units")))),b.a.can("delete observations")||b.a.owns(this.observation)?o.a.createElement("div",{className:"column is-narrow"},o.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-trash"})),o.a.createElement("span",null,"Delete"))):null),o.a.createElement("div",{className:"columns mb-none"},o.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},o.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},o.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("th",null,"Submitted By"),o.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?o.a.createElement("tr",null,o.a.createElement("th",null,"Custom Tree Identifier"),o.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?o.a.createElement("tr",null,o.a.createElement("th",null,"ID"),o.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,o=void 0!==m.a[n]?m.a[n]:n,i=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],i=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(o,i,n,r)}),o.a.createElement("tr",null,o.a.createElement("th",null,"Coordinates"),o.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?o.a.createElement("tr",null,o.a.createElement("th",null,"Location Accuracy"),o.a.createElement("td",null,b.a.can("view accurate location")||b.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,o.a.createElement("tr",null,o.a.createElement("th",null,"Date Collected"),o.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:o.a.createElement("tr",null,o.a.createElement("th",null,"Photos"),o.a.createElement("td",null,o.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),o.a.createElement("div",{className:"column"},o.a.createElement("div",{className:"tabs has-no-shadow"},o.a.createElement("ul",null,o.a.createElement("li",{className:this.getTabClass("photos")},o.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),o.a.createElement("li",{className:this.getTabClass("map")},o.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?o.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},o.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return o.a.createElement(l.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?o.a.createElement("div",{className:"callout"},o.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?o.a.createElement("div",{style:{width:"100%",position:"relative"}},o.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=D,D.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},D.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},"Atm/":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=function(){function e(e,t){for(var n=0;n-1?" is-selected":""}},{key:"_toggleSelected",value:function(e){var t=[];t=this.props.value.indexOf(e)>-1?this.props.value.filter(function(t){return t!==e}):this.props.value.concat(e),console.log(t),this.props.onChange(t)}},{key:"render",value:function(){var e=this;return a.a.createElement("div",{className:"control buttons-group"},this.props.list.map(function(t,n){return a.a.createElement("button",{type:"button",className:"button mb-0 button-select"+e._setActiveSelected(t),key:n,onClick:function(){return e._toggleSelected(t)}},a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-check"})),a.a.createElement("span",null,t))}))}}]),t}(),f=c;c.propTypes={list:l.a.array.isRequired,onChange:l.a.func.isRequired,value:l.a.array.isRequired};var d=n("mOuh"),h=function(){function e(e,t){for(var n=0;n 75%"],onChange:function(t){return e._update("crownAssessment",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Disease"),a.a.createElement(f,{value:this.state.madroneDisease,list:["Wilting leaves","Leaf spots","Rust","Blight","Defoliation","Lesions","Cankers"],onChange:function(t){return e._update("madroneDisease",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Stand Diversity"),a.a.createElement(f,{value:this.state.standDiversity,list:["Pure stand of this species","Mixed stand (this species and others)","Tree is standing alone","Not sure"],onChange:function(t){return e._update("standDiversity",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Tree Diameter (",d.a.unit("inches"),")"),a.a.createElement("div",{className:"field is-horizontal"},a.a.createElement("div",{className:"field-body"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Min.",value:this.state.diameterNumericMin,onChange:function(t){var n=t.target;return e._update("diameterNumericMin",n.value)}}))),a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Max.",value:this.state.diameterNumericMax,onChange:function(t){var n=t.target;return e._update("diameterNumericMax",n.value)}}))))))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Tree Height (",d.a.unit("feet"),")"),a.a.createElement("div",{className:"field is-horizontal"},a.a.createElement("div",{className:"field-body"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Min.",value:this.state.heightNumericMin,onChange:function(t){var n=t.target;return e._update("heightNumericMin",n.value)}}))),a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Max.",value:this.state.heightNumericMax,onChange:function(t){var n=t.target;return e._update("heightNumericMax",n.value)}}))))))))}}]),t}(),$=Z;Z.propTypes={onChange:l.a.func.isRequired};var J=function(){function e(e,t){for(var n=0;n2?arguments[2]:[];if(!this.IsCallable(e))throw new s(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=E(e)?e:o(e,d);if("symbol"==typeof t)throw new s("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(S(M(t,2),2));if(T(t))return this.ToNumber(S(M(t,2),8));if(I(t)||x(t))return NaN;var n=function(e){return V(e,G,"")}(t);if(n!==t)return this.ToNumber(n)}return d(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!g(t))return 0;var n=w(t)*B(K(t));return k(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=B(e);return n+.5b?b:t},CanonicalNumericIndexString:function(e){if("[object String]"!==j(e))throw new s("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Q.CheckObjectCoercible,IsArray:u.isArray||function(e){return"[object Array]"===j(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!E(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!g(e))return!1;var t=K(e);return B(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(y){var t=e[h.match];if(void 0!==t)return Q.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new s(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Q.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new s("O.constructor is not an Object");var r=y&&h.species?n[h.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new s("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");if("Boolean"!==this.Type(r))throw new s("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(y&&"symbol"==typeof h.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");var n=O(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!y)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,h.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new s("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new s("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new s("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var i=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(i))throw new s("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new s("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new s("R must be an Object");if("String"!==this.Type(t))throw new s("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new s('"exec" method must return `null` or an Object')}return N(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new s("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&y&&h.species&&null===(n=this.Get(n,h.species))&&(n=void 0)),void 0===n)return u(r);if(!this.IsConstructor(n))throw new s("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=U(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new s("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new s("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new l("es-abstract does not yet support internal slots");if(null===e&&!H)throw new l("native Object.create support is required to create null objects");return H(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new s("S must be a String");if(!this.IsInteger(t)||t<0||t>b)throw new s("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new s("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=L(e,t);if(r<55296||r>56319)return t+1;var o=L(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!Y(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!Y(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");return i(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:R(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:A(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:z(e)},thisTimeValue:function(e){return F(e)}});delete $.CheckObjectCoercible,e.exports=$},GN0G:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.localeData().firstDayOfWeek(),n=function(e,t){return(e.day()-t+7)%7}(e.clone().startOf("month"),t);return Math.ceil((n+e.daysInMonth())/7)};var r,o=n("PJh5"),i=(r=o)&&r.__esModule?r:{default:r}},H1lJ:function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},"HOE/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t)||(0,o.default)(e,t))};var r=i(n("PJh5")),o=i(n("RHtK"));function i(e){return e&&e.__esModule?e:{default:e}}},"I/WY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=i(n("PJh5")),o=i(n("+LBX"));function i(e){return e&&e.__esModule?e:{default:e}}},IFrJ:function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is-active";return this.setPath(),t&&this.path===e?n:!t&&this.path.indexOf(e)>=0?n:null}},{key:"parseUrl",value:function(e){var t={};return(e=e.substr(1)).split("&").forEach(function(e){if(e){var n=(e=e.split("+").join(" ")).indexOf("="),r=n>-1?e.substr(0,n):e,o=n>-1?decodeURIComponent(e.substr(n+1)):"",i=r.indexOf("[");if(-1===i)t[decodeURIComponent(r)]=o;else{var a=r.indexOf("]",i),s=decodeURIComponent(r.substring(i+1,a));r=decodeURIComponent(r.substring(0,i)),t[r]||(t[r]=[]),s?t[r][s]=o:t[r].push(o)}}}),t}}]),e}();t.a=new o},IMKR:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("O27J"),o=n.n(r),i=n("GiK3"),a=n.n(i),s=n("KSGD"),l=n.n(s),u=!("undefined"==typeof window||!window.document||!window.document.createElement),c=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return o.a.createElement(d.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},o.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},o.a.createElement("div",{className:"media callout"},o.a.createElement("div",{className:"media-left mr-0"},o.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),o.a.createElement("div",{className:"media-content"},o.a.createElement("div",{className:"mb-0"},o.a.createElement("strong",null,t.observation_category)),o.a.createElement("div",{className:"mb-0"},"By ",t.user.name),o.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return o.a.createElement("div",{className:"card-slide-container"},o.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?o.a.createElement("div",{className:"content"},o.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),o.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},o.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),o.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):o.a.createElement(c.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return o.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},o.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),o.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return o.a.createElement("div",{className:"card-slide-container"},o.a.createElement("h3",{className:"title is-5"},"Flag Observation"),o.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),y.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";y.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return o.a.createElement("div",{className:"card-footer marks-section"},o.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},o.a.createElement("span",null,this.state.incorrectMarks),o.a.createElement("span",{className:"icon ml-0 mr-0"},o.a.createElement("b",{className:"fa fa-times text-danger"})),o.a.createElement("span",null,"Marks")),o.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},o.a.createElement("span",null,this.state.correctMarks),o.a.createElement("span",{className:"icon ml-0 mr-0"},o.a.createElement("b",{className:"fa fa-check text-success"})),o.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":k(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,i=this.getAddress(t),a=i.address,l=i.addressLine1,c=i.addressLine2;return o.a.createElement("div",{className:"observation-card-container"},o.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},o.a.createElement("header",{className:"card-header"},o.a.createElement(_.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),w.a.can("confirm species")?o.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},o.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},o.a.createElement("span",{className:"icon"},o.a.createElement("i",{className:"fa fa-times"})))):null,w.a.can("confirm species")?o.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},o.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},o.a.createElement("span",{className:"icon"},o.a.createElement("i",{className:"fa fa-check"})))):null),o.a.createElement("div",{className:"relative-block"},o.a.createElement(p.a,{visible:this.state.loading}),o.a.createElement("div",{className:"has-bg-image relative-block is-positioned-relatively"},o.a.createElement("div",{className:"card-image img-bg-zoom",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}},o.a.createElement("a",{href:"javascript:;",className:"sidebar-img-overlay flexbox flex-v-center flex-h-center flex-column z-10",onClick:function(){e.setState({showDetailsModal:!0})}},o.a.createElement("i",{className:"fa fa-photo"}),o.a.createElement("div",{className:"has-text-centered"},"Click for More Details")))),this._renderMarks(),o.a.createElement("div",{className:"card-content"},o.a.createElement("div",{className:"content"},this.props.owner?null:o.a.createElement("span",null,"By ",t.user.name,o.a.createElement("br",null)),o.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),o.a.createElement("br",null),t.custom_id?o.a.createElement("div",null,o.a.createElement("small",null,o.a.createElement("strong",null,"Custom ID")," ",t.custom_id),o.a.createElement("br",null)):o.a.createElement("div",null,o.a.createElement("small",null,o.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||w.a.can("view accurate location")?o.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,o.a.createElement("br",null)):null,o.a.createElement("small",null,u()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?o.a.createElement("div",{className:"text-ellipsis",title:a},o.a.createElement("small",null,o.a.createElement("b",null,"Near")," ",l),o.a.createElement("br",null),o.a.createElement("small",{style:{marginLeft:"35px"}},c)):o.a.createElement("div",{style:{height:48}},"Address is unavailable"))),o.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},o.a.createElement("div",{className:"p-1 relative-block"},o.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},o.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),o.a.createElement("footer",{className:"card-footer card-footer-z-index"},o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},o.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-star"})))),o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},o.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-map"})))),w.a.can("contact users")&&!this.props.owner?o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},o.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},o.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?o.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},o.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?o.a.createElement(b,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=S;S.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},S.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},K45F:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t= 0");var n=this.ToLength(t);if(!this.SameValueZero(t,n))throw new RangeError("index must be >= 0 and < 2 ** 53 - 1");return n},EnumerableOwnProperties:function(e,t){var n=o.EnumerableOwnNames(e);if("key"===t)return n;if("value"===t||"key+value"===t){var r=[];return a(n,function(n){u(e,n)&&c(r,["value"===t?e[n]:[n,e[n]]])}),r}throw new l('Assertion failed: "kind" is not "key", "value", or "key+value": '+t)}});delete f.EnumerableOwnNames,e.exports=f},LlVb:function(e,t,n){var r=n("PJh5");e.exports={isValidMoment:function(e){return!("function"==typeof r.isMoment&&!r.isMoment(e))&&("function"==typeof e.isValid?e.isValid():!isNaN(e))}}},"MUv+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BOTTOM_RIGHT=t.TOP_RIGHT=t.TOP_LEFT=void 0;var r=Object.assign||function(e){for(var t=1;t=t||n<0||m&&e-y>=f}function w(){var e=o();if(_(e))return k(e);h=setTimeout(w,function(e){var n=t-(e-p);return m?l(n,f-(e-y)):n}(e))}function k(e){return h=void 0,g&&u?b(e):(u=c=void 0,d)}function E(){var e=o(),n=_(e);if(u=arguments,c=this,p=e,n){if(void 0===h)return function(e){return y=e,h=setTimeout(w,t),v?b(e):d}(p);if(m)return h=setTimeout(w,t),b(p)}return void 0===h&&(h=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(v=!!n.leading,f=(m="maxWait"in n)?s(i(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==h&&clearTimeout(h),y=0,u=p=c=h=void 0},E.flush=function(){return void 0===h?d:k(o())},E}},"OE/d":function(e,t,n){"use strict";var r=n("t4LX"),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n-1}},{key:"owns",value:function(e,t){return void 0===t&&(t="user_id"),"object"===(void 0===e?"undefined":o(e))?Array.isArray(e)?e.every(this.owns.bind(this)):void 0!==e[t]&&e[t]===this._user.id:"number"==typeof e&&this._user.id===e}},{key:"inGroupWith",value:function(e){for(var t in this._groups)if(this._groups[t].users.indexOf(e)>-1)return!0;return!1}},{key:"inGroup",value:function(e){for(var t in this._groups)if(this._groups[t].id===e)return!0;return!1}},{key:"authenticated",value:function(){return this._isLoggedIn}},{key:"admin",value:function(){return this._isAdmin}},{key:"scientist",value:function(){return this._isScientist}},{key:"role",value:function(){return this._role}},{key:"user",value:function(){return this._user}}]),e}();t.a=new a},OjkW:function(e,t,n){e.exports=n("YZwx")},OpPv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e)return e;if("function"==typeof e)return e(t);return""}},PiFy:function(e,t,n){"use strict";var r=n("fRHV");e.exports=Function.prototype.bind||r},Pkwz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=t||n<0||d&&e-c>=a}function w(){var e=v();if(_(e))return k(e);l=setTimeout(w,function(e){var n=t-(e-u);return d?y(n,a-(e-c)):n}(e))}function k(e){return l=void 0,h&&o?m(e):(o=i=void 0,s)}function E(){var e=v(),n=_(e);if(o=arguments,i=this,u=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),f?m(e):s}(u);if(d)return l=setTimeout(w,t),m(u)}return void 0===l&&(l=setTimeout(w,t)),s}return t=b(t)||0,g(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(b(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),E.cancel=function(){void 0!==l&&clearTimeout(l),c=0,o=u=i=l=void 0},E.flush=function(){return void 0===l?s:k(v())},E}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}}).call(t,n("DuR2"))},R8PD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),o=n.n(r),i=n("JsH4"),a=n("saAw"),s=n("IFrJ"),l=n("1B1h"),u=n("C6vg"),c=n("Atm/"),f=n("DakW"),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){function e(e,t){for(var n=0;n0?e.advancedFiltersRules:null);var i={page:e.page,per_page:e.perPage,search:e.search||"",category:e.selectedCategory||"",group_id:parseInt(e.selectedGroup)||"",collection_id:parseInt(e.selectedCollection)||"",advanced_filters:n};return t&&(delete i.page,delete i.per_page),i}},{key:"loadCollections",value:function(){var e=this;axios.get("/web/collections/1").then(function(t){var n=t.data.data;e.setState({collections:n})}).catch(function(e){console.log(e)}),axios.get("/web/collections/customizable/1").then(function(t){e.setState({ownedCollections:t.data.data})}).catch(function(e){console.log(e)})}},{key:"loadCategories",value:function(){var e=this;axios.get("/web/observations/categories").then(function(t){var n=t.data.data;e.setState({categories:n.map(function(e){return{label:e,value:e}})})}).catch(function(e){console.log(e)})}},{key:"loadGroups",value:function(){var e=this;axios.get("/web/groups").then(function(t){e.setState({groups:t.data.data})}).catch(function(e){console.log(e)})}},{key:"loadFilters",value:function(){var e=this;axios.get("/web/filters").then(function(t){e.setState({filters:t.data.data})}).catch(function(e){console.log(e)})}},{key:"generatePages",value:function(e,t){for(var n=[],r=Math.ceil(e/t),o=1;o<=r;o++)n.push(o);return n}},{key:"setBrowserHistory",value:function(e){var t=[];e.page&&t.push("page="+e.page),e.selectedCollection&&t.push("collection="+e.selectedCollection),e.selectedGroup&&!e.selectedCollection&&t.push("group="+e.selectedGroup);var n=t.join("&");this.props.history.replace("/account/observations/?"+n)}},{key:"getBrowserState",value:function(){var e=s.a.parseUrl(this.props.history.location.search),t=1,n=0,r=0,o=!1,i=!1;if(void 0!==e.page){var a=parseInt(e.page);isNaN(a)||(t=a)}if(void 0!==e.collection){var l=parseInt(e.collection);isNaN(l)||(n=l,o=!0)}if(void 0!==e.group&&!n){var u=parseInt(e.group);isNaN(u)||(r=u,i=!0)}return{page:t,collection:n,group:r,disableGroups:o,disableCollections:i}}},{key:"nextPage",value:function(){if(this.state.hasMorePages){var e=this.state.page+1;this.goToPage(e)}}},{key:"prevPage",value:function(){if(1!==this.state.page){var e=this.state.page-1;this.goToPage(e)}}},{key:"goToPage",value:function(e){var t=this.state;t.page=e,this.loadObservations(t),this.setBrowserHistory(t),window.scrollTo&&window.scrollTo(0,0)}},{key:"_renderPageLinks",value:function(){var e=this;return o.a.createElement("nav",{className:"pagination is-centered"},o.a.createElement("a",{href:"javascript:;",className:"pagination-previous",onClick:this.prevPage.bind(this),disabled:1===this.state.page},"Previous"),this.state.pages.length>0?o.a.createElement("ul",{className:"pagination-list"},o.a.createElement("li",null,"Page ",o.a.createElement("span",{className:"select is-small"},o.a.createElement("select",{value:this.state.page,onChange:function(t){var n=t.target;return e.goToPage(n.value)}},this.state.pages.map(function(e){return o.a.createElement("option",{value:e,key:"page_"+e},e)})))," out of ",this.state.pages.length," pages")):null,o.a.createElement("a",{href:"javascript:;",className:"pagination-next",onClick:this.nextPage.bind(this),disabled:!this.state.hasMorePages},"Next"))}},{key:"_renderObservation",value:function(e){var t=this;return o.a.createElement("div",{className:"column is-4-widescreen is-6-desktop is-6-tablet",key:e.observation_id},o.a.createElement(i.a,{owner:!0,observation:e,loading:this.state.loading,collections:this.state.ownedCollections,onCollectionCreated:function(n){var r=!e.collections.every(function(e){return e.id!==n.id});!t.state.ownedCollections.every(function(e){return e.value!==n.id})||t.setState({ownedCollections:t.state.ownedCollections.concat({label:n.label,value:n.id})}),r||(e.collections.push(n),t.forceUpdate())},onRemovedFromCollection:function(n){e.collections=e.collections.filter(function(e){return e.id!==n.id}),t.forceUpdate()}}))}},{key:"getEmptyMessage",value:function(){return o.a.createElement("div",{className:"box"},o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You have not submitted any observations matching the specified filters yet."),o.a.createElement("p",null,"To submit new observations, please download the TreeSnap mobile app from ",o.a.createElement("a",{href:"https://play.google.com/store/apps/details?id=com.treesource"},"Google Play for Android")," or ",o.a.createElement("a",{href:"https://itunes.apple.com/us/app/treesnap/id1226499160?mt=8"},"Apple App Store for iOS"))))}},{key:"searchFilter",value:function(e){var t=this.state;t.search=e,t.page=1,this.setState({search:e}),this.loadObservations(t)}},{key:"collectionFilter",value:function(e){var t=this.state;t.selectedCollection=parseInt(e),t.page=1;var n=0!==t.selectedCollection;this.setState({selectedCollection:e,disableGroups:n}),this.loadObservations(t)}},{key:"categoriesFilter",value:function(e){var t=this.state;t.selectedCategory=e,t.page=1,this.setState({selectedCategory:e}),this.loadObservations(t)}},{key:"groupsFilter",value:function(e){var t=this.state;t.selectedGroup=parseInt(e),t.page=1;var n=0!==t.selectedGroup;this.setState({selectedGroup:e,disableCollections:n}),this.loadObservations(t)}},{key:"advancedFilter",value:function(e){var t=this.state;t.selectedFilter=parseInt(e),t.page=1,this.setState({selectedFilter:e}),this.loadObservations(t)}},{key:"applyAdvancedFilters",value:function(e){this.setState({showAdvancedFiltersModal:!1});var t=e.data;if(t.filter){var n=this.state.filters;return n.push(t.filter),this.setState({filters:n}),void this.advancedFilter(t.filter.id)}var r=this.state;r.advancedFiltersRules=e.params,r.page=1,this.setState({page:1,advancedFiltersRules:r.advancedFiltersRules}),this.loadObservations(r)}},{key:"changePerPage",value:function(e){var t=this.state;t.perPage=e,t.page=1,this.setState({perPage:e,page:1}),this.loadObservations(t)}},{key:"_renderFilters",value:function(){var e=this,t=this.getParams(this.state,!0),n="";return Object.keys(t).map(function(e){t[e]&&("object"===d(t[e])&&(t[e]=JSON.stringify(t[e])),n+="&"+e+"="+t[e])}),o.a.createElement("div",{className:"columns is-multiline"},o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Search"),o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"search",className:"input",placeholder:"Search",onChange:function(t){var n=t.target;return e.searchFilter(n.value)},value:this.state.search})))),o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Species"),o.a.createElement("div",{className:"control"},o.a.createElement("span",{className:"select is-full-width"},o.a.createElement("select",{value:this.state.selectedCategory,onChange:function(t){var n=t.target;return e.categoriesFilter(n.value)}},o.a.createElement("option",{value:""},"All Species"),this.state.categories.map(function(e){return o.a.createElement("option",{key:e.value,value:e.value},e.label)})))))),o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Collections"),o.a.createElement("div",{className:"control is-positioned-relatively"},o.a.createElement("span",{className:"select is-full-width"},o.a.createElement("select",{value:this.state.selectedCollection,onChange:function(t){var n=t.target;return e.collectionFilter(n.value)},disabled:this.state.disableCollections},o.a.createElement("option",{value:0},"None"),this.state.collections.map(function(e){return o.a.createElement("option",{key:e.value,value:e.value},e.label)}))),this.state.disableCollections?o.a.createElement("p",{className:"help is-warning is-pulled-up"},"Collections filter can only be applied when the groups filter is not applied."):null),0!==this.state.collections.length||this.state.loading?null:o.a.createElement("p",{className:"help is-warning"},"You currently have no collections. Use ",o.a.createElement("i",{className:"fa fa-star"})," to create one."))),o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Group"),o.a.createElement("div",{className:"control is-positioned-relatively"},o.a.createElement("span",{className:"select is-full-width"},o.a.createElement("select",{value:this.state.selectedGroup,onChange:function(t){var n=t.target;return e.groupsFilter(n.value)},disabled:this.state.disableGroups},o.a.createElement("option",{value:0},"My observations only"),this.state.groups.map(function(e){return o.a.createElement("option",{key:e.id,value:e.id},e.name)}))),this.state.disableGroups?o.a.createElement("p",{className:"help is-warning is-pulled-up"},"Group filter can only be applied when the collections filter is not applied."):null))),o.a.createElement("div",{className:"column is-4"},o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Saved Advanced Filters"),o.a.createElement("div",{className:"control"},o.a.createElement("span",{className:"select is-full-width"},o.a.createElement("select",{value:this.state.selectedFilter,onChange:function(t){var n=t.target;return e.advancedFilter(n.value)}},o.a.createElement("option",{value:0},"None"),this.state.filters.map(function(e){return o.a.createElement("option",{key:e.id,value:e.id},e.name)})))))),o.a.createElement("div",{className:"column is-2"},o.a.createElement("div",{className:"mt-3"},o.a.createElement("button",{type:"button",className:"button is-primary is-block",onClick:function(){e.setState({showAdvancedFiltersModal:!0}),e._advancedFilterState&&setTimeout(function(){e.advancedFilterModal.reapplyState(e._advancedFilterState)},200)}},"Advanced Filters"))),this.state.total>0?o.a.createElement("div",{className:"column is-2 has-text-right"},o.a.createElement("div",{className:"mt-3"},o.a.createElement(c.a,{right:!0,isBlock:!0,trigger:o.a.createElement("button",{className:"button is-block","aria-haspopup":"true","aria-controls":"dropdown-menu"},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-download"})),o.a.createElement("span",null,"Download"),o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-angle-down","aria-hidden":"true"})))},o.a.createElement("a",{href:"/services/download/observations/tsv?"+n,className:"dropdown-item"},"TSV Format"),o.a.createElement("a",{href:"/services/download/observations/csv?"+n,className:"dropdown-item"},"CSV Format")))):null)}},{key:"saveFilterState",value:function(e){this._advancedFilterState=e}},{key:"render",value:function(){var e=this,t=this.state.total;return o.a.createElement(l.a,null,o.a.createElement("div",{className:"columns"},o.a.createElement("div",{className:"column"},o.a.createElement("h3",{className:"title is-3"},"Observations")),o.a.createElement("div",{className:"column has-text-right-desktop"},o.a.createElement("p",null,"Show ",o.a.createElement("span",{className:"select is-small"},o.a.createElement("select",{value:this.state.perPage,onChange:function(t){var n=t.target;return e.changePerPage(n.value)}},o.a.createElement("option",{value:"6"},"6"),o.a.createElement("option",{value:"12"},"12"),o.a.createElement("option",{value:"24"},"24"),o.a.createElement("option",{value:"48"},"48"),o.a.createElement("option",{value:"96"},"96")))," per page. Total of ",t," observations found"))),this._renderFilters(),0===this.state.observations.length?this.getEmptyMessage():null,o.a.createElement("div",{className:"columns is-multiline"},this.state.observations.map(this._renderObservation.bind(this))),this._renderPageLinks(),o.a.createElement(u.a,{ref:function(t){return e.advancedFilterModal=t},visible:this.state.showAdvancedFiltersModal,onCloseRequest:function(){return e.setState({showAdvancedFiltersModal:!1})},onCreate:this.applyAdvancedFilters.bind(this),onStateChange:this.saveFilterState.bind(this),withObservations:!1,resetForm:!1,showCount:!1}),o.a.createElement(a.a,{visible:this.state.pageLoading}))}}]),t}();t.default=p},RHtK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!i.default.isMoment(e)||!i.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),a=t.month(),s=n===o;return s&&r===a?e.date()=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),y}}}function _(e,t,n,r){var o=t&&t.prototype instanceof k?t:k,i=Object.create(o.prototype),a=new N(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=w(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function k(){}function E(){}function S(){}function D(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,a){var s=w(e[n],e,r);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){l.value=e,i(l)},a)}a(s.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function M(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,M(e,t),"throw"===t.method))return y;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,a=void 0===n?"styles":n,c=t.themePropName,d=void 0===c?"theme":c,p=t.cssPropName,g=void 0===p?"css":p,b=t.flushBefore,_=void 0!==b&&b,w=t.pureComponent,k=void 0,E=void 0,S=void 0,D=void 0,O=function(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}(void 0!==w&&w);function M(t,n){var r=function(e){return e===u.DIRECTIONS.LTR?S:D}(t),o=t===u.DIRECTIONS.LTR?k:E,i=f.default.get();if(o&&r===i)return o;var a=t===u.DIRECTIONS.RTL;return a?(E=e?f.default.createRTL(e):y,D=i,o=E):(k=e?f.default.createLTR(e):y,S=i,o=k),o}function C(e,t){return{resolveMethod:function(e){return e===u.DIRECTIONS.LTR?f.default.resolveLTR:f.default.resolveRTL}(e),styleDef:M(e,t)}}return function(){return function(e){var t=e.displayName||e.name||"Component",n=function(n){function s(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e,n)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():m;return r.state=C(o,t),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,n),o(s,[{key:"componentDidMount",value:function(){return function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe(function(n){e.setState(C(n,t))}))}}()},{key:"componentWillUnmount",value:function(){return function(){this.channelUnsubscribe&&this.channelUnsubscribe()}}()},{key:"render",value:function(){return function(){var t;_&&f.default.flush();var n=this.state,o=n.resolveMethod,s=n.styleDef;return i.default.createElement(e,r({},this.props,(h(t={},d,f.default.get()),h(t,a,s()),h(t,g,o),t)))}}()}]),s}(O);n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=v,e.propTypes&&(n.propTypes=(0,l.default)({},e.propTypes),delete n.propTypes[a],delete n.propTypes[d],delete n.propTypes[g]);e.defaultProps&&(n.defaultProps=(0,l.default)({},e.defaultProps));return(0,s.default)(n,e)}}()};var i=d(n("GiK3")),a=d(n("KSGD")),s=d(n("wfLM")),l=d(n("i3rX")),u=n("Z+/y"),c=d(n("rgbP")),f=d(n("F+Ye"));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=f.default.resolveLTR,t.withStylesPropTypes={styles:a.default.object.isRequired,theme:a.default.object.isRequired,css:a.default.func.isRequired};var p={},y=function(){return p};var v=h({},u.CHANNEL,c.default),m=u.DIRECTIONS.LTR},Vop6:function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},X0xs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDayPicker=t.defaultProps=void 0;var r=Object.assign||function(e){for(var t=1;tt.clientHeight?t:o(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),a=o(e);return t.set(a,a.style.overflowY),a===n?t:i(a,t)}},XqC7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return e?n(e(t.clone())):t};var r=function(e){return e}},Xxa5:function(e,t,n){e.exports=n("jyFz")},YL1d:function(e,t,n){"use strict";function r(e,t,n){var r="number"==typeof t,o="number"==typeof n,i="number"==typeof e;return r&&o?t+n:r&&i?t+e:r?t:o&&i?n+e:o?n:i?2*e:0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.font.input,o=n.lineHeight,i=n.lineHeight_small,a=e.spacing,s=a.inputPadding,l=a.displayTextPaddingVertical,u=a.displayTextPaddingTop,c=a.displayTextPaddingBottom,f=a.displayTextPaddingVertical_small,d=a.displayTextPaddingTop_small,h=a.displayTextPaddingBottom_small,p=t?i:o,y=t?r(f,d,h):r(l,u,c);return parseInt(p,10)+2*s+y}},YZwx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("B2tZ");Object.defineProperty(t,"CalendarDay",{enumerable:!0,get:function(){return function(){return E(r).default}}()});var o=n("Pkwz");Object.defineProperty(t,"CalendarMonth",{enumerable:!0,get:function(){return function(){return E(o).default}}()});var i=n("cw5X");Object.defineProperty(t,"CalendarMonthGrid",{enumerable:!0,get:function(){return function(){return E(i).default}}()});var a=n("32hK");Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return function(){return E(a).default}}()});var s=n("K45F");Object.defineProperty(t,"DateRangePickerInput",{enumerable:!0,get:function(){return function(){return E(s).default}}()});var l=n("VB2b");Object.defineProperty(t,"DateRangePickerInputController",{enumerable:!0,get:function(){return function(){return E(l).default}}()});var u=n("uy+U");Object.defineProperty(t,"DateRangePickerShape",{enumerable:!0,get:function(){return function(){return E(u).default}}()});var c=n("X0xs");Object.defineProperty(t,"DayPicker",{enumerable:!0,get:function(){return function(){return E(c).default}}()});var f=n("2ZMP");Object.defineProperty(t,"DayPickerRangeController",{enumerable:!0,get:function(){return function(){return E(f).default}}()});var d=n("tHAx");Object.defineProperty(t,"DayPickerSingleDateController",{enumerable:!0,get:function(){return function(){return E(d).default}}()});var h=n("YgGm");Object.defineProperty(t,"SingleDatePicker",{enumerable:!0,get:function(){return function(){return E(h).default}}()});var p=n("4NsZ");Object.defineProperty(t,"SingleDatePickerInput",{enumerable:!0,get:function(){return function(){return E(p).default}}()});var y=n("0Tdo");Object.defineProperty(t,"SingleDatePickerShape",{enumerable:!0,get:function(){return function(){return E(y).default}}()});var v=n("HOE/");Object.defineProperty(t,"isInclusivelyAfterDay",{enumerable:!0,get:function(){return function(){return E(v).default}}()});var m=n("JMu1");Object.defineProperty(t,"isInclusivelyBeforeDay",{enumerable:!0,get:function(){return function(){return E(m).default}}()});var g=n("I/WY");Object.defineProperty(t,"isNextDay",{enumerable:!0,get:function(){return function(){return E(g).default}}()});var b=n("+LBX");Object.defineProperty(t,"isSameDay",{enumerable:!0,get:function(){return function(){return E(b).default}}()});var _=n("TRqI");Object.defineProperty(t,"toISODateString",{enumerable:!0,get:function(){return function(){return E(_).default}}()});var w=n("9LH0");Object.defineProperty(t,"toLocalizedDateString",{enumerable:!0,get:function(){return function(){return E(w).default}}()});var k=n("8Pcz");function E(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"toMomentObject",{enumerable:!0,get:function(){return function(){return E(k).default}}()})},YgGm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureSingleDatePicker=void 0;var r=Object.assign||function(e){for(var t=1;t0?String(e)+"__":"")+String(t)}},aaLQ:function(e,t,n){"use strict";var r=n("/ymf"),o=n("x5U2"),i=n("+1gT"),a=n("EBef"),s=i();r(s,{getPolyfill:i,implementation:o,shim:a}),e.exports=s},adrs:function(e,t,n){"use strict";var r=n("QqhH"),o=n("/ymf");e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},bidq:function(e,t,n){"use strict";var r=Array.prototype.slice,o=n("t+1C"),i=Object.keys,a=i?function(e){return i(e)}:n("7ciz"),s=Object.keys;a.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)}):Object.keys=a;return Object.keys||a},e.exports=a},blYT:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n("DuR2"))},bvnS:function(e,t,n){"use strict";var r=n("teQR"),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n("XfW5"),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),s=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&s)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=s[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t);console.log(a(e,r),r)}},"c+e1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){var i="undefined"!=typeof window?window.innerWidth:0,a=e===r.ANCHOR_LEFT?i-n:n,s=o||0;return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},e,Math.min(t+a-s,0))};var r=n("6TBu")},c8iI:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();c=c?l({},C,c):C;var _=(0,E.default)((o(e={},M.default.editor,!0),o(e,M.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=p);var w=void 0;return h||(w=f.default.createElement(b.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:y})),f.default.createElement("div",{className:(0,E.default)(M.default.root,r)},w,f.default.createElement("div",{className:_},f.default.createElement(d.Editor,l({},m,{blockStyleFn:(0,k.default)(i,v),customStyleMap:c,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:u,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(d.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),o=d.Modifier.removeRange(r,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());o=d.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),this._onChange(d.EditorState.push(t,o,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if((0,m.default)(o)&&0===o.getLength()){var i=o.getDepth(),a=0===i?(0,y.default)(e,r,O.BLOCK_TYPE.UNSTYLED):(0,p.default)(e,r,i-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!(0,m.default)(o)&&o.getType()!==O.BLOCK_TYPE.UNSTYLED&&o.getLength()===t.getStartOffset()){var i=(0,v.default)(e,r,O.BLOCK_TYPE.UNSTYLED);return this._onChange(i),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=d.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=d.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=T;var N=new d.CompositeDecorator([w.default]);Object.assign(T,{EditorValue:_.default,decorator:N,createEmptyValue:a,createValueFromString:s}),t.EditorValue=_.default,t.decorator=N,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(6),a=n(40),s=n(7),l=n(32),u=n(41),c=n(43),f=n(44),d=n(50),h=n(9),p=n(14),y=n(16),v=n(29),m=n(100),g=n(131),b=n(33),_=n(133),w={Editor:f,EditorBlock:d,EditorState:v,CompositeDecorator:a,Entity:p,EntityInstance:y,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:l,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:c,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:_,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=w},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(7),a=n(9),s=n(29),l=n(5),u=n(21),c=l.List,f=l.Repeat,d={insertAtomicBlock:function(e,t,n){var l=e.getCurrentContent(),d=e.getSelection(),h=a.removeRange(l,d,"backward"),p=h.getSelectionAfter(),y=a.splitBlock(h,p),v=y.getSelectionAfter(),m=a.setBlockType(y,v,"atomic"),g=o.create({entity:t}),b=[new i({key:u(),type:"atomic",text:n,characterList:c(f(g,n.length))}),new i({key:u(),type:"unstyled",text:"",characterList:c()})],_=r.createFromArray(b),w=a.replaceWithFragment(m,v,_),k=w.merge({selectionBefore:d,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return s.push(e,k,"insert-fragment")}};e.exports=d},function(e,t,n){"use strict";var r=n(5).OrderedMap,o={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=o},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:T(e)}function n(e){return a(e)?e:N(e)}function r(e){return s(e)?e:P(e)}function o(e){return i(e)&&!l(e)?e:I(e)}function i(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ht])}function s(e){return!(!e||!e[Ut])}function l(e){return a(e)||s(e)}function u(e){return!(!e||!e[Wt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?p(e)+t:t}function v(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function E(){return{value:void 0,done:!0}}function S(e){return!!M(e)}function D(e){return e&&"function"==typeof e.next}function O(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function C(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?z():i(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function N(e){return null===e||void 0===e?z().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():F(e)}function P(e){return null===e||void 0===e?z():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():B(e)}function I(e){return(null===e||void 0===e?z():i(e)?a(e)?e.entrySeq():e:B(e)).toSetSeq()}function x(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function A(e){return!(!e||!e[sn])}function z(){return rn||(rn=new x([]))}function F(e){var t=Array.isArray(e)?new x(e).fromEntrySeq():D(e)?new R(e).fromEntrySeq():S(e)?new j(e).fromEntrySeq():"object"==typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return C(e)?new x(e):D(e)?new R(e):S(e)?new j(e):void 0}function H(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new w(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,P(n).map(function(r,o){return e(t,r,o,n)})):q(n)?t.call(o,r,N(n).map(function(r,o){return e(t,r,o,n)})):n}(t,e,"",{"":e}):Y(e)}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():q(e)?N(e).map(Y).toMap():e}function q(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function V(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&G(o[1],e)&&(n||G(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!G(t,e.get(r,Vt)):!G(e.get(r,Vt),t))return f=!1,!1});return f&&e.size===d}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function Z(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var o=0|e;for(o!==e&&(o^=4294967295*e);e>4294967295;)o^=e/=4294967295;return ne(o)}if("string"===r)return e.length>yn?(void 0===(n=gn[t=e])&&(n=oe(t),mn===vn&&(mn=0,gn={}),mn++,gn[t]=n),n):oe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(dn&&void 0!==(t=ln.get(e)))return t;if(void 0!==(t=e[pn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[pn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),dn)ln.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[pn]=t}}return t}(e);if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function oe(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,l=a===s?[we(e,t,n+Yt,r,o)]:(i=new de(t,r,o),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Me(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function Ce(e){var t=xe();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),o=n.size;return 0===o?t:(ie(o),o>0&&or?0:r-n,u=o-n;return u>qt&&(u=qt),function(){if(l===u)return Tn;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,i,a){var s,l=e&&e.array,u=a>r?0:r-a>>i,c=1+(o-a>>i);return c>qt&&(c=qt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(u===c)return Tn;var r=t?--c:u++;s=n(l&&l[r],i-Yt,a+(r<>>n&Gt,l=e&&s0){var u=e&&e.array[s],c=Le(u,t,n-Yt,r,o,i);return c===u?e:((a=je(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(f(i),a=je(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function je(e,t){return t&&e&&t===e.ownerID?e:new Ne(e?e.array.slice():[],t)}function Re(e,t){if(t>=Fe(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Yt;return n}}function Ae(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new Ne(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=Yt);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Fe(i),h=Fe(s);h>=1<f?new Ne([],r):p;if(p&&h>f&&aYt;m-=Yt){var g=f>>>m≫v=v.array[g]=je(v.array[g],r)}v.array[f>>>Yt&Gt]=p}if(s=h)a-=h,s-=h,l=Yt,u=null,y=y&&y.removeBefore(r,0,a);else if(a>o||h>>l≫if(b!==h>>>l&Gt)break;b&&(c+=(1<o&&(u=u.removeBefore(r,l,a-c)),u&&ha&&(a=u.size),i(l)||(u=u.map(function(e){return W(e)})),o.push(u)}return a>e.size&&(e=e.setSize(a)),De(e,t,o)}function Fe(e){return e>>Yt<=qt&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):He(r,o)}function Ye(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qe(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===Xt){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Jt?$t:Jt,n)},t}function Ze(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,Vt);return i===Vt?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Xt,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),o)})},r}function $e(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Je(e,t,n,r){var o=ct(e);return r&&(o.has=function(r){var o=e.get(r,Vt);return o!==Vt&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,Vt);return i!==Vt&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Xt,i),s=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return k(o,r?u:s++,c,i)}})},o}function Xe(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),m(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!=i||a!=a)return Xe(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=ct(e);return u.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(u.get=function(t,n){return(t=y(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===Jt?e:k(t,l-1,t===$t?void 0:e.value[1],e)})},u}function et(e,t,n,r){var o=ct(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)}),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Xt,i),l=!0,u=0;return new w(function(){var e,i,c;do{if((e=s.next()).done)return r||o===Jt?e:k(o,u++,o===$t?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],l&&(l=t.call(n,c,i,a))}while(l);return o===Xt?e:k(o,i,c,e)})},o}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(l,u){var c=this;l.__iterate(function(o,l){return(!t||u0}function it(e,n,r){var o=ct(e);return o.size=new x(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Jt,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function at(e,t){return A(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function lt(e){return ie(e.size),p(e)}function ut(e){return a(e)?n:s(e)?r:o}function ct(e){return Object.create((a(e)?N:s(e)?P:I).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function dt(e,t){return e>t?1:et?-1:0}function zt(e){if(e.size===1/0)return 0;var t=u(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+Ft(re(e),re(t))|0}:function(e,t){r=r+Ft(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=un(t,3432918353),t=un(t<<15|t>>>-15,461845907),t=un(t<<13|t>>>-13,5),t=un((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=un(t^t>>>13,3266489909))^t>>>16)}(o,r)}function Ft(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Bt=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=l,t.isOrdered=u,t.Keyed=n,t.Indexed=r,t.Set=o;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ht="@@__IMMUTABLE_KEYED__@@",Ut="@@__IMMUTABLE_INDEXED__@@",Wt="@@__IMMUTABLE_ORDERED__@@",Yt=5,qt=1<r?{value:void 0,done:!0}:k(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:k(e,a,n[a])})},L.prototype[Wt]=!0,e(j,P),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(D(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!D(r))return new w(E);var o=0;return new w(function(){var t=r.next();return t.done?t:k(e,o++,t.value)})},e(R,P),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return k(e,o,r[o++])})},e(Q,P),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return G(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,b(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return G(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},$.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},$.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:k(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:V(this,e)},e(J,t),e(X,J),e(ee,J),e(te,J),J.Keyed=X,J.Indexed=ee,J.Set=te;var ln,un="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),dn="function"==typeof WeakMap;dn&&(ln=new WeakMap);var hn=0,pn="__immutablehash__";"function"==typeof Symbol&&(pn=Symbol(pn));var yn=16,vn=255,mn=0,gn={};e(ae,X),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Vt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Vt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Vt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===Vt,a=n.next();if(a.done){var s=i?r:t,l=o(s);return l===s?t:l}Z(i||t&&t.set,"invalid keyPath");var u=a.value,c=i?Vt:t.get(u,Vt),f=e(c,n,r,o);return f===c?t:f===Vt?t.remove(u):(i?me():t).set(u,f)}(this,ht(e),t,n);return r===Vt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return ke(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Bt.call(arguments,1);return ke(this,e,t)},ae.prototype.mergeIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return ke(this,Ee,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Bt.call(arguments,1);return ke(this,Se(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Be(nt(this,e))},ae.prototype.sortBy=function(e,t){return Be(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var bn="@@__IMMUTABLE_MAP__@@",_n=ae.prototype;_n[bn]=!0,_n.delete=_n.remove,_n.removeIn=_n.deleteIn,le.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=kn)return function(e,t,n,r){e||(e=new d);for(var o=new de(e,re(n),[n,r]),i=0;i>>e)&Gt),i=this.bitmap;return 0==(i&o)?r:this.nodes[Oe(i&o-1)].get(e+Yt,t,n,r)},ue.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,l=1<=En)return function(e,t,n,r,o){for(var i=0,a=new Array(qt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ce(e,i+1,a)}(e,d,u,s,p);if(c&&!p&&2===d.length&&_e(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&_e(p))return p;var y=e&&e===this.ownerID,v=c?p?u:u^l:u|l,m=c?p?Me(d,f,p,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&Gt,i=this.nodes[o];return i?i.get(e+Yt,t,n,r):r},ce.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,l=o===Vt,u=this.nodes,c=u[s];if(l&&!c)return this;var f=be(c,e,t+Yt,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Ae(e,t).set(0,n):Ae(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(Zt);return t>=Fe(e._capacity)?r=Le(r,e.__ownerID,0,t,n,i):o=Le(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ie(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},Ce.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ce.prototype.insert=function(e,t){return this.splice(e,0,t)},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Yt,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xe()},Ce.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ae(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ne([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-Yt,n))===a&&i)return this}if(i&&!o)return this;var s=je(this,e);if(!i)for(var l=0;l>>t≫if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-Yt,n))===i&&o===this.array.length-1)return this}var a=je(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Mn,Cn,Tn={};e(Be,ae),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Be.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ue()},Be.prototype.set=function(e,t){return We(this,e,t)},Be.prototype.remove=function(e){return We(this,e,Vt)},Be.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Be.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Be.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Be.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?He(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Be.isOrderedMap=Ke,Be.prototype[Wt]=!0,Be.prototype.delete=Be.prototype.remove,e(Ye,N),Ye.prototype.get=function(e,t){return this._iter.get(e,t)},Ye.prototype.has=function(e){return this._iter.has(e)},Ye.prototype.valueSeq=function(){return this._iter.valueSeq()},Ye.prototype.reverse=function(){var e=this,t=$e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ye.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ye.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?lt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Ye.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Jt,t),r=t?lt(this):0;return new w(function(){var o=n.next();return o.done?o:k(e,t?--r:r++,o.value,o)})},Ye.prototype[Wt]=!0,e(qe,P),qe.prototype.includes=function(e){return this._iter.includes(e)},qe.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(Ge,I),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(Ve,N),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var o=i(r);return k(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},qe.prototype.cacheResult=Ye.prototype.cacheResult=Ge.prototype.cacheResult=Ve.prototype.cacheResult=ft,e(pt,X),pt.prototype.toString=function(){return this.__toString(vt(this)+" {","}")},pt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},pt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},pt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=yt(this,me()))},pt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+vt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:yt(this,n)},pt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:yt(this,t)},pt.prototype.wasAltered=function(){return this._map.wasAltered()},pt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},pt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?yt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Nn=pt.prototype;Nn.delete=Nn.remove,Nn.deleteIn=Nn.removeIn=_n.removeIn,Nn.merge=_n.merge,Nn.mergeWith=_n.mergeWith,Nn.mergeIn=_n.mergeIn,Nn.mergeDeep=_n.mergeDeep,Nn.mergeDeepWith=_n.mergeDeepWith,Nn.mergeDeepIn=_n.mergeDeepIn,Nn.setIn=_n.setIn,Nn.update=_n.update,Nn.updateIn=_n.updateIn,Nn.withMutations=_n.withMutations,Nn.asMutable=_n.asMutable,Nn.asImmutable=_n.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return bt(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return bt(this,this._map.remove(e))},mt.prototype.clear=function(){return bt(this,this._map.clear())},mt.prototype.union=function(){var e=Bt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ct(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;ie(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ct(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):Tt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=b(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ct(o,i)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Mt;var Rn,An="@@__IMMUTABLE_STACK__@@",zn=Ot.prototype;zn[An]=!0,zn.withMutations=_n.withMutations,zn.asMutable=_n.asMutable,zn.asImmutable=_n.asImmutable,zn.wasAltered=_n.wasAltered,t.Iterator=w,Nt(t,{toArray:function(){ie(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new qe(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Ye(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){ie(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Be(this.toKeyedSeq())},toOrderedSet:function(){return kt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Ce(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Bt.call(arguments,0);return at(this,function(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?F(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var l=o[0];if(l===e||r&&a(l)||s(e)&&s(l))return l}var u=new x(o);return r?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(Xt)},every:function(e,t){ie(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return at(this,Je(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ie(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ie(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator($t)},map:function(e,t){return at(this,Ze(this,e,t))},reduce:function(e,t,n){var r,o;return ie(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,$e(this,!0))},slice:function(e,t){return at(this,Xe(this,e,t,!0))},some:function(e,t){return!this.every(xt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Jt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return p(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return V(this,e)},entrySeq:function(){var e=this;if(e._cache)return new x(e._cache);var t=e.toSeq().map(It).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(xt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(v)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ut(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=ht(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,Vt):Vt)===Vt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),o=(u(e)?Be():ae()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=ut(e);return o.map(function(t){return at(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,Vt)!==Vt},hasIn:function(e){return this.getIn(e,Vt)!==Vt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Pt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?Lt(e):At)},minBy:function(e,t){return rt(this,t?Lt(t):At,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(xt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Xt,o),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(n,u,l,i)?r===Xt?e:k(r,l,u,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(xt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=zt(this))}});var Fn=t.prototype;Fn[Kt]=!0,Fn[nn]=Fn.values,Fn.__toJS=Fn.toArray,Fn.__toStringMapper=jt,Fn.inspect=Fn.toSource=function(){return this.toString()},Fn.chain=Fn.flatMap,Fn.contains=Fn.includes,function(){try{Object.defineProperty(Fn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Nt(n,{flip:function(){return at(this,Qe(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Bn=n.prototype;return Bn[Ht]=!0,Bn[nn]=Fn.entries,Bn.__toJS=Fn.toObject,Bn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+jt(e)},Nt(r,{toKeyedSeq:function(){return new Ye(this,!1)},filter:function(e,t){return at(this,Je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,$e(this,!1))},slice:function(e,t){return at(this,Xe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var d=f[0];if("IMMUTABLE"===c)return t.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});var h=o.getRemovalRange(s,l,e.getText().slice(d.start,d.end),d.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,l=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,c,t),h=d.start,p=d.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}(u.getCharacterList(),a,l):u.getCharacterList().slice(0,a).concat(c.getCharacterList().slice(l));var f=u.merge({text:u.getText().slice(0,a)+c.getText().slice(l),characterList:n}),d=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===i?f:null});return o=o.merge(d).filter(function(e){return!!e}),e.merge({blockMap:o,selectionBefore:t,selectionAfter:t.merge({anchorKey:i,anchorOffset:a,focusKey:i,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),o=n(21),i=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||i(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),l=s.get(n),u=l.getText(),c=l.getCharacterList(),f=l.merge({text:u.slice(0,r),characterList:c.slice(0,r)}),d=o(),h=f.merge({key:d,text:u.slice(r),characterList:c.slice(r),data:a()}),p=s.toSeq().takeUntil(function(e){return e===l}),y=s.toSeq().skipUntil(function(e){return e===l}).rest(),v=p.concat([[f.getKey(),f],[h.getKey(),h]],y).toOrderedMap();return e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:0,focusKey:d,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return v.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function o(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function i(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return d()}var a=n(15)||function(e){for(var t=1;t0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):i(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r0?o.getInlineStyleAt(r-1):i(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,i=u.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),l=t.getUndoStack(),c=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(l=l.push(s),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var d={currentContent:c,directionMap:i,undoStack:l,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,d)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=u.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=u.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=v},function(e,t,n){"use strict";function r(e,t){return e===t}var o=n(5),i=n(31),a=n(8),s=o.List,l=o.Repeat,u=o.Record,c=i.thatReturnsTrue,f=u({start:null,end:null}),d=u({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new d({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var o=[],i=t?t.getDecorations(e):s(l(null,n)),u=e.getCharacterList();return a(i,r,c,function(e,t){var n,l,h,p;o.push(new d({start:e,end:t,decoratorKey:i.get(e),leaves:(n=u.slice(e,t).toList(),l=e,h=[],p=n.map(function(e){return e.getStyle()}).toList(),a(p,r,c,function(e,t){h.push(new f({start:e+l,end:t+l}))}),s(h))}))}),s(o)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(7),a=n(5),s=n(33),l=n(21),u=n(34),c=a.List,f=a.Record,d=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),o=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:o,selectionAfter:o})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=u(e),new i({key:l(),text:e,type:"unstyled",characterList:c(d(o.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset();return t<=this.getEndOffset()&&i<=n}if(e!==r&&e!==o)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,o=n(5),i=n(36),a=n(39),s=o.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),l=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),u=s(n.keySeq().zip(l));return null!=t&&o.is(t,u)?t:u}};e.exports=l},function(e,t,n){"use strict";var r=n(37),o=n(38),i=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?o.isStrong(t)||i(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function o(e){var t=r(e);return null==t?s.NEUTRAL:d.exec(t)?s.RTL:s.LTR}function i(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=o(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||l(!1),i(e,t)}var s=n(38),l=n(17),u="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",c="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+u+c+"]"),d=new RegExp("["+u+c+"]"),h={firstStrongChar:r,firstStrongCharDir:o,resolveBlockDir:i,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===l}function o(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function i(e){u=e}var a=n(17),s="LTR",l="RTL",u=null,c={NEUTRAL:"NEUTRAL",LTR:s,RTL:l,isStrong:r,getHTMLDir:o,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:o(e)},setGlobalDir:i,initGlobalDir:function(){i(s)},getGlobalDir:function(){return u||this.initGlobalDir(),u||a(!1),u}};e.exports=c},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,o=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var o=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==i;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var d=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return void this.update(o.push(t,d,"insert-characters"))}f&&this.update(o.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===o.get(e).getMutability()?e:null}var o=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?r(e.getBlockForKey(n).getEntityAt(o-1)):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some(function(e){return o===e.get("start")?(i=!0,!0):o_,N));var z=M||i,F={className:A,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":P,key:S};void 0!==T&&(F=o({},F,{contentEditable:T,suppressContentEditableWarning:!0}));var B=s.createElement(j,F,s.createElement(z,I));b.push({block:B,wrapperTemplate:L,key:S,offsetKey:P}),_=L?E.getDepth():null,w=L}for(var K=[],H=0;H0&&window.scrollTo(i.x,i.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(o.offsetHeight+i.y))>0&&u.setTop(o,u.getTop(o)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),l=t.getText(),u=this.props.tree.size-1,c=r(this.props.selection,n);return this.props.tree.map(function(r,h){var p=r.get("leaves"),y=p.size-1,v=p.map(function(r,o){var f=a.encode(n,h,o),d=r.get("start"),p=r.get("end");return s.createElement(i,{key:f,offsetKey:f,blockKey:n,start:d,selection:c?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:l.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===u&&o===y})}).toArray(),g=r.get("decoratorKey");if(null==g)return v;if(!e.props.decorator)return v;var b=m(e.props.decorator),_=b.getComponentForKey(g);if(!_)return v;var w=b.getPropsForKey(g),k=a.encode(n,h,0),E=l.slice(p.first().get("start"),p.last().get("end")),S=d.getHTMLDirIfDifferent(f.getDirection(E),e.props.direction);return s.createElement(_,o({},w,{decoratedText:E,dir:S,key:k,entityKey:t.getEntityAt(r.get("start")),offsetKey:k}),v)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),o=n(52),i=n(1),a=n(53),s=(n(33),n(61)),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,o=r+t.text.length;if(e.hasEdgeWithin(n,r,o)){var i,l=a.findDOMNode(this),u=l.firstChild;i=u.nodeType===Node.TEXT_NODE?u:"BR"===u.tagName?l:u.firstChild,s(e,i,n,r,o)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,l=t.styleSet,u=l.reduce(function(e,t){var o={},i=n[t];return void 0!==i&&e.textDecoration!==i.textDecoration&&(o.textDecoration=[e.textDecoration,i.textDecoration].join(" ").trim()),r(e,i,o)},{});if(a){var c=a(l);u=r(u,c)}return i.createElement("span",{"data-offset-key":s,ref:"leaf",style:u},i.createElement(o,null,e))},t}(i.Component);e.exports=l},function(e,t,n){"use strict";var r=n(1),o=n(53),i=n(54).isBrowser("IE <= 11"),a=i?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=i?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=o.findDOMNode(this);return""===e.children?!function(e){return i?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=l},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,a.contains(o,t))}function o(e){return"Windows"===i.platformName?e.replace(/^\s*NT/,""):e}var i=n(55),a=n(58),s=n(59),l=n(60),u={isBrowser:function(e){return r(i.browserName,i.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(i.browserArchitecture,null,e)},isDevice:function(e){return r(i.deviceName,null,e)},isEngine:function(e){return r(i.engineName,i.engineVersion,e)},isPlatform:function(e){return r(i.platformName,i.platformFullVersion,e,o)},isPlatformArchitecture:function(e){return r(i.platformArchitecture,null,e)}};e.exports=s(u,l)},function(e,t,n){"use strict";var r,o="Unknown",i={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),l={browserArchitecture:a.cpu.architecture||o,browserFullVersion:a.browser.version||o,browserMinorVersion:s.minor||o,browserName:a.browser.name||o,browserVersion:a.browser.major||o,deviceName:a.device.model||o,engineName:a.engine.name||o,engineVersion:a.engine.version||o,platformArchitecture:a.cpu.architecture||o,platformName:(r=a.os.name,i[r]||r||o),platformVersion:a.os.version||o,platformFullVersion:a.os.version||o};e.exports=l},function(e,t,n){var r;!function(o,i){"use strict";var a="model",s="name",l="type",u="vendor",c="version",f="mobile",d="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},p={rgx:function(){for(var e,t,n,r,o,i,a,s=0,l=arguments;s0?2==o.length?"function"==typeof o[1]?e[o[0]]=o[1].call(this,a):e[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?e[o[0]]=a?a.replace(o[1],o[2]):void 0:e[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(e[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):e[o]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return _.contains(e,t)}):function(e,t){var n=e.split(m);if(n.length>0&&n.length<=2||p(!1),1===n.length)return o(n[0],t);var r=n[0],i=n[1];return u(r)&&u(i)||p(!1),o(">="+r,t)&&o("<="+i,t)}(e=n[0].trim(),t)}function o(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(y),o=s(e),u=o.modifier,c=o.rangeComponents;switch(u){case"<":return i(r,c);case"<=":return-1===(n=h(r,c))||0===n;case">=":return a(r,c);case">":return function(e,t){return 1===h(e,t)}(r,c);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,s=parseInt(r[o],10);return l(s)&&(r[o]=s+1+""),a(e,n)&&i(e,r)}(r,c);default:return function(e,t){return 0===h(e,t)}(r,c)}}function i(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(y),n=t[0].match(g);return n||p(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function l(e){return!isNaN(e)&&isFinite(e)}function u(e){return!s(e).modifier}function c(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,b=/^(\d*)(.*)/,_={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=_},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var o={};for(var i in e)n.call(e,i)&&(o[i]=t.call(r,e[i],i,e));return o}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&i(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function o(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var i=n(62),a=n(65);e.exports=function(e,n,a,s,l){if(i(document.documentElement,n)){var u=t.getSelection(),c=e.getAnchorKey(),f=e.getAnchorOffset(),d=e.getFocusKey(),h=e.getFocusOffset(),p=e.getIsBackward();if(!u.extend&&p){var y=c,v=f;c=d,f=h,d=y,h=v,p=!1}var m=c===a&&s<=f&&l>=f,g=d===a&&s<=h&&l>=h;if(m&&g)return u.removeAllRanges(),o(u,n,f-s),void r(u,n,h-s);if(p){if(g&&(u.removeAllRanges(),o(u,n,h-s)),m){var b=u.focusNode,_=u.focusOffset;u.removeAllRanges(),o(u,n,f-s),r(u,b,_)}}else m&&(u.removeAllRanges(),o(u,n,f-s)),g&&r(u,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],o=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(o,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=o},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var o=n(70),i=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(i(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(i(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[o(t)]:e.style&&e.style[o(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),o=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=o(e),i=e===t?document.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function o(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}o.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=o},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,p)))return;return void l(p,function(e){e&&t.update(r(d,c(h),e))})}var y=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,y)))return this._internalDrag?void this.update(function(e,t){var n=i.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(d,h)):void this.update(r(d,h,n.getText()))}}};e.exports=d},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var o=n(81),i=n(82),a=n(31),s=new RegExp("\r\n","g"),l={"text/rtf":1,"text/html":1},u=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?i(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return l[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=u},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o=0;h--)if(!(null!=d&&h>0&&i.isSurrogatePair(d,h-1))){if(e.setStart(c,h),!r(a(e),n))break;l=c,u=h}if(-1===h||0===c.childNodes.length)break;f=o(c=c.childNodes[h])}return e.setStart(l,u),e}},function(e,t,n){"use strict";function r(e){return l<=e&&e<=f}function o(e){return d.test(e)}function i(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!o(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var c=null;if(null!=s)c=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);c=u(a(f))}return{key:c,offset:0}}var d=r.childNodes[n-1],h=null,p=null;if(a(d)){var y=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(d);h=u(a(y)),p=o(y)}else h=u(s),p=o(d);return{key:h,offset:p}}function o(e){var t=e.textContent;return"\n"===t?0:t.length}var i=n(83),a=n(84),s=n(86),l=n(17),u=n(39);e.exports=function(e,t,n,o,a,l){var c=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:s(e,u(i(n)),o,u(i(a)),l),needsRecovery:!1};var d=null,h=null,p=!0;return c?(d={key:u(i(n)),offset:o},h=r(t,a,l)):f?(h={key:u(i(a)),offset:l},d=r(t,n,o)):(d=r(t,n,o),h=r(t,a,l),n===a&&o===l&&(p=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,d.key,d.offset,h.key,h.offset),needsRecovery:p}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var l=r.getKeyBefore(o);null==l?a=o:(a=l,s=r.getBlockForKey(l).getText().length)}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var o=e.getSelection(),i=e.getCurrentContent(),a=o;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i}else if(e.isSelectionAtStartOfContent())return i;if((a=t(e))===o)return i}return r.removeRange(i,a,n)}},function(e,t,n){"use strict";var r=n(110),o=n(29),i=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var o="\\s|(?![_])"+n(111).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:['‘’]|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:['‘’]|(?!"+o+").)*(?:"+o+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),o=n(29),i=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),o=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),o=n(104),i=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),o=n(104),i=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),o=n(29),i=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,l=t.getAnchorKey(),u=e.getCurrentContent(),c=u.getBlockForKey(l).getLength();if(c<=1)return e;n===c?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(u,a),d=r.removeRange(u,a,"backward"),h=d.getSelectionAfter(),p=h.getAnchorOffset()-1,y=h.merge({anchorOffset:p,focusOffset:p}),v=r.replaceWithFragment(d,y,f),m=o.push(e,v,"insert-fragment");return o.acceptSelection(m,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(o)},0)):void n(o);var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return u.push(e,n,"insert-fragment")}var o=n(4),i=n(6),a=n(80),s=n(9),l=n(122),u=n(29),c=n(47),f=n(85),d=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var p=n.getFiles(),y=n.getText();if(p.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(p)))return;return void f(p,function(e){if(e=e||y){var n=t.props.editorState,r=d(e),a=i.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),f=l.processText(r,a),h=o.createFromArray(f),p=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(u.push(n,p,"insert-fragment"))}})}}var v=[],m=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(m,g))){if(m&&(v=d(m)),!this.props.stripPastedStyles){var b=this.getClipboard();if(n.isRichText()&&b){if(-1!==g.indexOf(this.getEditorKey())||1===v.length&&1===b.size&&b.first().getText()===m)return void this.update(r(this.props.editorState,b))}else if(b&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(v,b))return void this.update(r(this.props.editorState,b));if(g){var _=l.processHTML(g,this.props.blockRenderMap);if(_){var w=o.createFromArray(_);return void this.update(r(this.props.editorState,w))}}this.setClipboard(null)}if(v){var k=this.props.editorState,E=i.create({style:k.getCurrentInlineStyle(),entity:c(k.getCurrentContent(),k.getSelection())}),S=l.processText(v,E),D=o.createFromArray(S);this.update(r(this.props.editorState,D))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),o=n(5),i=n(123),a=n(21),s=n(125),l=n(34),u=o.List,c=o.Repeat,f={processHTML:function(e,t){return i(e,s,t)},processText:function(e,t){return e.map(function(e){return e=l(e),new r({key:a(),type:"unstyled",text:e,characterList:u(c(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[E()],entities:new Array(1),blocks:[]}}function o(e,t){return{text:"\r",inlines:[E()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(D,t))}]}}function i(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):I.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(m,e,t),"ul"!==m&&"ol"!==m||(n&&(d+=1),n=m),i||-1===f.indexOf(m)?n&&"li"===i&&"li"===m&&(k=o(a(m,n,h),d),i=m,g=!0,b="ul"===n?"unordered-list-item":"ordered-list-item"):(k=o(a(m,n,h),d),i=m,g=!0);var D=e.firstChild;null!=D&&(m=D.nodeName.toLowerCase());for(var O=null;D;){D instanceof HTMLAnchorElement&&D.href&&l(D)?function(){var e=D,t={};L.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new v(e.href).toString(),O=p.create("LINK","MUTABLE",t)}():O=void 0,k=s(k,u(D,t,n,i,f,d,h,O||y));var C=D.nextSibling;C&&f.indexOf(m)>=0&&i&&(k=s(k,r())),C&&(m=C.nodeName.toLowerCase()),D=C}return g&&(k=s(k,o(b,d))),k}var c,f=n(6),d=n(7),h=n(41),p=n(14),y=n(5),v=n(124),m=n(21),g=n(125),b=n(17),_=n(39),w=n(34),k=y.List,E=y.OrderedSet,S=" ",D=4,O=new RegExp("\r","g"),M=new RegExp("\n","g"),C=new RegExp(" ","g"),T=new RegExp(" ?","g"),N=new RegExp("​?","g"),P=["bold","bolder","500","600","700","800","900"],I=["light","lighter","100","200","300","400"],x={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},L=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(O,"").replace(C,S).replace(T,"").replace(N,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),o=t(e);if(!o)return null;c=null;var i=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=u(o,E(),"ul",null,i,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=w(e);var o=n+e.length,i=_(t).inlines.slice(n,o),a=_(t).entities.slice(n,o),s=k(i.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=o+1,new d({key:m(),type:_(t).blocks[r].type,depth:_(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),o=n(53),i=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=i(e,o.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var o=t.getSelection();return 0===o.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),o=n(42),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=i},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var o=n(100),i=n(46),a=n(54),s=a.isPlatform("Mac OS X"),l=a.isPlatform("Windows"),u=s&&a.isBrowser("Firefox < 29"),c=o.hasCommandModifier,f=o.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return!l&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?l?"redo":"secondary-paste":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case i.RETURN:return"split-block";case i.DELETE:return function(e){return l&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case i.BACKSPACE:return function(e){return c(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case i.LEFT:return u&&c(e)?"move-selection-to-start-of-block":null;case i.RIGHT:return u&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),o=n(9),i=n(29),a=(n(33),n(132)),s=n(39),l={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return l.toggleInlineStyle(e,"BOLD");case"italic":return l.toggleInlineStyle(e,"ITALIC");case"underline":return l.toggleInlineStyle(e,"UNDERLINE");case"code":return l.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return l.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return l.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=o.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=i.push(e,t,"insert-characters");return i.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),u=o.setBlockType(n,s,n.getBlockForKey(r).getType()),c=o.removeRange(u,s,"backward");if(c!==n)return i.push(e,c,"remove-range")}var f=l.tryToRemoveBlockStyle(e);return f?i.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),l=i.getBlockBefore(r);if("code-block"===s&&l&&"code-block"===l.getType())return null;if("unstyled"!==s)return o.setBlockType(i,t,"unstyled")}return null}};e.exports=l},function(e,t){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,a.get(i)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),o=n(134),i=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var i=o.stringify(e.getEntityAt(r));n.hasOwnProperty(i)||(n[i]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:i(e,n),data:e.getData().toObject()})});var l={};return Object.keys(n).forEach(function(e,t){var n=r.get(o.unstringify(e));l[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:l,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),o=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(i,a){var s=e.getText(),l=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(l)])})}),n}},function(e,t,n){"use strict";var r=n(104),o=n(8),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],l=t.map(function(e){return e.has(n)}).toList();return o(l,i,a,function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,o.is)(n,r)&&(a.push([e.slice(s,l),r]),s=l)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,o=null,i=[],a=0,s=0,l=e.length;s0&&n!==o&&(i.push([o,r(e.slice(a,s),t.slice(a,s))]),a=s)}return i.push([n,r(e.slice(a),t.slice(a))]),i};var o=n(150),i=t.EMPTY_SET=new o.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:T(e)}function n(e){return a(e)?e:N(e)}function r(e){return s(e)?e:P(e)}function o(e){return i(e)&&!l(e)?e:I(e)}function i(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ht])}function s(e){return!(!e||!e[Ut])}function l(e){return a(e)||s(e)}function u(e){return!(!e||!e[Wt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?p(e)+t:t}function v(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function E(){return{value:void 0,done:!0}}function S(e){return!!M(e)}function D(e){return e&&"function"==typeof e.next}function O(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function C(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?z():i(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function N(e){return null===e||void 0===e?z().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():F(e)}function P(e){return null===e||void 0===e?z():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():B(e)}function I(e){return(null===e||void 0===e?z():i(e)?a(e)?e.entrySeq():e:B(e)).toSetSeq()}function x(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function A(e){return!(!e||!e[sn])}function z(){return rn||(rn=new x([]))}function F(e){var t=Array.isArray(e)?new x(e).fromEntrySeq():D(e)?new R(e).fromEntrySeq():S(e)?new j(e).fromEntrySeq():"object"==typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return C(e)?new x(e):D(e)?new R(e):S(e)?new j(e):void 0}function H(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new w(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,P(n).map(function(r,o){return e(t,r,o,n)})):q(n)?t.call(o,r,N(n).map(function(r,o){return e(t,r,o,n)})):n}(t,e,"",{"":e}):Y(e)}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():q(e)?N(e).map(Y).toMap():e}function q(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function V(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&G(o[1],e)&&(n||G(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!G(t,e.get(r,Vt)):!G(e.get(r,Vt),t))return f=!1,!1});return f&&e.size===d}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function Z(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var o=0|e;for(o!==e&&(o^=4294967295*e);e>4294967295;)o^=e/=4294967295;return ne(o)}if("string"===r)return e.length>yn?(void 0===(n=gn[t=e])&&(n=oe(t),mn===vn&&(mn=0,gn={}),mn++,gn[t]=n),n):oe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(dn&&void 0!==(t=ln.get(e)))return t;if(void 0!==(t=e[pn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[pn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),dn)ln.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[pn]=t}}return t}(e);if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function oe(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,l=a===s?[we(e,t,n+Yt,r,o)]:(i=new de(t,r,o),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Me(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function Ce(e){var t=xe();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),o=n.size;return 0===o?t:(ie(o),o>0&&or?0:r-n,u=o-n;return u>qt&&(u=qt),function(){if(l===u)return Tn;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,i,a){var s,l=e&&e.array,u=a>r?0:r-a>>i,c=1+(o-a>>i);return c>qt&&(c=qt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(u===c)return Tn;var r=t?--c:u++;s=n(l&&l[r],i-Yt,a+(r<>>n&Gt,l=e&&s0){var u=e&&e.array[s],c=Le(u,t,n-Yt,r,o,i);return c===u?e:((a=je(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(f(i),a=je(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function je(e,t){return t&&e&&t===e.ownerID?e:new Ne(e?e.array.slice():[],t)}function Re(e,t){if(t>=Fe(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Yt;return n}}function Ae(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new Ne(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=Yt);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Fe(i),h=Fe(s);h>=1<f?new Ne([],r):p;if(p&&h>f&&aYt;m-=Yt){var g=f>>>m≫v=v.array[g]=je(v.array[g],r)}v.array[f>>>Yt&Gt]=p}if(s=h)a-=h,s-=h,l=Yt,u=null,y=y&&y.removeBefore(r,0,a);else if(a>o||h>>l≫if(b!==h>>>l&Gt)break;b&&(c+=(1<o&&(u=u.removeBefore(r,l,a-c)),u&&ha&&(a=u.size),i(l)||(u=u.map(function(e){return W(e)})),o.push(u)}return a>e.size&&(e=e.setSize(a)),De(e,t,o)}function Fe(e){return e>>Yt<=qt&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):He(r,o)}function Ye(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qe(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===Xt){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Jt?$t:Jt,n)},t}function Ze(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,Vt);return i===Vt?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Xt,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),o)})},r}function $e(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Je(e,t,n,r){var o=ct(e);return r&&(o.has=function(r){var o=e.get(r,Vt);return o!==Vt&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,Vt);return i!==Vt&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Xt,i),s=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return k(o,r?u:s++,c,i)}})},o}function Xe(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),m(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!=i||a!=a)return Xe(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=ct(e);return u.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(u.get=function(t,n){return(t=y(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===Jt?e:k(t,l-1,t===$t?void 0:e.value[1],e)})},u}function et(e,t,n,r){var o=ct(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)}),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Xt,i),l=!0,u=0;return new w(function(){var e,i,c;do{if((e=s.next()).done)return r||o===Jt?e:k(o,u++,o===$t?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],l&&(l=t.call(n,c,i,a))}while(l);return o===Xt?e:k(o,i,c,e)})},o}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(l,u){var c=this;l.__iterate(function(o,l){return(!t||u0}function it(e,n,r){var o=ct(e);return o.size=new x(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Jt,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function at(e,t){return A(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function lt(e){return ie(e.size),p(e)}function ut(e){return a(e)?n:s(e)?r:o}function ct(e){return Object.create((a(e)?N:s(e)?P:I).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function dt(e,t){return e>t?1:et?-1:0}function zt(e){if(e.size===1/0)return 0;var t=u(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+Ft(re(e),re(t))|0}:function(e,t){r=r+Ft(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=un(t,3432918353),t=un(t<<15|t>>>-15,461845907),t=un(t<<13|t>>>-13,5),t=un((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=un(t^t>>>13,3266489909))^t>>>16)}(o,r)}function Ft(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Bt=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=l,t.isOrdered=u,t.Keyed=n,t.Indexed=r,t.Set=o;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ht="@@__IMMUTABLE_KEYED__@@",Ut="@@__IMMUTABLE_INDEXED__@@",Wt="@@__IMMUTABLE_ORDERED__@@",Yt=5,qt=1<r?{value:void 0,done:!0}:k(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:k(e,a,n[a])})},L.prototype[Wt]=!0,e(j,P),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(D(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!D(r))return new w(E);var o=0;return new w(function(){var t=r.next();return t.done?t:k(e,o++,t.value)})},e(R,P),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return k(e,o,r[o++])})},e(Q,P),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return G(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,b(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return G(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:k(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:V(this,e)},e(J,t),e(X,J),e(ee,J),e(te,J),J.Keyed=X,J.Indexed=ee,J.Set=te;var ln,un="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),dn="function"==typeof WeakMap;dn&&(ln=new WeakMap);var hn=0,pn="__immutablehash__";"function"==typeof Symbol&&(pn=Symbol(pn));var yn=16,vn=255,mn=0,gn={};e(ae,X),ae.of=function(){var e=Bt.call(arguments,0);return me().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Vt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Vt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Vt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===Vt,a=n.next();if(a.done){var s=i?r:t,l=o(s);return l===s?t:l}Z(i||t&&t.set,"invalid keyPath");var u=a.value,c=i?Vt:t.get(u,Vt),f=e(c,n,r,o);return f===c?t:f===Vt?t.remove(u):(i?me():t).set(u,f)}(this,ht(e),t,n);return r===Vt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return ke(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Bt.call(arguments,1);return ke(this,e,t)},ae.prototype.mergeIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return ke(this,Ee,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Bt.call(arguments,1);return ke(this,Se(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Be(nt(this,e))},ae.prototype.sortBy=function(e,t){return Be(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var bn="@@__IMMUTABLE_MAP__@@",_n=ae.prototype;_n[bn]=!0,_n.delete=_n.remove,_n.removeIn=_n.deleteIn,le.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=kn)return function(e,t,n,r){e||(e=new d);for(var o=new de(e,re(n),[n,r]),i=0;i>>e)&Gt),i=this.bitmap;return 0==(i&o)?r:this.nodes[Oe(i&o-1)].get(e+Yt,t,n,r)},ue.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,l=1<=En)return function(e,t,n,r,o){for(var i=0,a=new Array(qt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ce(e,i+1,a)}(e,d,u,s,p);if(c&&!p&&2===d.length&&_e(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&_e(p))return p;var y=e&&e===this.ownerID,v=c?p?u:u^l:u|l,m=c?p?Me(d,f,p,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&Gt,i=this.nodes[o];return i?i.get(e+Yt,t,n,r):r},ce.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,l=o===Vt,u=this.nodes,c=u[s];if(l&&!c)return this;var f=be(c,e,t+Yt,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Ae(e,t).set(0,n):Ae(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(Zt);return t>=Fe(e._capacity)?r=Le(r,e.__ownerID,0,t,n,i):o=Le(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ie(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},Ce.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ce.prototype.insert=function(e,t){return this.splice(e,0,t)},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Yt,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xe()},Ce.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ae(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ne([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-Yt,n))===a&&i)return this}if(i&&!o)return this;var s=je(this,e);if(!i)for(var l=0;l>>t≫if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-Yt,n))===i&&o===this.array.length-1)return this}var a=je(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Mn,Cn,Tn={};e(Be,ae),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Be.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ue()},Be.prototype.set=function(e,t){return We(this,e,t)},Be.prototype.remove=function(e){return We(this,e,Vt)},Be.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Be.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Be.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Be.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?He(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Be.isOrderedMap=Ke,Be.prototype[Wt]=!0,Be.prototype.delete=Be.prototype.remove,e(Ye,N),Ye.prototype.get=function(e,t){return this._iter.get(e,t)},Ye.prototype.has=function(e){return this._iter.has(e)},Ye.prototype.valueSeq=function(){return this._iter.valueSeq()},Ye.prototype.reverse=function(){var e=this,t=$e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ye.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ye.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?lt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Ye.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Jt,t),r=t?lt(this):0;return new w(function(){var o=n.next();return o.done?o:k(e,t?--r:r++,o.value,o)})},Ye.prototype[Wt]=!0,e(qe,P),qe.prototype.includes=function(e){return this._iter.includes(e)},qe.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(Ge,I),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(Ve,N),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var o=i(r);return k(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},qe.prototype.cacheResult=Ye.prototype.cacheResult=Ge.prototype.cacheResult=Ve.prototype.cacheResult=ft,e(pt,X),pt.prototype.toString=function(){return this.__toString(vt(this)+" {","}")},pt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},pt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},pt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=yt(this,me()))},pt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+vt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:yt(this,r)},pt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:yt(this,t)},pt.prototype.wasAltered=function(){return this._map.wasAltered()},pt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},pt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?yt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Nn=pt.prototype;Nn.delete=Nn.remove,Nn.deleteIn=Nn.removeIn=_n.removeIn,Nn.merge=_n.merge,Nn.mergeWith=_n.mergeWith,Nn.mergeIn=_n.mergeIn,Nn.mergeDeep=_n.mergeDeep,Nn.mergeDeepWith=_n.mergeDeepWith,Nn.mergeDeepIn=_n.mergeDeepIn,Nn.setIn=_n.setIn,Nn.update=_n.update,Nn.updateIn=_n.updateIn,Nn.withMutations=_n.withMutations,Nn.asMutable=_n.asMutable,Nn.asImmutable=_n.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return bt(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return bt(this,this._map.remove(e))},mt.prototype.clear=function(){return bt(this,this._map.clear())},mt.prototype.union=function(){var e=Bt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ct(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;ie(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ct(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):Tt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=b(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ct(o,i)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Mt;var Rn,An="@@__IMMUTABLE_STACK__@@",zn=Ot.prototype;zn[An]=!0,zn.withMutations=_n.withMutations,zn.asMutable=_n.asMutable,zn.asImmutable=_n.asImmutable,zn.wasAltered=_n.wasAltered,t.Iterator=w,Nt(t,{toArray:function(){ie(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new qe(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Ye(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){ie(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Be(this.toKeyedSeq())},toOrderedSet:function(){return kt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Ce(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Bt.call(arguments,0);return at(this,function(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?F(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var l=o[0];if(l===e||r&&a(l)||s(e)&&s(l))return l}var u=new x(o);return r?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(Xt)},every:function(e,t){ie(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return at(this,Je(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ie(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ie(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator($t)},map:function(e,t){return at(this,Ze(this,e,t))},reduce:function(e,t,n){var r,o;return ie(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,$e(this,!0))},slice:function(e,t){return at(this,Xe(this,e,t,!0))},some:function(e,t){return!this.every(xt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Jt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return p(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return V(this,e)},entrySeq:function(){var e=this;if(e._cache)return new x(e._cache);var t=e.toSeq().map(It).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(xt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(v)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ut(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=ht(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,Vt):Vt)===Vt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),o=(u(e)?Be():ae()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=ut(e);return o.map(function(t){return at(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,Vt)!==Vt},hasIn:function(e){return this.getIn(e,Vt)!==Vt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(Pt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?Lt(e):At)},minBy:function(e,t){return rt(this,t?Lt(t):At,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(xt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Xt,o),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(n,u,l,i)?r===Xt?e:k(r,l,u,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(xt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=zt(this))}});var Fn=t.prototype;Fn[Kt]=!0,Fn[nn]=Fn.values,Fn.__toJS=Fn.toArray,Fn.__toStringMapper=jt,Fn.inspect=Fn.toSource=function(){return this.toString()},Fn.chain=Fn.flatMap,Fn.contains=Fn.includes,Nt(n,{flip:function(){return at(this,Qe(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Bn=n.prototype;return Bn[Ht]=!0,Bn[nn]=Fn.entries,Bn.__toJS=Fn.toObject,Bn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+jt(e)},Nt(r,{toKeyedSeq:function(){return new Ye(this,!1)},filter:function(e,t){return at(this,Je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,$e(this,!1))},slice:function(e,t){return at(this,Xe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(151),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(l.default,o({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,u.default)(n,(o(e={},d.default.root,!0),o(e,d.default.isActive,h),e)),l.default.createElement(f.default,null,l.default.createElement(c.default,i({},p,{title:a,className:n}),l.default.createElement("span",{className:d.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,l.default)(t,c.default.root);var u=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=i?"submit":"button";return s.default.createElement("button",o({type:f},a,{onMouseDown:u,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var s=a,l=t[s];"function"==typeof l&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var l=y++;n=p||(p=s(t)),r=u.bind(null,n,l,!1),o=u.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function u(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}var c={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},d=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),p=null,y=0,v=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=d()),void 0===t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(l.default,o({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(u.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,c.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return l.default.createElement("span",{className:r,title:s},l.default.createElement("select",i({},o,{value:n,onChange:this._onChange}),this._renderChoices()),l.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=o(e,2),n=t[0],r=t[1],i=r.label,a=r.className;return l.default.createElement("option",{key:n,value:n,className:a},i)})}}]),t}();t.default=d},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),o=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var o=r,i=e.getLength();o=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return i(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,u.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,i){return new e(a.EditorState.push(this._editorState,o(t,n,i),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,i,s){var l=o(t,n,s);return new e(a.EditorState.createWithContent(l,i),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){switch(e){case m.BLOCK_TYPE.HEADER_ONE:return["h1"];case m.BLOCK_TYPE.HEADER_TWO:return["h2"];case m.BLOCK_TYPE.HEADER_THREE:return["h3"];case m.BLOCK_TYPE.HEADER_FOUR:return["h4"];case m.BLOCK_TYPE.HEADER_FIVE:return["h5"];case m.BLOCK_TYPE.HEADER_SIX:return["h6"];case m.BLOCK_TYPE.UNORDERED_LIST_ITEM:case m.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case m.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case m.BLOCK_TYPE.CODE:return["pre","code"];case m.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,l=e[s];null!=l&&t.push(" "+s+'="'+(l+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,l,u,c=Object.assign||function(e){for(var t=1;t",S=/^data-([a-z0-9-]+)$/,D=(o(s={},g,{element:"strong"}),o(s,b,{element:"code"}),o(s,_,{element:"em"}),o(s,w,{element:"del"}),o(s,k,{element:"ins"}),s),O=[g,_,k,w,b],M=(o(l={},m.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),o(l,m.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),l),C=(o(u={},m.ENTITY_TYPE.LINK,function(e,t){var n=M.hasOwnProperty(e)?M[e]:{},r=t.getData(),o={},i=!0,a=!1,s=void 0;try{for(var l,u=Object.keys(r)[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value,f=r[c];if(n.hasOwnProperty(c))o[n[c]]=f;else S.test(c)&&(o[c]=f)}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return o}),o(u,m.ENTITY_TYPE.IMAGE,function(e,t){var n=M.hasOwnProperty(e)?M[e]:{},r=t.getData(),o={},i=!0,a=!1,s=void 0;try{for(var l,u=Object.keys(r)[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value,f=r[c];if(n.hasOwnProperty(c))o[n[c]]=f;else S.test(c)&&(o[c]=f)}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return o}),u),T=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[D,O]),o=f(r,2),i=o[0],a=o[1];this.inlineStyles=i,this.styleOrder=a}return d(e,[{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")}}catch(e){f=!0,d=e}finally{try{!u&&v.return&&v.return()}finally{if(f)throw d}}}},{key:"writeEndTag",value:function(e){var t=i(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,o=!1,a=void 0;try{for(var s,l=t[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var u=s.value;n.unshift("")}}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return E;r=this.preserveWhitespace(r);var o=e.getCharacterList();return(0,m.getEntityRanges)(r,o).map(function(e){var r=f(e,2),o=r[0],i=r[1].map(function(e){var r=f(e,2),o=r[0],i=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(E+"\n")}(o),l=!0,u=!1,d=void 0;try{for(var h,v=t.styleOrder[Symbol.iterator]();!(l=(h=v.next()).done);l=!0){var g=h.value;if((g!==b||n!==m.BLOCK_TYPE.CODE)&&i.has(g)){var _=t.inlineStyles[g],w=_.element,k=_.attributes,S=_.style;if(null==w&&(w="span"),k=(0,p.default)(k),null!=S){var D=(0,y.default)(S);k=null==k?{style:D}:c({},k,{style:D})}s="<"+w+a(k)+">"+s+""}}}catch(e){u=!0,d=e}finally{try{!l&&v.return&&v.return()}finally{if(u)throw d}}return s}).join(""),s=o?v.Entity.get(o):null,l=null==s?null:s.getType().toUpperCase();return null!=l&&l===m.ENTITY_TYPE.LINK?""+i+"":null!=l&&l===m.ENTITY_TYPE.IMAGE?"":i}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,l.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,o=n.characterMeta,i=!1;if(r===p&&(i=!0,r=""),"pre"===e.tagName){var u=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,o);r=u.text,o=u.characterMeta}else{var c=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var o=e.length;o--;)" "===e.charAt(o)&&" "===e.charAt(o-1)&&(e=e.slice(0,o)+e.slice(o+1),t=t.slice(0,o).concat(t.slice(o+1)));var i=(0,a.default)({text:e,characterMeta:t},p+" ",p);e=i.text,t=i.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+p,p);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,o);r=c.text,o=c.characterMeta}((r=r.split(p).join("\n")).length||i)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:o.toList(),depth:e.depth}))}),t.length?t:[d]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?u.BLOCK_TYPE.ORDERED_LIST_ITEM:u.BLOCK_TYPE.UNORDERED_LIST_ITEM;case"blockquote":return u.BLOCK_TYPE.BLOCKQUOTE;case"h1":return u.BLOCK_TYPE.HEADER_ONE;case"h2":return u.BLOCK_TYPE.HEADER_TWO;case"h3":return u.BLOCK_TYPE.HEADER_THREE;case"h4":return u.BLOCK_TYPE.HEADER_FOUR;case"h5":return u.BLOCK_TYPE.HEADER_FIVE;case"h6":return u.BLOCK_TYPE.HEADER_SIX;case"pre":return u.BLOCK_TYPE.CODE;case"figure":return u.BLOCK_TYPE.ATOMIC;default:return u.BLOCK_TYPE.UNSTYLED}}},{key:"processBlockElement",value:function(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),o=!_.hasOwnProperty(t),i={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};o&&(this.blockList.push(i),r&&(this.depth+=1)),this.blockStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),o&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],o=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(u.INLINE_STYLE.BOLD);case"i":case"em":return e.add(u.INLINE_STYLE.ITALIC);case"ins":return e.add(u.INLINE_STYLE.UNDERLINE);case"code":return e.add(u.INLINE_STYLE.CODE);case"del":return e.add(u.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(o=g[t](t,e)||o),n.styleStack.push(r),n.entityStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),w.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(p)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(p),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],o=s.CharacterMetadata.create({style:n,entity:r}),i=(0,l.Repeat)(o,e.length);t.textFragments.push({text:e,characterMeta:i})}},{key:"processNode",value:function(e){if(e.nodeType===c.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();b.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===c.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var o=e.text,i=e.characterMeta,a=t.length,s=r.length,l=[],u=i.slice(0,0),c=0,f=o.indexOf(t);-1!==f;)l.push(o.slice(c,f)+r),u=u.concat(i.slice(c,f),n(i.slice(f,f+1),s)),c=f+a,f=o.indexOf(t,c);return l.push(o.slice(c)),u=u.concat(i.slice(c)),{text:l.join(""),characterMeta:u}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var u=!0===f[e];return a.nodeType=l,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=u,!u&&o&&o.forEach(a.appendChild,a),a}return o(t,d),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=this.attributes[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,l=s.name,u=s.value;t.push(l+(u?'="'+u.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}var c=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+c+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+c+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=c,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return o(t,d),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case l.BLOCK_TYPE.UNORDERED_LIST_ITEM:case l.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function o(e){return e.replace(/\)/g,"%29")}function i(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case l.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.getDepth(),o=this.currentBlock-1,i=this.blocks[o];i&&r(i.getType())&&i.getDepth()>n;)o-=1,i=this.blocks[o];return i&&i.getType()===t&&i.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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,l.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],o=n[1];if(!r)return"";var i=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return o.has(c)&&(i="**"+i+"**"),o.has(p)&&(i="++"+i+"++"),o.has(d)&&(i="_"+i+"_"),o.has(h)&&(i="~~"+i+"~~"),o.has(f)&&(i=t===l.BLOCK_TYPE.CODE?i:"`"+i+"`"),i}).join(""),y=r?u.Entity.get(r):null;if(null!=y&&y.getType()===l.ENTITY_TYPE.LINK){var v=y.getData(),m=v.url||"",g=v.title?' "'+i(v.title)+'"':"";return"["+s+"]("+o(m)+g+")"}if(null!=y&&y.getType()===l.ENTITY_TYPE.IMAGE){var b=y.getData(),_=b.src||"";return"!["+(b.alt?' "'+i(b.alt)+'"':"")+"]("+o(_)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=i.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,o=n(203),i=(r=o)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=c({},e||d),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function o(e,t){if(this.options=c({},t||d),this.links=e,this.rules=p.normal,this.renderer=this.options.renderer||new i,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=p.breaks:this.rules=p.gfm:this.options.pedantic&&(this.rules=p.pedantic)}function i(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=c({},e||d),this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=(o=o.source||o).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,o),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var l=n(197),u=Object.prototype.hasOwnProperty,c=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=c({},h),h.gfm=c({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,o,i,a,s,l,u,c,f;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(i=this.rules.lheading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:"="===i[2]?1:2,text:i[1]});else if(i=this.rules.hr.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"hr"});else if(i=this.rules.blockquote.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"blockquote_start"}),i=i[0].replace(/^ *> ?/gm,""),this.token(i,t,!0),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),a=i[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(i=i[0].match(this.rules.item)).length,c=0;c1&&s.length>1||(e=i.slice(c+1).join("\n")+e,c=f-1)),o=r||/\n\n(?!\s*$)/.test(l),c!==f-1&&(r="\n"===l.charAt(l.length-1),o||(o=r)),this.tokens.push({type:o?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(!n&&t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),this.tokens.links[i[1].toLowerCase()]={href:i[2],title:i[3]};else if(t&&(i=this.rules.paragraph.exec(e)))e=e.substring(i[0].length),this.tokens.push({type:"paragraph",text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1]});else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"text",text:i[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var p={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};p.link=s(p.link)("inside",p._inside)("href",p._href)(),p.reflink=s(p.reflink)("inside",p._inside)(),p.normal=c({},p),p.pedantic=c({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=c({},p.normal,{escape:s(p.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(p.text)("]|","~+]|")()}),p.breaks=c({},p.gfm,{br:s(p.br)("{2,}","*")(),text:s(p.gfm.text)("{2,}","*")()}),o.rules=p,o.parse=function(e,t,n){return new o(t,n).parse(e)},o.prototype.parse=function(e){for(var t,n,r=new l.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new l.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new l.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new l.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},o.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},i.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new l.ElementNode("code",n,[e]);return new l.ElementNode("pre",[],[r])},i.prototype.blockquote=function(e){return new l.ElementNode("blockquote",[],[e])},i.prototype.heading=function(e,t){return new l.ElementNode("h"+t,[],[e])},i.prototype.hr=function(){return new l.ElementNode("hr",[],l.SELF_CLOSING)},i.prototype.list=function(e,t){return new l.ElementNode(t?"ol":"ul",[],[e])},i.prototype.listitem=function(e){return new l.ElementNode("li",[],[e])},i.prototype.paragraph=function(e){return new l.ElementNode("p",[],[e])},i.prototype.strong=function(e){return new l.ElementNode("strong",[],[e])},i.prototype.em=function(e){return new l.ElementNode("em",[],[e])},i.prototype.codespan=function(e){return new l.ElementNode("code",[],[new l.TextNode(e)])},i.prototype.br=function(){return new l.ElementNode("br",[],l.SELF_CLOSING)},i.prototype.del=function(e){return new l.ElementNode("del",[],[e])},i.prototype.ins=function(e){return new l.ElementNode("ins",[],[e])},i.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new l.ElementNode("a",r,[n])},i.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new l.ElementNode("img",r,l.SELF_CLOSING)},i.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new o(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new l.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new l.TextNode("");case"hr":return this.renderer.hr();case"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 e=new l.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new l.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,n);case"list_item_start":for(var r=new l.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 o=new l.FragmentNode;"list_item_end"!==this.next().type;)o.appendChild(this.tok());return this.renderer.listitem(o);case"paragraph":return this.renderer.paragraph(this.inline.parse(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};var y={parse:function(e,t){t=c({},d,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new l.FragmentNode([new l.ElementNode("p",[],[new l.TextNode("An error occured:")]),new l.ElementNode("pre",[],[new l.TextNode(e.message)])])}return t.getAST?new l.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return i.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(i(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),a=(u=n.slice()).length,l=0;l0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},cw5X:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=o&&i2&&void 0!==arguments[2]?arguments[2]:i.default.localeData().firstDayOfWeek();if(!i.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===a.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),s=(r.day()+7-n)%7,l=(n+6-o.day())%7,u=r.clone().subtract(s,"day"),c=o.clone().add(l,"day").diff(u,"days")+1,f=u.clone(),d=[],h=0;h=s&&h1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?o.a.Children.map(this.props.children,function(t){return t.type===s.a?o.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return o.a.createElement("div",u({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},h8mb:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=l(n("4kv9")),o=l(n("UZlY")),i=n("mtpF"),a=l(n("aQzc")),s=l(n("UtRD"));function l(e){return e&&e.__esModule?e:{default:e}}t.default={create:function(e){var t={},n=Object.keys(e),r=(o.default.get(i.GLOBAL_CACHE_KEY)||{}).namespace,s=void 0===r?"":r;return n.forEach(function(e){var n=(0,a.default)(s,e);t[e]=n}),t},resolve:function(e){var t=(0,r.default)(e,1/0),n=(0,s.default)(t),o=n.classNames,i=n.hasInlineStyles,a=n.inlineStyles,l={className:o.map(function(e,t){return String(e)+" "+String(e)+"_"+String(t+1)}).join(" ")};return i&&(l.style=a),l}}},hAtu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("GiK3"),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){return function(e){return i.default.createElement("svg",e,i.default.createElement("path",{d:"M694.4 242.4l249.1 249.1c11 11 11 21 0 32L694.4 772.7c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210.1-210.1H67.1c-13 0-23-10-23-23s10-23 23-23h805.4L662.4 274.5c-21-21.1 11-53.1 32-32.1z"}))}}();a.defaultProps={viewBox:"0 0 1000 1000"},t.default=a},i3rX:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){var n;return t&&!0===t.clone&&r(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e}function a(e,t,n){var o=e.slice();return t.forEach(function(t,a){void 0===o[a]?o[a]=i(t,n):r(t)?o[a]=s(e[a],t,n):-1===e.indexOf(t)&&o.push(i(t,n))}),o}function s(e,t,n){var o=Array.isArray(t);return o===Array.isArray(e)?o?((n||{arrayMerge:a}).arrayMerge||a)(e,t,n):function(e,t,n){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=i(e[t],n)}),Object.keys(t).forEach(function(a){r(t[a])&&e[a]?o[a]=s(e[a],t[a],n):o[a]=i(t[a],n)}),o}(e,t,n):i(t,n)}s.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return s(e,n,t)})};var l=s;e.exports=l},i7Em:function(e,t,n){"use strict";var r=n("teQR"),o=r("%Object%"),i=r("%TypeError%"),a=r("%String%"),s=n("bvnS"),l=n("No8i"),u=n("9+gG"),c=n("xeqp"),f=n("H1lJ"),d=n("vRXZ"),h=n("wSG+"),p=n("XfW5"),y={ToPrimitive:h,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return l(t)?0:0!==t&&u(t)?c(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(l(t)||0===t||!u(t))return 0;var n=c(t)*Math.floor(Math.abs(t));return f(n,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:d,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:l(e)&&l(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(p(e,n)&&!t[n])return!1;var r=p(e,"[[Value]]"),o=p(e,"[[Get]]")||p(e,"[[Set]]");if(r&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Get]]")&&!p(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Value]]")&&!p(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(s(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(p(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),p(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),p(e,"value")&&(t["[[Value]]"]=e.value),p(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),p(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(p(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new i("setter must be a function");t["[[Set]]"]=r}if((p(t,"[[Get]]")||p(t,"[[Set]]"))&&(p(t,"[[Value]]")||p(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=y},iB3Z:function(e,t,n){var r=n("PJh5"),o=n("LlVb"),i=n("8qqi");e.exports={momentObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return o.isValidMoment(e)},"Moment"),momentString:i.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return o.isValidMoment(r(e))},"Moment"),momentDurationObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isDuration(e)},"Duration")}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=n("saAw"),l=n("OE/d"),u=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},o.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},o.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return o.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Additional Comments"),o.a.createElement("div",{className:"control"},o.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return o.a.createElement("div",null,o.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),o.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return l.a.authenticated()?o.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),o.a.createElement(s.a,{visible:this.state.loading})):o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You must be logged in to flag this observation."),o.a.createElement("p",null,"Please ",o.a.createElement("a",{href:"/login"},"login")," or ",o.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},c.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jIVq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCustomizableCalendarDay=t.selectedStyles=t.lastInRangeStyles=t.selectedSpanStyles=t.hoveredSpanStyles=t.blockedOutOfRangeStyles=t.blockedCalendarStyles=t.blockedMinNightsStyles=t.highlightedCalendarStyles=t.outsideStyles=t.defaultStyles=void 0;var r=Object.assign||function(e){for(var t=1;t=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},klZv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(0,o.default)(e.clone().add(1,"month"),t)};var r=i(n("PJh5")),o=i(n("lmFy"));function i(e){return e&&e.__esModule?e:{default:e}}},kxzG:function(e,t,n){var r=n("yCNF"),o=n("6MiT"),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},lWrn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(r.default)};var r=i(n("/Tzs")),o=i(n("/z+2"));function i(e){return e&&e.__esModule?e:{default:e}}},"lb+b":function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},lf1y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0&&"[object Function]"===r.call(e.callee)),n}},t0Wu:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n("fXO7"),i=n("vRXZ"),a=n("lb+b"),s=n("lq6M");e.exports=function(e){if(o(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!==n&&void 0!==n){if(!i(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var l=t.call(e,n);if(o(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a0&&this.setState({visibleDays:(0,i.default)({},E,P)})}}()},{key:"componentWillUpdate",value:function(){return function(){this.today=(0,c.default)()}}()},{key:"onDayClick",value:function(){return function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({date:e}))}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,i.default)({},r,o)})}}}()},{key:"onDayMouseLeave",value:function(){return function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,i.default)({},n,r)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,l={};Object.keys(s).sort().slice(0,n+1).forEach(function(e){l[e]=s[e]});var u=a.clone().subtract(1,"month"),c=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,i.default)({},l,this.getModifiers(c))},function(){t(u.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,l={};Object.keys(s).sort().slice(1).forEach(function(e){l[e]=s[e]});var u=a.clone().add(n,"month"),c=(0,m.default)(u,1,r),f=a.clone().add(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},l,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===S.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===S.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,o=n.date,i=n.numberOfMonths,a=e.clone().startOf("month");if(o&&(a=o.clone()),this.isBlocked(a)){for(var s=[],l=e.clone().add(i-1,"months").endOf("month"),u=a.clone();!(0,v.default)(u,l);)u=u.clone().add(1,"day"),s.push(u);var c=s.filter(function(e){return!t.isBlocked(e)&&(0,v.default)(e,a)});if(c.length>0){var f=r(c,1);a=f[0]}}return a}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,b.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,m.default)(a,o,i))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,l=this.state,u=l.currentMonth,c=l.visibleDays,f=u,d=o;if(s===S.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,g.default)(t,f,d,a))return e;var h=(0,b.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.add(n),(0,i.default)({},t,M({},r,(0,i.default)({},o,M({},h,a))))},p);else{var y=(0,_.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.add(n),p=(0,i.default)({},p,M({},y,(0,i.default)({},v,M({},h,m))))}return p}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,l=this.state,u=l.currentMonth,c=l.visibleDays,f=u,d=o;if(s===S.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,g.default)(t,f,d,a))return e;var h=(0,b.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.delete(n),(0,i.default)({},t,M({},r,(0,i.default)({},o,M({},h,a))))},p);else{var y=(0,_.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.delete(n),p=(0,i.default)({},p,M({},y,(0,i.default)({},v,M({},h,m))))}return p}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return(0,y.default)(e,t)}}()},{key:"isSelected",value:function(){return function(e){var t=this.props.date;return(0,y.default)(e,t)}}()},{key:"isToday",value:function(){return function(e){return(0,y.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||c.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||c.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,s=e.navNext,l=e.onOutsideClick,u=e.withPortal,c=e.focused,f=e.enableOutsideDays,d=e.hideKeyboardShortcutsPanel,h=e.daySize,p=e.firstDayOfWeek,y=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,g=e.renderMonthElement,b=e.calendarInfoPosition,_=e.isFocused,w=e.isRTL,k=e.phrases,E=e.dayAriaLabelFormat,S=e.onBlur,O=e.showKeyboardShortcuts,M=e.weekDayFormat,C=e.verticalHeight,T=e.noBorder,N=e.transitionDuration,P=e.verticalBorderSpacing,I=e.horizontalMonthPadding,x=this.state,L=x.currentMonth,j=x.visibleDays;return a.default.createElement(D.default,{orientation:n,enableOutsideDays:f,modifiers:j,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:u,hidden:!c,hideKeyboardShortcutsPanel:d,initialVisibleMonth:function(){return L},firstDayOfWeek:p,onOutsideClick:l,navPrev:i,navNext:s,renderMonthText:o,renderCalendarDay:y,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:g,calendarInfoPosition:b,isFocused:_,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:S,phrases:k,daySize:h,isRTL:w,showKeyboardShortcuts:O,weekDayFormat:M,dayAriaLabelFormat:E,verticalHeight:C,noBorder:T,transitionDuration:N,verticalBorderSpacing:P,horizontalMonthPadding:I})}}()}]),t}();t.default=N,N.propTypes=C,N.defaultProps=T},teQR:function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,s="undefined"==typeof Uint8Array?void 0:i(Uint8Array),l={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in l))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===l[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return l[n]}},uLhX:function(e,t,n){var r=n("NkRn"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},umyC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("GiK3"),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){return function(e){return i.default.createElement("svg",e,i.default.createElement("path",{d:"M336.2 274.5l-210.1 210h805.4c13 0 23 10 23 23s-10 23-23 23H126.1l210.1 210.1c11 11 11 21 0 32-5 5-10 7-16 7s-11-2-16-7l-249.1-249c-11-11-11-21 0-32l249.1-249.1c21-21.1 53 10.9 32 32z"}))}}();a.defaultProps={viewBox:"0 0 1000 1000"},t.default=a},"uy+U":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n("KSGD")),o=v(n("iB3Z")),i=n("0IMB"),a=n("Nip3"),s=v(n("XZy4")),l=v(n("ykZC")),u=v(n("3s8g")),c=v(n("vWaV")),f=v(n("UnHD")),d=v(n("Kg4d")),h=v(n("0z1n")),p=v(n("CHcs")),y=v(n("Tb8W"));function v(e){return e&&e.__esModule?e:{default:e}}t.default={startDate:o.default.momentObj,endDate:o.default.momentObj,onDatesChange:r.default.func.isRequired,focusedInput:l.default,onFocusChange:r.default.func.isRequired,onClose:r.default.func,startDateId:r.default.string.isRequired,startDatePlaceholderText:r.default.string,endDateId:r.default.string.isRequired,endDatePlaceholderText:r.default.string,disabled:f.default,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDates:r.default.bool,showDefaultInputIcon:r.default.bool,inputIconPosition:u.default,customInputIcon:r.default.node,customArrowIcon:r.default.node,customCloseIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,keepFocusOnInput:r.default.bool,renderMonthText:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:c.default,anchorDirection:d.default,openDirection:h.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,daySize:i.nonNegativeInteger,isRTL:r.default.bool,firstDayOfWeek:p.default,initialVisibleMonth:r.default.func,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDates:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:y.default,hideKeyboardShortcutsPanel:r.default.bool,verticalHeight:i.nonNegativeInteger,transitionDuration:i.nonNegativeInteger,verticalSpacing:i.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,minimumNights:r.default.number,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(a.DateRangePickerPhrases)),dayAriaLabelFormat:r.default.string}},v0MV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("0IMB");t.default=(0,a.and)([i.default.instanceOf(Set),function(){return function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},wmWA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},x5U2:function(e,t,n){"use strict";var r=n("bidq"),o=n("PiFy"),i=n("9MlZ")(),a=Object,s=o.call(Function.call,Array.prototype.push),l=o.call(Function.call,Object.prototype.propertyIsEnumerable),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(void 0===(n=e)||null===n)throw new TypeError("target must be an object");var n,o,c,f,d,h,p,y,v=a(e);for(o=1;o0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"To")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"CC/BCC")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Subject")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"}),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("label",{className:"checkbox"},o.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Message")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control is-expanded"},o.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Message")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control is-expanded"},o.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}),o.a.createElement("p",{className:"help"},"You may use ",o.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return o.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},o.a.createElement("h5",{className:"title is-5"},"Message Preview"),o.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?o.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?o.a.createElement("table",{className:"table"},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("th",null,"Category"),o.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?o.a.createElement("tr",null,o.a.createElement("th",null,"Found Near"),o.a.createElement("td",null,t.formatted)):null,o.a.createElement("tr",null,o.a.createElement("th",null,"Date Collected"),o.a.createElement("td",null,l()(e.date.date).format("LL"))),o.a.createElement("tr",null,o.a.createElement("th",{colSpan:2},o.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?o.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):o.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return o.a.createElement("div",{className:"column"},o.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return o.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},o.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),o.a.createElement("div",{className:"modal-card modal-card-lg"},o.a.createElement(u.a,{visible:this.state.loading}),o.a.createElement("header",{className:"modal-card-head"},o.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),o.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),o.a.createElement("section",{className:"modal-card-body"},o.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),o.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?o.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):o.a.createElement("div",{className:"flexbox flex-space-between"},o.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),o.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},xeqp:function(e,t){e.exports=function(e){return e>=0?1:-1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=c||f||Function("return this")(),h=Object.prototype.toString,p=Math.max,y=Math.min,v=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o,i,a,s,l,u,c=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function _(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-c>=a}function w(){var e=v();if(_(e))return k(e);l=setTimeout(w,function(e){var n=t-(e-u);return d?y(n,a-(e-c)):n}(e))}function k(e){return l=void 0,h&&o?b(e):(o=i=void 0,s)}function E(){var e=v(),n=_(e);if(o=arguments,i=this,u=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),f?b(e):s}(u);if(d)return l=setTimeout(w,t),b(u)}return void 0===l&&(l=setTimeout(w,t)),s}return t=g(t)||0,m(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),E.cancel=function(){void 0!==l&&clearTimeout(l),c=0,o=u=i=l=void 0},E.flush=function(){return void 0===l?s:k(v())},E}}).call(t,n("DuR2"))},yCNF:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},yYPf:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{-webkit-transition:height .2s ease-in-out;-moz-transition:height .2s ease-in-out;transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}",""])},ykZC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6TBu");t.default=i.default.oneOf([a.START_DATE,a.END_DATE])},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,S=function(){return function e(t){if(!(this instanceof e))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 k(t,n,this);E.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){S.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}});var D=void 0!==o.ResizeObserver?o.ResizeObserver:S;t.default=D}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/1.a266fdc902bcbfb78c0d.js b/public/js/1.a266fdc902bcbfb78c0d.js new file mode 100644 index 00000000..15226fa9 --- /dev/null +++ b/public/js/1.a266fdc902bcbfb78c0d.js @@ -0,0 +1 @@ +webpackJsonp([1],{"+1gT":function(e,t,n){"use strict";var r=n("x5U2");e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,u=e.offsetHeight,l="width"===t?s:u;n||(l-=parseFloat(a["padding"+o])+parseFloat(a["padding"+i])+parseFloat(a["border"+o+"Width"])+parseFloat(a["border"+i+"Width"]));r&&(l+=parseFloat(a["margin"+o])+parseFloat(a["margin"+i]));return l}},"/Tzs":function(e,t,n){e.exports=n("h8mb").default},"/plk":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;si&&(a=0),n.setState({previousIndex:o,currentIndex:a,isTransitioning:a!==o,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new l.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,o){var i=n.state,a=i.scrollingUpDown,s=i.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var l=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(l,o)}},n._handleSwiping=function(e,t,r,o){var i=n.state,a=i.galleryWidth,s=i.isTransitioning,u=i.scrollingUpDown,l=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var c=t<0?1:-1,f=o/a*100;Math.abs(f)>=100&&(f=100);var d={transition:"transform "+l+"ms ease-out"};n.setState({offsetPercentage:c*f,style:d})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return i.default.createElement("div",{className:"image-gallery-image"},e.imageSet?i.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return i.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),i.default.createElement("img",{alt:e.originalAlt,src:e.original})):i.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&i.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return i.default.createElement("div",{className:"image-gallery-thumbnail-inner"},i.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&i.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this._intervalId){var n=this.props,r=n.slideInterval,o=n.slideDuration;this.setState({isPlaying:!0}),this._intervalId=window.setInterval(function(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,o)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;d.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;d.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,o=n.scrollingLeftRight,i=Math.abs(e);Math.abs(t)>i&&!r&&!o?this.setState({scrollingUpDown:!0}):o||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,o=n.isTransitioning,i=r;!this._sufficientSwipeOffset()&&!t||o||(i+=e),e<0?this._canSlideLeft()||(i=r):this._canSlideRight()||(i=r),this._unthrottledSlideToIndex(i)}},{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.currentIndex0&&(er&&this._setThumbsTranslate(n+i))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,o=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){if(this._thumbnails.scrollHeight<=r)return 0;o=this._thumbnails.scrollHeight-r}else{if(this._thumbnails.scrollWidth<=n||n<=0)return 0;o=this._thumbnails.scrollWidth-n}return e*(o/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,o=t.previousIndex,i=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?i=-100+r:1===n&&0===e&&r<0&&(i=100+r),n!==o?0===o&&0===e&&0===r&&"left"===this.direction?i=100:1===o&&1===e&&0===r&&"right"===this.direction&&(i=-100):0===n&&1===e&&0===r&&"left"===this.direction?i=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(i=100),i}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,o=t.currentIndex;return n&&!(e===r||e===o)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,o=this.props,i=o.infinite,a=o.items,s=o.useTranslate3D,u=o.isRTL,l=-100*n,c=a.length-1,f=(l+100*e)*(u?-1:1)+r;i&&a.length>2&&(0===n&&e===c?f=-100*(u?-1:1)+r:n===c&&0===e&&(f=100*(u?-1:1)+r)),i&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var d="translate("+f+"%, 0)";return s&&(d="translate3d("+f+"%, 0, 0)"),{WebkitTransform:d,MozTransform:d,msTransform:d,OTransform:d,transform:d}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,o=this.state.thumbsTranslate,i=r?-1*o:o;return this._isThumbnailHorizontal()?(e="translate(0, "+o+"px)",n&&(e="translate3d(0, "+o+"px, 0)")):(e="translate("+i+"px, 0)",n&&(e="translate3d("+i+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,o=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,l=t.scrollingLeftRight,c=this.props,f=c.infinite,d=c.preventDefaultTouchmoveEvent,h=c.isRTL,p=this._getThumbnailStyle(),y=this.props.thumbnailPosition,v=this._slideLeft,m=this._slideRight,g=[],b=[],_=[];this.props.items.forEach(function(t,o){var a=e._getAlignmentClassName(o),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",l=t.renderItem||e.props.renderItem||e._renderItem,c=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,d=!e.props.lazyLoad||a||e._lazyLoaded[o];d&&e.props.lazyLoad&&(e._lazyLoaded[o]=!0);var h=e._getSlideStyle(o),p=i.default.createElement("div",{key:o,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},d?l(t):i.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(o)&&g.push(p):g.push(p),e.props.showThumbnails&&b.push(i.default.createElement("a",{key:o,role:"button","aria-pressed":n===o?"true":"false","aria-label":"Go to Slide "+(o+1),className:"image-gallery-thumbnail"+(n===o?" active":"")+u,onClick:function(t){return e._onThumbnailClick(t,o)}},c(t))),e.props.showBullets){_.push(i.default.createElement("button",{key:o,type:"button",className:["image-gallery-bullet",n===o?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:o,currentIndex:n}),e.slideToIndex.call(e,o,r)},"aria-pressed":n===o?"true":"false","aria-label":"Go to Slide "+(o+1)}))}});var w=i.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+y+" "+(h?"image-gallery-rtl":"")},this.props.renderCustomControls&&this.props.renderCustomControls(),this.props.showFullscreenButton&&this.props.renderFullscreenButton(this._toggleFullScreen,o),this.props.showPlayButton&&this.props.renderPlayPauseButton(this._togglePlay,u),this._canNavigate()?[this.props.showNav&&i.default.createElement("span",{key:"navigation"},this.props.renderLeftNav(v,!this._canSlideLeft()),this.props.renderRightNav(m,!this._canSlideRight())),i.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:d||l},i.default.createElement("div",{className:"image-gallery-slides"},g))]:i.default.createElement("div",{className:"image-gallery-slides"},g),this.props.showBullets&&i.default.createElement("div",{className:"image-gallery-bullets"},i.default.createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},_)),this.props.showIndex&&i.default.createElement("div",{className:"image-gallery-index"},i.default.createElement("span",{className:"image-gallery-index-current"},this.state.currentIndex+1),i.default.createElement("span",{className:"image-gallery-index-separator"},this.props.indexSeparator),i.default.createElement("span",{className:"image-gallery-index-total"},this.props.items.length))),k=["image-gallery",this.props.additionalClass,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return i.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:k,"aria-live":"polite"},i.default.createElement("div",{className:"image-gallery-content"+(o?" fullscreen":"")},("bottom"===y||"right"===y)&&w,this.props.showThumbnails&&i.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+y+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},i.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},i.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:p,"aria-label":"Thumbnail Navigation"},b))),("top"===y||"left"===y)&&w))}}]),t}();h.propTypes={flickThreshold:c.default.number,items:c.default.array.isRequired,showNav:c.default.bool,autoPlay:c.default.bool,lazyLoad:c.default.bool,infinite:c.default.bool,showIndex:c.default.bool,showBullets:c.default.bool,showThumbnails:c.default.bool,showPlayButton:c.default.bool,showFullscreenButton:c.default.bool,disableThumbnailScroll:c.default.bool,disableArrowKeys:c.default.bool,disableSwipe:c.default.bool,useBrowserFullscreen:c.default.bool,preventDefaultTouchmoveEvent:c.default.bool,defaultImage:c.default.string,indexSeparator:c.default.string,thumbnailPosition:c.default.string,startIndex:c.default.number,slideDuration:c.default.number,slideInterval:c.default.number,swipeThreshold:c.default.number,swipingTransitionDuration:c.default.number,onSlide:c.default.func,onScreenChange:c.default.func,onPause:c.default.func,onPlay:c.default.func,onClick:c.default.func,onImageLoad:c.default.func,onImageError:c.default.func,onTouchMove:c.default.func,onTouchEnd:c.default.func,onTouchStart:c.default.func,onMouseOver:c.default.func,onMouseLeave:c.default.func,onThumbnailError:c.default.func,onThumbnailClick:c.default.func,renderCustomControls:c.default.func,renderLeftNav:c.default.func,renderRightNav:c.default.func,renderPlayPauseButton:c.default.func,renderFullscreenButton:c.default.func,renderItem:c.default.func,stopPropagation:c.default.bool,additionalClass:c.default.string,useTranslate3D:c.default.bool,isRTL:c.default.bool},h.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(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"0z1n":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6TBu");t.default=i.default.oneOf([a.OPEN_DOWN,a.OPEN_UP])},"2ZMP":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n0&&(z||j||a!==w)){var q=g||this.today;K=this.deleteModifierFromRange(K,q,q.clone().add(w,"days"),"blocked-minimum-nights"),K=this.deleteModifierFromRange(K,q,q.clone().add(w,"days"),"blocked")}(z||L)&&(0,f.default)(T).forEach(function(e){Object.keys(e).forEach(function(e){var n=(0,c.default)(e),r=!1;(z||P)&&(s(n)?(K=t.addModifier(K,n,"blocked-out-of-range"),r=!0):K=t.deleteModifier(K,n,"blocked-out-of-range")),(z||I)&&(u(n)?(K=t.addModifier(K,n,"blocked-calendar"),r=!0):K=t.deleteModifier(K,n,"blocked-calendar")),K=r?t.addModifier(K,n,"blocked"):t.deleteModifier(K,n,"blocked"),(z||x)&&(K=l(n)?t.addModifier(K,n,"highlighted-calendar"):t.deleteModifier(K,n,"highlighted-calendar"))})}),a>0&&n&&o===N.END_DATE&&(K=this.addModifierToRange(K,n,n.clone().add(a,"days"),"blocked-minimum-nights"),K=this.addModifierToRange(K,n,n.clone().add(a,"days"),"blocked"));var G=(0,c.default)();if((0,m.default)(this.today,G)||(K=this.deleteModifier(K,this.today,"today"),K=this.addModifier(K,G,"today"),this.today=G),Object.keys(K).length>0&&this.setState({visibleDays:(0,i.default)({},T,K)}),z||d!==D){var V=R(d,o);this.setState({phrases:(0,i.default)({},d,{chooseAvailableDate:V})})}}}()},{key:"onDayClick",value:function(){return function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,i=n.onBlur,a=n.focusedInput,s=n.onFocusChange,u=n.onClose,l=n.onDatesChange,c=n.startDateOffset,f=n.endDateOffset,d=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var h=this.props,p=h.startDate,v=h.endDate;if(c||f)p=(0,k.default)(c,e),v=(0,k.default)(f,e),r||(s(null),u({startDate:p,endDate:v}));else if(a===N.START_DATE){var m=v&&v.clone().subtract(o,"days"),_=(0,b.default)(m,e)||(0,g.default)(p,v),w=d===N.END_DATE;w&&_||(p=e,_&&(v=null)),w&&!_?(s(null),u({startDate:p,endDate:v})):w||s(N.END_DATE)}else if(a===N.END_DATE){var S=p&&p.clone().add(o,"days");p?(0,y.default)(e,S)?(v=e,r||(s(null),u({startDate:p,endDate:v}))):d!==N.START_DATE&&(p=e,v=null):(v=e,s(N.START_DATE))}l({startDate:p,endDate:v}),i()}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,a=t.minimumNights,s=t.startDateOffset,u=t.endDateOffset,l=this.state,c=l.hoverDate,f=l.visibleDays,d=null;if(o){var h=s||u,p={};if(h){var y=(0,k.default)(s,e),v=(0,k.default)(u,e,function(e){return e.add(1,"day")});d={start:y,end:v},this.state.dateOffset&&this.state.dateOffset.start&&this.state.dateOffset.end&&(p=this.deleteModifierFromRange(p,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),p=this.addModifierToRange(p,y,v,"hovered-offset")}if(!h){if(p=this.deleteModifier(p,c,"hovered"),p=this.addModifier(p,e,"hovered"),n&&!r&&o===N.END_DATE){if((0,g.default)(c,n)){var _=c.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,_,"hovered-span")}if(!this.isBlocked(e)&&(0,g.default)(e,n)){var w=e.clone().add(1,"day");p=this.addModifierToRange(p,n,w,"hovered-span")}}if(!n&&r&&o===N.START_DATE&&((0,b.default)(c,r)&&(p=this.deleteModifierFromRange(p,c,r,"hovered-span")),!this.isBlocked(e)&&(0,b.default)(e,r)&&(p=this.addModifierToRange(p,e,r,"hovered-span"))),n){var S=n.clone().add(1,"day"),E=n.clone().add(a+1,"days");if(p=this.deleteModifierFromRange(p,S,E,"after-hovered-start"),(0,m.default)(e,n)){var D=n.clone().add(1,"day"),O=n.clone().add(a+1,"days");p=this.addModifierToRange(p,D,O,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:d,visibleDays:(0,i.default)({},f,p)})}}}}()},{key:"onDayMouseLeave",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=this.state,s=a.hoverDate,u=a.visibleDays,l=a.dateOffset;if(!this.isTouchDevice&&s){var c={};if(c=this.deleteModifier(c,s,"hovered"),l&&(c=this.deleteModifierFromRange(c,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!r&&(0,g.default)(s,n)){var f=s.clone().add(1,"day");c=this.deleteModifierFromRange(c,n,f,"hovered-span")}if(!n&&r&&(0,g.default)(r,s)&&(c=this.deleteModifierFromRange(c,s,r,"hovered-span")),n&&(0,m.default)(e,n)){var d=n.clone().add(1,"day"),h=n.clone().add(o+1,"days");c=this.deleteModifierFromRange(c,d,h,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,i.default)({},u,c)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,u={};Object.keys(s).sort().slice(0,n+1).forEach(function(e){u[e]=s[e]});var l=a.clone().subtract(2,"months"),c=(0,_.default)(l,1,r,!0),f=a.clone().subtract(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},u,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,u={};Object.keys(s).sort().slice(1).forEach(function(e){u[e]=s[e]});var l=a.clone().add(n+1,"month"),c=(0,_.default)(l,1,r,!0),f=a.clone().add(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},u,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===N.VERTICAL_SCROLLABLE,i=(0,_.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===N.VERTICAL_SCROLLABLE,i=(0,_.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onMultiplyScrollableMonths",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,a=r.visibleDays,s=Object.keys(a).length,u=o.clone().add(s,"month"),l=(0,_.default)(u,t,n,!0);this.setState({visibleDays:(0,i.default)({},a,this.getModifiers(l))})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,o=n.startDate,i=n.endDate,a=n.focusedInput,s=n.minimumNights,u=n.numberOfMonths,l=e.clone().startOf("month");if(a===N.START_DATE&&o?l=o.clone():a===N.END_DATE&&!i&&o?l=o.clone().add(s,"days"):a===N.END_DATE&&i&&(l=i.clone()),this.isBlocked(l)){for(var c=[],f=e.clone().add(u-1,"months").endOf("month"),d=l.clone();!(0,g.default)(d,f);)d=d.clone().add(1,"day"),c.push(d);var h=c.filter(function(e){return!t.isBlocked(e)});h.length>0&&(l=r(h,1)[0])}return l}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,S.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,i=e.orientation,a=e.startDate,s=(n||(a?function(){return a}:function(){return t.today}))(),u=i===N.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,_.default)(s,r,o,u))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,u=this.state,l=u.currentMonth,c=u.visibleDays,f=l,d=o;if(s===N.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,w.default)(t,f,d,a))return e;var h=(0,S.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.add(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},h,a))))},p);else{var y=(0,E.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.add(n),p=(0,i.default)({},p,x({},y,(0,i.default)({},v,x({},h,m))))}return p}}()},{key:"addModifierToRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,b.default)(i,n);)o=this.addModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,u=this.state,l=u.currentMonth,c=u.visibleDays,f=l,d=o;if(s===N.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,w.default)(t,f,d,a))return e;var h=(0,S.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.delete(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},h,a))))},p);else{var y=(0,E.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.delete(n),p=(0,i.default)({},p,x({},y,(0,i.default)({},v,x({},h,m))))}return p}}()},{key:"deleteModifierFromRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,b.default)(i,n);)o=this.deleteModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"doesNotMeetMinimumNights",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,i=t.minimumNights;if(o!==N.END_DATE)return!1;if(n){var a=e.diff(n.clone().startOf("day").hour(12),"days");return a=0}return r((0,c.default)(e).subtract(i,"days"))}}()},{key:"isDayAfterHoveredStartDate",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,v.default)(i,e)&&o>0&&(0,m.default)(i,n)}}()},{key:"isEndDate",value:function(){return function(e){var t=this.props.endDate;return(0,m.default)(e,t)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,m.default)(e,t)}}()},{key:"isInHoveredSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,i=!!n&&!r&&(e.isBetween(n,o)||(0,m.default)(o,e)),a=!!r&&!n&&(e.isBetween(o,r)||(0,m.default)(o,e)),s=o&&!this.isBlocked(o);return(i||a)&&s}}()},{key:"isInSelectedSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}}()},{key:"isLastInRange",value:function(){return function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,v.default)(e,t)}}()},{key:"isStartDate",value:function(){return function(e){var t=this.props.startDate;return(0,m.default)(e,t)}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}}()},{key:"isToday",value:function(){return function(e){return(0,m.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||c.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||c.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,s=e.navNext,u=e.noNavButtons,l=e.onOutsideClick,c=e.withPortal,f=e.enableOutsideDays,d=e.firstDayOfWeek,h=e.hideKeyboardShortcutsPanel,p=e.daySize,y=e.focusedInput,v=e.renderCalendarDay,m=e.renderDayContents,g=e.renderCalendarInfo,b=e.renderMonthElement,_=e.calendarInfoPosition,w=e.onBlur,k=e.isFocused,S=e.showKeyboardShortcuts,E=e.isRTL,D=e.weekDayFormat,O=e.dayAriaLabelFormat,M=e.verticalHeight,C=e.noBorder,T=e.transitionDuration,N=e.verticalBorderSpacing,I=e.horizontalMonthPadding,x=this.state,L=x.currentMonth,j=x.phrases,R=x.visibleDays;return a.default.createElement(P.default,{orientation:n,enableOutsideDays:f,modifiers:R,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:r,renderMonthText:o,withPortal:c,hidden:!y,initialVisibleMonth:function(){return L},daySize:p,onOutsideClick:l,navPrev:i,navNext:s,noNavButtons:u,renderCalendarDay:v,renderDayContents:m,renderCalendarInfo:g,renderMonthElement:b,calendarInfoPosition:_,firstDayOfWeek:d,hideKeyboardShortcutsPanel:h,isFocused:k,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:w,showKeyboardShortcuts:S,phrases:j,isRTL:E,weekDayFormat:D,dayAriaLabelFormat:O,verticalHeight:M,verticalBorderSpacing:N,noBorder:C,transitionDuration:T,horizontalMonthPadding:I})}}()}]),t}();t.default=A,A.propTypes=L,A.defaultProps=j},"32hK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDateRangePicker=void 0;var r=Object.assign||function(e){for(var t=1;t0?" is-danger":"")},o.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},o.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return o.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Or Create New Collection"),o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})),o.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),o.a.createElement(s.a,{visible:this.state.loading})):o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You must be logged in to add this observation to a collection."),o.a.createElement("p",null,"Please ",o.a.createElement("a",{href:"/login"},"login")," or ",o.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},c.defaultProps={collections:[],onSubmit:function(){}}},"5xeA":function(e,t,n){"use strict";var r=n("Lffp"),o=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var i=r.ArraySpeciesCreate(e,0);return function e(t,n,i,a,s){for(var u=a,l=0;l0&&(d=r.IsArray(f)),d)u=e(t,f,r.ToLength(r.Get(f,"length")),u,s-1);else{if(u>=o)throw new TypeError("index too large");r.CreateDataPropertyOrThrow(t,r.ToString(u),f),u+=1}}l+=1}return u}(i,e,t,0,n),i}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("O27J"),a=n.n(i),s=n("KSGD"),u=n.n(s),l=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),l(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return o.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},o.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(o.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=c,c.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},c.defaultProps={type:"success"},c.stack=[]},"6MiT":function(e,t,n){var r=n("aCM0"),o=n("UnEC"),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},"6TBu":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},"6yBs":function(e,t,n){"use strict";e.exports=n("t0Wu")},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,o=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:o,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,o=t.onSwiping,i=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,l=t.onSwipingRight,c=t.onSwipedRight,f=t.onSwipingUp,d=t.onSwipedUp,h=t.onSwipingDown,p=t.onSwipedDown,y=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var v=u(e,this.swipeable);if(!(v.absXv.absY?v.deltaX>0?(a||s)&&(a&&a(e,v.absX),m=!0):(l||c)&&(l&&l(e,v.absX),m=!0):v.deltaY>0?(f||d)&&(f&&f(e,v.absY),m=!0):(h||p)&&(h&&h(e,v.absY),m=!0),this.swipeable.swiping=!0,m&&y&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,o=t.onSwiped,i=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,l=t.onSwipedDown,c=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var d=f.velocity>r;o&&o(e,f.deltaX,f.deltaY,d,f.velocity),f.absX>f.absY?f.deltaX>0?i&&i(e,f.deltaX,d):a&&a(e,f.deltaX,d):f.deltaY>0?s&&s(e,f.deltaY,d):l&&l(e,f.deltaY,d)}else c&&c(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,o.createElement(this.props.nodeName,e,this.props.children)},t}(o.Component);l.propTypes={onSwiped:i.func,onSwiping:i.func,onSwipingUp:i.func,onSwipingRight:i.func,onSwipingDown:i.func,onSwipingLeft:i.func,onSwipedUp:i.func,onSwipedRight:i.func,onSwipedDown:i.func,onSwipedLeft:i.func,onTap:i.func,flickThreshold:i.number,delta:i.number,preventDefaultTouchmoveEvent:i.bool,stopPropagation:i.bool,nodeName:i.string,trackMouse:i.bool,disabled:i.bool,innerRef:i.func,children:i.node,rotationAngle:i.number},l.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=l},"76UX":function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n("9MlZ");e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(t,n("DuR2"))},"7ciz":function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n("t+1C"),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=l&&n;if(s&&e.length>0&&!o.call(e,0))for(var y=0;y0)for(var v=0;v>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}var i=-1;e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,a,s){return r(function(r,u,l,c,f,d,h){var p=l[c],y=typeof p,v=function(e,t,n,r){var a=void 0===r,s=null===r;if(e){if(a)return o(n,t,"undefined");if(s)return o(n,t,"null")}return a||s?null:i}(r,f=f||n.anonymousMessage,h=h||c,p);if(v!==i)return v;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+c+"` of type `"+y+"` supplied to `"+f+"`, expected `"+e+"`.");if(!a(p))return new Error(n.baseInvalidMessage+d+" `"+c+"` of type `"+y+"` supplied to `"+f+"`, expected `"+s+"`.");if(u&&!u(p)){var m=u.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+c+"` of type `"+y+"` supplied to `"+f+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null})},messages:n}},"9+gG":function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},"9LH0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.DISPLAY_FORMAT):null};var r=a(n("PJh5")),o=a(n("8Pcz")),i=n("6TBu");function a(e){return e&&e.__esModule?e:{default:e}}},"9MlZ":function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},"9ge7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_MONTH_FORMAT):null};var r=a(n("PJh5")),o=a(n("8Pcz")),i=n("6TBu");function a(e){return e&&e.__esModule?e:{default:e}}},AByj:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=n("h7v/"),u=n("NdNt"),l=n("c8iI"),c=n("0dG/"),f=n.n(c),d=n("PJh5"),h=n.n(d),p=n("LZyd"),y=n("iwoP"),v=n("5L7H"),m=n("jVml"),g=n("mOuh"),b=n("OE/d"),_=n("t4LX"),w=n("F8kA"),k=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},o.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return o.a.createElement(l.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},o.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:o.a.createElement("div",null,o.a.createElement("div",{className:"flexbox observation-tools"},o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-star text-success"})),o.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-flag text-danger"})),o.a.createElement("span",null,"Flag Observation")):null,b.a.can("contact users")?o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-envelope text-info"})),o.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return o.a.createElement(p.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return o.a.createElement(y.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return o.a.createElement("div",null,o.a.createElement("h3",{className:"title is-4"},"Add to Collection"),o.a.createElement(v.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:o.a.createElement("tr",{key:n},o.a.createElement("th",null,e),o.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?o.a.createElement("p",{className:"help"},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-lock"})),o.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),_.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return o.a.createElement("div",{className:"box has-text-centered"},o.a.createElement("div",{className:"content"},o.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),o.a.createElement("p",null,"Observation has been deleted successfully"),o.a.createElement(w.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return b.a.can("contact users")?o.a.createElement(k.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return o.a.createElement("div",{className:"box"},o.a.createElement("div",{className:"columns is-mobile flex-v-center"},o.a.createElement("div",{className:"column"},o.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),o.a.createElement("div",{className:"column is-narrow"},o.a.createElement("span",{className:"select"},o.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},o.a.createElement("option",{value:"US"},"US Units"),o.a.createElement("option",{value:"metric"},"Metric Units")))),b.a.can("delete observations")||b.a.owns(this.observation)?o.a.createElement("div",{className:"column is-narrow"},o.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-trash"})),o.a.createElement("span",null,"Delete"))):null),o.a.createElement("div",{className:"columns mb-none"},o.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},o.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},o.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("th",null,"Submitted By"),o.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?o.a.createElement("tr",null,o.a.createElement("th",null,"Custom Tree Identifier"),o.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?o.a.createElement("tr",null,o.a.createElement("th",null,"ID"),o.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,o=void 0!==m.a[n]?m.a[n]:n,i=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],i=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(o,i,n,r)}),o.a.createElement("tr",null,o.a.createElement("th",null,"Coordinates"),o.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?o.a.createElement("tr",null,o.a.createElement("th",null,"Location Accuracy"),o.a.createElement("td",null,b.a.can("view accurate location")||b.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,o.a.createElement("tr",null,o.a.createElement("th",null,"Date Collected"),o.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:o.a.createElement("tr",null,o.a.createElement("th",null,"Photos"),o.a.createElement("td",null,o.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),o.a.createElement("div",{className:"column"},o.a.createElement("div",{className:"tabs has-no-shadow"},o.a.createElement("ul",null,o.a.createElement("li",{className:this.getTabClass("photos")},o.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),o.a.createElement("li",{className:this.getTabClass("map")},o.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?o.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},o.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return o.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?o.a.createElement("div",{className:"callout"},o.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?o.a.createElement("div",{style:{width:"100%",position:"relative"}},o.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=D,D.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},D.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},"Atm/":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=function(){function e(e,t){for(var n=0;n0}).map(function(t){return t+"="+e[t]}).join("&")}},{key:"preLoadPage",value:function(){var e=l.a.parseUrl(this.history.location.search),t=1,n=this.state.perPage,r=this.state.selectedCollection;return void 0!==e.view&&(e.view=parseInt(e.view),isNaN(e.view)&&(e.view=6),n=e.view>100||e.view<6?6:e.view),void 0!==e.page&&(t=parseInt(e.page),isNaN(t)&&(t=1)),void 0!==e.collection&&(r=parseInt(e.collection),isNaN(r)&&(r=-1)),this.history.replace("/observations?page="+t+"&view="+n+"&collection="+r),{page:t,perPage:n,selectedCollection:r}}},{key:"generatePages",value:function(e,t,n){void 0===e&&(e=this.state.total),void 0===t&&(t=this.state.perPage),void 0===n&&(n=this.state.page);var r=[],o=Math.ceil(e/t),i=Math.min(o,7),a=1;o>7&&n>3&&(r.push(1),r.push("..."),1===(a=n-3)&&a++);for(var s=a;s7&&n+30?a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("span",{className:"select is-full-width"},a.a.createElement("select",{value:this.state.selectedCollection,onChange:function(t){var n=t.target;return e.collectionFilter(n.value)}},a.a.createElement("option",{value:"-1"},"Select a Collection"),this.state.collections.map(function(e){return a.a.createElement("option",{key:e.value,value:e.value},e.label)})))))):null,a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("span",{className:"select is-full-width"},a.a.createElement("select",{value:this.state.selectedCategory,onChange:function(t){var n=t.target;return e.categoriesFilter(n.value)}},a.a.createElement("option",{value:""},"All Species"),this.state.categories.map(function(e){return a.a.createElement("option",{key:e.value,value:e.value},e.label)})))))),a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("span",{className:"select is-full-width"},a.a.createElement("select",{value:this.state.selectedStatus,onChange:function(t){var n=t.target;return e.changeStatus(n.value)}},a.a.createElement("option",{value:0},"Any Status"),a.a.createElement("option",{value:"marked_correct_by_anyone"},"Species marked correct by anyone"),a.a.createElement("option",{value:"marked_correct_by_me"},"Species marked correct by me")))))),this.state.advancedFilters.length>0?a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("span",{className:"select is-full-width"},a.a.createElement("select",{value:this.state.selectedFilter,onChange:function(t){var n=t.target;return e.loadAdvancedFilter(n.value)}},a.a.createElement("option",{value:"-1"},"Select Advanced Filter"),this.state.advancedFilters.map(function(e){return a.a.createElement("option",{value:e.value,key:e.value},e.label)})))))):null,a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("button",{onClick:function(){e.setState({showFiltersModal:!0}),e.advancedFiltersModal&&e.advancedFiltersModal.reapplyState(e._advancedFiltersState)},className:"button is-primary",type:"button"},"Advanced Filters"),t&&Object.keys(t).length>0?a.a.createElement("button",{onClick:function(){e.setState({advancedFiltersRules:null,reduceCardOpacity:!1},e.loadObservations),e._advancedFiltersState={}},className:"ml-1 button is-danger is-outlined",type:"button"},a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-times-circle"})),a.a.createElement("span",null,"Clear Filters")):null,a.a.createElement(b.a,{right:!0,isBlock:!1,timeout:220,trigger:a.a.createElement("button",{className:"button ml-1","aria-haspopup":"true","aria-controls":"dropdown-menu"},a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-download"})),a.a.createElement("span",null,"Download"),a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-angle-down","aria-hidden":"true"})))},a.a.createElement("a",{href:"/services/download/observations/tsv?"+this.state.downloadParams,target:"_blank",className:"dropdown-item"},"TSV Format"),a.a.createElement("a",{href:"/services/download/observations/csv?"+this.state.downloadParams,target:"_blank",className:"dropdown-item"},"CSV Format"))))))}},{key:"changePerPage",value:function(e){var t=this.state,n=this.state.selectedCollection;t.perPage=e,t.page=1,this.setState({page:1,perPage:e},this.loadObservations),this.history.replace("/observations?page=1&view="+e+"&collection="+n)}},{key:"advancedFilter",value:function(e){this.setState({advanced_filter:e,page:1},this.loadObservations)}},{key:"saveFilterState",value:function(e){this._advancedFiltersState=e}},{key:"render",value:function(){var e=this,t=!this.state.hasMorePages,n=parseInt(this.state.page)<=1;return a.a.createElement("div",null,a.a.createElement(s.a,{visible:this.state.loading}),a.a.createElement(c.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.state.contact.observation,onCloseRequest:function(){return e.setState({showEmail:!1})}}),a.a.createElement(m,{visible:this.state.showHelpModal,onCloseRequest:function(){return e.setState({showHelpModal:!1})}}),a.a.createElement(f.a,{ref:function(t){return e.advancedFiltersModal=t},visible:this.state.showFiltersModal,onCloseRequest:function(){return e.setState({showFiltersModal:!1})},onCreate:function(t){e.setState({showFiltersModal:!1});var n=t.data;if(n.filter){var r=e.state.filters;return r.push(n.filter),e.setState({filters:r}),void e.advancedFilter(n.filter.id)}e.setState({page:1,advancedFiltersRules:t.params,showFiltersModal:!1},e.loadObservations)},onStateChange:this.saveFilterState.bind(this)}),a.a.createElement("div",{className:"columns flex-v-center"},a.a.createElement("div",{className:"column is-6"},a.a.createElement("h1",{className:"title is-3"}," Observations")),a.a.createElement("div",{className:"column is-6 has-text-right"})),this.renderFilters(),0===this.state.observations.length?a.a.createElement("p",{className:"mb-0"},"No results found"):null,a.a.createElement("div",{className:"columns is-multiline"},this.state.observations.map(function(t){return a.a.createElement("div",{key:t.observation_id,className:"column is-4-widescreen is-6-desktop is-6-tablet"},a.a.createElement(u.a,{loading:e.state.reduceCardOpacity,observation:t,collections:e.state.ownedCollections,showMarks:!0,onEmailRequest:function(t){e.setState({showEmail:!0,contact:{to:{user_id:t.user.id,name:t.user.name},from:e.state.user.email,observation:t}})},onFlagChange:function(e,n){if("removed"===e){var r=[];return t.flags.map(function(e){e.id!==parseInt(n.id)&&r.push(e)}),void(t.flags=r)}t.flags.push(n)},onCollectionCreated:function(n){var r=e.state.ownedCollections,o=!1;r.map(function(e){e.value===n.id&&(o=!0)}),o||r.push({label:n.label,value:n.id}),t.collections.push({id:n.id,label:n.label,description:n.description}),e.setState({ownedCollections:r}),e.forceUpdate(),d.a.push('Added "'+t.observation_category+'" to "'+n.label+'" successfully')},onRemovedFromCollection:function(n){t.collections=t.collections.filter(function(e){return e.id!==n.id}),e.forceUpdate(),d.a.push('Removed "'+t.observation_category+'" from "'+n.label+'" successfully')}}))})),a.a.createElement("div",{style:{display:this.state.total>this.state.perPage?"block":"none"}},a.a.createElement("nav",{className:"pagination is-centered"},a.a.createElement("a",{className:"pagination-previous",disabled:n,onClick:this.previousPage.bind(this)},"Previous"),a.a.createElement("a",{className:"pagination-next",disabled:t,onClick:this.nextPage.bind(this)},"Next page"),a.a.createElement("ul",{className:"pagination-list"},this.state.pages.map(function(t,n){return"..."===t?a.a.createElement("li",{key:"hellip_"+n},a.a.createElement("span",{className:"pagination-ellipsis"},"…")):a.a.createElement("li",{key:"page_"+t},a.a.createElement("a",{className:"pagination-link"+(e.state.page===t?" is-current":""),onClick:function(){e.state.page!==t&&e.goToPage.call(e,t)}},t))})))))}}]),t}();t.default=w},"C/1w":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=n.getBoundingClientRect(),i=o.left,a=o.top;e===r.OPEN_UP&&(a=-(window.innerHeight-o.bottom));t===r.ANCHOR_RIGHT&&(i=-(window.innerWidth-o.right));return{transform:"translate3d("+String(Math.round(i))+"px, "+String(Math.round(a))+"px, 0)"}};var r=n("6TBu")},C6vg:function(e,t,n){"use strict";var r=n("Xxa5"),o=n.n(r),i=n("GiK3"),a=n.n(i),s=n("KSGD"),u=n.n(s),l=function(){function e(e,t){for(var n=0;n-1?" is-selected":""}},{key:"_toggleSelected",value:function(e){var t=[];t=this.props.value.indexOf(e)>-1?this.props.value.filter(function(t){return t!==e}):this.props.value.concat(e),console.log(t),this.props.onChange(t)}},{key:"render",value:function(){var e=this;return a.a.createElement("div",{className:"control buttons-group"},this.props.list.map(function(t,n){return a.a.createElement("button",{type:"button",className:"button mb-0 button-select"+e._setActiveSelected(t),key:n,onClick:function(){return e._toggleSelected(t)}},a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-check"})),a.a.createElement("span",null,t))}))}}]),t}(),f=c;c.propTypes={list:u.a.array.isRequired,onChange:u.a.func.isRequired,value:u.a.array.isRequired};var d=n("mOuh"),h=function(){function e(e,t){for(var n=0;n 75%"],onChange:function(t){return e._update("crownAssessment",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Disease"),a.a.createElement(f,{value:this.state.madroneDisease,list:["Wilting leaves","Leaf spots","Rust","Blight","Defoliation","Lesions","Cankers"],onChange:function(t){return e._update("madroneDisease",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Stand Diversity"),a.a.createElement(f,{value:this.state.standDiversity,list:["Pure stand of this species","Mixed stand (this species and others)","Tree is standing alone","Not sure"],onChange:function(t){return e._update("standDiversity",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Tree Diameter (",d.a.unit("inches"),")"),a.a.createElement("div",{className:"field is-horizontal"},a.a.createElement("div",{className:"field-body"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Min.",value:this.state.diameterNumericMin,onChange:function(t){var n=t.target;return e._update("diameterNumericMin",n.value)}}))),a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Max.",value:this.state.diameterNumericMax,onChange:function(t){var n=t.target;return e._update("diameterNumericMax",n.value)}}))))))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Tree Height (",d.a.unit("feet"),")"),a.a.createElement("div",{className:"field is-horizontal"},a.a.createElement("div",{className:"field-body"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Min.",value:this.state.heightNumericMin,onChange:function(t){var n=t.target;return e._update("heightNumericMin",n.value)}}))),a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Max.",value:this.state.heightNumericMax,onChange:function(t){var n=t.target;return e._update("heightNumericMax",n.value)}}))))))))}}]),t}(),$=Z;Z.propTypes={onChange:u.a.func.isRequired};var J=function(){function e(e,t){for(var n=0;n2?arguments[2]:[];if(!this.IsCallable(e))throw new s(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=S(e)?e:o(e,d);if("symbol"==typeof t)throw new s("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(E(M(t,2),2));if(T(t))return this.ToNumber(E(M(t,2),8));if(I(t)||x(t))return NaN;var n=function(e){return V(e,G,"")}(t);if(n!==t)return this.ToNumber(n)}return d(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!g(t))return 0;var n=w(t)*B(K(t));return k(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=B(e);return n+.5b?b:t},CanonicalNumericIndexString:function(e){if("[object String]"!==j(e))throw new s("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Q.CheckObjectCoercible,IsArray:l.isArray||function(e){return"[object Array]"===j(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!S(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!g(e))return!1;var t=K(e);return B(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(y){var t=e[h.match];if(void 0!==t)return Q.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new s(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Q.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new s("O.constructor is not an Object");var r=y&&h.species?n[h.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new s("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");if("Boolean"!==this.Type(r))throw new s("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(y&&"symbol"==typeof h.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");var n=O(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!y)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,h.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new s("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new s("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new s("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var i=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(i))throw new s("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new s("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new s("R must be an Object");if("String"!==this.Type(t))throw new s("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new s('"exec" method must return `null` or an Object')}return N(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new s("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&y&&h.species&&null===(n=this.Get(n,h.species))&&(n=void 0)),void 0===n)return l(r);if(!this.IsConstructor(n))throw new s("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=U(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new s("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new s("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new u("es-abstract does not yet support internal slots");if(null===e&&!H)throw new u("native Object.create support is required to create null objects");return H(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new s("S must be a String");if(!this.IsInteger(t)||t<0||t>b)throw new s("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new s("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=L(e,t);if(r<55296||r>56319)return t+1;var o=L(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!Y(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!Y(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");return i(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:R(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:A(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:z(e)},thisTimeValue:function(e){return F(e)}});delete $.CheckObjectCoercible,e.exports=$},"FZ+f":function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o1&&void 0!==arguments[1]?arguments[1]:i.default.localeData().firstDayOfWeek(),n=function(e,t){return(e.day()-t+7)%7}(e.clone().startOf("month"),t);return Math.ceil((n+e.daysInMonth())/7)};var r,o=n("PJh5"),i=(r=o)&&r.__esModule?r:{default:r}},H1lJ:function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},"HOE/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t)||(0,o.default)(e,t))};var r=i(n("PJh5")),o=i(n("RHtK"));function i(e){return e&&e.__esModule?e:{default:e}}},"I/WY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=i(n("PJh5")),o=i(n("+LBX"));function i(e){return e&&e.__esModule?e:{default:e}}},IMKR:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("O27J"),o=n.n(r),i=n("GiK3"),a=n.n(i),s=n("KSGD"),u=n.n(s),l=!("undefined"==typeof window||!window.document||!window.document.createElement),c=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return o.a.createElement(d.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},o.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},o.a.createElement("div",{className:"media callout"},o.a.createElement("div",{className:"media-left mr-0"},o.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),o.a.createElement("div",{className:"media-content"},o.a.createElement("div",{className:"mb-0"},o.a.createElement("strong",null,t.observation_category)),o.a.createElement("div",{className:"mb-0"},"By ",t.user.name),o.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return o.a.createElement("div",{className:"card-slide-container"},o.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?o.a.createElement("div",{className:"content"},o.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),o.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},o.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),o.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):o.a.createElement(c.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return o.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},o.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),o.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return o.a.createElement("div",{className:"card-slide-container"},o.a.createElement("h3",{className:"title is-5"},"Flag Observation"),o.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),y.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";y.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return o.a.createElement("div",{className:"card-footer marks-section"},o.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},o.a.createElement("span",null,this.state.incorrectMarks),o.a.createElement("span",{className:"icon ml-0 mr-0"},o.a.createElement("b",{className:"fa fa-times text-danger"})),o.a.createElement("span",null,"Marks")),o.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},o.a.createElement("span",null,this.state.correctMarks),o.a.createElement("span",{className:"icon ml-0 mr-0"},o.a.createElement("b",{className:"fa fa-check text-success"})),o.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":k(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,i=this.getAddress(t),a=i.address,u=i.addressLine1,c=i.addressLine2;return o.a.createElement("div",{className:"observation-card-container"},o.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},o.a.createElement("header",{className:"card-header"},o.a.createElement(_.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),w.a.can("confirm species")?o.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},o.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},o.a.createElement("span",{className:"icon"},o.a.createElement("i",{className:"fa fa-times"})))):null,w.a.can("confirm species")?o.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},o.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},o.a.createElement("span",{className:"icon"},o.a.createElement("i",{className:"fa fa-check"})))):null),o.a.createElement("div",{className:"relative-block"},o.a.createElement(p.a,{visible:this.state.loading}),o.a.createElement("div",{className:"has-bg-image relative-block is-positioned-relatively"},o.a.createElement("div",{className:"card-image img-bg-zoom",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}},o.a.createElement("a",{href:"javascript:;",className:"sidebar-img-overlay flexbox flex-v-center flex-h-center flex-column z-10",onClick:function(){e.setState({showDetailsModal:!0})}},o.a.createElement("i",{className:"fa fa-photo"}),o.a.createElement("div",{className:"has-text-centered"},"Click for More Details")))),this._renderMarks(),o.a.createElement("div",{className:"card-content"},o.a.createElement("div",{className:"content"},this.props.owner?null:o.a.createElement("span",null,"By ",t.user.name,o.a.createElement("br",null)),o.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),o.a.createElement("br",null),t.custom_id?o.a.createElement("div",null,o.a.createElement("small",null,o.a.createElement("strong",null,"Custom ID")," ",t.custom_id),o.a.createElement("br",null)):o.a.createElement("div",null,o.a.createElement("small",null,o.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||w.a.can("view accurate location")?o.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,o.a.createElement("br",null)):null,o.a.createElement("small",null,l()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?o.a.createElement("div",{className:"text-ellipsis",title:a},o.a.createElement("small",null,o.a.createElement("b",null,"Near")," ",u),o.a.createElement("br",null),o.a.createElement("small",{style:{marginLeft:"35px"}},c)):o.a.createElement("div",{style:{height:48}},"Address is unavailable"))),o.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},o.a.createElement("div",{className:"p-1 relative-block"},o.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},o.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),o.a.createElement("footer",{className:"card-footer card-footer-z-index"},o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},o.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-star"})))),o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},o.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-map"})))),w.a.can("contact users")&&!this.props.owner?o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},o.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},o.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?o.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},o.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?o.a.createElement(b,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=E;E.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},E.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},K45F:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t= 0");var n=this.ToLength(t);if(!this.SameValueZero(t,n))throw new RangeError("index must be >= 0 and < 2 ** 53 - 1");return n},EnumerableOwnProperties:function(e,t){var n=o.EnumerableOwnNames(e);if("key"===t)return n;if("value"===t||"key+value"===t){var r=[];return a(n,function(n){l(e,n)&&c(r,["value"===t?e[n]:[n,e[n]]])}),r}throw new u('Assertion failed: "kind" is not "key", "value", or "key+value": '+t)}});delete f.EnumerableOwnNames,e.exports=f},LlVb:function(e,t,n){var r=n("PJh5");e.exports={isValidMoment:function(e){return!("function"==typeof r.isMoment&&!r.isMoment(e))&&("function"==typeof e.isValid?e.isValid():!isNaN(e))}}},MTIv:function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=function(e){return document.querySelector(e)}.call(this,e)),t[e]}}(),u=null,l=0,c=[],f=n("mJPh");function d(e,t){for(var n=0;n=0&&c.splice(t,1)}function v(e){var t=document.createElement("style");return e.attrs.type="text/css",m(t,e.attrs),p(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=l++;n=u||(u=v(t)),r=w.bind(null,n,a,!1),o=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",m(t,e.attrs),p(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){y(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return d(n,t),function(e){for(var r=[],o=0;o=t||n<0||m&&e-y>=f}function w(){var e=o();if(_(e))return k(e);h=setTimeout(w,function(e){var n=t-(e-p);return m?u(n,f-(e-y)):n}(e))}function k(e){return h=void 0,g&&l?b(e):(l=c=void 0,d)}function S(){var e=o(),n=_(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return y=e,h=setTimeout(w,t),v?b(e):d}(p);if(m)return h=setTimeout(w,t),b(p)}return void 0===h&&(h=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(v=!!n.leading,f=(m="maxWait"in n)?s(i(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==h&&clearTimeout(h),y=0,l=p=c=h=void 0},S.flush=function(){return void 0===h?d:k(o())},S}},OjkW:function(e,t,n){e.exports=n("YZwx")},OpPv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e)return e;if("function"==typeof e)return e(t);return""}},PiFy:function(e,t,n){"use strict";var r=n("fRHV");e.exports=Function.prototype.bind||r},Pkwz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=t||n<0||d&&e-c>=a}function w(){var e=v();if(_(e))return k(e);u=setTimeout(w,function(e){var n=t-(e-l);return d?y(n,a-(e-c)):n}(e))}function k(e){return u=void 0,h&&o?m(e):(o=i=void 0,s)}function S(){var e=v(),n=_(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(w,t),f?m(e):s}(l);if(d)return u=setTimeout(w,t),m(l)}return void 0===u&&(u=setTimeout(w,t)),s}return t=b(t)||0,g(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(b(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),c=0,o=l=i=u=void 0},S.flush=function(){return void 0===u?s:k(v())},S}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}}).call(t,n("DuR2"))},RHtK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!i.default.isMoment(e)||!i.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),a=t.month(),s=n===o;return s&&r===a?e.date()=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),y}}}function _(e,t,n,r){var o=t&&t.prototype instanceof k?t:k,i=Object.create(o.prototype),a=new N(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=w(e,t,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function k(){}function S(){}function E(){}function D(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,a){var s=w(e[n],e,r);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&o.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(l).then(function(e){u.value=e,i(u)},a)}a(s.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function M(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,M(e,t),"throw"===t.method))return y;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,a=void 0===n?"styles":n,c=t.themePropName,d=void 0===c?"theme":c,p=t.cssPropName,g=void 0===p?"css":p,b=t.flushBefore,_=void 0!==b&&b,w=t.pureComponent,k=void 0,S=void 0,E=void 0,D=void 0,O=function(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}(void 0!==w&&w);function M(t,n){var r=function(e){return e===l.DIRECTIONS.LTR?E:D}(t),o=t===l.DIRECTIONS.LTR?k:S,i=f.default.get();if(o&&r===i)return o;var a=t===l.DIRECTIONS.RTL;return a?(S=e?f.default.createRTL(e):y,D=i,o=S):(k=e?f.default.createLTR(e):y,E=i,o=k),o}function C(e,t){return{resolveMethod:function(e){return e===l.DIRECTIONS.LTR?f.default.resolveLTR:f.default.resolveRTL}(e),styleDef:M(e,t)}}return function(){return function(e){var t=e.displayName||e.name||"Component",n=function(n){function s(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e,n)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():m;return r.state=C(o,t),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,n),o(s,[{key:"componentDidMount",value:function(){return function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe(function(n){e.setState(C(n,t))}))}}()},{key:"componentWillUnmount",value:function(){return function(){this.channelUnsubscribe&&this.channelUnsubscribe()}}()},{key:"render",value:function(){return function(){var t;_&&f.default.flush();var n=this.state,o=n.resolveMethod,s=n.styleDef;return i.default.createElement(e,r({},this.props,(h(t={},d,f.default.get()),h(t,a,s()),h(t,g,o),t)))}}()}]),s}(O);n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=v,e.propTypes&&(n.propTypes=(0,u.default)({},e.propTypes),delete n.propTypes[a],delete n.propTypes[d],delete n.propTypes[g]);e.defaultProps&&(n.defaultProps=(0,u.default)({},e.defaultProps));return(0,s.default)(n,e)}}()};var i=d(n("GiK3")),a=d(n("KSGD")),s=d(n("wfLM")),u=d(n("i3rX")),l=n("Z+/y"),c=d(n("rgbP")),f=d(n("F+Ye"));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=f.default.resolveLTR,t.withStylesPropTypes={styles:a.default.object.isRequired,theme:a.default.object.isRequired,css:a.default.func.isRequired};var p={},y=function(){return p};var v=h({},l.CHANNEL,c.default),m=l.DIRECTIONS.LTR},Vop6:function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},X0xs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDayPicker=t.defaultProps=void 0;var r=Object.assign||function(e){for(var t=1;tt.clientHeight?t:o(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),a=o(e);return t.set(a,a.style.overflowY),a===n?t:i(a,t)}},XqC7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return e?n(e(t.clone())):t};var r=function(e){return e}},Xxa5:function(e,t,n){e.exports=n("jyFz")},YL1d:function(e,t,n){"use strict";function r(e,t,n){var r="number"==typeof t,o="number"==typeof n,i="number"==typeof e;return r&&o?t+n:r&&i?t+e:r?t:o&&i?n+e:o?n:i?2*e:0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.font.input,o=n.lineHeight,i=n.lineHeight_small,a=e.spacing,s=a.inputPadding,u=a.displayTextPaddingVertical,l=a.displayTextPaddingTop,c=a.displayTextPaddingBottom,f=a.displayTextPaddingVertical_small,d=a.displayTextPaddingTop_small,h=a.displayTextPaddingBottom_small,p=t?i:o,y=t?r(f,d,h):r(u,l,c);return parseInt(p,10)+2*s+y}},YZwx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("B2tZ");Object.defineProperty(t,"CalendarDay",{enumerable:!0,get:function(){return function(){return S(r).default}}()});var o=n("Pkwz");Object.defineProperty(t,"CalendarMonth",{enumerable:!0,get:function(){return function(){return S(o).default}}()});var i=n("cw5X");Object.defineProperty(t,"CalendarMonthGrid",{enumerable:!0,get:function(){return function(){return S(i).default}}()});var a=n("32hK");Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return function(){return S(a).default}}()});var s=n("K45F");Object.defineProperty(t,"DateRangePickerInput",{enumerable:!0,get:function(){return function(){return S(s).default}}()});var u=n("VB2b");Object.defineProperty(t,"DateRangePickerInputController",{enumerable:!0,get:function(){return function(){return S(u).default}}()});var l=n("uy+U");Object.defineProperty(t,"DateRangePickerShape",{enumerable:!0,get:function(){return function(){return S(l).default}}()});var c=n("X0xs");Object.defineProperty(t,"DayPicker",{enumerable:!0,get:function(){return function(){return S(c).default}}()});var f=n("2ZMP");Object.defineProperty(t,"DayPickerRangeController",{enumerable:!0,get:function(){return function(){return S(f).default}}()});var d=n("tHAx");Object.defineProperty(t,"DayPickerSingleDateController",{enumerable:!0,get:function(){return function(){return S(d).default}}()});var h=n("YgGm");Object.defineProperty(t,"SingleDatePicker",{enumerable:!0,get:function(){return function(){return S(h).default}}()});var p=n("4NsZ");Object.defineProperty(t,"SingleDatePickerInput",{enumerable:!0,get:function(){return function(){return S(p).default}}()});var y=n("0Tdo");Object.defineProperty(t,"SingleDatePickerShape",{enumerable:!0,get:function(){return function(){return S(y).default}}()});var v=n("HOE/");Object.defineProperty(t,"isInclusivelyAfterDay",{enumerable:!0,get:function(){return function(){return S(v).default}}()});var m=n("JMu1");Object.defineProperty(t,"isInclusivelyBeforeDay",{enumerable:!0,get:function(){return function(){return S(m).default}}()});var g=n("I/WY");Object.defineProperty(t,"isNextDay",{enumerable:!0,get:function(){return function(){return S(g).default}}()});var b=n("+LBX");Object.defineProperty(t,"isSameDay",{enumerable:!0,get:function(){return function(){return S(b).default}}()});var _=n("TRqI");Object.defineProperty(t,"toISODateString",{enumerable:!0,get:function(){return function(){return S(_).default}}()});var w=n("9LH0");Object.defineProperty(t,"toLocalizedDateString",{enumerable:!0,get:function(){return function(){return S(w).default}}()});var k=n("8Pcz");function S(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"toMomentObject",{enumerable:!0,get:function(){return function(){return S(k).default}}()})},YgGm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureSingleDatePicker=void 0;var r=Object.assign||function(e){for(var t=1;t0?String(e)+"__":"")+String(t)}},aaLQ:function(e,t,n){"use strict";var r=n("/ymf"),o=n("x5U2"),i=n("+1gT"),a=n("EBef"),s=i();r(s,{getPolyfill:i,implementation:o,shim:a}),e.exports=s},adrs:function(e,t,n){"use strict";var r=n("QqhH"),o=n("/ymf");e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},bidq:function(e,t,n){"use strict";var r=Array.prototype.slice,o=n("t+1C"),i=Object.keys,a=i?function(e){return i(e)}:n("7ciz"),s=Object.keys;a.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)}):Object.keys=a;return Object.keys||a},e.exports=a},blYT:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n("DuR2"))},bvnS:function(e,t,n){"use strict";var r=n("teQR"),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n("XfW5"),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),s=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&s)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=s[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t);console.log(a(e,r),r)}},"c+e1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){var i="undefined"!=typeof window?window.innerWidth:0,a=e===r.ANCHOR_LEFT?i-n:n,s=o||0;return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},e,Math.min(t+a-s,0))};var r=n("6TBu")},c8iI:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();c=c?u({},C,c):C;var _=(0,S.default)((o(e={},M.default.editor,!0),o(e,M.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=p);var w=void 0;return h||(w=f.default.createElement(b.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:y})),f.default.createElement("div",{className:(0,S.default)(M.default.root,r)},w,f.default.createElement("div",{className:_},f.default.createElement(d.Editor,u({},m,{blockStyleFn:(0,k.default)(i,v),customStyleMap:c,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:l,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(d.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),o=d.Modifier.removeRange(r,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());o=d.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),this._onChange(d.EditorState.push(t,o,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if((0,m.default)(o)&&0===o.getLength()){var i=o.getDepth(),a=0===i?(0,y.default)(e,r,O.BLOCK_TYPE.UNSTYLED):(0,p.default)(e,r,i-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!(0,m.default)(o)&&o.getType()!==O.BLOCK_TYPE.UNSTYLED&&o.getLength()===t.getStartOffset()){var i=(0,v.default)(e,r,O.BLOCK_TYPE.UNSTYLED);return this._onChange(i),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=d.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=d.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=T;var N=new d.CompositeDecorator([w.default]);Object.assign(T,{EditorValue:_.default,decorator:N,createEmptyValue:a,createValueFromString:s}),t.EditorValue=_.default,t.decorator=N,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(6),a=n(40),s=n(7),u=n(32),l=n(41),c=n(43),f=n(44),d=n(50),h=n(9),p=n(14),y=n(16),v=n(29),m=n(100),g=n(131),b=n(33),_=n(133),w={Editor:f,EditorBlock:d,EditorState:v,CompositeDecorator:a,Entity:p,EntityInstance:y,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:u,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:c,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:_,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=w},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(7),a=n(9),s=n(29),u=n(5),l=n(21),c=u.List,f=u.Repeat,d={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),d=e.getSelection(),h=a.removeRange(u,d,"backward"),p=h.getSelectionAfter(),y=a.splitBlock(h,p),v=y.getSelectionAfter(),m=a.setBlockType(y,v,"atomic"),g=o.create({entity:t}),b=[new i({key:l(),type:"atomic",text:n,characterList:c(f(g,n.length))}),new i({key:l(),type:"unstyled",text:"",characterList:c()})],_=r.createFromArray(b),w=a.replaceWithFragment(m,v,_),k=w.merge({selectionBefore:d,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return s.push(e,k,"insert-fragment")}};e.exports=d},function(e,t,n){"use strict";var r=n(5).OrderedMap,o={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=o},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:T(e)}function n(e){return a(e)?e:N(e)}function r(e){return s(e)?e:P(e)}function o(e){return i(e)&&!u(e)?e:I(e)}function i(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ht])}function s(e){return!(!e||!e[Ut])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[Wt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?p(e)+t:t}function v(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function S(){return{value:void 0,done:!0}}function E(e){return!!M(e)}function D(e){return e&&"function"==typeof e.next}function O(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function C(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?z():i(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function N(e){return null===e||void 0===e?z().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():F(e)}function P(e){return null===e||void 0===e?z():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():B(e)}function I(e){return(null===e||void 0===e?z():i(e)?a(e)?e.entrySeq():e:B(e)).toSetSeq()}function x(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function A(e){return!(!e||!e[sn])}function z(){return rn||(rn=new x([]))}function F(e){var t=Array.isArray(e)?new x(e).fromEntrySeq():D(e)?new R(e).fromEntrySeq():E(e)?new j(e).fromEntrySeq():"object"==typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return C(e)?new x(e):D(e)?new R(e):E(e)?new j(e):void 0}function H(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new w(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,P(n).map(function(r,o){return e(t,r,o,n)})):q(n)?t.call(o,r,N(n).map(function(r,o){return e(t,r,o,n)})):n}(t,e,"",{"":e}):Y(e)}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():q(e)?N(e).map(Y).toMap():e}function q(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function V(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&G(o[1],e)&&(n||G(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!G(t,e.get(r,Vt)):!G(e.get(r,Vt),t))return f=!1,!1});return f&&e.size===d}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function Z(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var o=0|e;for(o!==e&&(o^=4294967295*e);e>4294967295;)o^=e/=4294967295;return ne(o)}if("string"===r)return e.length>yn?(void 0===(n=gn[t=e])&&(n=oe(t),mn===vn&&(mn=0,gn={}),mn++,gn[t]=n),n):oe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(dn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[pn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[pn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),dn)un.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[pn]=t}}return t}(e);if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function oe(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Yt,r,o)]:(i=new de(t,r,o),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Me(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function Ce(e){var t=xe();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),o=n.size;return 0===o?t:(ie(o),o>0&&or?0:r-n,l=o-n;return l>qt&&(l=qt),function(){if(u===l)return Tn;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,i,a){var s,u=e&&e.array,l=a>r?0:r-a>>i,c=1+(o-a>>i);return c>qt&&(c=qt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(l===c)return Tn;var r=t?--c:l++;s=n(u&&u[r],i-Yt,a+(r<>>n&Gt,u=e&&s0){var l=e&&e.array[s],c=Le(l,t,n-Yt,r,o,i);return c===l?e:((a=je(e,t)).array[s]=c,a)}return u&&e.array[s]===o?e:(f(i),a=je(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function je(e,t){return t&&e&&t===e.ownerID?e:new Ne(e?e.array.slice():[],t)}function Re(e,t){if(t>=Fe(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Yt;return n}}function Ae(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Ne(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=Yt);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Fe(i),h=Fe(s);h>=1<f?new Ne([],r):p;if(p&&h>f&&aYt;m-=Yt){var g=f>>>m≫v=v.array[g]=je(v.array[g],r)}v.array[f>>>Yt&Gt]=p}if(s=h)a-=h,s-=h,u=Yt,l=null,y=y&&y.removeBefore(r,0,a);else if(a>o||h>>u≫if(b!==h>>>u&Gt)break;b&&(c+=(1<o&&(l=l.removeBefore(r,u,a-c)),l&&ha&&(a=l.size),i(u)||(l=l.map(function(e){return W(e)})),o.push(l)}return a>e.size&&(e=e.setSize(a)),De(e,t,o)}function Fe(e){return e>>Yt<=qt&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):He(r,o)}function Ye(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qe(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===Xt){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Jt?$t:Jt,n)},t}function Ze(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,Vt);return i===Vt?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Xt,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),o)})},r}function $e(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Je(e,t,n,r){var o=ct(e);return r&&(o.has=function(r){var o=e.get(r,Vt);return o!==Vt&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,Vt);return i!==Vt&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Xt,i),s=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return k(o,r?l:s++,c,i)}})},o}function Xe(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),m(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!=i||a!=a)return Xe(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var l=ct(e);return l.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(l.get=function(t,n){return(t=y(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===Jt?e:k(t,u-1,t===$t?void 0:e.value[1],e)})},l}function et(e,t,n,r){var o=ct(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Xt,i),u=!0,l=0;return new w(function(){var e,i,c;do{if((e=s.next()).done)return r||o===Jt?e:k(o,l++,o===$t?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===Xt?e:k(o,i,c,e)})},o}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(u,l){var c=this;u.__iterate(function(o,u){return(!t||l0}function it(e,n,r){var o=ct(e);return o.size=new x(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Jt,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function at(e,t){return A(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return ie(e.size),p(e)}function lt(e){return a(e)?n:s(e)?r:o}function ct(e){return Object.create((a(e)?N:s(e)?P:I).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function dt(e,t){return e>t?1:et?-1:0}function zt(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+Ft(re(e),re(t))|0}:function(e,t){r=r+Ft(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=ln(t,3432918353),t=ln(t<<15|t>>>-15,461845907),t=ln(t<<13|t>>>-13,5),t=ln((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=ln(t^t>>>13,3266489909))^t>>>16)}(o,r)}function Ft(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Bt=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ht="@@__IMMUTABLE_KEYED__@@",Ut="@@__IMMUTABLE_INDEXED__@@",Wt="@@__IMMUTABLE_ORDERED__@@",Yt=5,qt=1<r?{value:void 0,done:!0}:k(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:k(e,a,n[a])})},L.prototype[Wt]=!0,e(j,P),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(D(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!D(r))return new w(S);var o=0;return new w(function(){var t=r.next();return t.done?t:k(e,o++,t.value)})},e(R,P),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return k(e,o,r[o++])})},e(Q,P),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return G(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,b(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return G(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},$.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},$.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:k(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:V(this,e)},e(J,t),e(X,J),e(ee,J),e(te,J),J.Keyed=X,J.Indexed=ee,J.Set=te;var un,ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),dn="function"==typeof WeakMap;dn&&(un=new WeakMap);var hn=0,pn="__immutablehash__";"function"==typeof Symbol&&(pn=Symbol(pn));var yn=16,vn=255,mn=0,gn={};e(ae,X),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Vt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Vt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Vt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===Vt,a=n.next();if(a.done){var s=i?r:t,u=o(s);return u===s?t:u}Z(i||t&&t.set,"invalid keyPath");var l=a.value,c=i?Vt:t.get(l,Vt),f=e(c,n,r,o);return f===c?t:f===Vt?t.remove(l):(i?me():t).set(l,f)}(this,ht(e),t,n);return r===Vt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return ke(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Bt.call(arguments,1);return ke(this,e,t)},ae.prototype.mergeIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return ke(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Bt.call(arguments,1);return ke(this,Ee(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Be(nt(this,e))},ae.prototype.sortBy=function(e,t){return Be(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var bn="@@__IMMUTABLE_MAP__@@",_n=ae.prototype;_n[bn]=!0,_n.delete=_n.remove,_n.removeIn=_n.deleteIn,ue.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=kn)return function(e,t,n,r){e||(e=new d);for(var o=new de(e,re(n),[n,r]),i=0;i>>e)&Gt),i=this.bitmap;return 0==(i&o)?r:this.nodes[Oe(i&o-1)].get(e+Yt,t,n,r)},le.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,o){for(var i=0,a=new Array(qt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ce(e,i+1,a)}(e,d,l,s,p);if(c&&!p&&2===d.length&&_e(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&_e(p))return p;var y=e&&e===this.ownerID,v=c?p?l:l^u:l|u,m=c?p?Me(d,f,p,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&Gt,i=this.nodes[o];return i?i.get(e+Yt,t,n,r):r},ce.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=o===Vt,l=this.nodes,c=l[s];if(u&&!c)return this;var f=be(c,e,t+Yt,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Ae(e,t).set(0,n):Ae(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(Zt);return t>=Fe(e._capacity)?r=Le(r,e.__ownerID,0,t,n,i):o=Le(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ie(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},Ce.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ce.prototype.insert=function(e,t){return this.splice(e,0,t)},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Yt,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xe()},Ce.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ae(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ne([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-Yt,n))===a&&i)return this}if(i&&!o)return this;var s=je(this,e);if(!i)for(var u=0;u>>t≫if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-Yt,n))===i&&o===this.array.length-1)return this}var a=je(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Mn,Cn,Tn={};e(Be,ae),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Be.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ue()},Be.prototype.set=function(e,t){return We(this,e,t)},Be.prototype.remove=function(e){return We(this,e,Vt)},Be.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Be.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Be.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Be.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?He(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Be.isOrderedMap=Ke,Be.prototype[Wt]=!0,Be.prototype.delete=Be.prototype.remove,e(Ye,N),Ye.prototype.get=function(e,t){return this._iter.get(e,t)},Ye.prototype.has=function(e){return this._iter.has(e)},Ye.prototype.valueSeq=function(){return this._iter.valueSeq()},Ye.prototype.reverse=function(){var e=this,t=$e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ye.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ye.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Ye.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Jt,t),r=t?ut(this):0;return new w(function(){var o=n.next();return o.done?o:k(e,t?--r:r++,o.value,o)})},Ye.prototype[Wt]=!0,e(qe,P),qe.prototype.includes=function(e){return this._iter.includes(e)},qe.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(Ge,I),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(Ve,N),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var o=i(r);return k(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},qe.prototype.cacheResult=Ye.prototype.cacheResult=Ge.prototype.cacheResult=Ve.prototype.cacheResult=ft,e(pt,X),pt.prototype.toString=function(){return this.__toString(vt(this)+" {","}")},pt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},pt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},pt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=yt(this,me()))},pt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+vt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:yt(this,n)},pt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:yt(this,t)},pt.prototype.wasAltered=function(){return this._map.wasAltered()},pt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},pt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?yt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Nn=pt.prototype;Nn.delete=Nn.remove,Nn.deleteIn=Nn.removeIn=_n.removeIn,Nn.merge=_n.merge,Nn.mergeWith=_n.mergeWith,Nn.mergeIn=_n.mergeIn,Nn.mergeDeep=_n.mergeDeep,Nn.mergeDeepWith=_n.mergeDeepWith,Nn.mergeDeepIn=_n.mergeDeepIn,Nn.setIn=_n.setIn,Nn.update=_n.update,Nn.updateIn=_n.updateIn,Nn.withMutations=_n.withMutations,Nn.asMutable=_n.asMutable,Nn.asImmutable=_n.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return bt(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return bt(this,this._map.remove(e))},mt.prototype.clear=function(){return bt(this,this._map.clear())},mt.prototype.union=function(){var e=Bt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ct(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;ie(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ct(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):Tt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=b(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ct(o,i)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Mt;var Rn,An="@@__IMMUTABLE_STACK__@@",zn=Ot.prototype;zn[An]=!0,zn.withMutations=_n.withMutations,zn.asMutable=_n.asMutable,zn.asImmutable=_n.asImmutable,zn.wasAltered=_n.wasAltered,t.Iterator=w,Nt(t,{toArray:function(){ie(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new qe(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Ye(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){ie(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Be(this.toKeyedSeq())},toOrderedSet:function(){return kt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Ce(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Bt.call(arguments,0);return at(this,function(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?F(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new x(o);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(Xt)},every:function(e,t){ie(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return at(this,Je(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ie(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ie(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator($t)},map:function(e,t){return at(this,Ze(this,e,t))},reduce:function(e,t,n){var r,o;return ie(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,$e(this,!0))},slice:function(e,t){return at(this,Xe(this,e,t,!0))},some:function(e,t){return!this.every(xt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Jt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return p(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return V(this,e)},entrySeq:function(){var e=this;if(e._cache)return new x(e._cache);var t=e.toSeq().map(It).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(xt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(v)},flatMap:function(e,t){return at(this,function(e,t,n){var r=lt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=ht(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,Vt):Vt)===Vt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),o=(l(e)?Be():ae()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=lt(e);return o.map(function(t){return at(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,Vt)!==Vt},hasIn:function(e){return this.getIn(e,Vt)!==Vt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Pt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?Lt(e):At)},minBy:function(e,t){return rt(this,t?Lt(t):At,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(xt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Xt,o),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===Xt?e:k(r,u,l,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(xt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=zt(this))}});var Fn=t.prototype;Fn[Kt]=!0,Fn[nn]=Fn.values,Fn.__toJS=Fn.toArray,Fn.__toStringMapper=jt,Fn.inspect=Fn.toSource=function(){return this.toString()},Fn.chain=Fn.flatMap,Fn.contains=Fn.includes,function(){try{Object.defineProperty(Fn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Nt(n,{flip:function(){return at(this,Qe(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Bn=n.prototype;return Bn[Ht]=!0,Bn[nn]=Fn.entries,Bn.__toJS=Fn.toObject,Bn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+jt(e)},Nt(r,{toKeyedSeq:function(){return new Ye(this,!1)},filter:function(e,t){return at(this,Je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,$e(this,!1))},slice:function(e,t){return at(this,Xe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var d=f[0];if("IMMUTABLE"===c)return t.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});var h=o.getRemovalRange(s,u,e.getText().slice(d.start,d.end),d.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,c,t),h=d.start,p=d.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}(l.getCharacterList(),a,u):l.getCharacterList().slice(0,a).concat(c.getCharacterList().slice(u));var f=l.merge({text:l.getText().slice(0,a)+c.getText().slice(u),characterList:n}),d=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===i?f:null});return o=o.merge(d).filter(function(e){return!!e}),e.merge({blockMap:o,selectionBefore:t,selectionAfter:t.merge({anchorKey:i,anchorOffset:a,focusKey:i,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),o=n(21),i=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||i(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),l=u.getText(),c=u.getCharacterList(),f=u.merge({text:l.slice(0,r),characterList:c.slice(0,r)}),d=o(),h=f.merge({key:d,text:l.slice(r),characterList:c.slice(r),data:a()}),p=s.toSeq().takeUntil(function(e){return e===u}),y=s.toSeq().skipUntil(function(e){return e===u}).rest(),v=p.concat([[f.getKey(),f],[h.getKey(),h]],y).toOrderedMap();return e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:0,focusKey:d,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return v.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function o(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function i(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return d()}var a=n(15)||function(e){for(var t=1;t0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):i(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r0?o.getInlineStyleAt(r-1):i(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,i=l.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),c=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var d={currentContent:c,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,d)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=l.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=l.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=v},function(e,t,n){"use strict";function r(e,t){return e===t}var o=n(5),i=n(31),a=n(8),s=o.List,u=o.Repeat,l=o.Record,c=i.thatReturnsTrue,f=l({start:null,end:null}),d=l({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new d({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var o=[],i=t?t.getDecorations(e):s(u(null,n)),l=e.getCharacterList();return a(i,r,c,function(e,t){var n,u,h,p;o.push(new d({start:e,end:t,decoratorKey:i.get(e),leaves:(n=l.slice(e,t).toList(),u=e,h=[],p=n.map(function(e){return e.getStyle()}).toList(),a(p,r,c,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(o)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(7),a=n(5),s=n(33),u=n(21),l=n(34),c=a.List,f=a.Record,d=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),o=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:o,selectionAfter:o})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=l(e),new i({key:u(),text:e,type:"unstyled",characterList:c(d(o.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset();return t<=this.getEndOffset()&&i<=n}if(e!==r&&e!==o)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,o=n(5),i=n(36),a=n(39),s=o.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),l=s(n.keySeq().zip(u));return null!=t&&o.is(t,l)?t:l}};e.exports=u},function(e,t,n){"use strict";var r=n(37),o=n(38),i=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?o.isStrong(t)||i(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function o(e){var t=r(e);return null==t?s.NEUTRAL:d.exec(t)?s.RTL:s.LTR}function i(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=o(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),i(e,t)}var s=n(38),u=n(17),l="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",c="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+l+c+"]"),d=new RegExp("["+l+c+"]"),h={firstStrongChar:r,firstStrongCharDir:o,resolveBlockDir:i,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function o(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function i(e){l=e}var a=n(17),s="LTR",u="RTL",l=null,c={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:o,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:o(e)},setGlobalDir:i,initGlobalDir:function(){i(s)},getGlobalDir:function(){return l||this.initGlobalDir(),l||a(!1),l}};e.exports=c},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,o=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var o=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==i;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var d=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return void this.update(o.push(t,d,"insert-characters"))}f&&this.update(o.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===o.get(e).getMutability()?e:null}var o=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?r(e.getBlockForKey(n).getEntityAt(o-1)):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some(function(e){return o===e.get("start")?(i=!0,!0):o_,N));var z=M||i,F={className:A,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":P,key:E};void 0!==T&&(F=o({},F,{contentEditable:T,suppressContentEditableWarning:!0}));var B=s.createElement(j,F,s.createElement(z,I));b.push({block:B,wrapperTemplate:L,key:E,offsetKey:P}),_=L?S.getDepth():null,w=L}for(var K=[],H=0;H0&&window.scrollTo(i.x,i.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),l=this.props.tree.size-1,c=r(this.props.selection,n);return this.props.tree.map(function(r,h){var p=r.get("leaves"),y=p.size-1,v=p.map(function(r,o){var f=a.encode(n,h,o),d=r.get("start"),p=r.get("end");return s.createElement(i,{key:f,offsetKey:f,blockKey:n,start:d,selection:c?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===l&&o===y})}).toArray(),g=r.get("decoratorKey");if(null==g)return v;if(!e.props.decorator)return v;var b=m(e.props.decorator),_=b.getComponentForKey(g);if(!_)return v;var w=b.getPropsForKey(g),k=a.encode(n,h,0),S=u.slice(p.first().get("start"),p.last().get("end")),E=d.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(_,o({},w,{decoratedText:S,dir:E,key:k,entityKey:t.getEntityAt(r.get("start")),offsetKey:k}),v)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),o=n(52),i=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,o=r+t.text.length;if(e.hasEdgeWithin(n,r,o)){var i,u=a.findDOMNode(this),l=u.firstChild;i=l.nodeType===Node.TEXT_NODE?l:"BR"===l.tagName?u:l.firstChild,s(e,i,n,r,o)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,l=u.reduce(function(e,t){var o={},i=n[t];return void 0!==i&&e.textDecoration!==i.textDecoration&&(o.textDecoration=[e.textDecoration,i.textDecoration].join(" ").trim()),r(e,i,o)},{});if(a){var c=a(u);l=r(l,c)}return i.createElement("span",{"data-offset-key":s,ref:"leaf",style:l},i.createElement(o,null,e))},t}(i.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),o=n(53),i=n(54).isBrowser("IE <= 11"),a=i?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=i?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=o.findDOMNode(this);return""===e.children?!function(e){return i?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,a.contains(o,t))}function o(e){return"Windows"===i.platformName?e.replace(/^\s*NT/,""):e}var i=n(55),a=n(58),s=n(59),u=n(60),l={isBrowser:function(e){return r(i.browserName,i.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(i.browserArchitecture,null,e)},isDevice:function(e){return r(i.deviceName,null,e)},isEngine:function(e){return r(i.engineName,i.engineVersion,e)},isPlatform:function(e){return r(i.platformName,i.platformFullVersion,e,o)},isPlatformArchitecture:function(e){return r(i.platformArchitecture,null,e)}};e.exports=s(l,u)},function(e,t,n){"use strict";var r,o="Unknown",i={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||o,browserFullVersion:a.browser.version||o,browserMinorVersion:s.minor||o,browserName:a.browser.name||o,browserVersion:a.browser.major||o,deviceName:a.device.model||o,engineName:a.engine.name||o,engineVersion:a.engine.version||o,platformArchitecture:a.cpu.architecture||o,platformName:(r=a.os.name,i[r]||r||o),platformVersion:a.os.version||o,platformFullVersion:a.os.version||o};e.exports=u},function(e,t,n){var r;!function(o,i){"use strict";var a="model",s="name",u="type",l="vendor",c="version",f="mobile",d="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},p={rgx:function(){for(var e,t,n,r,o,i,a,s=0,u=arguments;s0?2==o.length?"function"==typeof o[1]?e[o[0]]=o[1].call(this,a):e[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?e[o[0]]=a?a.replace(o[1],o[2]):void 0:e[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(e[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):e[o]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return _.contains(e,t)}):function(e,t){var n=e.split(m);if(n.length>0&&n.length<=2||p(!1),1===n.length)return o(n[0],t);var r=n[0],i=n[1];return l(r)&&l(i)||p(!1),o(">="+r,t)&&o("<="+i,t)}(e=n[0].trim(),t)}function o(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(y),o=s(e),l=o.modifier,c=o.rangeComponents;switch(l){case"<":return i(r,c);case"<=":return-1===(n=h(r,c))||0===n;case">=":return a(r,c);case">":return function(e,t){return 1===h(e,t)}(r,c);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,s=parseInt(r[o],10);return u(s)&&(r[o]=s+1+""),a(e,n)&&i(e,r)}(r,c);default:return function(e,t){return 0===h(e,t)}(r,c)}}function i(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(y),n=t[0].match(g);return n||p(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function l(e){return!s(e).modifier}function c(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,b=/^(\d*)(.*)/,_={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=_},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var o={};for(var i in e)n.call(e,i)&&(o[i]=t.call(r,e[i],i,e));return o}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&i(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function o(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var i=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(i(document.documentElement,n)){var l=t.getSelection(),c=e.getAnchorKey(),f=e.getAnchorOffset(),d=e.getFocusKey(),h=e.getFocusOffset(),p=e.getIsBackward();if(!l.extend&&p){var y=c,v=f;c=d,f=h,d=y,h=v,p=!1}var m=c===a&&s<=f&&u>=f,g=d===a&&s<=h&&u>=h;if(m&&g)return l.removeAllRanges(),o(l,n,f-s),void r(l,n,h-s);if(p){if(g&&(l.removeAllRanges(),o(l,n,h-s)),m){var b=l.focusNode,_=l.focusOffset;l.removeAllRanges(),o(l,n,f-s),r(l,b,_)}}else m&&(l.removeAllRanges(),o(l,n,f-s)),g&&r(l,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],o=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(o,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=o},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var o=n(70),i=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(i(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(i(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[o(t)]:e.style&&e.style[o(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),o=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=o(e),i=e===t?document.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function o(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}o.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=o},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,p)))return;return void u(p,function(e){e&&t.update(r(d,c(h),e))})}var y=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,y)))return this._internalDrag?void this.update(function(e,t){var n=i.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(d,h)):void this.update(r(d,h,n.getText()))}}};e.exports=d},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var o=n(81),i=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},l=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?i(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=l},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o=0;h--)if(!(null!=d&&h>0&&i.isSurrogatePair(d,h-1))){if(e.setStart(c,h),!r(a(e),n))break;u=c,l=h}if(-1===h||0===c.childNodes.length)break;f=o(c=c.childNodes[h])}return e.setStart(u,l),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function o(e){return d.test(e)}function i(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!o(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var c=null;if(null!=s)c=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);c=l(a(f))}return{key:c,offset:0}}var d=r.childNodes[n-1],h=null,p=null;if(a(d)){var y=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(d);h=l(a(y)),p=o(y)}else h=l(s),p=o(d);return{key:h,offset:p}}function o(e){var t=e.textContent;return"\n"===t?0:t.length}var i=n(83),a=n(84),s=n(86),u=n(17),l=n(39);e.exports=function(e,t,n,o,a,u){var c=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:s(e,l(i(n)),o,l(i(a)),u),needsRecovery:!1};var d=null,h=null,p=!0;return c?(d={key:l(i(n)),offset:o},h=r(t,a,u)):f?(h={key:l(i(a)),offset:u},d=r(t,n,o)):(d=r(t,n,o),h=r(t,a,u),n===a&&o===u&&(p=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,d.key,d.offset,h.key,h.offset),needsRecovery:p}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var u=r.getKeyBefore(o);null==u?a=o:(a=u,s=r.getBlockForKey(u).getText().length)}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var o=e.getSelection(),i=e.getCurrentContent(),a=o;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i}else if(e.isSelectionAtStartOfContent())return i;if((a=t(e))===o)return i}return r.removeRange(i,a,n)}},function(e,t,n){"use strict";var r=n(110),o=n(29),i=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var o="\\s|(?![_])"+n(111).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:['‘’]|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:['‘’]|(?!"+o+").)*(?:"+o+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),o=n(29),i=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),o=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),o=n(104),i=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),o=n(104),i=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),o=n(29),i=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),l=e.getCurrentContent(),c=l.getBlockForKey(u).getLength();if(c<=1)return e;n===c?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(l,a),d=r.removeRange(l,a,"backward"),h=d.getSelectionAfter(),p=h.getAnchorOffset()-1,y=h.merge({anchorOffset:p,focusOffset:p}),v=r.replaceWithFragment(d,y,f),m=o.push(e,v,"insert-fragment");return o.acceptSelection(m,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(o)},0)):void n(o);var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,n,"insert-fragment")}var o=n(4),i=n(6),a=n(80),s=n(9),u=n(122),l=n(29),c=n(47),f=n(85),d=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var p=n.getFiles(),y=n.getText();if(p.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(p)))return;return void f(p,function(e){if(e=e||y){var n=t.props.editorState,r=d(e),a=i.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=o.createFromArray(f),p=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(l.push(n,p,"insert-fragment"))}})}}var v=[],m=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(m,g))){if(m&&(v=d(m)),!this.props.stripPastedStyles){var b=this.getClipboard();if(n.isRichText()&&b){if(-1!==g.indexOf(this.getEditorKey())||1===v.length&&1===b.size&&b.first().getText()===m)return void this.update(r(this.props.editorState,b))}else if(b&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(v,b))return void this.update(r(this.props.editorState,b));if(g){var _=u.processHTML(g,this.props.blockRenderMap);if(_){var w=o.createFromArray(_);return void this.update(r(this.props.editorState,w))}}this.setClipboard(null)}if(v){var k=this.props.editorState,S=i.create({style:k.getCurrentInlineStyle(),entity:c(k.getCurrentContent(),k.getSelection())}),E=u.processText(v,S),D=o.createFromArray(E);this.update(r(this.props.editorState,D))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),o=n(5),i=n(123),a=n(21),s=n(125),u=n(34),l=o.List,c=o.Repeat,f={processHTML:function(e,t){return i(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:l(c(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function o(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(D,t))}]}}function i(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):I.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(m,e,t),"ul"!==m&&"ol"!==m||(n&&(d+=1),n=m),i||-1===f.indexOf(m)?n&&"li"===i&&"li"===m&&(k=o(a(m,n,h),d),i=m,g=!0,b="ul"===n?"unordered-list-item":"ordered-list-item"):(k=o(a(m,n,h),d),i=m,g=!0);var D=e.firstChild;null!=D&&(m=D.nodeName.toLowerCase());for(var O=null;D;){D instanceof HTMLAnchorElement&&D.href&&u(D)?function(){var e=D,t={};L.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new v(e.href).toString(),O=p.create("LINK","MUTABLE",t)}():O=void 0,k=s(k,l(D,t,n,i,f,d,h,O||y));var C=D.nextSibling;C&&f.indexOf(m)>=0&&i&&(k=s(k,r())),C&&(m=C.nodeName.toLowerCase()),D=C}return g&&(k=s(k,o(b,d))),k}var c,f=n(6),d=n(7),h=n(41),p=n(14),y=n(5),v=n(124),m=n(21),g=n(125),b=n(17),_=n(39),w=n(34),k=y.List,S=y.OrderedSet,E=" ",D=4,O=new RegExp("\r","g"),M=new RegExp("\n","g"),C=new RegExp(" ","g"),T=new RegExp(" ?","g"),N=new RegExp("​?","g"),P=["bold","bolder","500","600","700","800","900"],I=["light","lighter","100","200","300","400"],x={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},L=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(O,"").replace(C,E).replace(T,"").replace(N,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),o=t(e);if(!o)return null;c=null;var i=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=l(o,S(),"ul",null,i,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=w(e);var o=n+e.length,i=_(t).inlines.slice(n,o),a=_(t).entities.slice(n,o),s=k(i.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=o+1,new d({key:m(),type:_(t).blocks[r].type,depth:_(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),o=n(53),i=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=i(e,o.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var o=t.getSelection();return 0===o.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),o=n(42),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=i},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var o=n(100),i=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),l=s&&a.isBrowser("Firefox < 29"),c=o.hasCommandModifier,f=o.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case i.RETURN:return"split-block";case i.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case i.BACKSPACE:return function(e){return c(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case i.LEFT:return l&&c(e)?"move-selection-to-start-of-block":null;case i.RIGHT:return l&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),o=n(9),i=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=o.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=i.push(e,t,"insert-characters");return i.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),l=o.setBlockType(n,s,n.getBlockForKey(r).getType()),c=o.removeRange(l,s,"backward");if(c!==n)return i.push(e,c,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?i.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=i.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return o.setBlockType(i,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,a.get(i)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),o=n(134),i=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var i=o.stringify(e.getEntityAt(r));n.hasOwnProperty(i)||(n[i]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:i(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(o.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),o=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(i,a){var s=e.getText(),u=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),o=n(8),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return o(u,i,a,function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,o.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,o=null,i=[],a=0,s=0,u=e.length;s0&&n!==o&&(i.push([o,r(e.slice(a,s),t.slice(a,s))]),a=s)}return i.push([n,r(e.slice(a),t.slice(a))]),i};var o=n(150),i=t.EMPTY_SET=new o.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:T(e)}function n(e){return a(e)?e:N(e)}function r(e){return s(e)?e:P(e)}function o(e){return i(e)&&!u(e)?e:I(e)}function i(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ht])}function s(e){return!(!e||!e[Ut])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[Wt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?p(e)+t:t}function v(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function S(){return{value:void 0,done:!0}}function E(e){return!!M(e)}function D(e){return e&&"function"==typeof e.next}function O(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function C(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?z():i(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function N(e){return null===e||void 0===e?z().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():F(e)}function P(e){return null===e||void 0===e?z():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():B(e)}function I(e){return(null===e||void 0===e?z():i(e)?a(e)?e.entrySeq():e:B(e)).toSetSeq()}function x(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function A(e){return!(!e||!e[sn])}function z(){return rn||(rn=new x([]))}function F(e){var t=Array.isArray(e)?new x(e).fromEntrySeq():D(e)?new R(e).fromEntrySeq():E(e)?new j(e).fromEntrySeq():"object"==typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return C(e)?new x(e):D(e)?new R(e):E(e)?new j(e):void 0}function H(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new w(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,P(n).map(function(r,o){return e(t,r,o,n)})):q(n)?t.call(o,r,N(n).map(function(r,o){return e(t,r,o,n)})):n}(t,e,"",{"":e}):Y(e)}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():q(e)?N(e).map(Y).toMap():e}function q(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function V(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&G(o[1],e)&&(n||G(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!G(t,e.get(r,Vt)):!G(e.get(r,Vt),t))return f=!1,!1});return f&&e.size===d}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function Z(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var o=0|e;for(o!==e&&(o^=4294967295*e);e>4294967295;)o^=e/=4294967295;return ne(o)}if("string"===r)return e.length>yn?(void 0===(n=gn[t=e])&&(n=oe(t),mn===vn&&(mn=0,gn={}),mn++,gn[t]=n),n):oe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(dn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[pn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[pn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),dn)un.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[pn]=t}}return t}(e);if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function oe(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Yt,r,o)]:(i=new de(t,r,o),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Me(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function Ce(e){var t=xe();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),o=n.size;return 0===o?t:(ie(o),o>0&&or?0:r-n,l=o-n;return l>qt&&(l=qt),function(){if(u===l)return Tn;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,i,a){var s,u=e&&e.array,l=a>r?0:r-a>>i,c=1+(o-a>>i);return c>qt&&(c=qt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(l===c)return Tn;var r=t?--c:l++;s=n(u&&u[r],i-Yt,a+(r<>>n&Gt,u=e&&s0){var l=e&&e.array[s],c=Le(l,t,n-Yt,r,o,i);return c===l?e:((a=je(e,t)).array[s]=c,a)}return u&&e.array[s]===o?e:(f(i),a=je(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function je(e,t){return t&&e&&t===e.ownerID?e:new Ne(e?e.array.slice():[],t)}function Re(e,t){if(t>=Fe(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Yt;return n}}function Ae(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Ne(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=Yt);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Fe(i),h=Fe(s);h>=1<f?new Ne([],r):p;if(p&&h>f&&aYt;m-=Yt){var g=f>>>m≫v=v.array[g]=je(v.array[g],r)}v.array[f>>>Yt&Gt]=p}if(s=h)a-=h,s-=h,u=Yt,l=null,y=y&&y.removeBefore(r,0,a);else if(a>o||h>>u≫if(b!==h>>>u&Gt)break;b&&(c+=(1<o&&(l=l.removeBefore(r,u,a-c)),l&&ha&&(a=l.size),i(u)||(l=l.map(function(e){return W(e)})),o.push(l)}return a>e.size&&(e=e.setSize(a)),De(e,t,o)}function Fe(e){return e>>Yt<=qt&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):He(r,o)}function Ye(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qe(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===Xt){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Jt?$t:Jt,n)},t}function Ze(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,Vt);return i===Vt?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Xt,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),o)})},r}function $e(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Je(e,t,n,r){var o=ct(e);return r&&(o.has=function(r){var o=e.get(r,Vt);return o!==Vt&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,Vt);return i!==Vt&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Xt,i),s=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return k(o,r?l:s++,c,i)}})},o}function Xe(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),m(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!=i||a!=a)return Xe(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var l=ct(e);return l.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(l.get=function(t,n){return(t=y(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===Jt?e:k(t,u-1,t===$t?void 0:e.value[1],e)})},l}function et(e,t,n,r){var o=ct(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Xt,i),u=!0,l=0;return new w(function(){var e,i,c;do{if((e=s.next()).done)return r||o===Jt?e:k(o,l++,o===$t?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===Xt?e:k(o,i,c,e)})},o}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(u,l){var c=this;u.__iterate(function(o,u){return(!t||l0}function it(e,n,r){var o=ct(e);return o.size=new x(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Jt,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function at(e,t){return A(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return ie(e.size),p(e)}function lt(e){return a(e)?n:s(e)?r:o}function ct(e){return Object.create((a(e)?N:s(e)?P:I).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function dt(e,t){return e>t?1:et?-1:0}function zt(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+Ft(re(e),re(t))|0}:function(e,t){r=r+Ft(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=ln(t,3432918353),t=ln(t<<15|t>>>-15,461845907),t=ln(t<<13|t>>>-13,5),t=ln((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=ln(t^t>>>13,3266489909))^t>>>16)}(o,r)}function Ft(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Bt=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ht="@@__IMMUTABLE_KEYED__@@",Ut="@@__IMMUTABLE_INDEXED__@@",Wt="@@__IMMUTABLE_ORDERED__@@",Yt=5,qt=1<r?{value:void 0,done:!0}:k(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:k(e,a,n[a])})},L.prototype[Wt]=!0,e(j,P),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(D(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!D(r))return new w(S);var o=0;return new w(function(){var t=r.next();return t.done?t:k(e,o++,t.value)})},e(R,P),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return k(e,o,r[o++])})},e(Q,P),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return G(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,b(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return G(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:k(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:V(this,e)},e(J,t),e(X,J),e(ee,J),e(te,J),J.Keyed=X,J.Indexed=ee,J.Set=te;var un,ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),dn="function"==typeof WeakMap;dn&&(un=new WeakMap);var hn=0,pn="__immutablehash__";"function"==typeof Symbol&&(pn=Symbol(pn));var yn=16,vn=255,mn=0,gn={};e(ae,X),ae.of=function(){var e=Bt.call(arguments,0);return me().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Vt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Vt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Vt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===Vt,a=n.next();if(a.done){var s=i?r:t,u=o(s);return u===s?t:u}Z(i||t&&t.set,"invalid keyPath");var l=a.value,c=i?Vt:t.get(l,Vt),f=e(c,n,r,o);return f===c?t:f===Vt?t.remove(l):(i?me():t).set(l,f)}(this,ht(e),t,n);return r===Vt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return ke(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Bt.call(arguments,1);return ke(this,e,t)},ae.prototype.mergeIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return ke(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Bt.call(arguments,1);return ke(this,Ee(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Be(nt(this,e))},ae.prototype.sortBy=function(e,t){return Be(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var bn="@@__IMMUTABLE_MAP__@@",_n=ae.prototype;_n[bn]=!0,_n.delete=_n.remove,_n.removeIn=_n.deleteIn,ue.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=kn)return function(e,t,n,r){e||(e=new d);for(var o=new de(e,re(n),[n,r]),i=0;i>>e)&Gt),i=this.bitmap;return 0==(i&o)?r:this.nodes[Oe(i&o-1)].get(e+Yt,t,n,r)},le.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,o){for(var i=0,a=new Array(qt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ce(e,i+1,a)}(e,d,l,s,p);if(c&&!p&&2===d.length&&_e(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&_e(p))return p;var y=e&&e===this.ownerID,v=c?p?l:l^u:l|u,m=c?p?Me(d,f,p,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&Gt,i=this.nodes[o];return i?i.get(e+Yt,t,n,r):r},ce.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=o===Vt,l=this.nodes,c=l[s];if(u&&!c)return this;var f=be(c,e,t+Yt,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Ae(e,t).set(0,n):Ae(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(Zt);return t>=Fe(e._capacity)?r=Le(r,e.__ownerID,0,t,n,i):o=Le(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ie(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},Ce.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ce.prototype.insert=function(e,t){return this.splice(e,0,t)},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Yt,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xe()},Ce.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ae(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ne([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-Yt,n))===a&&i)return this}if(i&&!o)return this;var s=je(this,e);if(!i)for(var u=0;u>>t≫if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-Yt,n))===i&&o===this.array.length-1)return this}var a=je(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Mn,Cn,Tn={};e(Be,ae),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Be.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ue()},Be.prototype.set=function(e,t){return We(this,e,t)},Be.prototype.remove=function(e){return We(this,e,Vt)},Be.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Be.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Be.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Be.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?He(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Be.isOrderedMap=Ke,Be.prototype[Wt]=!0,Be.prototype.delete=Be.prototype.remove,e(Ye,N),Ye.prototype.get=function(e,t){return this._iter.get(e,t)},Ye.prototype.has=function(e){return this._iter.has(e)},Ye.prototype.valueSeq=function(){return this._iter.valueSeq()},Ye.prototype.reverse=function(){var e=this,t=$e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ye.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ye.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Ye.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Jt,t),r=t?ut(this):0;return new w(function(){var o=n.next();return o.done?o:k(e,t?--r:r++,o.value,o)})},Ye.prototype[Wt]=!0,e(qe,P),qe.prototype.includes=function(e){return this._iter.includes(e)},qe.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(Ge,I),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(Ve,N),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var o=i(r);return k(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},qe.prototype.cacheResult=Ye.prototype.cacheResult=Ge.prototype.cacheResult=Ve.prototype.cacheResult=ft,e(pt,X),pt.prototype.toString=function(){return this.__toString(vt(this)+" {","}")},pt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},pt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},pt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=yt(this,me()))},pt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+vt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:yt(this,r)},pt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:yt(this,t)},pt.prototype.wasAltered=function(){return this._map.wasAltered()},pt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},pt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?yt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Nn=pt.prototype;Nn.delete=Nn.remove,Nn.deleteIn=Nn.removeIn=_n.removeIn,Nn.merge=_n.merge,Nn.mergeWith=_n.mergeWith,Nn.mergeIn=_n.mergeIn,Nn.mergeDeep=_n.mergeDeep,Nn.mergeDeepWith=_n.mergeDeepWith,Nn.mergeDeepIn=_n.mergeDeepIn,Nn.setIn=_n.setIn,Nn.update=_n.update,Nn.updateIn=_n.updateIn,Nn.withMutations=_n.withMutations,Nn.asMutable=_n.asMutable,Nn.asImmutable=_n.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return bt(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return bt(this,this._map.remove(e))},mt.prototype.clear=function(){return bt(this,this._map.clear())},mt.prototype.union=function(){var e=Bt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ct(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;ie(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ct(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):Tt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=b(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ct(o,i)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Mt;var Rn,An="@@__IMMUTABLE_STACK__@@",zn=Ot.prototype;zn[An]=!0,zn.withMutations=_n.withMutations,zn.asMutable=_n.asMutable,zn.asImmutable=_n.asImmutable,zn.wasAltered=_n.wasAltered,t.Iterator=w,Nt(t,{toArray:function(){ie(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new qe(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Ye(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){ie(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Be(this.toKeyedSeq())},toOrderedSet:function(){return kt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Ce(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Bt.call(arguments,0);return at(this,function(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?F(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new x(o);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(Xt)},every:function(e,t){ie(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return at(this,Je(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ie(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ie(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator($t)},map:function(e,t){return at(this,Ze(this,e,t))},reduce:function(e,t,n){var r,o;return ie(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,$e(this,!0))},slice:function(e,t){return at(this,Xe(this,e,t,!0))},some:function(e,t){return!this.every(xt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Jt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return p(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return V(this,e)},entrySeq:function(){var e=this;if(e._cache)return new x(e._cache);var t=e.toSeq().map(It).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(xt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(v)},flatMap:function(e,t){return at(this,function(e,t,n){var r=lt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=ht(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,Vt):Vt)===Vt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),o=(l(e)?Be():ae()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=lt(e);return o.map(function(t){return at(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,Vt)!==Vt},hasIn:function(e){return this.getIn(e,Vt)!==Vt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(Pt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?Lt(e):At)},minBy:function(e,t){return rt(this,t?Lt(t):At,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(xt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Xt,o),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===Xt?e:k(r,u,l,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(xt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=zt(this))}});var Fn=t.prototype;Fn[Kt]=!0,Fn[nn]=Fn.values,Fn.__toJS=Fn.toArray,Fn.__toStringMapper=jt,Fn.inspect=Fn.toSource=function(){return this.toString()},Fn.chain=Fn.flatMap,Fn.contains=Fn.includes,Nt(n,{flip:function(){return at(this,Qe(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Bn=n.prototype;return Bn[Ht]=!0,Bn[nn]=Fn.entries,Bn.__toJS=Fn.toObject,Bn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+jt(e)},Nt(r,{toKeyedSeq:function(){return new Ye(this,!1)},filter:function(e,t){return at(this,Je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,$e(this,!1))},slice:function(e,t){return at(this,Xe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(151),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,o({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,l.default)(n,(o(e={},d.default.root,!0),o(e,d.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(c.default,i({},p,{title:a,className:n}),u.default.createElement("span",{className:d.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,c.default.root);var l=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=i?"submit":"button";return s.default.createElement("button",o({type:f},a,{onMouseDown:l,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var u=y++;n=p||(p=s(t)),r=l.bind(null,n,u,!1),o=l.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function l(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}var c={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},d=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),p=null,y=0,v=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=d()),void 0===t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,o({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(l.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,c.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",i({},o,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=o(e,2),n=t[0],r=t[1],i=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},i)})}}]),t}();t.default=d},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),o=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var o=r,i=e.getLength();o=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return i(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,l.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,i){return new e(a.EditorState.push(this._editorState,o(t,n,i),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,i,s){var u=o(t,n,s);return new e(a.EditorState.createWithContent(u,i),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){switch(e){case m.BLOCK_TYPE.HEADER_ONE:return["h1"];case m.BLOCK_TYPE.HEADER_TWO:return["h2"];case m.BLOCK_TYPE.HEADER_THREE:return["h3"];case m.BLOCK_TYPE.HEADER_FOUR:return["h4"];case m.BLOCK_TYPE.HEADER_FIVE:return["h5"];case m.BLOCK_TYPE.HEADER_SIX:return["h6"];case m.BLOCK_TYPE.UNORDERED_LIST_ITEM:case m.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case m.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case m.BLOCK_TYPE.CODE:return["pre","code"];case m.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,l,c=Object.assign||function(e){for(var t=1;t",E=/^data-([a-z0-9-]+)$/,D=(o(s={},g,{element:"strong"}),o(s,b,{element:"code"}),o(s,_,{element:"em"}),o(s,w,{element:"del"}),o(s,k,{element:"ins"}),s),O=[g,_,k,w,b],M=(o(u={},m.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),o(u,m.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),C=(o(l={},m.ENTITY_TYPE.LINK,function(e,t){var n=M.hasOwnProperty(e)?M[e]:{},r=t.getData(),o={},i=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(r)[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value,f=r[c];if(n.hasOwnProperty(c))o[n[c]]=f;else E.test(c)&&(o[c]=f)}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return o}),o(l,m.ENTITY_TYPE.IMAGE,function(e,t){var n=M.hasOwnProperty(e)?M[e]:{},r=t.getData(),o={},i=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(r)[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value,f=r[c];if(n.hasOwnProperty(c))o[n[c]]=f;else E.test(c)&&(o[c]=f)}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return o}),l),T=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[D,O]),o=f(r,2),i=o[0],a=o[1];this.inlineStyles=i,this.styleOrder=a}return d(e,[{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")}}catch(e){f=!0,d=e}finally{try{!l&&v.return&&v.return()}finally{if(f)throw d}}}},{key:"writeEndTag",value:function(e){var t=i(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,o=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var l=s.value;n.unshift("")}}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var o=e.getCharacterList();return(0,m.getEntityRanges)(r,o).map(function(e){var r=f(e,2),o=r[0],i=r[1].map(function(e){var r=f(e,2),o=r[0],i=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(o),u=!0,l=!1,d=void 0;try{for(var h,v=t.styleOrder[Symbol.iterator]();!(u=(h=v.next()).done);u=!0){var g=h.value;if((g!==b||n!==m.BLOCK_TYPE.CODE)&&i.has(g)){var _=t.inlineStyles[g],w=_.element,k=_.attributes,E=_.style;if(null==w&&(w="span"),k=(0,p.default)(k),null!=E){var D=(0,y.default)(E);k=null==k?{style:D}:c({},k,{style:D})}s="<"+w+a(k)+">"+s+""}}}catch(e){l=!0,d=e}finally{try{!u&&v.return&&v.return()}finally{if(l)throw d}}return s}).join(""),s=o?v.Entity.get(o):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===m.ENTITY_TYPE.LINK?""+i+"":null!=u&&u===m.ENTITY_TYPE.IMAGE?"":i}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,o=n.characterMeta,i=!1;if(r===p&&(i=!0,r=""),"pre"===e.tagName){var l=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,o);r=l.text,o=l.characterMeta}else{var c=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var o=e.length;o--;)" "===e.charAt(o)&&" "===e.charAt(o-1)&&(e=e.slice(0,o)+e.slice(o+1),t=t.slice(0,o).concat(t.slice(o+1)));var i=(0,a.default)({text:e,characterMeta:t},p+" ",p);e=i.text,t=i.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+p,p);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,o);r=c.text,o=c.characterMeta}((r=r.split(p).join("\n")).length||i)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:o.toList(),depth:e.depth}))}),t.length?t:[d]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?l.BLOCK_TYPE.ORDERED_LIST_ITEM:l.BLOCK_TYPE.UNORDERED_LIST_ITEM;case"blockquote":return l.BLOCK_TYPE.BLOCKQUOTE;case"h1":return l.BLOCK_TYPE.HEADER_ONE;case"h2":return l.BLOCK_TYPE.HEADER_TWO;case"h3":return l.BLOCK_TYPE.HEADER_THREE;case"h4":return l.BLOCK_TYPE.HEADER_FOUR;case"h5":return l.BLOCK_TYPE.HEADER_FIVE;case"h6":return l.BLOCK_TYPE.HEADER_SIX;case"pre":return l.BLOCK_TYPE.CODE;case"figure":return l.BLOCK_TYPE.ATOMIC;default:return l.BLOCK_TYPE.UNSTYLED}}},{key:"processBlockElement",value:function(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case l.BLOCK_TYPE.UNORDERED_LIST_ITEM:case l.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),o=!_.hasOwnProperty(t),i={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};o&&(this.blockList.push(i),r&&(this.depth+=1)),this.blockStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),o&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],o=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(l.INLINE_STYLE.BOLD);case"i":case"em":return e.add(l.INLINE_STYLE.ITALIC);case"ins":return e.add(l.INLINE_STYLE.UNDERLINE);case"code":return e.add(l.INLINE_STYLE.CODE);case"del":return e.add(l.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(o=g[t](t,e)||o),n.styleStack.push(r),n.entityStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),w.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(p)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(p),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],o=s.CharacterMetadata.create({style:n,entity:r}),i=(0,u.Repeat)(o,e.length);t.textFragments.push({text:e,characterMeta:i})}},{key:"processNode",value:function(e){if(e.nodeType===c.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();b.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===c.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var o=e.text,i=e.characterMeta,a=t.length,s=r.length,u=[],l=i.slice(0,0),c=0,f=o.indexOf(t);-1!==f;)u.push(o.slice(c,f)+r),l=l.concat(i.slice(c,f),n(i.slice(f,f+1),s)),c=f+a,f=o.indexOf(t,c);return u.push(o.slice(c)),l=l.concat(i.slice(c)),{text:u.join(""),characterMeta:l}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var l=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=l,!l&&o&&o.forEach(a.appendChild,a),a}return o(t,d),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=this.attributes[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=s.name,l=s.value;t.push(u+(l?'="'+l.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}var c=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+c+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+c+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=c,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return o(t,d),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function o(e){return e.replace(/\)/g,"%29")}function i(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.getDepth(),o=this.currentBlock-1,i=this.blocks[o];i&&r(i.getType())&&i.getDepth()>n;)o-=1,i=this.blocks[o];return i&&i.getType()===t&&i.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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],o=n[1];if(!r)return"";var i=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return o.has(c)&&(i="**"+i+"**"),o.has(p)&&(i="++"+i+"++"),o.has(d)&&(i="_"+i+"_"),o.has(h)&&(i="~~"+i+"~~"),o.has(f)&&(i=t===u.BLOCK_TYPE.CODE?i:"`"+i+"`"),i}).join(""),y=r?l.Entity.get(r):null;if(null!=y&&y.getType()===u.ENTITY_TYPE.LINK){var v=y.getData(),m=v.url||"",g=v.title?' "'+i(v.title)+'"':"";return"["+s+"]("+o(m)+g+")"}if(null!=y&&y.getType()===u.ENTITY_TYPE.IMAGE){var b=y.getData(),_=b.src||"";return"!["+(b.alt?' "'+i(b.alt)+'"':"")+"]("+o(_)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=i.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,o=n(203),i=(r=o)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=c({},e||d),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function o(e,t){if(this.options=c({},t||d),this.links=e,this.rules=p.normal,this.renderer=this.options.renderer||new i,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=p.breaks:this.rules=p.gfm:this.options.pedantic&&(this.rules=p.pedantic)}function i(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=c({},e||d),this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=(o=o.source||o).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,o),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),l=Object.prototype.hasOwnProperty,c=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=c({},h),h.gfm=c({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,o,i,a,s,u,l,c,f;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(i=this.rules.lheading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:"="===i[2]?1:2,text:i[1]});else if(i=this.rules.hr.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"hr"});else if(i=this.rules.blockquote.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"blockquote_start"}),i=i[0].replace(/^ *> ?/gm,""),this.token(i,t,!0),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),a=i[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(i=i[0].match(this.rules.item)).length,c=0;c1&&s.length>1||(e=i.slice(c+1).join("\n")+e,c=f-1)),o=r||/\n\n(?!\s*$)/.test(u),c!==f-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),this.tokens.push({type:o?"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&&t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),this.tokens.links[i[1].toLowerCase()]={href:i[2],title:i[3]};else if(t&&(i=this.rules.paragraph.exec(e)))e=e.substring(i[0].length),this.tokens.push({type:"paragraph",text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1]});else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"text",text:i[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var p={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};p.link=s(p.link)("inside",p._inside)("href",p._href)(),p.reflink=s(p.reflink)("inside",p._inside)(),p.normal=c({},p),p.pedantic=c({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=c({},p.normal,{escape:s(p.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(p.text)("]|","~+]|")()}),p.breaks=c({},p.gfm,{br:s(p.br)("{2,}","*")(),text:s(p.gfm.text)("{2,}","*")()}),o.rules=p,o.parse=function(e,t,n){return new o(t,n).parse(e)},o.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},o.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},i.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},i.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},i.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},i.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},i.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},i.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},i.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},i.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},i.prototype.em=function(e){return new u.ElementNode("em",[],[e])},i.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},i.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},i.prototype.del=function(e){return new u.ElementNode("del",[],[e])},i.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},i.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},i.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},i.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new o(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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 o=new u.FragmentNode;"list_item_end"!==this.next().type;)o.appendChild(this.tok());return this.renderer.listitem(o);case"paragraph":return this.renderer.paragraph(this.inline.parse(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};var y={parse:function(e,t){t=c({},d,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return i.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(i(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),a=(l=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},cw5X:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=o&&i2&&void 0!==arguments[2]?arguments[2]:i.default.localeData().firstDayOfWeek();if(!i.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===a.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),s=(r.day()+7-n)%7,u=(n+6-o.day())%7,l=r.clone().subtract(s,"day"),c=o.clone().add(u,"day").diff(l,"days")+1,f=l.clone(),d=[],h=0;h=s&&h1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?o.a.Children.map(this.props.children,function(t){return t.type===s.a?o.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return o.a.createElement("div",l({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},h8mb:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=u(n("4kv9")),o=u(n("UZlY")),i=n("mtpF"),a=u(n("aQzc")),s=u(n("UtRD"));function u(e){return e&&e.__esModule?e:{default:e}}t.default={create:function(e){var t={},n=Object.keys(e),r=(o.default.get(i.GLOBAL_CACHE_KEY)||{}).namespace,s=void 0===r?"":r;return n.forEach(function(e){var n=(0,a.default)(s,e);t[e]=n}),t},resolve:function(e){var t=(0,r.default)(e,1/0),n=(0,s.default)(t),o=n.classNames,i=n.hasInlineStyles,a=n.inlineStyles,u={className:o.map(function(e,t){return String(e)+" "+String(e)+"_"+String(t+1)}).join(" ")};return i&&(u.style=a),u}}},hAtu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("GiK3"),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){return function(e){return i.default.createElement("svg",e,i.default.createElement("path",{d:"M694.4 242.4l249.1 249.1c11 11 11 21 0 32L694.4 772.7c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210.1-210.1H67.1c-13 0-23-10-23-23s10-23 23-23h805.4L662.4 274.5c-21-21.1 11-53.1 32-32.1z"}))}}();a.defaultProps={viewBox:"0 0 1000 1000"},t.default=a},i3rX:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){var n;return t&&!0===t.clone&&r(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e}function a(e,t,n){var o=e.slice();return t.forEach(function(t,a){void 0===o[a]?o[a]=i(t,n):r(t)?o[a]=s(e[a],t,n):-1===e.indexOf(t)&&o.push(i(t,n))}),o}function s(e,t,n){var o=Array.isArray(t);return o===Array.isArray(e)?o?((n||{arrayMerge:a}).arrayMerge||a)(e,t,n):function(e,t,n){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=i(e[t],n)}),Object.keys(t).forEach(function(a){r(t[a])&&e[a]?o[a]=s(e[a],t[a],n):o[a]=i(t[a],n)}),o}(e,t,n):i(t,n)}s.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return s(e,n,t)})};var u=s;e.exports=u},i7Em:function(e,t,n){"use strict";var r=n("teQR"),o=r("%Object%"),i=r("%TypeError%"),a=r("%String%"),s=n("bvnS"),u=n("No8i"),l=n("9+gG"),c=n("xeqp"),f=n("H1lJ"),d=n("vRXZ"),h=n("wSG+"),p=n("XfW5"),y={ToPrimitive:h,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return u(t)?0:0!==t&&l(t)?c(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(u(t)||0===t||!l(t))return 0;var n=c(t)*Math.floor(Math.abs(t));return f(n,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:d,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:u(e)&&u(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(p(e,n)&&!t[n])return!1;var r=p(e,"[[Value]]"),o=p(e,"[[Get]]")||p(e,"[[Set]]");if(r&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Get]]")&&!p(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Value]]")&&!p(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(s(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(p(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),p(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),p(e,"value")&&(t["[[Value]]"]=e.value),p(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),p(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(p(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new i("setter must be a function");t["[[Set]]"]=r}if((p(t,"[[Get]]")||p(t,"[[Set]]"))&&(p(t,"[[Value]]")||p(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=y},iB3Z:function(e,t,n){var r=n("PJh5"),o=n("LlVb"),i=n("8qqi");e.exports={momentObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return o.isValidMoment(e)},"Moment"),momentString:i.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return o.isValidMoment(r(e))},"Moment"),momentDurationObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isDuration(e)},"Duration")}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=n("saAw"),u=n("OE/d"),l=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},o.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},o.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return o.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Additional Comments"),o.a.createElement("div",{className:"control"},o.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return o.a.createElement("div",null,o.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),o.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?o.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),o.a.createElement(s.a,{visible:this.state.loading})):o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You must be logged in to flag this observation."),o.a.createElement("p",null,"Please ",o.a.createElement("a",{href:"/login"},"login")," or ",o.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},c.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jIVq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCustomizableCalendarDay=t.selectedStyles=t.lastInRangeStyles=t.selectedSpanStyles=t.hoveredSpanStyles=t.blockedOutOfRangeStyles=t.blockedCalendarStyles=t.blockedMinNightsStyles=t.highlightedCalendarStyles=t.outsideStyles=t.defaultStyles=void 0;var r=Object.assign||function(e){for(var t=1;t=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},klZv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(0,o.default)(e.clone().add(1,"month"),t)};var r=i(n("PJh5")),o=i(n("lmFy"));function i(e){return e&&e.__esModule?e:{default:e}}},kxzG:function(e,t,n){var r=n("yCNF"),o=n("6MiT"),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},lWrn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(r.default)};var r=i(n("/Tzs")),o=i(n("/z+2"));function i(e){return e&&e.__esModule?e:{default:e}}},"lb+b":function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},lf1y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0&&"[object Function]"===r.call(e.callee)),n}},t0Wu:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n("fXO7"),i=n("vRXZ"),a=n("lb+b"),s=n("lq6M");e.exports=function(e){if(o(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!==n&&void 0!==n){if(!i(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var u=t.call(e,n);if(o(u))return u;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a0&&this.setState({visibleDays:(0,i.default)({},S,P)})}}()},{key:"componentWillUpdate",value:function(){return function(){this.today=(0,c.default)()}}()},{key:"onDayClick",value:function(){return function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({date:e}))}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,i.default)({},r,o)})}}}()},{key:"onDayMouseLeave",value:function(){return function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,i.default)({},n,r)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,u={};Object.keys(s).sort().slice(0,n+1).forEach(function(e){u[e]=s[e]});var l=a.clone().subtract(1,"month"),c=(0,m.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,i.default)({},u,this.getModifiers(c))},function(){t(l.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,u={};Object.keys(s).sort().slice(1).forEach(function(e){u[e]=s[e]});var l=a.clone().add(n,"month"),c=(0,m.default)(l,1,r),f=a.clone().add(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},u,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,o=n.date,i=n.numberOfMonths,a=e.clone().startOf("month");if(o&&(a=o.clone()),this.isBlocked(a)){for(var s=[],u=e.clone().add(i-1,"months").endOf("month"),l=a.clone();!(0,v.default)(l,u);)l=l.clone().add(1,"day"),s.push(l);var c=s.filter(function(e){return!t.isBlocked(e)&&(0,v.default)(e,a)});if(c.length>0){var f=r(c,1);a=f[0]}}return a}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,b.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,m.default)(a,o,i))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,u=this.state,l=u.currentMonth,c=u.visibleDays,f=l,d=o;if(s===E.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,g.default)(t,f,d,a))return e;var h=(0,b.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.add(n),(0,i.default)({},t,M({},r,(0,i.default)({},o,M({},h,a))))},p);else{var y=(0,_.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.add(n),p=(0,i.default)({},p,M({},y,(0,i.default)({},v,M({},h,m))))}return p}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,u=this.state,l=u.currentMonth,c=u.visibleDays,f=l,d=o;if(s===E.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,g.default)(t,f,d,a))return e;var h=(0,b.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.delete(n),(0,i.default)({},t,M({},r,(0,i.default)({},o,M({},h,a))))},p);else{var y=(0,_.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.delete(n),p=(0,i.default)({},p,M({},y,(0,i.default)({},v,M({},h,m))))}return p}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return(0,y.default)(e,t)}}()},{key:"isSelected",value:function(){return function(e){var t=this.props.date;return(0,y.default)(e,t)}}()},{key:"isToday",value:function(){return function(e){return(0,y.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||c.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||c.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,s=e.navNext,u=e.onOutsideClick,l=e.withPortal,c=e.focused,f=e.enableOutsideDays,d=e.hideKeyboardShortcutsPanel,h=e.daySize,p=e.firstDayOfWeek,y=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,g=e.renderMonthElement,b=e.calendarInfoPosition,_=e.isFocused,w=e.isRTL,k=e.phrases,S=e.dayAriaLabelFormat,E=e.onBlur,O=e.showKeyboardShortcuts,M=e.weekDayFormat,C=e.verticalHeight,T=e.noBorder,N=e.transitionDuration,P=e.verticalBorderSpacing,I=e.horizontalMonthPadding,x=this.state,L=x.currentMonth,j=x.visibleDays;return a.default.createElement(D.default,{orientation:n,enableOutsideDays:f,modifiers:j,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:l,hidden:!c,hideKeyboardShortcutsPanel:d,initialVisibleMonth:function(){return L},firstDayOfWeek:p,onOutsideClick:u,navPrev:i,navNext:s,renderMonthText:o,renderCalendarDay:y,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:g,calendarInfoPosition:b,isFocused:_,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:E,phrases:k,daySize:h,isRTL:w,showKeyboardShortcuts:O,weekDayFormat:M,dayAriaLabelFormat:S,verticalHeight:C,noBorder:T,transitionDuration:N,verticalBorderSpacing:P,horizontalMonthPadding:I})}}()}]),t}();t.default=N,N.propTypes=C,N.defaultProps=T},teQR:function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,s="undefined"==typeof Uint8Array?void 0:i(Uint8Array),u={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in u))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===u[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return u[n]}},uLhX:function(e,t,n){var r=n("NkRn"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},umyC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("GiK3"),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){return function(e){return i.default.createElement("svg",e,i.default.createElement("path",{d:"M336.2 274.5l-210.1 210h805.4c13 0 23 10 23 23s-10 23-23 23H126.1l210.1 210.1c11 11 11 21 0 32-5 5-10 7-16 7s-11-2-16-7l-249.1-249c-11-11-11-21 0-32l249.1-249.1c21-21.1 53 10.9 32 32z"}))}}();a.defaultProps={viewBox:"0 0 1000 1000"},t.default=a},"uy+U":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n("KSGD")),o=v(n("iB3Z")),i=n("0IMB"),a=n("Nip3"),s=v(n("XZy4")),u=v(n("ykZC")),l=v(n("3s8g")),c=v(n("vWaV")),f=v(n("UnHD")),d=v(n("Kg4d")),h=v(n("0z1n")),p=v(n("CHcs")),y=v(n("Tb8W"));function v(e){return e&&e.__esModule?e:{default:e}}t.default={startDate:o.default.momentObj,endDate:o.default.momentObj,onDatesChange:r.default.func.isRequired,focusedInput:u.default,onFocusChange:r.default.func.isRequired,onClose:r.default.func,startDateId:r.default.string.isRequired,startDatePlaceholderText:r.default.string,endDateId:r.default.string.isRequired,endDatePlaceholderText:r.default.string,disabled:f.default,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDates:r.default.bool,showDefaultInputIcon:r.default.bool,inputIconPosition:l.default,customInputIcon:r.default.node,customArrowIcon:r.default.node,customCloseIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,keepFocusOnInput:r.default.bool,renderMonthText:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:c.default,anchorDirection:d.default,openDirection:h.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,daySize:i.nonNegativeInteger,isRTL:r.default.bool,firstDayOfWeek:p.default,initialVisibleMonth:r.default.func,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDates:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:y.default,hideKeyboardShortcutsPanel:r.default.bool,verticalHeight:i.nonNegativeInteger,transitionDuration:i.nonNegativeInteger,verticalSpacing:i.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,minimumNights:r.default.number,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(a.DateRangePickerPhrases)),dayAriaLabelFormat:r.default.string}},v0MV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("0IMB");t.default=(0,a.and)([i.default.instanceOf(Set),function(){return function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},wmWA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},x5U2:function(e,t,n){"use strict";var r=n("bidq"),o=n("PiFy"),i=n("9MlZ")(),a=Object,s=o.call(Function.call,Array.prototype.push),u=o.call(Function.call,Object.prototype.propertyIsEnumerable),l=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(void 0===(n=e)||null===n)throw new TypeError("target must be an object");var n,o,c,f,d,h,p,y,v=a(e);for(o=1;o0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"To")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"CC/BCC")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Subject")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"}),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("label",{className:"checkbox"},o.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Message")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control is-expanded"},o.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Message")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control is-expanded"},o.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}),o.a.createElement("p",{className:"help"},"You may use ",o.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return o.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},o.a.createElement("h5",{className:"title is-5"},"Message Preview"),o.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?o.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?o.a.createElement("table",{className:"table"},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("th",null,"Category"),o.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?o.a.createElement("tr",null,o.a.createElement("th",null,"Found Near"),o.a.createElement("td",null,t.formatted)):null,o.a.createElement("tr",null,o.a.createElement("th",null,"Date Collected"),o.a.createElement("td",null,u()(e.date.date).format("LL"))),o.a.createElement("tr",null,o.a.createElement("th",{colSpan:2},o.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?o.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):o.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return o.a.createElement("div",{className:"column"},o.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return o.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},o.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),o.a.createElement("div",{className:"modal-card modal-card-lg"},o.a.createElement(l.a,{visible:this.state.loading}),o.a.createElement("header",{className:"modal-card-head"},o.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),o.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),o.a.createElement("section",{className:"modal-card-body"},o.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),o.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?o.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):o.a.createElement("div",{className:"flexbox flex-space-between"},o.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),o.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},xeqp:function(e,t){e.exports=function(e){return e>=0?1:-1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=c||f||Function("return this")(),h=Object.prototype.toString,p=Math.max,y=Math.min,v=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o,i,a,s,u,l,c=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function _(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function w(){var e=v();if(_(e))return k(e);u=setTimeout(w,function(e){var n=t-(e-l);return d?y(n,a-(e-c)):n}(e))}function k(e){return u=void 0,h&&o?b(e):(o=i=void 0,s)}function S(){var e=v(),n=_(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(w,t),f?b(e):s}(l);if(d)return u=setTimeout(w,t),b(l)}return void 0===u&&(u=setTimeout(w,t)),s}return t=g(t)||0,m(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),c=0,o=l=i=u=void 0},S.flush=function(){return void 0===u?s:k(v())},S}}).call(t,n("DuR2"))},yCNF:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},yYPf:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{-webkit-transition:height .2s ease-in-out;-moz-transition:height .2s ease-in-out;transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}",""])},ykZC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6TBu");t.default=i.default.oneOf([a.START_DATE,a.END_DATE])},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,E=function(){return function e(t){if(!(this instanceof e))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 k(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){E.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var D=void 0!==o.ResizeObserver?o.ResizeObserver:E;t.default=D}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/1.fdf7ae7a5834c3106b49.js b/public/js/1.fdf7ae7a5834c3106b49.js deleted file mode 100644 index fe5e48c9..00000000 --- a/public/js/1.fdf7ae7a5834c3106b49.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([1],{"+1gT":function(e,t,n){"use strict";var r=n("x5U2");e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,u=e.offsetHeight,l="width"===t?s:u;n||(l-=parseFloat(a["padding"+o])+parseFloat(a["padding"+i])+parseFloat(a["border"+o+"Width"])+parseFloat(a["border"+i+"Width"]));r&&(l+=parseFloat(a["margin"+o])+parseFloat(a["margin"+i]));return l}},"/Tzs":function(e,t,n){e.exports=n("h8mb").default},"/plk":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;si&&(a=0),n.setState({previousIndex:o,currentIndex:a,isTransitioning:a!==o,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new l.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,o){var i=n.state,a=i.scrollingUpDown,s=i.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var l=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(l,o)}},n._handleSwiping=function(e,t,r,o){var i=n.state,a=i.galleryWidth,s=i.isTransitioning,u=i.scrollingUpDown,l=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var c=t<0?1:-1,f=o/a*100;Math.abs(f)>=100&&(f=100);var d={transition:"transform "+l+"ms ease-out"};n.setState({offsetPercentage:c*f,style:d})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return i.default.createElement("div",{className:"image-gallery-image"},e.imageSet?i.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return i.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),i.default.createElement("img",{alt:e.originalAlt,src:e.original})):i.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&i.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return i.default.createElement("div",{className:"image-gallery-thumbnail-inner"},i.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&i.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this._intervalId){var n=this.props,r=n.slideInterval,o=n.slideDuration;this.setState({isPlaying:!0}),this._intervalId=window.setInterval(function(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,o)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;d.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;d.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,o=n.scrollingLeftRight,i=Math.abs(e);Math.abs(t)>i&&!r&&!o?this.setState({scrollingUpDown:!0}):o||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,o=n.isTransitioning,i=r;!this._sufficientSwipeOffset()&&!t||o||(i+=e),e<0?this._canSlideLeft()||(i=r):this._canSlideRight()||(i=r),this._unthrottledSlideToIndex(i)}},{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.currentIndex0&&(er&&this._setThumbsTranslate(n+i))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,o=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){if(this._thumbnails.scrollHeight<=r)return 0;o=this._thumbnails.scrollHeight-r}else{if(this._thumbnails.scrollWidth<=n||n<=0)return 0;o=this._thumbnails.scrollWidth-n}return e*(o/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,o=t.previousIndex,i=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?i=-100+r:1===n&&0===e&&r<0&&(i=100+r),n!==o?0===o&&0===e&&0===r&&"left"===this.direction?i=100:1===o&&1===e&&0===r&&"right"===this.direction&&(i=-100):0===n&&1===e&&0===r&&"left"===this.direction?i=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(i=100),i}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,o=t.currentIndex;return n&&!(e===r||e===o)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,o=this.props,i=o.infinite,a=o.items,s=o.useTranslate3D,u=o.isRTL,l=-100*n,c=a.length-1,f=(l+100*e)*(u?-1:1)+r;i&&a.length>2&&(0===n&&e===c?f=-100*(u?-1:1)+r:n===c&&0===e&&(f=100*(u?-1:1)+r)),i&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var d="translate("+f+"%, 0)";return s&&(d="translate3d("+f+"%, 0, 0)"),{WebkitTransform:d,MozTransform:d,msTransform:d,OTransform:d,transform:d}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,o=this.state.thumbsTranslate,i=r?-1*o:o;return this._isThumbnailHorizontal()?(e="translate(0, "+o+"px)",n&&(e="translate3d(0, "+o+"px, 0)")):(e="translate("+i+"px, 0)",n&&(e="translate3d("+i+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,o=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,l=t.scrollingLeftRight,c=this.props,f=c.infinite,d=c.preventDefaultTouchmoveEvent,h=c.isRTL,p=this._getThumbnailStyle(),y=this.props.thumbnailPosition,v=this._slideLeft,m=this._slideRight,g=[],b=[],_=[];this.props.items.forEach(function(t,o){var a=e._getAlignmentClassName(o),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",l=t.renderItem||e.props.renderItem||e._renderItem,c=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,d=!e.props.lazyLoad||a||e._lazyLoaded[o];d&&e.props.lazyLoad&&(e._lazyLoaded[o]=!0);var h=e._getSlideStyle(o),p=i.default.createElement("div",{key:o,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},d?l(t):i.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(o)&&g.push(p):g.push(p),e.props.showThumbnails&&b.push(i.default.createElement("a",{key:o,role:"button","aria-pressed":n===o?"true":"false","aria-label":"Go to Slide "+(o+1),className:"image-gallery-thumbnail"+(n===o?" active":"")+u,onClick:function(t){return e._onThumbnailClick(t,o)}},c(t))),e.props.showBullets){_.push(i.default.createElement("button",{key:o,type:"button",className:["image-gallery-bullet",n===o?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:o,currentIndex:n}),e.slideToIndex.call(e,o,r)},"aria-pressed":n===o?"true":"false","aria-label":"Go to Slide "+(o+1)}))}});var w=i.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+y+" "+(h?"image-gallery-rtl":"")},this.props.renderCustomControls&&this.props.renderCustomControls(),this.props.showFullscreenButton&&this.props.renderFullscreenButton(this._toggleFullScreen,o),this.props.showPlayButton&&this.props.renderPlayPauseButton(this._togglePlay,u),this._canNavigate()?[this.props.showNav&&i.default.createElement("span",{key:"navigation"},this.props.renderLeftNav(v,!this._canSlideLeft()),this.props.renderRightNav(m,!this._canSlideRight())),i.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:d||l},i.default.createElement("div",{className:"image-gallery-slides"},g))]:i.default.createElement("div",{className:"image-gallery-slides"},g),this.props.showBullets&&i.default.createElement("div",{className:"image-gallery-bullets"},i.default.createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},_)),this.props.showIndex&&i.default.createElement("div",{className:"image-gallery-index"},i.default.createElement("span",{className:"image-gallery-index-current"},this.state.currentIndex+1),i.default.createElement("span",{className:"image-gallery-index-separator"},this.props.indexSeparator),i.default.createElement("span",{className:"image-gallery-index-total"},this.props.items.length))),k=["image-gallery",this.props.additionalClass,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return i.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:k,"aria-live":"polite"},i.default.createElement("div",{className:"image-gallery-content"+(o?" fullscreen":"")},("bottom"===y||"right"===y)&&w,this.props.showThumbnails&&i.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+y+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},i.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},i.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:p,"aria-label":"Thumbnail Navigation"},b))),("top"===y||"left"===y)&&w))}}]),t}();h.propTypes={flickThreshold:c.default.number,items:c.default.array.isRequired,showNav:c.default.bool,autoPlay:c.default.bool,lazyLoad:c.default.bool,infinite:c.default.bool,showIndex:c.default.bool,showBullets:c.default.bool,showThumbnails:c.default.bool,showPlayButton:c.default.bool,showFullscreenButton:c.default.bool,disableThumbnailScroll:c.default.bool,disableArrowKeys:c.default.bool,disableSwipe:c.default.bool,useBrowserFullscreen:c.default.bool,preventDefaultTouchmoveEvent:c.default.bool,defaultImage:c.default.string,indexSeparator:c.default.string,thumbnailPosition:c.default.string,startIndex:c.default.number,slideDuration:c.default.number,slideInterval:c.default.number,swipeThreshold:c.default.number,swipingTransitionDuration:c.default.number,onSlide:c.default.func,onScreenChange:c.default.func,onPause:c.default.func,onPlay:c.default.func,onClick:c.default.func,onImageLoad:c.default.func,onImageError:c.default.func,onTouchMove:c.default.func,onTouchEnd:c.default.func,onTouchStart:c.default.func,onMouseOver:c.default.func,onMouseLeave:c.default.func,onThumbnailError:c.default.func,onThumbnailClick:c.default.func,renderCustomControls:c.default.func,renderLeftNav:c.default.func,renderRightNav:c.default.func,renderPlayPauseButton:c.default.func,renderFullscreenButton:c.default.func,renderItem:c.default.func,stopPropagation:c.default.bool,additionalClass:c.default.string,useTranslate3D:c.default.bool,isRTL:c.default.bool},h.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(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return i.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"0z1n":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6TBu");t.default=i.default.oneOf([a.OPEN_DOWN,a.OPEN_UP])},"2ZMP":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n0&&(F||j||a!==w)){var q=g||this.today;K=this.deleteModifierFromRange(K,q,q.clone().add(w,"days"),"blocked-minimum-nights"),K=this.deleteModifierFromRange(K,q,q.clone().add(w,"days"),"blocked")}(F||L)&&(0,f.default)(T).forEach(function(e){Object.keys(e).forEach(function(e){var n=(0,c.default)(e),r=!1;(F||P)&&(s(n)?(K=t.addModifier(K,n,"blocked-out-of-range"),r=!0):K=t.deleteModifier(K,n,"blocked-out-of-range")),(F||I)&&(u(n)?(K=t.addModifier(K,n,"blocked-calendar"),r=!0):K=t.deleteModifier(K,n,"blocked-calendar")),K=r?t.addModifier(K,n,"blocked"):t.deleteModifier(K,n,"blocked"),(F||x)&&(K=l(n)?t.addModifier(K,n,"highlighted-calendar"):t.deleteModifier(K,n,"highlighted-calendar"))})}),a>0&&n&&o===N.END_DATE&&(K=this.addModifierToRange(K,n,n.clone().add(a,"days"),"blocked-minimum-nights"),K=this.addModifierToRange(K,n,n.clone().add(a,"days"),"blocked"));var G=(0,c.default)();if((0,m.default)(this.today,G)||(K=this.deleteModifier(K,this.today,"today"),K=this.addModifier(K,G,"today"),this.today=G),Object.keys(K).length>0&&this.setState({visibleDays:(0,i.default)({},T,K)}),F||d!==D){var V=R(d,o);this.setState({phrases:(0,i.default)({},d,{chooseAvailableDate:V})})}}}()},{key:"onDayClick",value:function(){return function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,i=n.onBlur,a=n.focusedInput,s=n.onFocusChange,u=n.onClose,l=n.onDatesChange,c=n.startDateOffset,f=n.endDateOffset,d=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var h=this.props,p=h.startDate,v=h.endDate;if(c||f)p=(0,k.default)(c,e),v=(0,k.default)(f,e),r||(s(null),u({startDate:p,endDate:v}));else if(a===N.START_DATE){var m=v&&v.clone().subtract(o,"days"),_=(0,b.default)(m,e)||(0,g.default)(p,v),w=d===N.END_DATE;w&&_||(p=e,_&&(v=null)),w&&!_?(s(null),u({startDate:p,endDate:v})):w||s(N.END_DATE)}else if(a===N.END_DATE){var S=p&&p.clone().add(o,"days");p?(0,y.default)(e,S)?(v=e,r||(s(null),u({startDate:p,endDate:v}))):d!==N.START_DATE&&(p=e,v=null):(v=e,s(N.START_DATE))}l({startDate:p,endDate:v}),i()}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,a=t.minimumNights,s=t.startDateOffset,u=t.endDateOffset,l=this.state,c=l.hoverDate,f=l.visibleDays,d=null;if(o){var h=s||u,p={};if(h){var y=(0,k.default)(s,e),v=(0,k.default)(u,e,function(e){return e.add(1,"day")});d={start:y,end:v},this.state.dateOffset&&this.state.dateOffset.start&&this.state.dateOffset.end&&(p=this.deleteModifierFromRange(p,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),p=this.addModifierToRange(p,y,v,"hovered-offset")}if(!h){if(p=this.deleteModifier(p,c,"hovered"),p=this.addModifier(p,e,"hovered"),n&&!r&&o===N.END_DATE){if((0,g.default)(c,n)){var _=c.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,_,"hovered-span")}if(!this.isBlocked(e)&&(0,g.default)(e,n)){var w=e.clone().add(1,"day");p=this.addModifierToRange(p,n,w,"hovered-span")}}if(!n&&r&&o===N.START_DATE&&((0,b.default)(c,r)&&(p=this.deleteModifierFromRange(p,c,r,"hovered-span")),!this.isBlocked(e)&&(0,b.default)(e,r)&&(p=this.addModifierToRange(p,e,r,"hovered-span"))),n){var S=n.clone().add(1,"day"),E=n.clone().add(a+1,"days");if(p=this.deleteModifierFromRange(p,S,E,"after-hovered-start"),(0,m.default)(e,n)){var D=n.clone().add(1,"day"),O=n.clone().add(a+1,"days");p=this.addModifierToRange(p,D,O,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:d,visibleDays:(0,i.default)({},f,p)})}}}}()},{key:"onDayMouseLeave",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=this.state,s=a.hoverDate,u=a.visibleDays,l=a.dateOffset;if(!this.isTouchDevice&&s){var c={};if(c=this.deleteModifier(c,s,"hovered"),l&&(c=this.deleteModifierFromRange(c,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!r&&(0,g.default)(s,n)){var f=s.clone().add(1,"day");c=this.deleteModifierFromRange(c,n,f,"hovered-span")}if(!n&&r&&(0,g.default)(r,s)&&(c=this.deleteModifierFromRange(c,s,r,"hovered-span")),n&&(0,m.default)(e,n)){var d=n.clone().add(1,"day"),h=n.clone().add(o+1,"days");c=this.deleteModifierFromRange(c,d,h,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,i.default)({},u,c)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,u={};Object.keys(s).sort().slice(0,n+1).forEach(function(e){u[e]=s[e]});var l=a.clone().subtract(2,"months"),c=(0,_.default)(l,1,r,!0),f=a.clone().subtract(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},u,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,u={};Object.keys(s).sort().slice(1).forEach(function(e){u[e]=s[e]});var l=a.clone().add(n+1,"month"),c=(0,_.default)(l,1,r,!0),f=a.clone().add(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},u,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===N.VERTICAL_SCROLLABLE,i=(0,_.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===N.VERTICAL_SCROLLABLE,i=(0,_.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onMultiplyScrollableMonths",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,a=r.visibleDays,s=Object.keys(a).length,u=o.clone().add(s,"month"),l=(0,_.default)(u,t,n,!0);this.setState({visibleDays:(0,i.default)({},a,this.getModifiers(l))})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,o=n.startDate,i=n.endDate,a=n.focusedInput,s=n.minimumNights,u=n.numberOfMonths,l=e.clone().startOf("month");if(a===N.START_DATE&&o?l=o.clone():a===N.END_DATE&&!i&&o?l=o.clone().add(s,"days"):a===N.END_DATE&&i&&(l=i.clone()),this.isBlocked(l)){for(var c=[],f=e.clone().add(u-1,"months").endOf("month"),d=l.clone();!(0,g.default)(d,f);)d=d.clone().add(1,"day"),c.push(d);var h=c.filter(function(e){return!t.isBlocked(e)});h.length>0&&(l=r(h,1)[0])}return l}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,S.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,i=e.orientation,a=e.startDate,s=(n||(a?function(){return a}:function(){return t.today}))(),u=i===N.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,_.default)(s,r,o,u))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,u=this.state,l=u.currentMonth,c=u.visibleDays,f=l,d=o;if(s===N.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,w.default)(t,f,d,a))return e;var h=(0,S.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.add(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},h,a))))},p);else{var y=(0,E.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.add(n),p=(0,i.default)({},p,x({},y,(0,i.default)({},v,x({},h,m))))}return p}}()},{key:"addModifierToRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,b.default)(i,n);)o=this.addModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,u=this.state,l=u.currentMonth,c=u.visibleDays,f=l,d=o;if(s===N.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,w.default)(t,f,d,a))return e;var h=(0,S.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.delete(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},h,a))))},p);else{var y=(0,E.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.delete(n),p=(0,i.default)({},p,x({},y,(0,i.default)({},v,x({},h,m))))}return p}}()},{key:"deleteModifierFromRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,b.default)(i,n);)o=this.deleteModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"doesNotMeetMinimumNights",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,i=t.minimumNights;if(o!==N.END_DATE)return!1;if(n){var a=e.diff(n.clone().startOf("day").hour(12),"days");return a=0}return r((0,c.default)(e).subtract(i,"days"))}}()},{key:"isDayAfterHoveredStartDate",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,v.default)(i,e)&&o>0&&(0,m.default)(i,n)}}()},{key:"isEndDate",value:function(){return function(e){var t=this.props.endDate;return(0,m.default)(e,t)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,m.default)(e,t)}}()},{key:"isInHoveredSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,i=!!n&&!r&&(e.isBetween(n,o)||(0,m.default)(o,e)),a=!!r&&!n&&(e.isBetween(o,r)||(0,m.default)(o,e)),s=o&&!this.isBlocked(o);return(i||a)&&s}}()},{key:"isInSelectedSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}}()},{key:"isLastInRange",value:function(){return function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,v.default)(e,t)}}()},{key:"isStartDate",value:function(){return function(e){var t=this.props.startDate;return(0,m.default)(e,t)}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}}()},{key:"isToday",value:function(){return function(e){return(0,m.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||c.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||c.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,s=e.navNext,u=e.noNavButtons,l=e.onOutsideClick,c=e.withPortal,f=e.enableOutsideDays,d=e.firstDayOfWeek,h=e.hideKeyboardShortcutsPanel,p=e.daySize,y=e.focusedInput,v=e.renderCalendarDay,m=e.renderDayContents,g=e.renderCalendarInfo,b=e.renderMonthElement,_=e.calendarInfoPosition,w=e.onBlur,k=e.isFocused,S=e.showKeyboardShortcuts,E=e.isRTL,D=e.weekDayFormat,O=e.dayAriaLabelFormat,M=e.verticalHeight,C=e.noBorder,T=e.transitionDuration,N=e.verticalBorderSpacing,I=e.horizontalMonthPadding,x=this.state,L=x.currentMonth,j=x.phrases,R=x.visibleDays;return a.default.createElement(P.default,{orientation:n,enableOutsideDays:f,modifiers:R,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:r,renderMonthText:o,withPortal:c,hidden:!y,initialVisibleMonth:function(){return L},daySize:p,onOutsideClick:l,navPrev:i,navNext:s,noNavButtons:u,renderCalendarDay:v,renderDayContents:m,renderCalendarInfo:g,renderMonthElement:b,calendarInfoPosition:_,firstDayOfWeek:d,hideKeyboardShortcutsPanel:h,isFocused:k,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:w,showKeyboardShortcuts:S,phrases:j,isRTL:E,weekDayFormat:D,dayAriaLabelFormat:O,verticalHeight:M,verticalBorderSpacing:N,noBorder:C,transitionDuration:T,horizontalMonthPadding:I})}}()}]),t}();t.default=A,A.propTypes=L,A.defaultProps=j},"32hK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDateRangePicker=void 0;var r=Object.assign||function(e){for(var t=1;t0?" is-danger":"")},o.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},o.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return o.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Or Create New Collection"),o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})),o.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),o.a.createElement(s.a,{visible:this.state.loading})):o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You must be logged in to add this observation to a collection."),o.a.createElement("p",null,"Please ",o.a.createElement("a",{href:"/login"},"login")," or ",o.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},c.defaultProps={collections:[],onSubmit:function(){}}},"5xeA":function(e,t,n){"use strict";var r=n("Lffp"),o=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var i=r.ArraySpeciesCreate(e,0);return function e(t,n,i,a,s){for(var u=a,l=0;l0&&(d=r.IsArray(f)),d)u=e(t,f,r.ToLength(r.Get(f,"length")),u,s-1);else{if(u>=o)throw new TypeError("index too large");r.CreateDataPropertyOrThrow(t,r.ToString(u),f),u+=1}}l+=1}return u}(i,e,t,0,n),i}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("O27J"),a=n.n(i),s=n("KSGD"),u=n.n(s),l=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),l(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return o.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},o.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(o.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=c,c.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},c.defaultProps={type:"success"},c.stack=[]},"6MiT":function(e,t,n){var r=n("aCM0"),o=n("UnEC"),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},"6TBu":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},"6yBs":function(e,t,n){"use strict";e.exports=n("t0Wu")},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,o=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:o,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,o=t.onSwiping,i=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,l=t.onSwipingRight,c=t.onSwipedRight,f=t.onSwipingUp,d=t.onSwipedUp,h=t.onSwipingDown,p=t.onSwipedDown,y=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var v=u(e,this.swipeable);if(!(v.absXv.absY?v.deltaX>0?(a||s)&&(a&&a(e,v.absX),m=!0):(l||c)&&(l&&l(e,v.absX),m=!0):v.deltaY>0?(f||d)&&(f&&f(e,v.absY),m=!0):(h||p)&&(h&&h(e,v.absY),m=!0),this.swipeable.swiping=!0,m&&y&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,o=t.onSwiped,i=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,l=t.onSwipedDown,c=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var d=f.velocity>r;o&&o(e,f.deltaX,f.deltaY,d,f.velocity),f.absX>f.absY?f.deltaX>0?i&&i(e,f.deltaX,d):a&&a(e,f.deltaX,d):f.deltaY>0?s&&s(e,f.deltaY,d):l&&l(e,f.deltaY,d)}else c&&c(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,o.createElement(this.props.nodeName,e,this.props.children)},t}(o.Component);l.propTypes={onSwiped:i.func,onSwiping:i.func,onSwipingUp:i.func,onSwipingRight:i.func,onSwipingDown:i.func,onSwipingLeft:i.func,onSwipedUp:i.func,onSwipedRight:i.func,onSwipedDown:i.func,onSwipedLeft:i.func,onTap:i.func,flickThreshold:i.number,delta:i.number,preventDefaultTouchmoveEvent:i.bool,stopPropagation:i.bool,nodeName:i.string,trackMouse:i.bool,disabled:i.bool,innerRef:i.func,children:i.node,rotationAngle:i.number},l.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=l},"76UX":function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n("9MlZ");e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(t,n("DuR2"))},"7ciz":function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n("t+1C"),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=l&&n;if(s&&e.length>0&&!o.call(e,0))for(var y=0;y0)for(var v=0;v>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}var i=-1;e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,a,s){return r(function(r,u,l,c,f,d,h){var p=l[c],y=typeof p,v=function(e,t,n,r){var a=void 0===r,s=null===r;if(e){if(a)return o(n,t,"undefined");if(s)return o(n,t,"null")}return a||s?null:i}(r,f=f||n.anonymousMessage,h=h||c,p);if(v!==i)return v;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+c+"` of type `"+y+"` supplied to `"+f+"`, expected `"+e+"`.");if(!a(p))return new Error(n.baseInvalidMessage+d+" `"+c+"` of type `"+y+"` supplied to `"+f+"`, expected `"+s+"`.");if(u&&!u(p)){var m=u.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+c+"` of type `"+y+"` supplied to `"+f+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null})},messages:n}},"9+gG":function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},"9LH0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.DISPLAY_FORMAT):null};var r=a(n("PJh5")),o=a(n("8Pcz")),i=n("6TBu");function a(e){return e&&e.__esModule?e:{default:e}}},"9MlZ":function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},"9ge7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_MONTH_FORMAT):null};var r=a(n("PJh5")),o=a(n("8Pcz")),i=n("6TBu");function a(e){return e&&e.__esModule?e:{default:e}}},AByj:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=n("h7v/"),u=n("NdNt"),l=n("c8iI"),c=n("0dG/"),f=n.n(c),d=n("PJh5"),h=n.n(d),p=n("LZyd"),y=n("iwoP"),v=n("5L7H"),m=n("jVml"),g=n("mOuh"),b=n("OE/d"),_=n("t4LX"),w=n("F8kA"),k=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},o.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return o.a.createElement(l.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},o.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:o.a.createElement("div",null,o.a.createElement("div",{className:"flexbox observation-tools"},o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-star text-success"})),o.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-flag text-danger"})),o.a.createElement("span",null,"Flag Observation")):null,b.a.can("contact users")?o.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-envelope text-info"})),o.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return o.a.createElement(p.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return o.a.createElement(y.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return o.a.createElement("div",null,o.a.createElement("h3",{className:"title is-4"},"Add to Collection"),o.a.createElement(v.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:o.a.createElement("tr",{key:n},o.a.createElement("th",null,e),o.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?o.a.createElement("p",{className:"help"},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-lock"})),o.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),_.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return o.a.createElement("div",{className:"box has-text-centered"},o.a.createElement("div",{className:"content"},o.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),o.a.createElement("p",null,"Observation has been deleted successfully"),o.a.createElement(w.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return b.a.can("contact users")?o.a.createElement(k.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return o.a.createElement("div",{className:"box"},o.a.createElement("div",{className:"columns is-mobile flex-v-center"},o.a.createElement("div",{className:"column"},o.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),o.a.createElement("div",{className:"column is-narrow"},o.a.createElement("span",{className:"select"},o.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},o.a.createElement("option",{value:"US"},"US Units"),o.a.createElement("option",{value:"metric"},"Metric Units")))),b.a.can("delete observations")||b.a.owns(this.observation)?o.a.createElement("div",{className:"column is-narrow"},o.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},o.a.createElement("span",{className:"icon is-small"},o.a.createElement("i",{className:"fa fa-trash"})),o.a.createElement("span",null,"Delete"))):null),o.a.createElement("div",{className:"columns mb-none"},o.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},o.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},o.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("th",null,"Submitted By"),o.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?o.a.createElement("tr",null,o.a.createElement("th",null,"Custom Tree Identifier"),o.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?o.a.createElement("tr",null,o.a.createElement("th",null,"ID"),o.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,o=void 0!==m.a[n]?m.a[n]:n,i=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],i=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(o,i,n,r)}),o.a.createElement("tr",null,o.a.createElement("th",null,"Coordinates"),o.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?o.a.createElement("tr",null,o.a.createElement("th",null,"Location Accuracy"),o.a.createElement("td",null,b.a.can("view accurate location")||b.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,o.a.createElement("tr",null,o.a.createElement("th",null,"Date Collected"),o.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:o.a.createElement("tr",null,o.a.createElement("th",null,"Photos"),o.a.createElement("td",null,o.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),o.a.createElement("div",{className:"column"},o.a.createElement("div",{className:"tabs has-no-shadow"},o.a.createElement("ul",null,o.a.createElement("li",{className:this.getTabClass("photos")},o.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),o.a.createElement("li",{className:this.getTabClass("map")},o.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?o.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},o.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return o.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?o.a.createElement("div",{className:"callout"},o.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?o.a.createElement("div",{style:{width:"100%",position:"relative"}},o.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=D,D.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},D.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},"Atm/":function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=function(){function e(e,t){for(var n=0;n0}).map(function(t){return t+"="+e[t]}).join("&")}},{key:"preLoadPage",value:function(){var e=l.a.parseUrl(this.history.location.search),t=1,n=this.state.perPage,r=this.state.selectedCollection;return void 0!==e.view&&(e.view=parseInt(e.view),isNaN(e.view)&&(e.view=6),n=e.view>100||e.view<6?6:e.view),void 0!==e.page&&(t=parseInt(e.page),isNaN(t)&&(t=1)),void 0!==e.collection&&(r=parseInt(e.collection),isNaN(r)&&(r=-1)),this.history.replace("/observations?page="+t+"&view="+n+"&collection="+r),{page:t,perPage:n,selectedCollection:r}}},{key:"generatePages",value:function(e,t,n){void 0===e&&(e=this.state.total),void 0===t&&(t=this.state.perPage),void 0===n&&(n=this.state.page);var r=[],o=Math.ceil(e/t),i=Math.min(o,7),a=1;o>7&&n>3&&(r.push(1),r.push("..."),1===(a=n-3)&&a++);for(var s=a;s7&&n+30?a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("span",{className:"select is-full-width"},a.a.createElement("select",{value:this.state.selectedCollection,onChange:function(t){var n=t.target;return e.collectionFilter(n.value)}},a.a.createElement("option",{value:"-1"},"Select a Collection"),this.state.collections.map(function(e){return a.a.createElement("option",{key:e.value,value:e.value},e.label)})))))):null,a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("span",{className:"select is-full-width"},a.a.createElement("select",{value:this.state.selectedCategory,onChange:function(t){var n=t.target;return e.categoriesFilter(n.value)}},a.a.createElement("option",{value:""},"All Species"),this.state.categories.map(function(e){return a.a.createElement("option",{key:e.value,value:e.value},e.label)})))))),a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("span",{className:"select is-full-width"},a.a.createElement("select",{value:this.state.selectedStatus,onChange:function(t){var n=t.target;return e.changeStatus(n.value)}},a.a.createElement("option",{value:0},"Any Status"),a.a.createElement("option",{value:"marked_correct_by_anyone"},"Species marked correct by anyone"),a.a.createElement("option",{value:"marked_correct_by_me"},"Species marked correct by me")))))),this.state.advancedFilters.length>0?a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("span",{className:"select is-full-width"},a.a.createElement("select",{value:this.state.selectedFilter,onChange:function(t){var n=t.target;return e.loadAdvancedFilter(n.value)}},a.a.createElement("option",{value:"-1"},"Select Advanced Filter"),this.state.advancedFilters.map(function(e){return a.a.createElement("option",{value:e.value,key:e.value},e.label)})))))):null,a.a.createElement("div",{className:"column is-4"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("button",{onClick:function(){e.setState({showFiltersModal:!0}),e.advancedFiltersModal&&e.advancedFiltersModal.reapplyState(e._advancedFiltersState)},className:"button is-primary",type:"button"},"Advanced Filters"),t&&Object.keys(t).length>0?a.a.createElement("button",{onClick:function(){e.setState({advancedFiltersRules:null,reduceCardOpacity:!1},e.loadObservations),e._advancedFiltersState={}},className:"ml-1 button is-danger is-outlined",type:"button"},a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-times-circle"})),a.a.createElement("span",null,"Clear Filters")):null,a.a.createElement(b.a,{right:!0,isBlock:!1,timeout:220,trigger:a.a.createElement("button",{className:"button ml-1","aria-haspopup":"true","aria-controls":"dropdown-menu"},a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-download"})),a.a.createElement("span",null,"Download"),a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-angle-down","aria-hidden":"true"})))},a.a.createElement("a",{href:"/services/download/observations/tsv?"+this.state.downloadParams,target:"_blank",className:"dropdown-item"},"TSV Format"),a.a.createElement("a",{href:"/services/download/observations/csv?"+this.state.downloadParams,target:"_blank",className:"dropdown-item"},"CSV Format"))))))}},{key:"changePerPage",value:function(e){var t=this.state,n=this.state.selectedCollection;t.perPage=e,t.page=1,this.setState({page:1,perPage:e},this.loadObservations),this.history.replace("/observations?page=1&view="+e+"&collection="+n)}},{key:"advancedFilter",value:function(e){this.setState({advanced_filter:e,page:1},this.loadObservations)}},{key:"saveFilterState",value:function(e){this._advancedFiltersState=e}},{key:"render",value:function(){var e=this,t=!this.state.hasMorePages,n=parseInt(this.state.page)<=1;return a.a.createElement("div",null,a.a.createElement(s.a,{visible:this.state.loading}),a.a.createElement(c.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.state.contact.observation,onCloseRequest:function(){return e.setState({showEmail:!1})}}),a.a.createElement(m,{visible:this.state.showHelpModal,onCloseRequest:function(){return e.setState({showHelpModal:!1})}}),a.a.createElement(f.a,{ref:function(t){return e.advancedFiltersModal=t},visible:this.state.showFiltersModal,onCloseRequest:function(){return e.setState({showFiltersModal:!1})},onCreate:function(t){e.setState({showFiltersModal:!1});var n=t.data;if(n.filter){var r=e.state.filters;return r.push(n.filter),e.setState({filters:r}),void e.advancedFilter(n.filter.id)}e.setState({page:1,advancedFiltersRules:t.params,showFiltersModal:!1},e.loadObservations)},onStateChange:this.saveFilterState.bind(this)}),a.a.createElement("div",{className:"columns flex-v-center"},a.a.createElement("div",{className:"column is-6"},a.a.createElement("h1",{className:"title is-3"}," Observations")),a.a.createElement("div",{className:"column is-6 has-text-right"})),this.renderFilters(),0===this.state.observations.length?a.a.createElement("p",{className:"mb-0"},"No results found"):null,a.a.createElement("div",{className:"columns is-multiline"},this.state.observations.map(function(t){return a.a.createElement("div",{key:t.observation_id,className:"column is-4-widescreen is-6-desktop is-6-tablet"},a.a.createElement(u.a,{loading:e.state.reduceCardOpacity,observation:t,collections:e.state.ownedCollections,showMarks:!0,onEmailRequest:function(t){e.setState({showEmail:!0,contact:{to:{user_id:t.user.id,name:t.user.name},from:e.state.user.email,observation:t}})},onFlagChange:function(e,n){if("removed"===e){var r=[];return t.flags.map(function(e){e.id!==parseInt(n.id)&&r.push(e)}),void(t.flags=r)}t.flags.push(n)},onCollectionCreated:function(n){var r=e.state.ownedCollections,o=!1;r.map(function(e){e.value===n.id&&(o=!0)}),o||r.push({label:n.label,value:n.id}),t.collections.push({id:n.id,label:n.label,description:n.description}),e.setState({ownedCollections:r}),e.forceUpdate(),d.a.push('Added "'+t.observation_category+'" to "'+n.label+'" successfully')},onRemovedFromCollection:function(n){t.collections=t.collections.filter(function(e){return e.id!==n.id}),e.forceUpdate(),d.a.push('Removed "'+t.observation_category+'" from "'+n.label+'" successfully')}}))})),a.a.createElement("div",{style:{display:this.state.total>this.state.perPage?"block":"none"}},a.a.createElement("nav",{className:"pagination is-centered"},a.a.createElement("a",{className:"pagination-previous",disabled:n,onClick:this.previousPage.bind(this)},"Previous"),a.a.createElement("a",{className:"pagination-next",disabled:t,onClick:this.nextPage.bind(this)},"Next page"),a.a.createElement("ul",{className:"pagination-list"},this.state.pages.map(function(t,n){return"..."===t?a.a.createElement("li",{key:"hellip_"+n},a.a.createElement("span",{className:"pagination-ellipsis"},"…")):a.a.createElement("li",{key:"page_"+t},a.a.createElement("a",{className:"pagination-link"+(e.state.page===t?" is-current":""),onClick:function(){e.state.page!==t&&e.goToPage.call(e,t)}},t))})))))}}]),t}();t.default=w},"C/1w":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=n.getBoundingClientRect(),i=o.left,a=o.top;e===r.OPEN_UP&&(a=-(window.innerHeight-o.bottom));t===r.ANCHOR_RIGHT&&(i=-(window.innerWidth-o.right));return{transform:"translate3d("+String(Math.round(i))+"px, "+String(Math.round(a))+"px, 0)"}};var r=n("6TBu")},C6vg:function(e,t,n){"use strict";var r=n("Xxa5"),o=n.n(r),i=n("GiK3"),a=n.n(i),s=n("KSGD"),u=n.n(s),l=function(){function e(e,t){for(var n=0;n-1?" is-selected":""}},{key:"_toggleSelected",value:function(e){var t=[];t=this.props.value.indexOf(e)>-1?this.props.value.filter(function(t){return t!==e}):this.props.value.concat(e),console.log(t),this.props.onChange(t)}},{key:"render",value:function(){var e=this;return a.a.createElement("div",{className:"control buttons-group"},this.props.list.map(function(t,n){return a.a.createElement("button",{type:"button",className:"button mb-0 button-select"+e._setActiveSelected(t),key:n,onClick:function(){return e._toggleSelected(t)}},a.a.createElement("span",{className:"icon is-small"},a.a.createElement("i",{className:"fa fa-check"})),a.a.createElement("span",null,t))}))}}]),t}(),f=c;c.propTypes={list:u.a.array.isRequired,onChange:u.a.func.isRequired,value:u.a.array.isRequired};var d=n("mOuh"),h=function(){function e(e,t){for(var n=0;n 75%"],onChange:function(t){return e._update("crownAssessment",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Disease"),a.a.createElement(f,{value:this.state.madroneDisease,list:["Wilting leaves","Leaf spots","Rust","Blight","Defoliation","Lesions","Cankers"],onChange:function(t){return e._update("madroneDisease",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Stand Diversity"),a.a.createElement(f,{value:this.state.standDiversity,list:["Pure stand of this species","Mixed stand (this species and others)","Tree is standing alone","Not sure"],onChange:function(t){return e._update("standDiversity",t)}}))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Tree Diameter (",d.a.unit("inches"),")"),a.a.createElement("div",{className:"field is-horizontal"},a.a.createElement("div",{className:"field-body"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Min.",value:this.state.diameterNumericMin,onChange:function(t){var n=t.target;return e._update("diameterNumericMin",n.value)}}))),a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Max.",value:this.state.diameterNumericMax,onChange:function(t){var n=t.target;return e._update("diameterNumericMax",n.value)}}))))))),a.a.createElement("div",{className:"column is-6"},a.a.createElement("div",{className:"field"},a.a.createElement("label",{className:"label"},"Tree Height (",d.a.unit("feet"),")"),a.a.createElement("div",{className:"field is-horizontal"},a.a.createElement("div",{className:"field-body"},a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Min.",value:this.state.heightNumericMin,onChange:function(t){var n=t.target;return e._update("heightNumericMin",n.value)}}))),a.a.createElement("div",{className:"field"},a.a.createElement("div",{className:"control"},a.a.createElement("input",{type:"number",className:"input",placeholder:"Max.",value:this.state.heightNumericMax,onChange:function(t){var n=t.target;return e._update("heightNumericMax",n.value)}}))))))))}}]),t}(),$=Z;Z.propTypes={onChange:u.a.func.isRequired};var J=function(){function e(e,t){for(var n=0;n2?arguments[2]:[];if(!this.IsCallable(e))throw new s(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=S(e)?e:o(e,d);if("symbol"==typeof t)throw new s("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(E(M(t,2),2));if(T(t))return this.ToNumber(E(M(t,2),8));if(I(t)||x(t))return NaN;var n=function(e){return V(e,G,"")}(t);if(n!==t)return this.ToNumber(n)}return d(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!g(t))return 0;var n=w(t)*B(K(t));return k(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=B(e);return n+.5b?b:t},CanonicalNumericIndexString:function(e){if("[object String]"!==j(e))throw new s("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Q.CheckObjectCoercible,IsArray:l.isArray||function(e){return"[object Array]"===j(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!S(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!g(e))return!1;var t=K(e);return B(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(y){var t=e[h.match];if(void 0!==t)return Q.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new s(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Q.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new s("O.constructor is not an Object");var r=y&&h.species?n[h.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new s("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");if("Boolean"!==this.Type(r))throw new s("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(y&&"symbol"==typeof h.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");var n=O(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!y)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,h.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new s("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new s("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new s("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var i=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(i))throw new s("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new s("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new s("R must be an Object");if("String"!==this.Type(t))throw new s("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new s('"exec" method must return `null` or an Object')}return N(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new s("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&y&&h.species&&null===(n=this.Get(n,h.species))&&(n=void 0)),void 0===n)return l(r);if(!this.IsConstructor(n))throw new s("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=U(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new s("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new s("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new u("es-abstract does not yet support internal slots");if(null===e&&!H)throw new u("native Object.create support is required to create null objects");return H(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new s("S must be a String");if(!this.IsInteger(t)||t<0||t>b)throw new s("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new s("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=L(e,t);if(r<55296||r>56319)return t+1;var o=L(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!Y(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!Y(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");return i(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:R(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:A(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:F(e)},thisTimeValue:function(e){return z(e)}});delete $.CheckObjectCoercible,e.exports=$},"FZ+f":function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o1&&void 0!==arguments[1]?arguments[1]:i.default.localeData().firstDayOfWeek(),n=function(e,t){return(e.day()-t+7)%7}(e.clone().startOf("month"),t);return Math.ceil((n+e.daysInMonth())/7)};var r,o=n("PJh5"),i=(r=o)&&r.__esModule?r:{default:r}},H1lJ:function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},"HOE/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t)||(0,o.default)(e,t))};var r=i(n("PJh5")),o=i(n("RHtK"));function i(e){return e&&e.__esModule?e:{default:e}}},"I/WY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=i(n("PJh5")),o=i(n("+LBX"));function i(e){return e&&e.__esModule?e:{default:e}}},IMKR:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("O27J"),o=n.n(r),i=n("GiK3"),a=n.n(i),s=n("KSGD"),u=n.n(s),l=!("undefined"==typeof window||!window.document||!window.document.createElement),c=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return o.a.createElement(d.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},o.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},o.a.createElement("div",{className:"media callout"},o.a.createElement("div",{className:"media-left mr-0"},o.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),o.a.createElement("div",{className:"media-content"},o.a.createElement("div",{className:"mb-0"},o.a.createElement("strong",null,t.observation_category)),o.a.createElement("div",{className:"mb-0"},"By ",t.user.name),o.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return o.a.createElement("div",{className:"card-slide-container"},o.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?o.a.createElement("div",{className:"content"},o.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),o.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},o.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),o.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):o.a.createElement(c.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return o.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},o.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),o.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return o.a.createElement("div",{className:"card-slide-container"},o.a.createElement("h3",{className:"title is-5"},"Flag Observation"),o.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),y.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";y.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return o.a.createElement("div",{className:"card-footer marks-section"},o.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},o.a.createElement("span",null,this.state.incorrectMarks),o.a.createElement("span",{className:"icon ml-0 mr-0"},o.a.createElement("b",{className:"fa fa-times text-danger"})),o.a.createElement("span",null,"Marks")),o.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},o.a.createElement("span",null,this.state.correctMarks),o.a.createElement("span",{className:"icon ml-0 mr-0"},o.a.createElement("b",{className:"fa fa-check text-success"})),o.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":k(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,i=this.getAddress(t),a=i.address,u=i.addressLine1,c=i.addressLine2;return o.a.createElement("div",{className:"observation-card-container"},o.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},o.a.createElement("header",{className:"card-header"},o.a.createElement(_.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),w.a.can("confirm species")?o.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},o.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},o.a.createElement("span",{className:"icon"},o.a.createElement("i",{className:"fa fa-times"})))):null,w.a.can("confirm species")?o.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},o.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},o.a.createElement("span",{className:"icon"},o.a.createElement("i",{className:"fa fa-check"})))):null),o.a.createElement("div",{className:"relative-block"},o.a.createElement(p.a,{visible:this.state.loading}),o.a.createElement("div",{className:"has-bg-image relative-block"},o.a.createElement("div",{className:"card-image",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}})),this._renderMarks(),o.a.createElement("div",{className:"card-content"},o.a.createElement("div",{className:"content"},this.props.owner?null:o.a.createElement("span",null,"By ",t.user.name,o.a.createElement("br",null)),o.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),o.a.createElement("br",null),t.custom_id?o.a.createElement("div",null,o.a.createElement("small",null,o.a.createElement("strong",null,"Custom ID")," ",t.custom_id),o.a.createElement("br",null)):o.a.createElement("div",null,o.a.createElement("small",null,o.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||w.a.can("view accurate location")?o.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,o.a.createElement("br",null)):null,o.a.createElement("small",null,l()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?o.a.createElement("div",{className:"text-ellipsis",title:a},o.a.createElement("small",null,o.a.createElement("b",null,"Near")," ",u),o.a.createElement("br",null),o.a.createElement("small",{style:{marginLeft:"35px"}},c)):o.a.createElement("div",{style:{height:48}},"Address is unavailable"))),o.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},o.a.createElement("div",{className:"p-1 relative-block"},o.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},o.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),o.a.createElement("footer",{className:"card-footer card-footer-z-index"},o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},o.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-star"})))),o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},o.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-map"})))),w.a.can("contact users")&&!this.props.owner?o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},o.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:o.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},o.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?o.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},o.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},o.a.createElement("span",{className:"icon is-small is-marginless"},o.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?o.a.createElement(b,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=E;E.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},E.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},K45F:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t= 0");var n=this.ToLength(t);if(!this.SameValueZero(t,n))throw new RangeError("index must be >= 0 and < 2 ** 53 - 1");return n},EnumerableOwnProperties:function(e,t){var n=o.EnumerableOwnNames(e);if("key"===t)return n;if("value"===t||"key+value"===t){var r=[];return a(n,function(n){l(e,n)&&c(r,["value"===t?e[n]:[n,e[n]]])}),r}throw new u('Assertion failed: "kind" is not "key", "value", or "key+value": '+t)}});delete f.EnumerableOwnNames,e.exports=f},LlVb:function(e,t,n){var r=n("PJh5");e.exports={isValidMoment:function(e){return!("function"==typeof r.isMoment&&!r.isMoment(e))&&("function"==typeof e.isValid?e.isValid():!isNaN(e))}}},MTIv:function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=function(e){return document.querySelector(e)}.call(this,e)),t[e]}}(),u=null,l=0,c=[],f=n("mJPh");function d(e,t){for(var n=0;n=0&&c.splice(t,1)}function v(e){var t=document.createElement("style");return e.attrs.type="text/css",m(t,e.attrs),p(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=l++;n=u||(u=v(t)),r=w.bind(null,n,a,!1),o=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",m(t,e.attrs),p(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){y(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return d(n,t),function(e){for(var r=[],o=0;o=t||n<0||m&&e-y>=f}function w(){var e=o();if(_(e))return k(e);h=setTimeout(w,function(e){var n=t-(e-p);return m?u(n,f-(e-y)):n}(e))}function k(e){return h=void 0,g&&l?b(e):(l=c=void 0,d)}function S(){var e=o(),n=_(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return y=e,h=setTimeout(w,t),v?b(e):d}(p);if(m)return h=setTimeout(w,t),b(p)}return void 0===h&&(h=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(v=!!n.leading,f=(m="maxWait"in n)?s(i(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==h&&clearTimeout(h),y=0,l=p=c=h=void 0},S.flush=function(){return void 0===h?d:k(o())},S}},OjkW:function(e,t,n){e.exports=n("YZwx")},OpPv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e)return e;if("function"==typeof e)return e(t);return""}},PiFy:function(e,t,n){"use strict";var r=n("fRHV");e.exports=Function.prototype.bind||r},Pkwz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=t||n<0||d&&e-c>=a}function w(){var e=v();if(_(e))return k(e);u=setTimeout(w,function(e){var n=t-(e-l);return d?y(n,a-(e-c)):n}(e))}function k(e){return u=void 0,h&&o?m(e):(o=i=void 0,s)}function S(){var e=v(),n=_(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(w,t),f?m(e):s}(l);if(d)return u=setTimeout(w,t),m(l)}return void 0===u&&(u=setTimeout(w,t)),s}return t=b(t)||0,g(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(b(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),c=0,o=l=i=u=void 0},S.flush=function(){return void 0===u?s:k(v())},S}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}}).call(t,n("DuR2"))},RHtK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!i.default.isMoment(e)||!i.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),a=t.month(),s=n===o;return s&&r===a?e.date()=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),y}}}function _(e,t,n,r){var o=t&&t.prototype instanceof k?t:k,i=Object.create(o.prototype),a=new N(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=w(e,t,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function k(){}function S(){}function E(){}function D(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,a){var s=w(e[n],e,r);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&o.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(l).then(function(e){u.value=e,i(u)},a)}a(s.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function M(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,M(e,t),"throw"===t.method))return y;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,a=void 0===n?"styles":n,c=t.themePropName,d=void 0===c?"theme":c,p=t.cssPropName,g=void 0===p?"css":p,b=t.flushBefore,_=void 0!==b&&b,w=t.pureComponent,k=void 0,S=void 0,E=void 0,D=void 0,O=function(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}(void 0!==w&&w);function M(t,n){var r=function(e){return e===l.DIRECTIONS.LTR?E:D}(t),o=t===l.DIRECTIONS.LTR?k:S,i=f.default.get();if(o&&r===i)return o;var a=t===l.DIRECTIONS.RTL;return a?(S=e?f.default.createRTL(e):y,D=i,o=S):(k=e?f.default.createLTR(e):y,E=i,o=k),o}function C(e,t){return{resolveMethod:function(e){return e===l.DIRECTIONS.LTR?f.default.resolveLTR:f.default.resolveRTL}(e),styleDef:M(e,t)}}return function(){return function(e){var t=e.displayName||e.name||"Component",n=function(n){function s(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e,n)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():m;return r.state=C(o,t),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,n),o(s,[{key:"componentDidMount",value:function(){return function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe(function(n){e.setState(C(n,t))}))}}()},{key:"componentWillUnmount",value:function(){return function(){this.channelUnsubscribe&&this.channelUnsubscribe()}}()},{key:"render",value:function(){return function(){var t;_&&f.default.flush();var n=this.state,o=n.resolveMethod,s=n.styleDef;return i.default.createElement(e,r({},this.props,(h(t={},d,f.default.get()),h(t,a,s()),h(t,g,o),t)))}}()}]),s}(O);n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=v,e.propTypes&&(n.propTypes=(0,u.default)({},e.propTypes),delete n.propTypes[a],delete n.propTypes[d],delete n.propTypes[g]);e.defaultProps&&(n.defaultProps=(0,u.default)({},e.defaultProps));return(0,s.default)(n,e)}}()};var i=d(n("GiK3")),a=d(n("KSGD")),s=d(n("wfLM")),u=d(n("i3rX")),l=n("Z+/y"),c=d(n("rgbP")),f=d(n("F+Ye"));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=f.default.resolveLTR,t.withStylesPropTypes={styles:a.default.object.isRequired,theme:a.default.object.isRequired,css:a.default.func.isRequired};var p={},y=function(){return p};var v=h({},l.CHANNEL,c.default),m=l.DIRECTIONS.LTR},Vop6:function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},X0xs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDayPicker=t.defaultProps=void 0;var r=Object.assign||function(e){for(var t=1;tt.clientHeight?t:o(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),a=o(e);return t.set(a,a.style.overflowY),a===n?t:i(a,t)}},XqC7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return e?n(e(t.clone())):t};var r=function(e){return e}},Xxa5:function(e,t,n){e.exports=n("jyFz")},YL1d:function(e,t,n){"use strict";function r(e,t,n){var r="number"==typeof t,o="number"==typeof n,i="number"==typeof e;return r&&o?t+n:r&&i?t+e:r?t:o&&i?n+e:o?n:i?2*e:0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.font.input,o=n.lineHeight,i=n.lineHeight_small,a=e.spacing,s=a.inputPadding,u=a.displayTextPaddingVertical,l=a.displayTextPaddingTop,c=a.displayTextPaddingBottom,f=a.displayTextPaddingVertical_small,d=a.displayTextPaddingTop_small,h=a.displayTextPaddingBottom_small,p=t?i:o,y=t?r(f,d,h):r(u,l,c);return parseInt(p,10)+2*s+y}},YZwx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("B2tZ");Object.defineProperty(t,"CalendarDay",{enumerable:!0,get:function(){return function(){return S(r).default}}()});var o=n("Pkwz");Object.defineProperty(t,"CalendarMonth",{enumerable:!0,get:function(){return function(){return S(o).default}}()});var i=n("cw5X");Object.defineProperty(t,"CalendarMonthGrid",{enumerable:!0,get:function(){return function(){return S(i).default}}()});var a=n("32hK");Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return function(){return S(a).default}}()});var s=n("K45F");Object.defineProperty(t,"DateRangePickerInput",{enumerable:!0,get:function(){return function(){return S(s).default}}()});var u=n("VB2b");Object.defineProperty(t,"DateRangePickerInputController",{enumerable:!0,get:function(){return function(){return S(u).default}}()});var l=n("uy+U");Object.defineProperty(t,"DateRangePickerShape",{enumerable:!0,get:function(){return function(){return S(l).default}}()});var c=n("X0xs");Object.defineProperty(t,"DayPicker",{enumerable:!0,get:function(){return function(){return S(c).default}}()});var f=n("2ZMP");Object.defineProperty(t,"DayPickerRangeController",{enumerable:!0,get:function(){return function(){return S(f).default}}()});var d=n("tHAx");Object.defineProperty(t,"DayPickerSingleDateController",{enumerable:!0,get:function(){return function(){return S(d).default}}()});var h=n("YgGm");Object.defineProperty(t,"SingleDatePicker",{enumerable:!0,get:function(){return function(){return S(h).default}}()});var p=n("4NsZ");Object.defineProperty(t,"SingleDatePickerInput",{enumerable:!0,get:function(){return function(){return S(p).default}}()});var y=n("0Tdo");Object.defineProperty(t,"SingleDatePickerShape",{enumerable:!0,get:function(){return function(){return S(y).default}}()});var v=n("HOE/");Object.defineProperty(t,"isInclusivelyAfterDay",{enumerable:!0,get:function(){return function(){return S(v).default}}()});var m=n("JMu1");Object.defineProperty(t,"isInclusivelyBeforeDay",{enumerable:!0,get:function(){return function(){return S(m).default}}()});var g=n("I/WY");Object.defineProperty(t,"isNextDay",{enumerable:!0,get:function(){return function(){return S(g).default}}()});var b=n("+LBX");Object.defineProperty(t,"isSameDay",{enumerable:!0,get:function(){return function(){return S(b).default}}()});var _=n("TRqI");Object.defineProperty(t,"toISODateString",{enumerable:!0,get:function(){return function(){return S(_).default}}()});var w=n("9LH0");Object.defineProperty(t,"toLocalizedDateString",{enumerable:!0,get:function(){return function(){return S(w).default}}()});var k=n("8Pcz");function S(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"toMomentObject",{enumerable:!0,get:function(){return function(){return S(k).default}}()})},YgGm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureSingleDatePicker=void 0;var r=Object.assign||function(e){for(var t=1;t0?String(e)+"__":"")+String(t)}},aaLQ:function(e,t,n){"use strict";var r=n("/ymf"),o=n("x5U2"),i=n("+1gT"),a=n("EBef"),s=i();r(s,{getPolyfill:i,implementation:o,shim:a}),e.exports=s},adrs:function(e,t,n){"use strict";var r=n("QqhH"),o=n("/ymf");e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},bidq:function(e,t,n){"use strict";var r=Array.prototype.slice,o=n("t+1C"),i=Object.keys,a=i?function(e){return i(e)}:n("7ciz"),s=Object.keys;a.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)}):Object.keys=a;return Object.keys||a},e.exports=a},blYT:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n("DuR2"))},bvnS:function(e,t,n){"use strict";var r=n("teQR"),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n("XfW5"),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),s=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&s)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=s[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t);console.log(a(e,r),r)}},"c+e1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){var i="undefined"!=typeof window?window.innerWidth:0,a=e===r.ANCHOR_LEFT?i-n:n,s=o||0;return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},e,Math.min(t+a-s,0))};var r=n("6TBu")},c8iI:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();c=c?u({},C,c):C;var _=(0,S.default)((o(e={},M.default.editor,!0),o(e,M.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=p);var w=void 0;return h||(w=f.default.createElement(b.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:y})),f.default.createElement("div",{className:(0,S.default)(M.default.root,r)},w,f.default.createElement("div",{className:_},f.default.createElement(d.Editor,u({},m,{blockStyleFn:(0,k.default)(i,v),customStyleMap:c,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:l,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(d.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),o=d.Modifier.removeRange(r,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());o=d.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),this._onChange(d.EditorState.push(t,o,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if((0,m.default)(o)&&0===o.getLength()){var i=o.getDepth(),a=0===i?(0,y.default)(e,r,O.BLOCK_TYPE.UNSTYLED):(0,p.default)(e,r,i-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!(0,m.default)(o)&&o.getType()!==O.BLOCK_TYPE.UNSTYLED&&o.getLength()===t.getStartOffset()){var i=(0,v.default)(e,r,O.BLOCK_TYPE.UNSTYLED);return this._onChange(i),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=d.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=d.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=T;var N=new d.CompositeDecorator([w.default]);Object.assign(T,{EditorValue:_.default,decorator:N,createEmptyValue:a,createValueFromString:s}),t.EditorValue=_.default,t.decorator=N,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(6),a=n(40),s=n(7),u=n(32),l=n(41),c=n(43),f=n(44),d=n(50),h=n(9),p=n(14),y=n(16),v=n(29),m=n(100),g=n(131),b=n(33),_=n(133),w={Editor:f,EditorBlock:d,EditorState:v,CompositeDecorator:a,Entity:p,EntityInstance:y,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:u,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:c,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:_,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=w},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(7),a=n(9),s=n(29),u=n(5),l=n(21),c=u.List,f=u.Repeat,d={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),d=e.getSelection(),h=a.removeRange(u,d,"backward"),p=h.getSelectionAfter(),y=a.splitBlock(h,p),v=y.getSelectionAfter(),m=a.setBlockType(y,v,"atomic"),g=o.create({entity:t}),b=[new i({key:l(),type:"atomic",text:n,characterList:c(f(g,n.length))}),new i({key:l(),type:"unstyled",text:"",characterList:c()})],_=r.createFromArray(b),w=a.replaceWithFragment(m,v,_),k=w.merge({selectionBefore:d,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return s.push(e,k,"insert-fragment")}};e.exports=d},function(e,t,n){"use strict";var r=n(5).OrderedMap,o={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=o},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:T(e)}function n(e){return a(e)?e:N(e)}function r(e){return s(e)?e:P(e)}function o(e){return i(e)&&!u(e)?e:I(e)}function i(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ht])}function s(e){return!(!e||!e[Ut])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[Wt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?p(e)+t:t}function v(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function S(){return{value:void 0,done:!0}}function E(e){return!!M(e)}function D(e){return e&&"function"==typeof e.next}function O(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function C(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?F():i(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function N(e){return null===e||void 0===e?F().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():z(e)}function P(e){return null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():B(e)}function I(e){return(null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e:B(e)).toSetSeq()}function x(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function A(e){return!(!e||!e[sn])}function F(){return rn||(rn=new x([]))}function z(e){var t=Array.isArray(e)?new x(e).fromEntrySeq():D(e)?new R(e).fromEntrySeq():E(e)?new j(e).fromEntrySeq():"object"==typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return C(e)?new x(e):D(e)?new R(e):E(e)?new j(e):void 0}function H(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new w(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,P(n).map(function(r,o){return e(t,r,o,n)})):q(n)?t.call(o,r,N(n).map(function(r,o){return e(t,r,o,n)})):n}(t,e,"",{"":e}):Y(e)}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():q(e)?N(e).map(Y).toMap():e}function q(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function V(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&G(o[1],e)&&(n||G(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!G(t,e.get(r,Vt)):!G(e.get(r,Vt),t))return f=!1,!1});return f&&e.size===d}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function Z(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var o=0|e;for(o!==e&&(o^=4294967295*e);e>4294967295;)o^=e/=4294967295;return ne(o)}if("string"===r)return e.length>yn?(void 0===(n=gn[t=e])&&(n=oe(t),mn===vn&&(mn=0,gn={}),mn++,gn[t]=n),n):oe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(dn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[pn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[pn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),dn)un.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[pn]=t}}return t}(e);if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function oe(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Yt,r,o)]:(i=new de(t,r,o),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Me(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function Ce(e){var t=xe();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),o=n.size;return 0===o?t:(ie(o),o>0&&or?0:r-n,l=o-n;return l>qt&&(l=qt),function(){if(u===l)return Tn;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,i,a){var s,u=e&&e.array,l=a>r?0:r-a>>i,c=1+(o-a>>i);return c>qt&&(c=qt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(l===c)return Tn;var r=t?--c:l++;s=n(u&&u[r],i-Yt,a+(r<>>n&Gt,u=e&&s0){var l=e&&e.array[s],c=Le(l,t,n-Yt,r,o,i);return c===l?e:((a=je(e,t)).array[s]=c,a)}return u&&e.array[s]===o?e:(f(i),a=je(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function je(e,t){return t&&e&&t===e.ownerID?e:new Ne(e?e.array.slice():[],t)}function Re(e,t){if(t>=ze(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Yt;return n}}function Ae(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Ne(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=Yt);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=ze(i),h=ze(s);h>=1<f?new Ne([],r):p;if(p&&h>f&&aYt;m-=Yt){var g=f>>>m≫v=v.array[g]=je(v.array[g],r)}v.array[f>>>Yt&Gt]=p}if(s=h)a-=h,s-=h,u=Yt,l=null,y=y&&y.removeBefore(r,0,a);else if(a>o||h>>u≫if(b!==h>>>u&Gt)break;b&&(c+=(1<o&&(l=l.removeBefore(r,u,a-c)),l&&ha&&(a=l.size),i(u)||(l=l.map(function(e){return W(e)})),o.push(l)}return a>e.size&&(e=e.setSize(a)),De(e,t,o)}function ze(e){return e>>Yt<=qt&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):He(r,o)}function Ye(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qe(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===Xt){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Jt?$t:Jt,n)},t}function Ze(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,Vt);return i===Vt?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Xt,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),o)})},r}function $e(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Je(e,t,n,r){var o=ct(e);return r&&(o.has=function(r){var o=e.get(r,Vt);return o!==Vt&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,Vt);return i!==Vt&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Xt,i),s=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return k(o,r?l:s++,c,i)}})},o}function Xe(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),m(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!=i||a!=a)return Xe(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var l=ct(e);return l.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(l.get=function(t,n){return(t=y(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===Jt?e:k(t,u-1,t===$t?void 0:e.value[1],e)})},l}function et(e,t,n,r){var o=ct(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Xt,i),u=!0,l=0;return new w(function(){var e,i,c;do{if((e=s.next()).done)return r||o===Jt?e:k(o,l++,o===$t?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===Xt?e:k(o,i,c,e)})},o}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(u,l){var c=this;u.__iterate(function(o,u){return(!t||l0}function it(e,n,r){var o=ct(e);return o.size=new x(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Jt,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function at(e,t){return A(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return ie(e.size),p(e)}function lt(e){return a(e)?n:s(e)?r:o}function ct(e){return Object.create((a(e)?N:s(e)?P:I).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function dt(e,t){return e>t?1:et?-1:0}function Ft(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+zt(re(e),re(t))|0}:function(e,t){r=r+zt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=ln(t,3432918353),t=ln(t<<15|t>>>-15,461845907),t=ln(t<<13|t>>>-13,5),t=ln((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=ln(t^t>>>13,3266489909))^t>>>16)}(o,r)}function zt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Bt=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ht="@@__IMMUTABLE_KEYED__@@",Ut="@@__IMMUTABLE_INDEXED__@@",Wt="@@__IMMUTABLE_ORDERED__@@",Yt=5,qt=1<r?{value:void 0,done:!0}:k(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:k(e,a,n[a])})},L.prototype[Wt]=!0,e(j,P),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(D(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!D(r))return new w(S);var o=0;return new w(function(){var t=r.next();return t.done?t:k(e,o++,t.value)})},e(R,P),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return k(e,o,r[o++])})},e(Q,P),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return G(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,b(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return G(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},$.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},$.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:k(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:V(this,e)},e(J,t),e(X,J),e(ee,J),e(te,J),J.Keyed=X,J.Indexed=ee,J.Set=te;var un,ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),dn="function"==typeof WeakMap;dn&&(un=new WeakMap);var hn=0,pn="__immutablehash__";"function"==typeof Symbol&&(pn=Symbol(pn));var yn=16,vn=255,mn=0,gn={};e(ae,X),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Vt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Vt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Vt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===Vt,a=n.next();if(a.done){var s=i?r:t,u=o(s);return u===s?t:u}Z(i||t&&t.set,"invalid keyPath");var l=a.value,c=i?Vt:t.get(l,Vt),f=e(c,n,r,o);return f===c?t:f===Vt?t.remove(l):(i?me():t).set(l,f)}(this,ht(e),t,n);return r===Vt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return ke(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Bt.call(arguments,1);return ke(this,e,t)},ae.prototype.mergeIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return ke(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Bt.call(arguments,1);return ke(this,Ee(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Be(nt(this,e))},ae.prototype.sortBy=function(e,t){return Be(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var bn="@@__IMMUTABLE_MAP__@@",_n=ae.prototype;_n[bn]=!0,_n.delete=_n.remove,_n.removeIn=_n.deleteIn,ue.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=kn)return function(e,t,n,r){e||(e=new d);for(var o=new de(e,re(n),[n,r]),i=0;i>>e)&Gt),i=this.bitmap;return 0==(i&o)?r:this.nodes[Oe(i&o-1)].get(e+Yt,t,n,r)},le.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,o){for(var i=0,a=new Array(qt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ce(e,i+1,a)}(e,d,l,s,p);if(c&&!p&&2===d.length&&_e(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&_e(p))return p;var y=e&&e===this.ownerID,v=c?p?l:l^u:l|u,m=c?p?Me(d,f,p,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&Gt,i=this.nodes[o];return i?i.get(e+Yt,t,n,r):r},ce.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=o===Vt,l=this.nodes,c=l[s];if(u&&!c)return this;var f=be(c,e,t+Yt,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Ae(e,t).set(0,n):Ae(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(Zt);return t>=ze(e._capacity)?r=Le(r,e.__ownerID,0,t,n,i):o=Le(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ie(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},Ce.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ce.prototype.insert=function(e,t){return this.splice(e,0,t)},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Yt,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xe()},Ce.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ae(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ne([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-Yt,n))===a&&i)return this}if(i&&!o)return this;var s=je(this,e);if(!i)for(var u=0;u>>t≫if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-Yt,n))===i&&o===this.array.length-1)return this}var a=je(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Mn,Cn,Tn={};e(Be,ae),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Be.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ue()},Be.prototype.set=function(e,t){return We(this,e,t)},Be.prototype.remove=function(e){return We(this,e,Vt)},Be.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Be.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Be.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Be.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?He(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Be.isOrderedMap=Ke,Be.prototype[Wt]=!0,Be.prototype.delete=Be.prototype.remove,e(Ye,N),Ye.prototype.get=function(e,t){return this._iter.get(e,t)},Ye.prototype.has=function(e){return this._iter.has(e)},Ye.prototype.valueSeq=function(){return this._iter.valueSeq()},Ye.prototype.reverse=function(){var e=this,t=$e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ye.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ye.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Ye.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Jt,t),r=t?ut(this):0;return new w(function(){var o=n.next();return o.done?o:k(e,t?--r:r++,o.value,o)})},Ye.prototype[Wt]=!0,e(qe,P),qe.prototype.includes=function(e){return this._iter.includes(e)},qe.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(Ge,I),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(Ve,N),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var o=i(r);return k(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},qe.prototype.cacheResult=Ye.prototype.cacheResult=Ge.prototype.cacheResult=Ve.prototype.cacheResult=ft,e(pt,X),pt.prototype.toString=function(){return this.__toString(vt(this)+" {","}")},pt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},pt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},pt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=yt(this,me()))},pt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+vt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:yt(this,n)},pt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:yt(this,t)},pt.prototype.wasAltered=function(){return this._map.wasAltered()},pt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},pt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?yt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Nn=pt.prototype;Nn.delete=Nn.remove,Nn.deleteIn=Nn.removeIn=_n.removeIn,Nn.merge=_n.merge,Nn.mergeWith=_n.mergeWith,Nn.mergeIn=_n.mergeIn,Nn.mergeDeep=_n.mergeDeep,Nn.mergeDeepWith=_n.mergeDeepWith,Nn.mergeDeepIn=_n.mergeDeepIn,Nn.setIn=_n.setIn,Nn.update=_n.update,Nn.updateIn=_n.updateIn,Nn.withMutations=_n.withMutations,Nn.asMutable=_n.asMutable,Nn.asImmutable=_n.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return bt(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return bt(this,this._map.remove(e))},mt.prototype.clear=function(){return bt(this,this._map.clear())},mt.prototype.union=function(){var e=Bt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ct(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;ie(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ct(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):Tt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=b(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ct(o,i)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Mt;var Rn,An="@@__IMMUTABLE_STACK__@@",Fn=Ot.prototype;Fn[An]=!0,Fn.withMutations=_n.withMutations,Fn.asMutable=_n.asMutable,Fn.asImmutable=_n.asImmutable,Fn.wasAltered=_n.wasAltered,t.Iterator=w,Nt(t,{toArray:function(){ie(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new qe(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Ye(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){ie(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Be(this.toKeyedSeq())},toOrderedSet:function(){return kt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Ce(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Bt.call(arguments,0);return at(this,function(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?z(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new x(o);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(Xt)},every:function(e,t){ie(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return at(this,Je(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ie(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ie(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator($t)},map:function(e,t){return at(this,Ze(this,e,t))},reduce:function(e,t,n){var r,o;return ie(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,$e(this,!0))},slice:function(e,t){return at(this,Xe(this,e,t,!0))},some:function(e,t){return!this.every(xt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Jt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return p(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return V(this,e)},entrySeq:function(){var e=this;if(e._cache)return new x(e._cache);var t=e.toSeq().map(It).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(xt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(v)},flatMap:function(e,t){return at(this,function(e,t,n){var r=lt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=ht(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,Vt):Vt)===Vt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),o=(l(e)?Be():ae()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=lt(e);return o.map(function(t){return at(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,Vt)!==Vt},hasIn:function(e){return this.getIn(e,Vt)!==Vt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Pt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?Lt(e):At)},minBy:function(e,t){return rt(this,t?Lt(t):At,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(xt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Xt,o),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===Xt?e:k(r,u,l,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(xt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Ft(this))}});var zn=t.prototype;zn[Kt]=!0,zn[nn]=zn.values,zn.__toJS=zn.toArray,zn.__toStringMapper=jt,zn.inspect=zn.toSource=function(){return this.toString()},zn.chain=zn.flatMap,zn.contains=zn.includes,function(){try{Object.defineProperty(zn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Nt(n,{flip:function(){return at(this,Qe(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Bn=n.prototype;return Bn[Ht]=!0,Bn[nn]=zn.entries,Bn.__toJS=zn.toObject,Bn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+jt(e)},Nt(r,{toKeyedSeq:function(){return new Ye(this,!1)},filter:function(e,t){return at(this,Je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,$e(this,!1))},slice:function(e,t){return at(this,Xe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var d=f[0];if("IMMUTABLE"===c)return t.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});var h=o.getRemovalRange(s,u,e.getText().slice(d.start,d.end),d.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,c,t),h=d.start,p=d.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}(l.getCharacterList(),a,u):l.getCharacterList().slice(0,a).concat(c.getCharacterList().slice(u));var f=l.merge({text:l.getText().slice(0,a)+c.getText().slice(u),characterList:n}),d=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===i?f:null});return o=o.merge(d).filter(function(e){return!!e}),e.merge({blockMap:o,selectionBefore:t,selectionAfter:t.merge({anchorKey:i,anchorOffset:a,focusKey:i,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),o=n(21),i=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||i(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),l=u.getText(),c=u.getCharacterList(),f=u.merge({text:l.slice(0,r),characterList:c.slice(0,r)}),d=o(),h=f.merge({key:d,text:l.slice(r),characterList:c.slice(r),data:a()}),p=s.toSeq().takeUntil(function(e){return e===u}),y=s.toSeq().skipUntil(function(e){return e===u}).rest(),v=p.concat([[f.getKey(),f],[h.getKey(),h]],y).toOrderedMap();return e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:0,focusKey:d,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return v.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function o(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function i(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return d()}var a=n(15)||function(e){for(var t=1;t0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):i(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r0?o.getInlineStyleAt(r-1):i(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,i=l.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),c=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var d={currentContent:c,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,d)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=l.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=l.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=v},function(e,t,n){"use strict";function r(e,t){return e===t}var o=n(5),i=n(31),a=n(8),s=o.List,u=o.Repeat,l=o.Record,c=i.thatReturnsTrue,f=l({start:null,end:null}),d=l({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new d({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var o=[],i=t?t.getDecorations(e):s(u(null,n)),l=e.getCharacterList();return a(i,r,c,function(e,t){var n,u,h,p;o.push(new d({start:e,end:t,decoratorKey:i.get(e),leaves:(n=l.slice(e,t).toList(),u=e,h=[],p=n.map(function(e){return e.getStyle()}).toList(),a(p,r,c,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(o)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(7),a=n(5),s=n(33),u=n(21),l=n(34),c=a.List,f=a.Record,d=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),o=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:o,selectionAfter:o})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=l(e),new i({key:u(),text:e,type:"unstyled",characterList:c(d(o.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset();return t<=this.getEndOffset()&&i<=n}if(e!==r&&e!==o)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,o=n(5),i=n(36),a=n(39),s=o.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),l=s(n.keySeq().zip(u));return null!=t&&o.is(t,l)?t:l}};e.exports=u},function(e,t,n){"use strict";var r=n(37),o=n(38),i=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?o.isStrong(t)||i(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function o(e){var t=r(e);return null==t?s.NEUTRAL:d.exec(t)?s.RTL:s.LTR}function i(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=o(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),i(e,t)}var s=n(38),u=n(17),l="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",c="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+l+c+"]"),d=new RegExp("["+l+c+"]"),h={firstStrongChar:r,firstStrongCharDir:o,resolveBlockDir:i,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function o(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function i(e){l=e}var a=n(17),s="LTR",u="RTL",l=null,c={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:o,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:o(e)},setGlobalDir:i,initGlobalDir:function(){i(s)},getGlobalDir:function(){return l||this.initGlobalDir(),l||a(!1),l}};e.exports=c},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,o=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var o=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==i;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var d=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return void this.update(o.push(t,d,"insert-characters"))}f&&this.update(o.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===o.get(e).getMutability()?e:null}var o=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?r(e.getBlockForKey(n).getEntityAt(o-1)):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some(function(e){return o===e.get("start")?(i=!0,!0):o_,N));var F=M||i,z={className:A,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":P,key:E};void 0!==T&&(z=o({},z,{contentEditable:T,suppressContentEditableWarning:!0}));var B=s.createElement(j,z,s.createElement(F,I));b.push({block:B,wrapperTemplate:L,key:E,offsetKey:P}),_=L?S.getDepth():null,w=L}for(var K=[],H=0;H0&&window.scrollTo(i.x,i.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),l=this.props.tree.size-1,c=r(this.props.selection,n);return this.props.tree.map(function(r,h){var p=r.get("leaves"),y=p.size-1,v=p.map(function(r,o){var f=a.encode(n,h,o),d=r.get("start"),p=r.get("end");return s.createElement(i,{key:f,offsetKey:f,blockKey:n,start:d,selection:c?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===l&&o===y})}).toArray(),g=r.get("decoratorKey");if(null==g)return v;if(!e.props.decorator)return v;var b=m(e.props.decorator),_=b.getComponentForKey(g);if(!_)return v;var w=b.getPropsForKey(g),k=a.encode(n,h,0),S=u.slice(p.first().get("start"),p.last().get("end")),E=d.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(_,o({},w,{decoratedText:S,dir:E,key:k,entityKey:t.getEntityAt(r.get("start")),offsetKey:k}),v)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),o=n(52),i=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,o=r+t.text.length;if(e.hasEdgeWithin(n,r,o)){var i,u=a.findDOMNode(this),l=u.firstChild;i=l.nodeType===Node.TEXT_NODE?l:"BR"===l.tagName?u:l.firstChild,s(e,i,n,r,o)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,l=u.reduce(function(e,t){var o={},i=n[t];return void 0!==i&&e.textDecoration!==i.textDecoration&&(o.textDecoration=[e.textDecoration,i.textDecoration].join(" ").trim()),r(e,i,o)},{});if(a){var c=a(u);l=r(l,c)}return i.createElement("span",{"data-offset-key":s,ref:"leaf",style:l},i.createElement(o,null,e))},t}(i.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),o=n(53),i=n(54).isBrowser("IE <= 11"),a=i?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=i?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=o.findDOMNode(this);return""===e.children?!function(e){return i?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,a.contains(o,t))}function o(e){return"Windows"===i.platformName?e.replace(/^\s*NT/,""):e}var i=n(55),a=n(58),s=n(59),u=n(60),l={isBrowser:function(e){return r(i.browserName,i.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(i.browserArchitecture,null,e)},isDevice:function(e){return r(i.deviceName,null,e)},isEngine:function(e){return r(i.engineName,i.engineVersion,e)},isPlatform:function(e){return r(i.platformName,i.platformFullVersion,e,o)},isPlatformArchitecture:function(e){return r(i.platformArchitecture,null,e)}};e.exports=s(l,u)},function(e,t,n){"use strict";var r,o="Unknown",i={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||o,browserFullVersion:a.browser.version||o,browserMinorVersion:s.minor||o,browserName:a.browser.name||o,browserVersion:a.browser.major||o,deviceName:a.device.model||o,engineName:a.engine.name||o,engineVersion:a.engine.version||o,platformArchitecture:a.cpu.architecture||o,platformName:(r=a.os.name,i[r]||r||o),platformVersion:a.os.version||o,platformFullVersion:a.os.version||o};e.exports=u},function(e,t,n){var r;!function(o,i){"use strict";var a="model",s="name",u="type",l="vendor",c="version",f="mobile",d="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},p={rgx:function(){for(var e,t,n,r,o,i,a,s=0,u=arguments;s0?2==o.length?"function"==typeof o[1]?e[o[0]]=o[1].call(this,a):e[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?e[o[0]]=a?a.replace(o[1],o[2]):void 0:e[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(e[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):e[o]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return _.contains(e,t)}):function(e,t){var n=e.split(m);if(n.length>0&&n.length<=2||p(!1),1===n.length)return o(n[0],t);var r=n[0],i=n[1];return l(r)&&l(i)||p(!1),o(">="+r,t)&&o("<="+i,t)}(e=n[0].trim(),t)}function o(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(y),o=s(e),l=o.modifier,c=o.rangeComponents;switch(l){case"<":return i(r,c);case"<=":return-1===(n=h(r,c))||0===n;case">=":return a(r,c);case">":return function(e,t){return 1===h(e,t)}(r,c);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,s=parseInt(r[o],10);return u(s)&&(r[o]=s+1+""),a(e,n)&&i(e,r)}(r,c);default:return function(e,t){return 0===h(e,t)}(r,c)}}function i(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(y),n=t[0].match(g);return n||p(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function l(e){return!s(e).modifier}function c(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,b=/^(\d*)(.*)/,_={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=_},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var o={};for(var i in e)n.call(e,i)&&(o[i]=t.call(r,e[i],i,e));return o}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&i(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function o(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var i=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(i(document.documentElement,n)){var l=t.getSelection(),c=e.getAnchorKey(),f=e.getAnchorOffset(),d=e.getFocusKey(),h=e.getFocusOffset(),p=e.getIsBackward();if(!l.extend&&p){var y=c,v=f;c=d,f=h,d=y,h=v,p=!1}var m=c===a&&s<=f&&u>=f,g=d===a&&s<=h&&u>=h;if(m&&g)return l.removeAllRanges(),o(l,n,f-s),void r(l,n,h-s);if(p){if(g&&(l.removeAllRanges(),o(l,n,h-s)),m){var b=l.focusNode,_=l.focusOffset;l.removeAllRanges(),o(l,n,f-s),r(l,b,_)}}else m&&(l.removeAllRanges(),o(l,n,f-s)),g&&r(l,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],o=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(o,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=o},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var o=n(70),i=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(i(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(i(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[o(t)]:e.style&&e.style[o(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),o=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=o(e),i=e===t?document.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function o(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}o.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=o},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,p)))return;return void u(p,function(e){e&&t.update(r(d,c(h),e))})}var y=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,y)))return this._internalDrag?void this.update(function(e,t){var n=i.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(d,h)):void this.update(r(d,h,n.getText()))}}};e.exports=d},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var o=n(81),i=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},l=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?i(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=l},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o=0;h--)if(!(null!=d&&h>0&&i.isSurrogatePair(d,h-1))){if(e.setStart(c,h),!r(a(e),n))break;u=c,l=h}if(-1===h||0===c.childNodes.length)break;f=o(c=c.childNodes[h])}return e.setStart(u,l),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function o(e){return d.test(e)}function i(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!o(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var c=null;if(null!=s)c=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);c=l(a(f))}return{key:c,offset:0}}var d=r.childNodes[n-1],h=null,p=null;if(a(d)){var y=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(d);h=l(a(y)),p=o(y)}else h=l(s),p=o(d);return{key:h,offset:p}}function o(e){var t=e.textContent;return"\n"===t?0:t.length}var i=n(83),a=n(84),s=n(86),u=n(17),l=n(39);e.exports=function(e,t,n,o,a,u){var c=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:s(e,l(i(n)),o,l(i(a)),u),needsRecovery:!1};var d=null,h=null,p=!0;return c?(d={key:l(i(n)),offset:o},h=r(t,a,u)):f?(h={key:l(i(a)),offset:u},d=r(t,n,o)):(d=r(t,n,o),h=r(t,a,u),n===a&&o===u&&(p=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,d.key,d.offset,h.key,h.offset),needsRecovery:p}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var u=r.getKeyBefore(o);null==u?a=o:(a=u,s=r.getBlockForKey(u).getText().length)}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var o=e.getSelection(),i=e.getCurrentContent(),a=o;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i}else if(e.isSelectionAtStartOfContent())return i;if((a=t(e))===o)return i}return r.removeRange(i,a,n)}},function(e,t,n){"use strict";var r=n(110),o=n(29),i=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var o="\\s|(?![_])"+n(111).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:['‘’]|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:['‘’]|(?!"+o+").)*(?:"+o+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),o=n(29),i=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),o=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),o=n(104),i=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),o=n(104),i=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),o=n(29),i=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),l=e.getCurrentContent(),c=l.getBlockForKey(u).getLength();if(c<=1)return e;n===c?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(l,a),d=r.removeRange(l,a,"backward"),h=d.getSelectionAfter(),p=h.getAnchorOffset()-1,y=h.merge({anchorOffset:p,focusOffset:p}),v=r.replaceWithFragment(d,y,f),m=o.push(e,v,"insert-fragment");return o.acceptSelection(m,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(o)},0)):void n(o);var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,n,"insert-fragment")}var o=n(4),i=n(6),a=n(80),s=n(9),u=n(122),l=n(29),c=n(47),f=n(85),d=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var p=n.getFiles(),y=n.getText();if(p.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(p)))return;return void f(p,function(e){if(e=e||y){var n=t.props.editorState,r=d(e),a=i.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=o.createFromArray(f),p=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(l.push(n,p,"insert-fragment"))}})}}var v=[],m=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(m,g))){if(m&&(v=d(m)),!this.props.stripPastedStyles){var b=this.getClipboard();if(n.isRichText()&&b){if(-1!==g.indexOf(this.getEditorKey())||1===v.length&&1===b.size&&b.first().getText()===m)return void this.update(r(this.props.editorState,b))}else if(b&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(v,b))return void this.update(r(this.props.editorState,b));if(g){var _=u.processHTML(g,this.props.blockRenderMap);if(_){var w=o.createFromArray(_);return void this.update(r(this.props.editorState,w))}}this.setClipboard(null)}if(v){var k=this.props.editorState,S=i.create({style:k.getCurrentInlineStyle(),entity:c(k.getCurrentContent(),k.getSelection())}),E=u.processText(v,S),D=o.createFromArray(E);this.update(r(this.props.editorState,D))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),o=n(5),i=n(123),a=n(21),s=n(125),u=n(34),l=o.List,c=o.Repeat,f={processHTML:function(e,t){return i(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:l(c(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function o(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(D,t))}]}}function i(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):I.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(m,e,t),"ul"!==m&&"ol"!==m||(n&&(d+=1),n=m),i||-1===f.indexOf(m)?n&&"li"===i&&"li"===m&&(k=o(a(m,n,h),d),i=m,g=!0,b="ul"===n?"unordered-list-item":"ordered-list-item"):(k=o(a(m,n,h),d),i=m,g=!0);var D=e.firstChild;null!=D&&(m=D.nodeName.toLowerCase());for(var O=null;D;){D instanceof HTMLAnchorElement&&D.href&&u(D)?function(){var e=D,t={};L.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new v(e.href).toString(),O=p.create("LINK","MUTABLE",t)}():O=void 0,k=s(k,l(D,t,n,i,f,d,h,O||y));var C=D.nextSibling;C&&f.indexOf(m)>=0&&i&&(k=s(k,r())),C&&(m=C.nodeName.toLowerCase()),D=C}return g&&(k=s(k,o(b,d))),k}var c,f=n(6),d=n(7),h=n(41),p=n(14),y=n(5),v=n(124),m=n(21),g=n(125),b=n(17),_=n(39),w=n(34),k=y.List,S=y.OrderedSet,E=" ",D=4,O=new RegExp("\r","g"),M=new RegExp("\n","g"),C=new RegExp(" ","g"),T=new RegExp(" ?","g"),N=new RegExp("​?","g"),P=["bold","bolder","500","600","700","800","900"],I=["light","lighter","100","200","300","400"],x={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},L=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(O,"").replace(C,E).replace(T,"").replace(N,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),o=t(e);if(!o)return null;c=null;var i=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=l(o,S(),"ul",null,i,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=w(e);var o=n+e.length,i=_(t).inlines.slice(n,o),a=_(t).entities.slice(n,o),s=k(i.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=o+1,new d({key:m(),type:_(t).blocks[r].type,depth:_(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),o=n(53),i=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=i(e,o.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var o=t.getSelection();return 0===o.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),o=n(42),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=i},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var o=n(100),i=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),l=s&&a.isBrowser("Firefox < 29"),c=o.hasCommandModifier,f=o.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case i.RETURN:return"split-block";case i.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case i.BACKSPACE:return function(e){return c(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case i.LEFT:return l&&c(e)?"move-selection-to-start-of-block":null;case i.RIGHT:return l&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),o=n(9),i=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=o.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=i.push(e,t,"insert-characters");return i.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),l=o.setBlockType(n,s,n.getBlockForKey(r).getType()),c=o.removeRange(l,s,"backward");if(c!==n)return i.push(e,c,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?i.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=i.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return o.setBlockType(i,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,a.get(i)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),o=n(134),i=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var i=o.stringify(e.getEntityAt(r));n.hasOwnProperty(i)||(n[i]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:i(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(o.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),o=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(i,a){var s=e.getText(),u=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),o=n(8),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return o(u,i,a,function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,o.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,o=null,i=[],a=0,s=0,u=e.length;s0&&n!==o&&(i.push([o,r(e.slice(a,s),t.slice(a,s))]),a=s)}return i.push([n,r(e.slice(a),t.slice(a))]),i};var o=n(150),i=t.EMPTY_SET=new o.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:T(e)}function n(e){return a(e)?e:N(e)}function r(e){return s(e)?e:P(e)}function o(e){return i(e)&&!u(e)?e:I(e)}function i(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ht])}function s(e){return!(!e||!e[Ut])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[Wt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?p(e)+t:t}function v(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function k(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function S(){return{value:void 0,done:!0}}function E(e){return!!M(e)}function D(e){return e&&"function"==typeof e.next}function O(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function C(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?F():i(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function N(e){return null===e||void 0===e?F().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():z(e)}function P(e){return null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():B(e)}function I(e){return(null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e:B(e)).toSetSeq()}function x(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function A(e){return!(!e||!e[sn])}function F(){return rn||(rn=new x([]))}function z(e){var t=Array.isArray(e)?new x(e).fromEntrySeq():D(e)?new R(e).fromEntrySeq():E(e)?new j(e).fromEntrySeq():"object"==typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return C(e)?new x(e):D(e)?new R(e):E(e)?new j(e):void 0}function H(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new w(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:k(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,P(n).map(function(r,o){return e(t,r,o,n)})):q(n)?t.call(o,r,N(n).map(function(r,o){return e(t,r,o,n)})):n}(t,e,"",{"":e}):Y(e)}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():q(e)?N(e).map(Y).toMap():e}function q(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function V(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&G(o[1],e)&&(n||G(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!G(t,e.get(r,Vt)):!G(e.get(r,Vt),t))return f=!1,!1});return f&&e.size===d}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function Z(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var o=0|e;for(o!==e&&(o^=4294967295*e);e>4294967295;)o^=e/=4294967295;return ne(o)}if("string"===r)return e.length>yn?(void 0===(n=gn[t=e])&&(n=oe(t),mn===vn&&(mn=0,gn={}),mn++,gn[t]=n),n):oe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(dn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[pn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[pn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),dn)un.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[pn]=t}}return t}(e);if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function oe(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Yt,r,o)]:(i=new de(t,r,o),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Me(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function Ce(e){var t=xe();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),o=n.size;return 0===o?t:(ie(o),o>0&&or?0:r-n,l=o-n;return l>qt&&(l=qt),function(){if(u===l)return Tn;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,i,a){var s,u=e&&e.array,l=a>r?0:r-a>>i,c=1+(o-a>>i);return c>qt&&(c=qt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(l===c)return Tn;var r=t?--c:l++;s=n(u&&u[r],i-Yt,a+(r<>>n&Gt,u=e&&s0){var l=e&&e.array[s],c=Le(l,t,n-Yt,r,o,i);return c===l?e:((a=je(e,t)).array[s]=c,a)}return u&&e.array[s]===o?e:(f(i),a=je(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function je(e,t){return t&&e&&t===e.ownerID?e:new Ne(e?e.array.slice():[],t)}function Re(e,t){if(t>=ze(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Yt;return n}}function Ae(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Ne(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=Yt);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=ze(i),h=ze(s);h>=1<f?new Ne([],r):p;if(p&&h>f&&aYt;m-=Yt){var g=f>>>m≫v=v.array[g]=je(v.array[g],r)}v.array[f>>>Yt&Gt]=p}if(s=h)a-=h,s-=h,u=Yt,l=null,y=y&&y.removeBefore(r,0,a);else if(a>o||h>>u≫if(b!==h>>>u&Gt)break;b&&(c+=(1<o&&(l=l.removeBefore(r,u,a-c)),l&&ha&&(a=l.size),i(u)||(l=l.map(function(e){return W(e)})),o.push(l)}return a>e.size&&(e=e.setSize(a)),De(e,t,o)}function ze(e){return e>>Yt<=qt&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):He(r,o)}function Ye(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qe(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===Xt){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Jt?$t:Jt,n)},t}function Ze(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,Vt);return i===Vt?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Xt,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return k(r,s,t.call(n,a[1],s,e),o)})},r}function $e(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Je(e,t,n,r){var o=ct(e);return r&&(o.has=function(r){var o=e.get(r,Vt);return o!==Vt&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,Vt);return i!==Vt&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Xt,i),s=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return k(o,r?l:s++,c,i)}})},o}function Xe(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),m(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!=i||a!=a)return Xe(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var l=ct(e);return l.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(l.get=function(t,n){return(t=y(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===Jt?e:k(t,u-1,t===$t?void 0:e.value[1],e)})},l}function et(e,t,n,r){var o=ct(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Xt,i),u=!0,l=0;return new w(function(){var e,i,c;do{if((e=s.next()).done)return r||o===Jt?e:k(o,l++,o===$t?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===Xt?e:k(o,i,c,e)})},o}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(u,l){var c=this;u.__iterate(function(o,u){return(!t||l0}function it(e,n,r){var o=ct(e);return o.size=new x(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Jt,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:k(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function at(e,t){return A(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return ie(e.size),p(e)}function lt(e){return a(e)?n:s(e)?r:o}function ct(e){return Object.create((a(e)?N:s(e)?P:I).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function dt(e,t){return e>t?1:et?-1:0}function Ft(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+zt(re(e),re(t))|0}:function(e,t){r=r+zt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=ln(t,3432918353),t=ln(t<<15|t>>>-15,461845907),t=ln(t<<13|t>>>-13,5),t=ln((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=ln(t^t>>>13,3266489909))^t>>>16)}(o,r)}function zt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Bt=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ht="@@__IMMUTABLE_KEYED__@@",Ut="@@__IMMUTABLE_INDEXED__@@",Wt="@@__IMMUTABLE_ORDERED__@@",Yt=5,qt=1<r?{value:void 0,done:!0}:k(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:k(e,a,n[a])})},L.prototype[Wt]=!0,e(j,P),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(D(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!D(r))return new w(S);var o=0;return new w(function(){var t=r.next();return t.done?t:k(e,o++,t.value)})},e(R,P),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return k(e,o,r[o++])})},e(Q,P),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return G(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,b(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return G(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:k(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:V(this,e)},e(J,t),e(X,J),e(ee,J),e(te,J),J.Keyed=X,J.Indexed=ee,J.Set=te;var un,ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),dn="function"==typeof WeakMap;dn&&(un=new WeakMap);var hn=0,pn="__immutablehash__";"function"==typeof Symbol&&(pn=Symbol(pn));var yn=16,vn=255,mn=0,gn={};e(ae,X),ae.of=function(){var e=Bt.call(arguments,0);return me().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Vt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Vt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Vt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===Vt,a=n.next();if(a.done){var s=i?r:t,u=o(s);return u===s?t:u}Z(i||t&&t.set,"invalid keyPath");var l=a.value,c=i?Vt:t.get(l,Vt),f=e(c,n,r,o);return f===c?t:f===Vt?t.remove(l):(i?me():t).set(l,f)}(this,ht(e),t,n);return r===Vt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return ke(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Bt.call(arguments,1);return ke(this,e,t)},ae.prototype.mergeIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return ke(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Bt.call(arguments,1);return ke(this,Ee(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Bt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Be(nt(this,e))},ae.prototype.sortBy=function(e,t){return Be(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var bn="@@__IMMUTABLE_MAP__@@",_n=ae.prototype;_n[bn]=!0,_n.delete=_n.remove,_n.removeIn=_n.deleteIn,ue.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=kn)return function(e,t,n,r){e||(e=new d);for(var o=new de(e,re(n),[n,r]),i=0;i>>e)&Gt),i=this.bitmap;return 0==(i&o)?r:this.nodes[Oe(i&o-1)].get(e+Yt,t,n,r)},le.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,o){for(var i=0,a=new Array(qt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ce(e,i+1,a)}(e,d,l,s,p);if(c&&!p&&2===d.length&&_e(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&_e(p))return p;var y=e&&e===this.ownerID,v=c?p?l:l^u:l|u,m=c?p?Me(d,f,p,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&Gt,i=this.nodes[o];return i?i.get(e+Yt,t,n,r):r},ce.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=o===Vt,l=this.nodes,c=l[s];if(u&&!c)return this;var f=be(c,e,t+Yt,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Ae(e,t).set(0,n):Ae(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(Zt);return t>=ze(e._capacity)?r=Le(r,e.__ownerID,0,t,n,i):o=Le(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ie(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},Ce.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ce.prototype.insert=function(e,t){return this.splice(e,0,t)},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Yt,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xe()},Ce.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ae(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ne([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-Yt,n))===a&&i)return this}if(i&&!o)return this;var s=je(this,e);if(!i)for(var u=0;u>>t≫if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-Yt,n))===i&&o===this.array.length-1)return this}var a=je(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Mn,Cn,Tn={};e(Be,ae),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Be.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ue()},Be.prototype.set=function(e,t){return We(this,e,t)},Be.prototype.remove=function(e){return We(this,e,Vt)},Be.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Be.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Be.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Be.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?He(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Be.isOrderedMap=Ke,Be.prototype[Wt]=!0,Be.prototype.delete=Be.prototype.remove,e(Ye,N),Ye.prototype.get=function(e,t){return this._iter.get(e,t)},Ye.prototype.has=function(e){return this._iter.has(e)},Ye.prototype.valueSeq=function(){return this._iter.valueSeq()},Ye.prototype.reverse=function(){var e=this,t=$e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ye.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ye.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Ye.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Jt,t),r=t?ut(this):0;return new w(function(){var o=n.next();return o.done?o:k(e,t?--r:r++,o.value,o)})},Ye.prototype[Wt]=!0,e(qe,P),qe.prototype.includes=function(e){return this._iter.includes(e)},qe.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(Ge,I),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(Ve,N),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Jt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var o=i(r);return k(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},qe.prototype.cacheResult=Ye.prototype.cacheResult=Ge.prototype.cacheResult=Ve.prototype.cacheResult=ft,e(pt,X),pt.prototype.toString=function(){return this.__toString(vt(this)+" {","}")},pt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},pt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},pt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=yt(this,me()))},pt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+vt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:yt(this,r)},pt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:yt(this,t)},pt.prototype.wasAltered=function(){return this._map.wasAltered()},pt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},pt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?yt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Nn=pt.prototype;Nn.delete=Nn.remove,Nn.deleteIn=Nn.removeIn=_n.removeIn,Nn.merge=_n.merge,Nn.mergeWith=_n.mergeWith,Nn.mergeIn=_n.mergeIn,Nn.mergeDeep=_n.mergeDeep,Nn.mergeDeepWith=_n.mergeDeepWith,Nn.mergeDeepIn=_n.mergeDeepIn,Nn.setIn=_n.setIn,Nn.update=_n.update,Nn.updateIn=_n.updateIn,Nn.withMutations=_n.withMutations,Nn.asMutable=_n.asMutable,Nn.asImmutable=_n.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return bt(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return bt(this,this._map.remove(e))},mt.prototype.clear=function(){return bt(this,this._map.clear())},mt.prototype.union=function(){var e=Bt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ct(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;ie(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ct(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):Tt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=b(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ct(o,i)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,k(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Mt;var Rn,An="@@__IMMUTABLE_STACK__@@",Fn=Ot.prototype;Fn[An]=!0,Fn.withMutations=_n.withMutations,Fn.asMutable=_n.asMutable,Fn.asImmutable=_n.asImmutable,Fn.wasAltered=_n.wasAltered,t.Iterator=w,Nt(t,{toArray:function(){ie(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new qe(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Ye(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){ie(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Be(this.toKeyedSeq())},toOrderedSet:function(){return kt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Ce(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Bt.call(arguments,0);return at(this,function(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?z(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new x(o);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(Xt)},every:function(e,t){ie(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return at(this,Je(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ie(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ie(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator($t)},map:function(e,t){return at(this,Ze(this,e,t))},reduce:function(e,t,n){var r,o;return ie(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,$e(this,!0))},slice:function(e,t){return at(this,Xe(this,e,t,!0))},some:function(e,t){return!this.every(xt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Jt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return p(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return V(this,e)},entrySeq:function(){var e=this;if(e._cache)return new x(e._cache);var t=e.toSeq().map(It).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(xt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(v)},flatMap:function(e,t){return at(this,function(e,t,n){var r=lt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=ht(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,Vt):Vt)===Vt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),o=(l(e)?Be():ae()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=lt(e);return o.map(function(t){return at(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,Vt)!==Vt},hasIn:function(e){return this.getIn(e,Vt)!==Vt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(Pt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?Lt(e):At)},minBy:function(e,t){return rt(this,t?Lt(t):At,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(xt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Xt,o),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===Xt?e:k(r,u,l,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(xt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Ft(this))}});var zn=t.prototype;zn[Kt]=!0,zn[nn]=zn.values,zn.__toJS=zn.toArray,zn.__toStringMapper=jt,zn.inspect=zn.toSource=function(){return this.toString()},zn.chain=zn.flatMap,zn.contains=zn.includes,Nt(n,{flip:function(){return at(this,Qe(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Bn=n.prototype;return Bn[Ht]=!0,Bn[nn]=zn.entries,Bn.__toJS=zn.toObject,Bn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+jt(e)},Nt(r,{toKeyedSeq:function(){return new Ye(this,!1)},filter:function(e,t){return at(this,Je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,$e(this,!1))},slice:function(e,t){return at(this,Xe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=n(151),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,o({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,l.default)(n,(o(e={},d.default.root,!0),o(e,d.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(c.default,i({},p,{title:a,className:n}),u.default.createElement("span",{className:d.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,c.default.root);var l=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=i?"submit":"button";return s.default.createElement("button",o({type:f},a,{onMouseDown:l,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var u=y++;n=p||(p=s(t)),r=l.bind(null,n,u,!1),o=l.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function l(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}var c={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},d=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),p=null,y=0,v=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=d()),void 0===t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,o({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(l.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,c.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",i({},o,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=o(e,2),n=t[0],r=t[1],i=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},i)})}}]),t}();t.default=d},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),o=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var o=r,i=e.getLength();o=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return i(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,l.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,i){return new e(a.EditorState.push(this._editorState,o(t,n,i),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,i,s){var u=o(t,n,s);return new e(a.EditorState.createWithContent(u,i),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){switch(e){case m.BLOCK_TYPE.HEADER_ONE:return["h1"];case m.BLOCK_TYPE.HEADER_TWO:return["h2"];case m.BLOCK_TYPE.HEADER_THREE:return["h3"];case m.BLOCK_TYPE.HEADER_FOUR:return["h4"];case m.BLOCK_TYPE.HEADER_FIVE:return["h5"];case m.BLOCK_TYPE.HEADER_SIX:return["h6"];case m.BLOCK_TYPE.UNORDERED_LIST_ITEM:case m.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case m.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case m.BLOCK_TYPE.CODE:return["pre","code"];case m.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,l,c=Object.assign||function(e){for(var t=1;t",E=/^data-([a-z0-9-]+)$/,D=(o(s={},g,{element:"strong"}),o(s,b,{element:"code"}),o(s,_,{element:"em"}),o(s,w,{element:"del"}),o(s,k,{element:"ins"}),s),O=[g,_,k,w,b],M=(o(u={},m.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),o(u,m.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),C=(o(l={},m.ENTITY_TYPE.LINK,function(e,t){var n=M.hasOwnProperty(e)?M[e]:{},r=t.getData(),o={},i=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(r)[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value,f=r[c];if(n.hasOwnProperty(c))o[n[c]]=f;else E.test(c)&&(o[c]=f)}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return o}),o(l,m.ENTITY_TYPE.IMAGE,function(e,t){var n=M.hasOwnProperty(e)?M[e]:{},r=t.getData(),o={},i=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(r)[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value,f=r[c];if(n.hasOwnProperty(c))o[n[c]]=f;else E.test(c)&&(o[c]=f)}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return o}),l),T=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[D,O]),o=f(r,2),i=o[0],a=o[1];this.inlineStyles=i,this.styleOrder=a}return d(e,[{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")}}catch(e){f=!0,d=e}finally{try{!l&&v.return&&v.return()}finally{if(f)throw d}}}},{key:"writeEndTag",value:function(e){var t=i(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,o=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var l=s.value;n.unshift("")}}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var o=e.getCharacterList();return(0,m.getEntityRanges)(r,o).map(function(e){var r=f(e,2),o=r[0],i=r[1].map(function(e){var r=f(e,2),o=r[0],i=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(o),u=!0,l=!1,d=void 0;try{for(var h,v=t.styleOrder[Symbol.iterator]();!(u=(h=v.next()).done);u=!0){var g=h.value;if((g!==b||n!==m.BLOCK_TYPE.CODE)&&i.has(g)){var _=t.inlineStyles[g],w=_.element,k=_.attributes,E=_.style;if(null==w&&(w="span"),k=(0,p.default)(k),null!=E){var D=(0,y.default)(E);k=null==k?{style:D}:c({},k,{style:D})}s="<"+w+a(k)+">"+s+""}}}catch(e){l=!0,d=e}finally{try{!u&&v.return&&v.return()}finally{if(l)throw d}}return s}).join(""),s=o?v.Entity.get(o):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===m.ENTITY_TYPE.LINK?""+i+"":null!=u&&u===m.ENTITY_TYPE.IMAGE?"":i}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,o=n.characterMeta,i=!1;if(r===p&&(i=!0,r=""),"pre"===e.tagName){var l=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,o);r=l.text,o=l.characterMeta}else{var c=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var o=e.length;o--;)" "===e.charAt(o)&&" "===e.charAt(o-1)&&(e=e.slice(0,o)+e.slice(o+1),t=t.slice(0,o).concat(t.slice(o+1)));var i=(0,a.default)({text:e,characterMeta:t},p+" ",p);e=i.text,t=i.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+p,p);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,o);r=c.text,o=c.characterMeta}((r=r.split(p).join("\n")).length||i)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:o.toList(),depth:e.depth}))}),t.length?t:[d]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?l.BLOCK_TYPE.ORDERED_LIST_ITEM:l.BLOCK_TYPE.UNORDERED_LIST_ITEM;case"blockquote":return l.BLOCK_TYPE.BLOCKQUOTE;case"h1":return l.BLOCK_TYPE.HEADER_ONE;case"h2":return l.BLOCK_TYPE.HEADER_TWO;case"h3":return l.BLOCK_TYPE.HEADER_THREE;case"h4":return l.BLOCK_TYPE.HEADER_FOUR;case"h5":return l.BLOCK_TYPE.HEADER_FIVE;case"h6":return l.BLOCK_TYPE.HEADER_SIX;case"pre":return l.BLOCK_TYPE.CODE;case"figure":return l.BLOCK_TYPE.ATOMIC;default:return l.BLOCK_TYPE.UNSTYLED}}},{key:"processBlockElement",value:function(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case l.BLOCK_TYPE.UNORDERED_LIST_ITEM:case l.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),o=!_.hasOwnProperty(t),i={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};o&&(this.blockList.push(i),r&&(this.depth+=1)),this.blockStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),o&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],o=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(l.INLINE_STYLE.BOLD);case"i":case"em":return e.add(l.INLINE_STYLE.ITALIC);case"ins":return e.add(l.INLINE_STYLE.UNDERLINE);case"code":return e.add(l.INLINE_STYLE.CODE);case"del":return e.add(l.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(o=g[t](t,e)||o),n.styleStack.push(r),n.entityStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),w.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(p)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(p),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],o=s.CharacterMetadata.create({style:n,entity:r}),i=(0,u.Repeat)(o,e.length);t.textFragments.push({text:e,characterMeta:i})}},{key:"processNode",value:function(e){if(e.nodeType===c.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();b.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===c.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var o=e.text,i=e.characterMeta,a=t.length,s=r.length,u=[],l=i.slice(0,0),c=0,f=o.indexOf(t);-1!==f;)u.push(o.slice(c,f)+r),l=l.concat(i.slice(c,f),n(i.slice(f,f+1),s)),c=f+a,f=o.indexOf(t,c);return u.push(o.slice(c)),l=l.concat(i.slice(c)),{text:u.join(""),characterMeta:l}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var l=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=l,!l&&o&&o.forEach(a.appendChild,a),a}return o(t,d),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=this.attributes[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=s.name,l=s.value;t.push(u+(l?'="'+l.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}var c=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+c+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+c+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=c,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return o(t,d),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function o(e){return e.replace(/\)/g,"%29")}function i(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.getDepth(),o=this.currentBlock-1,i=this.blocks[o];i&&r(i.getType())&&i.getDepth()>n;)o-=1,i=this.blocks[o];return i&&i.getType()===t&&i.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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],o=n[1];if(!r)return"";var i=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return o.has(c)&&(i="**"+i+"**"),o.has(p)&&(i="++"+i+"++"),o.has(d)&&(i="_"+i+"_"),o.has(h)&&(i="~~"+i+"~~"),o.has(f)&&(i=t===u.BLOCK_TYPE.CODE?i:"`"+i+"`"),i}).join(""),y=r?l.Entity.get(r):null;if(null!=y&&y.getType()===u.ENTITY_TYPE.LINK){var v=y.getData(),m=v.url||"",g=v.title?' "'+i(v.title)+'"':"";return"["+s+"]("+o(m)+g+")"}if(null!=y&&y.getType()===u.ENTITY_TYPE.IMAGE){var b=y.getData(),_=b.src||"";return"!["+(b.alt?' "'+i(b.alt)+'"':"")+"]("+o(_)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=i.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,o=n(203),i=(r=o)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=c({},e||d),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function o(e,t){if(this.options=c({},t||d),this.links=e,this.rules=p.normal,this.renderer=this.options.renderer||new i,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=p.breaks:this.rules=p.gfm:this.options.pedantic&&(this.rules=p.pedantic)}function i(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=c({},e||d),this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=(o=o.source||o).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,o),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),l=Object.prototype.hasOwnProperty,c=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=c({},h),h.gfm=c({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,o,i,a,s,u,l,c,f;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(i=this.rules.lheading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:"="===i[2]?1:2,text:i[1]});else if(i=this.rules.hr.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"hr"});else if(i=this.rules.blockquote.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"blockquote_start"}),i=i[0].replace(/^ *> ?/gm,""),this.token(i,t,!0),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),a=i[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(i=i[0].match(this.rules.item)).length,c=0;c1&&s.length>1||(e=i.slice(c+1).join("\n")+e,c=f-1)),o=r||/\n\n(?!\s*$)/.test(u),c!==f-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),this.tokens.push({type:o?"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&&t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),this.tokens.links[i[1].toLowerCase()]={href:i[2],title:i[3]};else if(t&&(i=this.rules.paragraph.exec(e)))e=e.substring(i[0].length),this.tokens.push({type:"paragraph",text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1]});else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"text",text:i[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var p={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};p.link=s(p.link)("inside",p._inside)("href",p._href)(),p.reflink=s(p.reflink)("inside",p._inside)(),p.normal=c({},p),p.pedantic=c({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=c({},p.normal,{escape:s(p.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(p.text)("]|","~+]|")()}),p.breaks=c({},p.gfm,{br:s(p.br)("{2,}","*")(),text:s(p.gfm.text)("{2,}","*")()}),o.rules=p,o.parse=function(e,t,n){return new o(t,n).parse(e)},o.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},o.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},i.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},i.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},i.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},i.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},i.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},i.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},i.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},i.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},i.prototype.em=function(e){return new u.ElementNode("em",[],[e])},i.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},i.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},i.prototype.del=function(e){return new u.ElementNode("del",[],[e])},i.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},i.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},i.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},i.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new o(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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 o=new u.FragmentNode;"list_item_end"!==this.next().type;)o.appendChild(this.tok());return this.renderer.listitem(o);case"paragraph":return this.renderer.paragraph(this.inline.parse(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};var y={parse:function(e,t){t=c({},d,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return i.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(i(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),a=(l=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},cw5X:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=o&&i2&&void 0!==arguments[2]?arguments[2]:i.default.localeData().firstDayOfWeek();if(!i.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===a.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),s=(r.day()+7-n)%7,u=(n+6-o.day())%7,l=r.clone().subtract(s,"day"),c=o.clone().add(u,"day").diff(l,"days")+1,f=l.clone(),d=[],h=0;h=s&&h1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?o.a.Children.map(this.props.children,function(t){return t.type===s.a?o.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return o.a.createElement("div",l({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},h8mb:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=u(n("4kv9")),o=u(n("UZlY")),i=n("mtpF"),a=u(n("aQzc")),s=u(n("UtRD"));function u(e){return e&&e.__esModule?e:{default:e}}t.default={create:function(e){var t={},n=Object.keys(e),r=(o.default.get(i.GLOBAL_CACHE_KEY)||{}).namespace,s=void 0===r?"":r;return n.forEach(function(e){var n=(0,a.default)(s,e);t[e]=n}),t},resolve:function(e){var t=(0,r.default)(e,1/0),n=(0,s.default)(t),o=n.classNames,i=n.hasInlineStyles,a=n.inlineStyles,u={className:o.map(function(e,t){return String(e)+" "+String(e)+"_"+String(t+1)}).join(" ")};return i&&(u.style=a),u}}},hAtu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("GiK3"),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){return function(e){return i.default.createElement("svg",e,i.default.createElement("path",{d:"M694.4 242.4l249.1 249.1c11 11 11 21 0 32L694.4 772.7c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210.1-210.1H67.1c-13 0-23-10-23-23s10-23 23-23h805.4L662.4 274.5c-21-21.1 11-53.1 32-32.1z"}))}}();a.defaultProps={viewBox:"0 0 1000 1000"},t.default=a},i3rX:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){var n;return t&&!0===t.clone&&r(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e}function a(e,t,n){var o=e.slice();return t.forEach(function(t,a){void 0===o[a]?o[a]=i(t,n):r(t)?o[a]=s(e[a],t,n):-1===e.indexOf(t)&&o.push(i(t,n))}),o}function s(e,t,n){var o=Array.isArray(t);return o===Array.isArray(e)?o?((n||{arrayMerge:a}).arrayMerge||a)(e,t,n):function(e,t,n){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=i(e[t],n)}),Object.keys(t).forEach(function(a){r(t[a])&&e[a]?o[a]=s(e[a],t[a],n):o[a]=i(t[a],n)}),o}(e,t,n):i(t,n)}s.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return s(e,n,t)})};var u=s;e.exports=u},i7Em:function(e,t,n){"use strict";var r=n("teQR"),o=r("%Object%"),i=r("%TypeError%"),a=r("%String%"),s=n("bvnS"),u=n("No8i"),l=n("9+gG"),c=n("xeqp"),f=n("H1lJ"),d=n("vRXZ"),h=n("wSG+"),p=n("XfW5"),y={ToPrimitive:h,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return u(t)?0:0!==t&&l(t)?c(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(u(t)||0===t||!l(t))return 0;var n=c(t)*Math.floor(Math.abs(t));return f(n,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:d,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:u(e)&&u(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(p(e,n)&&!t[n])return!1;var r=p(e,"[[Value]]"),o=p(e,"[[Get]]")||p(e,"[[Set]]");if(r&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Get]]")&&!p(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Value]]")&&!p(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(s(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(p(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),p(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),p(e,"value")&&(t["[[Value]]"]=e.value),p(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),p(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(p(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new i("setter must be a function");t["[[Set]]"]=r}if((p(t,"[[Get]]")||p(t,"[[Set]]"))&&(p(t,"[[Value]]")||p(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=y},iB3Z:function(e,t,n){var r=n("PJh5"),o=n("LlVb"),i=n("8qqi");e.exports={momentObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return o.isValidMoment(e)},"Moment"),momentString:i.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return o.isValidMoment(r(e))},"Moment"),momentDurationObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isDuration(e)},"Duration")}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),o=n.n(r),i=n("KSGD"),a=n.n(i),s=n("saAw"),u=n("OE/d"),l=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},o.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},o.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return o.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("label",{className:"label"},"Additional Comments"),o.a.createElement("div",{className:"control"},o.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))),o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return o.a.createElement("div",null,o.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),o.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?o.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),o.a.createElement(s.a,{visible:this.state.loading})):o.a.createElement("div",{className:"content"},o.a.createElement("p",null,"You must be logged in to flag this observation."),o.a.createElement("p",null,"Please ",o.a.createElement("a",{href:"/login"},"login")," or ",o.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},c.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jIVq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCustomizableCalendarDay=t.selectedStyles=t.lastInRangeStyles=t.selectedSpanStyles=t.hoveredSpanStyles=t.blockedOutOfRangeStyles=t.blockedCalendarStyles=t.blockedMinNightsStyles=t.highlightedCalendarStyles=t.outsideStyles=t.defaultStyles=void 0;var r=Object.assign||function(e){for(var t=1;t=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},klZv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(0,o.default)(e.clone().add(1,"month"),t)};var r=i(n("PJh5")),o=i(n("lmFy"));function i(e){return e&&e.__esModule?e:{default:e}}},kxzG:function(e,t,n){var r=n("yCNF"),o=n("6MiT"),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},lWrn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(r.default)};var r=i(n("/Tzs")),o=i(n("/z+2"));function i(e){return e&&e.__esModule?e:{default:e}}},"lb+b":function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},lf1y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0&&"[object Function]"===r.call(e.callee)),n}},t0Wu:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n("fXO7"),i=n("vRXZ"),a=n("lb+b"),s=n("lq6M");e.exports=function(e){if(o(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!==n&&void 0!==n){if(!i(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var u=t.call(e,n);if(o(u))return u;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a0&&this.setState({visibleDays:(0,i.default)({},S,P)})}}()},{key:"componentWillUpdate",value:function(){return function(){this.today=(0,c.default)()}}()},{key:"onDayClick",value:function(){return function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({date:e}))}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,i.default)({},r,o)})}}}()},{key:"onDayMouseLeave",value:function(){return function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,i.default)({},n,r)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,u={};Object.keys(s).sort().slice(0,n+1).forEach(function(e){u[e]=s[e]});var l=a.clone().subtract(1,"month"),c=(0,m.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,i.default)({},u,this.getModifiers(c))},function(){t(l.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,s=o.visibleDays,u={};Object.keys(s).sort().slice(1).forEach(function(e){u[e]=s[e]});var l=a.clone().add(n,"month"),c=(0,m.default)(l,1,r),f=a.clone().add(1,"month");this.setState({currentMonth:f,visibleDays:(0,i.default)({},u,this.getModifiers(c))},function(){t(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,o=n.date,i=n.numberOfMonths,a=e.clone().startOf("month");if(o&&(a=o.clone()),this.isBlocked(a)){for(var s=[],u=e.clone().add(i-1,"months").endOf("month"),l=a.clone();!(0,v.default)(l,u);)l=l.clone().add(1,"day"),s.push(l);var c=s.filter(function(e){return!t.isBlocked(e)&&(0,v.default)(e,a)});if(c.length>0){var f=r(c,1);a=f[0]}}return a}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,b.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,m.default)(a,o,i))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,u=this.state,l=u.currentMonth,c=u.visibleDays,f=l,d=o;if(s===E.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,g.default)(t,f,d,a))return e;var h=(0,b.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.add(n),(0,i.default)({},t,M({},r,(0,i.default)({},o,M({},h,a))))},p);else{var y=(0,_.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.add(n),p=(0,i.default)({},p,M({},y,(0,i.default)({},v,M({},h,m))))}return p}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,s=r.orientation,u=this.state,l=u.currentMonth,c=u.visibleDays,f=l,d=o;if(s===E.VERTICAL_SCROLLABLE?d=Object.keys(c).length:(f=f.clone().subtract(1,"month"),d+=2),!t||!(0,g.default)(t,f,d,a))return e;var h=(0,b.default)(t),p=(0,i.default)({},e);if(a)p=Object.keys(c).filter(function(e){return Object.keys(c[e]).indexOf(h)>-1}).reduce(function(t,r){var o=e[r]||c[r],a=new Set(o[h]);return a.delete(n),(0,i.default)({},t,M({},r,(0,i.default)({},o,M({},h,a))))},p);else{var y=(0,_.default)(t),v=e[y]||c[y],m=new Set(v[h]);m.delete(n),p=(0,i.default)({},p,M({},y,(0,i.default)({},v,M({},h,m))))}return p}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return(0,y.default)(e,t)}}()},{key:"isSelected",value:function(){return function(e){var t=this.props.date;return(0,y.default)(e,t)}}()},{key:"isToday",value:function(){return function(e){return(0,y.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||c.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||c.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,s=e.navNext,u=e.onOutsideClick,l=e.withPortal,c=e.focused,f=e.enableOutsideDays,d=e.hideKeyboardShortcutsPanel,h=e.daySize,p=e.firstDayOfWeek,y=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,g=e.renderMonthElement,b=e.calendarInfoPosition,_=e.isFocused,w=e.isRTL,k=e.phrases,S=e.dayAriaLabelFormat,E=e.onBlur,O=e.showKeyboardShortcuts,M=e.weekDayFormat,C=e.verticalHeight,T=e.noBorder,N=e.transitionDuration,P=e.verticalBorderSpacing,I=e.horizontalMonthPadding,x=this.state,L=x.currentMonth,j=x.visibleDays;return a.default.createElement(D.default,{orientation:n,enableOutsideDays:f,modifiers:j,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:l,hidden:!c,hideKeyboardShortcutsPanel:d,initialVisibleMonth:function(){return L},firstDayOfWeek:p,onOutsideClick:u,navPrev:i,navNext:s,renderMonthText:o,renderCalendarDay:y,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:g,calendarInfoPosition:b,isFocused:_,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:E,phrases:k,daySize:h,isRTL:w,showKeyboardShortcuts:O,weekDayFormat:M,dayAriaLabelFormat:S,verticalHeight:C,noBorder:T,transitionDuration:N,verticalBorderSpacing:P,horizontalMonthPadding:I})}}()}]),t}();t.default=N,N.propTypes=C,N.defaultProps=T},teQR:function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,s="undefined"==typeof Uint8Array?void 0:i(Uint8Array),u={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in u))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===u[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return u[n]}},uLhX:function(e,t,n){var r=n("NkRn"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},umyC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("GiK3"),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){return function(e){return i.default.createElement("svg",e,i.default.createElement("path",{d:"M336.2 274.5l-210.1 210h805.4c13 0 23 10 23 23s-10 23-23 23H126.1l210.1 210.1c11 11 11 21 0 32-5 5-10 7-16 7s-11-2-16-7l-249.1-249c-11-11-11-21 0-32l249.1-249.1c21-21.1 53 10.9 32 32z"}))}}();a.defaultProps={viewBox:"0 0 1000 1000"},t.default=a},"uy+U":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n("KSGD")),o=v(n("iB3Z")),i=n("0IMB"),a=n("Nip3"),s=v(n("XZy4")),u=v(n("ykZC")),l=v(n("3s8g")),c=v(n("vWaV")),f=v(n("UnHD")),d=v(n("Kg4d")),h=v(n("0z1n")),p=v(n("CHcs")),y=v(n("Tb8W"));function v(e){return e&&e.__esModule?e:{default:e}}t.default={startDate:o.default.momentObj,endDate:o.default.momentObj,onDatesChange:r.default.func.isRequired,focusedInput:u.default,onFocusChange:r.default.func.isRequired,onClose:r.default.func,startDateId:r.default.string.isRequired,startDatePlaceholderText:r.default.string,endDateId:r.default.string.isRequired,endDatePlaceholderText:r.default.string,disabled:f.default,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDates:r.default.bool,showDefaultInputIcon:r.default.bool,inputIconPosition:l.default,customInputIcon:r.default.node,customArrowIcon:r.default.node,customCloseIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,keepFocusOnInput:r.default.bool,renderMonthText:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:c.default,anchorDirection:d.default,openDirection:h.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,daySize:i.nonNegativeInteger,isRTL:r.default.bool,firstDayOfWeek:p.default,initialVisibleMonth:r.default.func,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDates:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:y.default,hideKeyboardShortcutsPanel:r.default.bool,verticalHeight:i.nonNegativeInteger,transitionDuration:i.nonNegativeInteger,verticalSpacing:i.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,minimumNights:r.default.number,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(a.DateRangePickerPhrases)),dayAriaLabelFormat:r.default.string}},v0MV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("0IMB");t.default=(0,a.and)([i.default.instanceOf(Set),function(){return function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},wmWA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},x5U2:function(e,t,n){"use strict";var r=n("bidq"),o=n("PiFy"),i=n("9MlZ")(),a=Object,s=o.call(Function.call,Array.prototype.push),u=o.call(Function.call,Object.prototype.propertyIsEnumerable),l=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(void 0===(n=e)||null===n)throw new TypeError("target must be an object");var n,o,c,f,d,h,p,y,v=a(e);for(o=1;o0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"To")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"CC/BCC")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}))))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Subject")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"}),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control"},o.a.createElement("label",{className:"checkbox"},o.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Message")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control is-expanded"},o.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return o.a.createElement("div",{className:"field is-horizontal"},o.a.createElement("div",{className:"field-label"},o.a.createElement("label",{className:"label"},"Message")),o.a.createElement("div",{className:"field-body"},o.a.createElement("div",{className:"field"},o.a.createElement("div",{className:"control is-expanded"},o.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return o.a.createElement("p",{className:"help is-danger",key:t},e)}),o.a.createElement("p",{className:"help"},"You may use ",o.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return o.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},o.a.createElement("h5",{className:"title is-5"},"Message Preview"),o.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?o.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?o.a.createElement("table",{className:"table"},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("th",null,"Category"),o.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?o.a.createElement("tr",null,o.a.createElement("th",null,"Found Near"),o.a.createElement("td",null,t.formatted)):null,o.a.createElement("tr",null,o.a.createElement("th",null,"Date Collected"),o.a.createElement("td",null,u()(e.date.date).format("LL"))),o.a.createElement("tr",null,o.a.createElement("th",{colSpan:2},o.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?o.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):o.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return o.a.createElement("div",{className:"column"},o.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return o.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},o.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),o.a.createElement("div",{className:"modal-card modal-card-lg"},o.a.createElement(l.a,{visible:this.state.loading}),o.a.createElement("header",{className:"modal-card-head"},o.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),o.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),o.a.createElement("section",{className:"modal-card-body"},o.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),o.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?o.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):o.a.createElement("div",{className:"flexbox flex-space-between"},o.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),o.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},xeqp:function(e,t){e.exports=function(e){return e>=0?1:-1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=c||f||Function("return this")(),h=Object.prototype.toString,p=Math.max,y=Math.min,v=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o,i,a,s,u,l,c=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function _(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function w(){var e=v();if(_(e))return k(e);u=setTimeout(w,function(e){var n=t-(e-l);return d?y(n,a-(e-c)):n}(e))}function k(e){return u=void 0,h&&o?b(e):(o=i=void 0,s)}function S(){var e=v(),n=_(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(w,t),f?b(e):s}(l);if(d)return u=setTimeout(w,t),b(l)}return void 0===u&&(u=setTimeout(w,t)),s}return t=g(t)||0,m(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),c=0,o=l=i=u=void 0},S.flush=function(){return void 0===u?s:k(v())},S}}).call(t,n("DuR2"))},yCNF:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},yYPf:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{-webkit-transition:height .2s ease-in-out;-moz-transition:height .2s ease-in-out;transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}",""])},ykZC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("KSGD"),i=(r=o)&&r.__esModule?r:{default:r},a=n("6TBu");t.default=i.default.oneOf([a.START_DATE,a.END_DATE])},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,E=function(){return function e(t){if(!(this instanceof e))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 k(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){E.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var D=void 0!==o.ResizeObserver?o.ResizeObserver:E;t.default=D}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/10.13b19ddc3e10d7b970e6.js b/public/js/10.13b19ddc3e10d7b970e6.js deleted file mode 100644 index 65ce8aa2..00000000 --- a/public/js/10.13b19ddc3e10d7b970e6.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([10],{"0dG/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;to&&(a=0),n.setState({previousIndex:i,currentIndex:a,isTransitioning:a!==i,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new c.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,i){var o=n.state,a=o.scrollingUpDown,s=o.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var c=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(c,i)}},n._handleSwiping=function(e,t,r,i){var o=n.state,a=o.galleryWidth,s=o.isTransitioning,u=o.scrollingUpDown,c=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var l=t<0?1:-1,f=i/a*100;Math.abs(f)>=100&&(f=100);var p={transition:"transform "+c+"ms ease-out"};n.setState({offsetPercentage:l*f,style:p})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-image"},e.imageSet?o.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return o.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),o.default.createElement("img",{alt:e.originalAlt,src:e.original})):o.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&o.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbnail-inner"},o.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(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(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,i)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;p.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;p.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,i=n.scrollingLeftRight,o=Math.abs(e);Math.abs(t)>o&&!r&&!i?this.setState({scrollingUpDown:!0}):i||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this._sufficientSwipeOffset()&&!t||i||(o+=e),e<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.currentIndex0&&(er&&this._setThumbsTranslate(n+o))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,i=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){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 e*(i/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=t.previousIndex,o=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?o=-100+r:1===n&&0===e&&r<0&&(o=100+r),n!==i?0===i&&0===e&&0===r&&"left"===this.direction?o=100:1===i&&1===e&&0===r&&"right"===this.direction&&(o=-100):0===n&&1===e&&0===r&&"left"===this.direction?o=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(o=100),o}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=this.props,o=i.infinite,a=i.items,s=i.useTranslate3D,u=i.isRTL,c=-100*n,l=a.length-1,f=(c+100*e)*(u?-1:1)+r;o&&a.length>2&&(0===n&&e===l?f=-100*(u?-1:1)+r:n===l&&0===e&&(f=100*(u?-1:1)+r)),o&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var p="translate("+f+"%, 0)";return s&&(p="translate3d("+f+"%, 0, 0)"),{WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state.thumbsTranslate,o=r?-1*i:i;return this._isThumbnailHorizontal()?(e="translate(0, "+i+"px)",n&&(e="translate3d(0, "+i+"px, 0)")):(e="translate("+o+"px, 0)",n&&(e="translate3d("+o+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,c=t.scrollingLeftRight,l=this.props,f=l.infinite,p=l.preventDefaultTouchmoveEvent,h=l.isRTL,d=this._getThumbnailStyle(),v=this.props.thumbnailPosition,y=this._slideLeft,g=this._slideRight,m=[],_=[],b=[];this.props.items.forEach(function(t,i){var a=e._getAlignmentClassName(i),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",c=t.renderItem||e.props.renderItem||e._renderItem,l=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,p=!e.props.lazyLoad||a||e._lazyLoaded[i];p&&e.props.lazyLoad&&(e._lazyLoaded[i]=!0);var h=e._getSlideStyle(i),d=o.default.createElement("div",{key:i,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},p?c(t):o.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(i)&&m.push(d):m.push(d),e.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,onClick:function(t){return e._onThumbnailClick(t,i)}},l(t))),e.props.showBullets){b.push(o.default.createElement("button",{key:i,type:"button",className:["image-gallery-bullet",n===i?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:i,currentIndex:n}),e.slideToIndex.call(e,i,r)},"aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}});var w=o.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+v+" "+(h?"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(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:p||c},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))),E=["image-gallery",this.props.additionalClass,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return o.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:E,"aria-live":"polite"},o.default.createElement("div",{className:"image-gallery-content"+(i?" fullscreen":"")},("bottom"===v||"right"===v)&&w,this.props.showThumbnails&&o.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+v+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},o.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:d,"aria-label":"Thumbnail Navigation"},_))),("top"===v||"left"===v)&&w))}}]),t}();h.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,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},h.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(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"5L7H":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},i.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return i.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Or Create New Collection"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})),i.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to add this observation to a collection."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},l.defaultProps={collections:[],onSubmit:function(){}}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("O27J"),a=n.n(o),s=n("KSGD"),u=n.n(s),c=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),c(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return i.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},i.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(i.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=l,l.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},l.defaultProps={type:"success"},l.stack=[]},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,i=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:i,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,i=t.onSwiping,o=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,c=t.onSwipingRight,l=t.onSwipedRight,f=t.onSwipingUp,p=t.onSwipedUp,h=t.onSwipingDown,d=t.onSwipedDown,v=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var y=u(e,this.swipeable);if(!(y.absXy.absY?y.deltaX>0?(a||s)&&(a&&a(e,y.absX),g=!0):(c||l)&&(c&&c(e,y.absX),g=!0):y.deltaY>0?(f||p)&&(f&&f(e,y.absY),g=!0):(h||d)&&(h&&h(e,y.absY),g=!0),this.swipeable.swiping=!0,g&&v&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,i=t.onSwiped,o=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,c=t.onSwipedDown,l=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var p=f.velocity>r;i&&i(e,f.deltaX,f.deltaY,p,f.velocity),f.absX>f.absY?f.deltaX>0?o&&o(e,f.deltaX,p):a&&a(e,f.deltaX,p):f.deltaY>0?s&&s(e,f.deltaY,p):c&&c(e,f.deltaY,p)}else l&&l(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,i.createElement(this.props.nodeName,e,this.props.children)},t}(i.Component);c.propTypes={onSwiped:o.func,onSwiping:o.func,onSwipingUp:o.func,onSwipingRight:o.func,onSwipingDown:o.func,onSwipingLeft:o.func,onSwipedUp:o.func,onSwipedRight:o.func,onSwipedDown:o.func,onSwipedLeft:o.func,onTap:o.func,flickThreshold:o.number,delta:o.number,preventDefaultTouchmoveEvent:o.bool,stopPropagation:o.bool,nodeName:o.string,trackMouse:o.bool,disabled:o.bool,innerRef:o.func,children:o.node,rotationAngle:o.number},c.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=c},AByj:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("h7v/"),u=n("NdNt"),c=n("c8iI"),l=n("0dG/"),f=n.n(l),p=n("PJh5"),h=n.n(p),d=n("LZyd"),v=n("iwoP"),y=n("5L7H"),g=n("jVml"),m=n("mOuh"),_=n("OE/d"),b=n("t4LX"),w=n("F8kA"),E=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},i.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return i.a.createElement(c.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},i.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:i.a.createElement("div",null,i.a.createElement("div",{className:"flexbox observation-tools"},i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-star text-success"})),i.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-flag text-danger"})),i.a.createElement("span",null,"Flag Observation")):null,_.a.can("contact users")?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-envelope text-info"})),i.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return i.a.createElement(d.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return i.a.createElement(v.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h3",{className:"title is-4"},"Add to Collection"),i.a.createElement(y.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===m.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:i.a.createElement("tr",{key:n},i.a.createElement("th",null,e),i.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?i.a.createElement("p",{className:"help"},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),b.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return i.a.createElement("div",{className:"box has-text-centered"},i.a.createElement("div",{className:"content"},i.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),i.a.createElement("p",null,"Observation has been deleted successfully"),i.a.createElement(w.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return _.a.can("contact users")?i.a.createElement(E.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},i.a.createElement("option",{value:"US"},"US Units"),i.a.createElement("option",{value:"metric"},"Metric Units")))),_.a.can("delete observations")||_.a.owns(this.observation)?i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})),i.a.createElement("span",null,"Delete"))):null),i.a.createElement("div",{className:"columns mb-none"},i.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},i.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},i.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Submitted By"),i.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?i.a.createElement("tr",null,i.a.createElement("th",null,"Custom Tree Identifier"),i.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?i.a.createElement("tr",null,i.a.createElement("th",null,"ID"),i.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,i=void 0!==g.a[n]?g.a[n]:n,o=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],o=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(i,o,n,r)}),i.a.createElement("tr",null,i.a.createElement("th",null,"Coordinates"),i.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?i.a.createElement("tr",null,i.a.createElement("th",null,"Location Accuracy"),i.a.createElement("td",null,_.a.can("view accurate location")||_.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:i.a.createElement("tr",null,i.a.createElement("th",null,"Photos"),i.a.createElement("td",null,i.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"tabs has-no-shadow"},i.a.createElement("ul",null,i.a.createElement("li",{className:this.getTabClass("photos")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),i.a.createElement("li",{className:this.getTabClass("map")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?i.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},i.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return i.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?i.a.createElement("div",{className:"callout"},i.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?i.a.createElement("div",{style:{width:"100%",position:"relative"}},i.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=k,k.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},k.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},AwRT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),i=n.n(r),o=n("JsH4"),a=n("IFrJ"),s=n("saAw"),u=n("xC2h"),c=n("DakW"),l=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return i.a.createElement(p.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},i.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},i.a.createElement("div",{className:"media callout"},i.a.createElement("div",{className:"media-left mr-0"},i.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),i.a.createElement("div",{className:"media-content"},i.a.createElement("div",{className:"mb-0"},i.a.createElement("strong",null,t.observation_category)),i.a.createElement("div",{className:"mb-0"},"By ",t.user.name),i.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?i.a.createElement("div",{className:"content"},i.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),i.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),i.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):i.a.createElement(l.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return i.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},i.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),i.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Flag Observation"),i.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),v.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";v.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return i.a.createElement("div",{className:"card-footer marks-section"},i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.incorrectMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-times text-danger"})),i.a.createElement("span",null,"Marks")),i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.correctMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-check text-success"})),i.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":E(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,o=this.getAddress(t),a=o.address,u=o.addressLine1,l=o.addressLine2;return i.a.createElement("div",{className:"observation-card-container"},i.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},i.a.createElement("header",{className:"card-header"},i.a.createElement(b.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},i.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-times"})))):null,w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},i.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-check"})))):null),i.a.createElement("div",{className:"relative-block"},i.a.createElement(d.a,{visible:this.state.loading}),i.a.createElement("div",{className:"has-bg-image relative-block"},i.a.createElement("div",{className:"card-image",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}})),this._renderMarks(),i.a.createElement("div",{className:"card-content"},i.a.createElement("div",{className:"content"},this.props.owner?null:i.a.createElement("span",null,"By ",t.user.name,i.a.createElement("br",null)),i.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),i.a.createElement("br",null),t.custom_id?i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"Custom ID")," ",t.custom_id),i.a.createElement("br",null)):i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||w.a.can("view accurate location")?i.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,i.a.createElement("br",null)):null,i.a.createElement("small",null,c()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?i.a.createElement("div",{className:"text-ellipsis",title:a},i.a.createElement("small",null,i.a.createElement("b",null,"Near")," ",u),i.a.createElement("br",null),i.a.createElement("small",{style:{marginLeft:"35px"}},l)):i.a.createElement("div",{style:{height:48}},"Address is unavailable"))),i.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},i.a.createElement("div",{className:"p-1 relative-block"},i.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},i.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),i.a.createElement("footer",{className:"card-footer card-footer-z-index"},i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},i.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-star"})))),i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},i.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-map"})))),w.a.can("contact users")&&!this.props.owner?i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},i.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},i.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?i.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},i.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?i.a.createElement(_,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=M;M.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},M.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},LZyd:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n=t||n<0||p&&e-l>=a}function w(){var e=y();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?g(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?g(e):s}(c);if(p)return u=setTimeout(w,t),g(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=_(t)||0,m(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(_(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(y())},S}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return m(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),g(e,t,{leading:i,maxWait:t,trailing:o})}}).call(t,n("DuR2"))},c8iI:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),m=n.getEditorState();l=l?u({},O,l):O;var b=(0,S.default)((i(e={},T.default.editor,!0),i(e,T.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=d);var w=void 0;return h||(w=f.default.createElement(_.default,{className:a,keyEmitter:this._keyEmitter,editorState:m,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:v})),f.default.createElement("div",{className:(0,S.default)(T.default.root,r)},w,f.default.createElement("div",{className:b},f.default.createElement(p.Editor,u({},g,{blockStyleFn:(0,E.default)(o,y),customStyleMap:l,editorState:m,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:c,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,m.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(p.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),i=p.Modifier.removeRange(r,n,"forward"),o=i.getSelectionAfter(),a=i.getBlockForKey(o.getStartKey());i=p.Modifier.insertText(i,o,"\n",a.getInlineStyleAt(o.getStartOffset()),null),this._onChange(p.EditorState.push(t,i,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if((0,g.default)(i)&&0===i.getLength()){var o=i.getDepth(),a=0===o?(0,v.default)(e,r,x.BLOCK_TYPE.UNSTYLED):(0,d.default)(e,r,o-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if(!(0,g.default)(i)&&i.getType()!==x.BLOCK_TYPE.UNSTYLED&&i.getLength()===t.getStartOffset()){var o=(0,y.default)(e,r,x.BLOCK_TYPE.UNSTYLED);return this._onChange(o),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=C;var I=new p.CompositeDecorator([w.default]);Object.assign(C,{EditorValue:b.default,decorator:I,createEmptyValue:a,createValueFromString:s}),t.EditorValue=b.default,t.decorator=I,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(6),a=n(40),s=n(7),u=n(32),c=n(41),l=n(43),f=n(44),p=n(50),h=n(9),d=n(14),v=n(16),y=n(29),g=n(100),m=n(131),_=n(33),b=n(133),w={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:g,Modifier:h,RichUtils:m,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:b,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=w},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(9),s=n(29),u=n(5),c=n(21),l=u.List,f=u.Repeat,p={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),p=e.getSelection(),h=a.removeRange(u,p,"backward"),d=h.getSelectionAfter(),v=a.splitBlock(h,d),y=v.getSelectionAfter(),g=a.setBlockType(v,y,"atomic"),m=i.create({entity:t}),_=[new o({key:c(),type:"atomic",text:n,characterList:l(f(m,n.length))}),new o({key:c(),type:"unstyled",text:"",characterList:l()})],b=r.createFromArray(_),w=a.replaceWithFragment(g,y,b),E=w.merge({selectionBefore:p,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return s.push(e,E,"insert-fragment")}};e.exports=p},function(e,t,n){"use strict";var r=n(5).OrderedMap,i={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=i},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:C(e)}function n(e){return a(e)?e:I(e)}function r(e){return s(e)?e:N(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function g(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function m(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function M(e){return!!T(e)}function k(e){return e&&"function"==typeof e.next}function x(e){var t=T(e);return t&&t.call(e)}function T(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function O(e){return e&&"number"==typeof e.length}function C(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function I(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function N(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():k(e)?new z(e).fromEntrySeq():M(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return O(e)?new D(e):k(e)?new z(e):M(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,N(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?N(e).map(H).toList():W(e)?I(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=mn[t=e])&&(n=ie(t),gn===yn&&(gn=0,mn={}),gn++,mn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Te(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Oe(e){var t=De();if(null===e||void 0===e)return t;if(Ce(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Cn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Cn)return e;s=null}if(c===l)return Cn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ie(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ie(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ie([],r):d;if(d&&h>f&&aHt;g-=Ht){var m=f>>>g≫y=y.array[m]=Ae(y.array[m],r)}y.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),ke(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),g(t,n,i))return e;var o=m(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?I:s(e)?N:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,I),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,N),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(k(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!k(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,N),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,N),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return g(e,t,n)?this:new V(this._value,_(t,n)-m(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,gn=0,mn={};e(ae,$),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return me(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return me(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?ge():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ge()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ge(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,Me(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ge(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=l?d?c:c^u:c|u,g=l?d?Te(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Oe.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Oe.prototype.insert=function(e,t){return this.splice(e,0,t)},Oe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Oe.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ie([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Tn,On,Cn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,I),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,N),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,I),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,ge()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:vt(this,n)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var In=dt.prototype;In.delete=In.remove,In.deleteIn=In.removeIn=bn.removeIn,In.merge=bn.merge,In.mergeWith=bn.mergeWith,In.mergeIn=bn.mergeIn,In.mergeDeep=bn.mergeDeep,In.mergeDeepWith=bn.mergeDeepWith,In.mergeDeepIn=bn.mergeDeepIn,In.setIn=bn.setIn,In.update=bn.update,In.updateIn=bn.updateIn,In.withMutations=bn.withMutations,In.asMutable=bn.asMutable,In.asImmutable=bn.asImmutable,e(gt,te),gt.of=function(){return this(arguments)},gt.fromKeys=function(e){return this(n(e).keySeq())},gt.prototype.toString=function(){return this.__toString("Set {","}")},gt.prototype.has=function(e){return this._map.has(e)},gt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},gt.prototype.remove=function(e){return _t(this,this._map.remove(e))},gt.prototype.clear=function(){return _t(this,this._map.clear())},gt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ot(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ot(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Ct()},xt.prototype.slice=function(e,t){if(g(e,t,this.size))return this;var n=m(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ot(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ot(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Tt;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,It(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return gt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Oe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Nt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,function(){try{Object.defineProperty(Bn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),It(n,{flip:function(){return at(this,Ve(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},It(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=m(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var p=f[0];if("IMMUTABLE"===l)return t.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});var h=i.getRemovalRange(s,u,e.getText().slice(p.start,p.end),p.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,l,t),h=p.start,d=p.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e}(c.getCharacterList(),a,u):c.getCharacterList().slice(0,a).concat(l.getCharacterList().slice(u));var f=c.merge({text:c.getText().slice(0,a)+l.getText().slice(u),characterList:n}),p=i.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===o?f:null});return i=i.merge(p).filter(function(e){return!!e}),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:a,focusKey:o,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),i=n(21),o=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||o(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),c=u.getText(),l=u.getCharacterList(),f=u.merge({text:c.slice(0,r),characterList:l.slice(0,r)}),p=i(),h=f.merge({key:p,text:c.slice(r),characterList:l.slice(r),data:a()}),d=s.toSeq().takeUntil(function(e){return e===u}),v=s.toSeq().skipUntil(function(e){return e===u}).rest(),y=d.concat([[f.getKey(),f],[h.getKey(),h]],v).toOrderedMap();return e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function o(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return p()}var a=n(15)||function(e){for(var t=1;t0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):o(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r0?i.getInlineStyleAt(r-1):o(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var i="insert-characters"!==r,o=c.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),l=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var p={currentContent:l,directionMap:o,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=y},function(e,t,n){"use strict";function r(e,t){return e===t}var i=n(5),o=n(31),a=n(8),s=i.List,u=i.Repeat,c=i.Record,l=o.thatReturnsTrue,f=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],o=t?t.getDecorations(e):s(u(null,n)),c=e.getCharacterList();return a(o,r,l,function(e,t){var n,u,h,d;i.push(new p({start:e,end:t,decoratorKey:o.get(e),leaves:(n=c.slice(e,t).toList(),u=e,h=[],d=n.map(function(e){return e.getStyle()}).toList(),a(d,r,l,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(i)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(5),s=n(33),u=n(21),c=n(34),l=a.List,f=a.Record,p=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),i=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=c(e),new o({key:u(),text:e,type:"unstyled",characterList:l(p(i.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset();return t<=this.getEndOffset()&&o<=n}if(e!==r&&e!==i)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,i=n(5),o=n(36),a=n(39),s=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),c=s(n.keySeq().zip(u));return null!=t&&i.is(t,c)?t:c}};e.exports=u},function(e,t,n){"use strict";var r=n(37),i=n(38),o=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?i.isStrong(t)||o(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function i(e){var t=r(e);return null==t?s.NEUTRAL:p.exec(t)?s.RTL:s.LTR}function o(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=i(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),o(e,t)}var s=n(38),u=n(17),c="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",l="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+c+l+"]"),p=new RegExp("["+c+l+"]"),h={firstStrongChar:r,firstStrongCharDir:i,resolveBlockDir:o,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function i(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function o(e){c=e}var a=n(17),s="LTR",u="RTL",c=null,l={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:i(e)},setGlobalDir:o,initGlobalDir:function(){o(s)},getGlobalDir:function(){return c||this.initGlobalDir(),c||a(!1),c}};e.exports=l},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var i=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==o;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var p=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,o);return void this.update(i.push(t,p,"insert-characters"))}f&&this.update(i.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===i.get(e).getMutability()?e:null}var i=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?r(e.getBlockForKey(n).getEntityAt(i-1)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):ib,I));var R=T||o,B={className:P,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":N,key:M};void 0!==C&&(B=i({},B,{contentEditable:C,suppressContentEditableWarning:!0}));var K=s.createElement(A,B,s.createElement(R,L));_.push({block:K,wrapperTemplate:j,key:M,offsetKey:N}),b=j?S.getDepth():null,w=j}for(var U=[],F=0;F<_.length;){var q=_[F];if(q.wrapperTemplate){var Y=[];do{Y.push(_[F].block),F++}while(F<_.length&&_[F].wrapperTemplate===q.wrapperTemplate);var H=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},Y);U.push(H)}else U.push(q.block),F++}return s.createElement("div",{"data-contents":"true"},U)},t}(s.Component);e.exports=f},function(e,t,n){"use strict";function r(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var i=n(15)||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(i.offsetHeight+o.y))>0&&c.setTop(i,c.getTop(i)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),c=this.props.tree.size-1,l=r(this.props.selection,n);return this.props.tree.map(function(r,h){var d=r.get("leaves"),v=d.size-1,y=d.map(function(r,i){var f=a.encode(n,h,i),p=r.get("start"),d=r.get("end");return s.createElement(o,{key:f,offsetKey:f,blockKey:n,start:p,selection:l?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(p,d),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===c&&i===v})}).toArray(),m=r.get("decoratorKey");if(null==m)return y;if(!e.props.decorator)return y;var _=g(e.props.decorator),b=_.getComponentForKey(m);if(!b)return y;var w=_.getPropsForKey(m),E=a.encode(n,h,0),S=u.slice(d.first().get("start"),d.last().get("end")),M=p.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(b,i({},w,{decoratedText:S,dir:M,key:E,entityKey:t.getEntityAt(r.get("start")),offsetKey:E}),y)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=m},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,i=r+t.text.length;if(e.hasEdgeWithin(n,r,i)){var o,u=a.findDOMNode(this),c=u.firstChild;o=c.nodeType===Node.TEXT_NODE?c:"BR"===c.tagName?u:c.firstChild,s(e,o,n,r,i)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,c=u.reduce(function(e,t){var i={},o=n[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(i.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,i)},{});if(a){var l=a(u);c=r(c,l)}return o.createElement("span",{"data-offset-key":s,ref:"leaf",style:c},o.createElement(i,null,e))},t}(o.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),i=n(53),o=n(54).isBrowser("IE <= 11"),a=o?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=o?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=i.findDOMNode(this);return""===e.children?!function(e){return o?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,a.contains(i,t))}function i(e){return"Windows"===o.platformName?e.replace(/^\s*NT/,""):e}var o=n(55),a=n(58),s=n(59),u=n(60),c={isBrowser:function(e){return r(o.browserName,o.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(o.browserArchitecture,null,e)},isDevice:function(e){return r(o.deviceName,null,e)},isEngine:function(e){return r(o.engineName,o.engineVersion,e)},isPlatform:function(e){return r(o.platformName,o.platformFullVersion,e,i)},isPlatformArchitecture:function(e){return r(o.platformArchitecture,null,e)}};e.exports=s(c,u)},function(e,t,n){"use strict";var r,i="Unknown",o={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||i,browserFullVersion:a.browser.version||i,browserMinorVersion:s.minor||i,browserName:a.browser.name||i,browserVersion:a.browser.major||i,deviceName:a.device.model||i,engineName:a.engine.name||i,engineVersion:a.engine.version||i,platformArchitecture:a.cpu.architecture||i,platformName:(r=a.os.name,o[r]||r||i),platformVersion:a.os.version||i,platformFullVersion:a.os.version||i};e.exports=u},function(e,t,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",p="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},d={rgx:function(){for(var e,t,n,r,i,o,a,s=0,u=arguments;s0?2==i.length?"function"==typeof i[1]?e[i[0]]=i[1].call(this,a):e[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?e[i[0]]=a?a.replace(i[1],i[2]):void 0:e[i[0]]=a?i[1].call(this,a,i[2]):void 0:4==i.length&&(e[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):e[i]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return b.contains(e,t)}):function(e,t){var n=e.split(g);if(n.length>0&&n.length<=2||d(!1),1===n.length)return i(n[0],t);var r=n[0],o=n[1];return c(r)&&c(o)||d(!1),i(">="+r,t)&&i("<="+o,t)}(e=n[0].trim(),t)}function i(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(v),i=s(e),c=i.modifier,l=i.rangeComponents;switch(c){case"<":return o(r,l);case"<=":return-1===(n=h(r,l))||0===n;case">=":return a(r,l);case">":return function(e,t){return 1===h(e,t)}(r,l);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,s=parseInt(r[i],10);return u(s)&&(r[i]=s+1+""),a(e,n)&&o(e,r)}(r,l);default:return function(e,t){return 0===h(e,t)}(r,l)}}function o(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(v),n=t[0].match(m);return n||d(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function c(e){return!s(e).modifier}function l(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,_=/^(\d*)(.*)/,b={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=b},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var i={};for(var o in e)n.call(e,o)&&(i[o]=t.call(r,e[o],o,e));return i}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&o(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function i(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var o=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(o(document.documentElement,n)){var c=t.getSelection(),l=e.getAnchorKey(),f=e.getAnchorOffset(),p=e.getFocusKey(),h=e.getFocusOffset(),d=e.getIsBackward();if(!c.extend&&d){var v=l,y=f;l=p,f=h,p=v,h=y,d=!1}var g=l===a&&s<=f&&u>=f,m=p===a&&s<=h&&u>=h;if(g&&m)return c.removeAllRanges(),i(c,n,f-s),void r(c,n,h-s);if(d){if(m&&(c.removeAllRanges(),i(c,n,h-s)),g){var _=c.focusNode,b=c.focusOffset;c.removeAllRanges(),i(c,n,f-s),r(c,_,b)}}else g&&(c.removeAllRanges(),i(c,n,f-s)),m&&r(c,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],i=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=i},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var i=n(70),o=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(o(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[i(t)]:e.style&&e.style[i(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),i=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=i(e),o=e===t?document.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=i},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,d)))return;return void u(d,function(e){e&&t.update(r(p,l(h),e))})}var v=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,v)))return this._internalDrag?void this.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(p,h)):void this.update(r(p,h,n.getText()))}}};e.exports=p},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var i=n(81),o=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},c=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=c},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i=0;h--)if(!(null!=p&&h>0&&o.isSurrogatePair(p,h-1))){if(e.setStart(l,h),!r(a(e),n))break;u=l,c=h}if(-1===h||0===l.childNodes.length)break;f=i(l=l.childNodes[h])}return e.setStart(u,c),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function i(e){return p.test(e)}function o(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var l=null;if(null!=s)l=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);l=c(a(f))}return{key:l,offset:0}}var p=r.childNodes[n-1],h=null,d=null;if(a(p)){var v=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(p);h=c(a(v)),d=i(v)}else h=c(s),d=i(p);return{key:h,offset:d}}function i(e){var t=e.textContent;return"\n"===t?0:t.length}var o=n(83),a=n(84),s=n(86),u=n(17),c=n(39);e.exports=function(e,t,n,i,a,u){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:s(e,c(o(n)),i,c(o(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return l?(p={key:c(o(n)),offset:i},h=r(t,a,u)):f?(h={key:c(o(a)),offset:u},p=r(t,n,i)):(p=r(t,n,i),h=r(t,a,u),n===a&&i===u&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var u=r.getKeyBefore(i);null==u?a=i:(a=u,s=r.getBlockForKey(u).getText().length)}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=e.getSelection(),o=e.getCurrentContent(),a=i;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o}else if(e.isSelectionAtStartOfContent())return o;if((a=t(e))===i)return o}return r.removeRange(o,a,n)}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),s=r.getBackward(a);return o(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var i="\\s|(?![_])"+n(111).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['‘’]|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:['‘’]|(?!"+i+").)*(?:"+i+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),s=r.getForward(a);return o(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),i=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),i=n(29),o=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),c=e.getCurrentContent(),l=c.getBlockForKey(u).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(c,a),p=r.removeRange(c,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,v=h.merge({anchorOffset:d,focusOffset:d}),y=r.replaceWithFragment(p,v,f),g=i.push(e,y,"insert-fragment");return i.acceptSelection(g,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(i)},0)):void n(i);var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n,"insert-fragment")}var i=n(4),o=n(6),a=n(80),s=n(9),u=n(122),c=n(29),l=n(47),f=n(85),p=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var d=n.getFiles(),v=n.getText();if(d.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(d)))return;return void f(d,function(e){if(e=e||v){var n=t.props.editorState,r=p(e),a=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=i.createFromArray(f),d=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(c.push(n,d,"insert-fragment"))}})}}var y=[],g=n.getText(),m=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(g,m))){if(g&&(y=p(g)),!this.props.stripPastedStyles){var _=this.getClipboard();if(n.isRichText()&&_){if(-1!==m.indexOf(this.getEditorKey())||1===y.length&&1===_.size&&_.first().getText()===g)return void this.update(r(this.props.editorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(y,_))return void this.update(r(this.props.editorState,_));if(m){var b=u.processHTML(m,this.props.blockRenderMap);if(b){var w=i.createFromArray(b);return void this.update(r(this.props.editorState,w))}}this.setClipboard(null)}if(y){var E=this.props.editorState,S=o.create({style:E.getCurrentInlineStyle(),entity:l(E.getCurrentContent(),E.getSelection())}),M=u.processText(y,S),k=i.createFromArray(M);this.update(r(this.props.editorState,k))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),i=n(5),o=n(123),a=n(21),s=n(125),u=n(34),c=i.List,l=i.Repeat,f={processHTML:function(e,t){return o(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:c(l(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function i(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(k,t))}]}}function o(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):L.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(g,e,t),"ul"!==g&&"ol"!==g||(n&&(p+=1),n=g),o||-1===f.indexOf(g)?n&&"li"===o&&"li"===g&&(E=i(a(g,n,h),p),o=g,m=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"):(E=i(a(g,n,h),p),o=g,m=!0);var k=e.firstChild;null!=k&&(g=k.nodeName.toLowerCase());for(var x=null;k;){k instanceof HTMLAnchorElement&&k.href&&u(k)?function(){var e=k,t={};j.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new y(e.href).toString(),x=d.create("LINK","MUTABLE",t)}():x=void 0,E=s(E,c(k,t,n,o,f,p,h,x||v));var O=k.nextSibling;O&&f.indexOf(g)>=0&&o&&(E=s(E,r())),O&&(g=O.nodeName.toLowerCase()),k=O}return m&&(E=s(E,i(_,p))),E}var l,f=n(6),p=n(7),h=n(41),d=n(14),v=n(5),y=n(124),g=n(21),m=n(125),_=n(17),b=n(39),w=n(34),E=v.List,S=v.OrderedSet,M=" ",k=4,x=new RegExp("\r","g"),T=new RegExp("\n","g"),O=new RegExp(" ","g"),C=new RegExp(" ?","g"),I=new RegExp("​?","g"),N=["bold","bolder","500","600","700","800","900"],L=["light","lighter","100","200","300","400"],D={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},j=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(x,"").replace(O,M).replace(C,"").replace(I,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),i=t(e);if(!i)return null;l=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=c(i,S(),"ul",null,o,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?m:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=w(e);var i=n+e.length,o=b(t).inlines.slice(n,i),a=b(t).entities.slice(n,i),s=E(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=i+1,new p({key:g(),type:b(t).blocks[r].type,depth:b(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),i=n(53),o=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=o(e,i.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var i=t.getSelection();return 0===i.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),i=n(42),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=o},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var i=n(100),o=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),c=s&&a.isBrowser("Firefox < 29"),l=i.hasCommandModifier,f=i.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),c=i.setBlockType(n,s,n.getBlockForKey(r).getType()),l=i.removeRange(c,s,"backward");if(l!==n)return o.push(e,l,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?o.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=o.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return i.setBlockType(o,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),i=n(134),o=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var o=i.stringify(e.getEntityAt(r));n.hasOwnProperty(o)||(n[o]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:o(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(i.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),i=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var s=e.getText(),u=e.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),i=n(8),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return i(u,o,a,function(t,i){var o=e.getText();s.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,i.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,i=null,o=[],a=0,s=0,u=e.length;s0&&n!==i&&(o.push([i,r(e.slice(a,s),t.slice(a,s))]),a=s)}return o.push([n,r(e.slice(a),t.slice(a))]),o};var i=n(150),o=t.EMPTY_SET=new i.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:C(e)}function n(e){return a(e)?e:I(e)}function r(e){return s(e)?e:N(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function g(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function m(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function M(e){return!!T(e)}function k(e){return e&&"function"==typeof e.next}function x(e){var t=T(e);return t&&t.call(e)}function T(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function O(e){return e&&"number"==typeof e.length}function C(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function I(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function N(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():k(e)?new z(e).fromEntrySeq():M(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return O(e)?new D(e):k(e)?new z(e):M(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,N(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?N(e).map(H).toList():W(e)?I(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=mn[t=e])&&(n=ie(t),gn===yn&&(gn=0,mn={}),gn++,mn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Te(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Oe(e){var t=De();if(null===e||void 0===e)return t;if(Ce(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Cn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Cn)return e;s=null}if(c===l)return Cn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ie(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ie(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ie([],r):d;if(d&&h>f&&aHt;g-=Ht){var m=f>>>g≫y=y.array[m]=Ae(y.array[m],r)}y.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),ke(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),g(t,n,i))return e;var o=m(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?I:s(e)?N:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,I),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,N),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(k(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!k(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,N),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,N),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return g(e,t,n)?this:new V(this._value,_(t,n)-m(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,gn=0,mn={};e(ae,$),ae.of=function(){var e=Kt.call(arguments,0);return ge().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return me(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return me(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?ge():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ge()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ge(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,Me(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ge(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=l?d?c:c^u:c|u,g=l?d?Te(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Oe.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Oe.prototype.insert=function(e,t){return this.splice(e,0,t)},Oe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Oe.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ie([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Tn,On,Cn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,I),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,N),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,I),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,ge()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:vt(this,r)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var In=dt.prototype;In.delete=In.remove,In.deleteIn=In.removeIn=bn.removeIn,In.merge=bn.merge,In.mergeWith=bn.mergeWith,In.mergeIn=bn.mergeIn,In.mergeDeep=bn.mergeDeep,In.mergeDeepWith=bn.mergeDeepWith,In.mergeDeepIn=bn.mergeDeepIn,In.setIn=bn.setIn,In.update=bn.update,In.updateIn=bn.updateIn,In.withMutations=bn.withMutations,In.asMutable=bn.asMutable,In.asImmutable=bn.asImmutable,e(gt,te),gt.of=function(){return this(arguments)},gt.fromKeys=function(e){return this(n(e).keySeq())},gt.prototype.toString=function(){return this.__toString("Set {","}")},gt.prototype.has=function(e){return this._map.has(e)},gt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},gt.prototype.remove=function(e){return _t(this,this._map.remove(e))},gt.prototype.clear=function(){return _t(this,this._map.clear())},gt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ot(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ot(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Ct()},xt.prototype.slice=function(e,t){if(g(e,t,this.size))return this;var n=m(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ot(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ot(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Tt;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,It(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return gt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Oe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(Nt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,It(n,{flip:function(){return at(this,Ve(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},It(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=m(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=n(151),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,i({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,c.default)(n,(i(e={},p.default.root,!0),i(e,p.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(l.default,o({},d,{title:a,className:n}),u.default.createElement("span",{className:p.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,l.default.root);var c=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=o?"submit":"button";return s.default.createElement("button",i({type:f},a,{onMouseDown:c,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var u=v++;n=d||(d=s(t)),r=c.bind(null,n,u,!1),i=c.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var l={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),d=null,v=0,y=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=p()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,i({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(c.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,l.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",o({},i,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=i(e,2),n=t[0],r=t[1],o=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},o)})}}]),t}();t.default=p},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),i=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var i=r,o=e.getLength();i=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return o(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,c.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,o){return new e(a.EditorState.push(this._editorState,i(t,n,o),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,o,s){var u=i(t,n,s);return new e(a.EditorState.createWithContent(u,o),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){switch(e){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["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,c,l=Object.assign||function(e){for(var t=1;t",M=/^data-([a-z0-9-]+)$/,k=(i(s={},m,{element:"strong"}),i(s,_,{element:"code"}),i(s,b,{element:"em"}),i(s,w,{element:"del"}),i(s,E,{element:"ins"}),s),x=[m,b,E,w,_],T=(i(u={},g.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),i(u,g.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),O=(i(c={},g.ENTITY_TYPE.LINK,function(e,t){var n=T.hasOwnProperty(e)?T[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else M.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),i(c,g.ENTITY_TYPE.IMAGE,function(e,t){var n=T.hasOwnProperty(e)?T[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else M.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),c),C=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[k,x]),i=f(r,2),o=i[0],a=i[1];this.inlineStyles=o,this.styleOrder=a}return p(e,[{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")}}catch(e){f=!0,p=e}finally{try{!c&&y.return&&y.return()}finally{if(f)throw p}}}},{key:"writeEndTag",value:function(e){var t=o(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value;n.unshift("")}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var i=e.getCharacterList();return(0,g.getEntityRanges)(r,i).map(function(e){var r=f(e,2),i=r[0],o=r[1].map(function(e){var r=f(e,2),i=r[0],o=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(i),u=!0,c=!1,p=void 0;try{for(var h,y=t.styleOrder[Symbol.iterator]();!(u=(h=y.next()).done);u=!0){var m=h.value;if((m!==_||n!==g.BLOCK_TYPE.CODE)&&o.has(m)){var b=t.inlineStyles[m],w=b.element,E=b.attributes,M=b.style;if(null==w&&(w="span"),E=(0,d.default)(E),null!=M){var k=(0,v.default)(M);E=null==E?{style:k}:l({},E,{style:k})}s="<"+w+a(E)+">"+s+""}}}catch(e){c=!0,p=e}finally{try{!u&&y.return&&y.return()}finally{if(c)throw p}}return s}).join(""),s=i?y.Entity.get(i):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===g.ENTITY_TYPE.LINK?""+o+"":null!=u&&u===g.ENTITY_TYPE.IMAGE?"":o}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,i=n.characterMeta,o=!1;if(r===d&&(o=!0,r=""),"pre"===e.tagName){var c=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,i);r=c.text,i=c.characterMeta}else{var l=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var i=e.length;i--;)" "===e.charAt(i)&&" "===e.charAt(i-1)&&(e=e.slice(0,i)+e.slice(i+1),t=t.slice(0,i).concat(t.slice(i+1)));var o=(0,a.default)({text:e,characterMeta:t},d+" ",d);e=o.text,t=o.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+d,d);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,i);r=l.text,i=l.characterMeta}((r=r.split(d).join("\n")).length||o)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:i.toList(),depth:e.depth}))}),t.length?t:[p]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){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(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case c.BLOCK_TYPE.UNORDERED_LIST_ITEM:case c.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),i=!b.hasOwnProperty(t),o={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};i&&(this.blockList.push(o),r&&(this.depth+=1)),this.blockStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),i&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],i=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(c.INLINE_STYLE.BOLD);case"i":case"em":return e.add(c.INLINE_STYLE.ITALIC);case"ins":return e.add(c.INLINE_STYLE.UNDERLINE);case"code":return e.add(c.INLINE_STYLE.CODE);case"del":return e.add(c.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),m.hasOwnProperty(t)&&(i=m[t](t,e)||i),n.styleStack.push(r),n.entityStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),w.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(d)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(d),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],i=s.CharacterMetadata.create({style:n,entity:r}),o=(0,u.Repeat)(i,e.length);t.textFragments.push({text:e,characterMeta:o})}},{key:"processNode",value:function(e){if(e.nodeType===l.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();_.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===l.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var i=e.text,o=e.characterMeta,a=t.length,s=r.length,u=[],c=o.slice(0,0),l=0,f=i.indexOf(t);-1!==f;)u.push(i.slice(l,f)+r),c=c.concat(o.slice(l,f),n(o.slice(f,f+1),s)),l=f+a,f=i.indexOf(t,l);return u.push(i.slice(l)),c=c.concat(o.slice(l)),{text:u.join(""),characterMeta:c}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,i){o(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var c=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=c,!c&&i&&i.forEach(a.appendChild,a),a}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.attributes[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=s.name,c=s.value;t.push(u+(c?'="'+c.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}var l=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+l+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+l+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=l,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function i(e){return e.replace(/\)/g,"%29")}function o(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.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()===t&&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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],i=n[1];if(!r)return"";var o=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return i.has(l)&&(o="**"+o+"**"),i.has(d)&&(o="++"+o+"++"),i.has(p)&&(o="_"+o+"_"),i.has(h)&&(o="~~"+o+"~~"),i.has(f)&&(o=t===u.BLOCK_TYPE.CODE?o:"`"+o+"`"),o}).join(""),v=r?c.Entity.get(r):null;if(null!=v&&v.getType()===u.ENTITY_TYPE.LINK){var y=v.getData(),g=y.url||"",m=y.title?' "'+o(y.title)+'"':"";return"["+s+"]("+i(g)+m+")"}if(null!=v&&v.getType()===u.ENTITY_TYPE.IMAGE){var _=v.getData(),b=_.src||"";return"!["+(_.alt?' "'+o(_.alt)+'"':"")+"]("+i(b)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,i=n(203),o=(r=i)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=l({},e||p),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function i(e,t){if(this.options=l({},t||p),this.links=e,this.rules=d.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=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function o(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=l({},e||p),this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),c=Object.prototype.hasOwnProperty,l=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=l({},h),h.gfm=l({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,i,o,a,s,u,c,l,f;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(o=o[0].match(this.rules.item)).length,l=0;l1&&s.length>1||(e=o.slice(l+1).join("\n")+e,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&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.paragraph.exec(e)))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var d={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};d.link=s(d.link)("inside",d._inside)("href",d._href)(),d.reflink=s(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:s(d.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(d.text)("]|","~+]|")()}),d.breaks=l({},d.gfm,{br:s(d.br)("{2,}","*")(),text:s(d.gfm.text)("{2,}","*")()}),i.rules=d,i.parse=function(e,t,n){return new i(t,n).parse(e)},i.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},o.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},o.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},o.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},o.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},o.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},o.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},o.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},o.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},o.prototype.em=function(e){return new u.ElementNode("em",[],[e])},o.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},o.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},o.prototype.del=function(e){return new u.ElementNode("del",[],[e])},o.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},o.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},o.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},o.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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(e,t){t=l({},p,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return o.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(c=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},"h7v/":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("NdNt"),u=n("t4LX"),c=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?i.a.Children.map(this.props.children,function(t){return t.type===s.a?i.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return i.a.createElement("div",c({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},i.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Additional Comments"),i.a.createElement("div",{className:"control"},i.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return i.a.createElement("div",null,i.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),i.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?i.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to flag this observation."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},l.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jVml:function(e,t,n){"use strict";var r=window.TreeSnap.metaLabels;t.a=r},mOuh:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"To")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"CC/BCC")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Subject")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"}),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}),i.a.createElement("p",{className:"help"},"You may use ",i.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return i.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},i.a.createElement("h5",{className:"title is-5"},"Message Preview"),i.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?i.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?i.a.createElement("table",{className:"table"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Category"),i.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?i.a.createElement("tr",null,i.a.createElement("th",null,"Found Near"),i.a.createElement("td",null,t.formatted)):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,u()(e.date.date).format("LL"))),i.a.createElement("tr",null,i.a.createElement("th",{colSpan:2},i.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?i.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):i.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return i.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},i.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),i.a.createElement("div",{className:"modal-card modal-card-lg"},i.a.createElement(c.a,{visible:this.state.loading}),i.a.createElement("header",{className:"modal-card-head"},i.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),i.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),i.a.createElement("section",{className:"modal-card-body"},i.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),i.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):i.a.createElement("div",{className:"flexbox flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),i.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,y=function(){return p.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,u,c,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function _(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-l>=a}function w(){var e=y();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?_(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?_(e):s}(c);if(p)return u=setTimeout(w,t),_(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=m(t)||0,g(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(m(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(y())},S}}).call(t,n("DuR2"))},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,M=function(){return function e(t){if(!(this instanceof e))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=l.getInstance(),r=new E(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){M.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var k=void 0!==i.ResizeObserver?i.ResizeObserver:M;t.default=k}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/10.eb3fefb19e1aec5b6a34.js b/public/js/10.eb3fefb19e1aec5b6a34.js new file mode 100644 index 00000000..ba2ee902 --- /dev/null +++ b/public/js/10.eb3fefb19e1aec5b6a34.js @@ -0,0 +1 @@ +webpackJsonp([10],{"0dG/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;to&&(a=0),n.setState({previousIndex:i,currentIndex:a,isTransitioning:a!==i,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new c.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,i){var o=n.state,a=o.scrollingUpDown,s=o.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var c=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(c,i)}},n._handleSwiping=function(e,t,r,i){var o=n.state,a=o.galleryWidth,s=o.isTransitioning,u=o.scrollingUpDown,c=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var l=t<0?1:-1,f=i/a*100;Math.abs(f)>=100&&(f=100);var p={transition:"transform "+c+"ms ease-out"};n.setState({offsetPercentage:l*f,style:p})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-image"},e.imageSet?o.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return o.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),o.default.createElement("img",{alt:e.originalAlt,src:e.original})):o.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&o.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbnail-inner"},o.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(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(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,i)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;p.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;p.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,i=n.scrollingLeftRight,o=Math.abs(e);Math.abs(t)>o&&!r&&!i?this.setState({scrollingUpDown:!0}):i||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this._sufficientSwipeOffset()&&!t||i||(o+=e),e<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.currentIndex0&&(er&&this._setThumbsTranslate(n+o))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,i=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){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 e*(i/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=t.previousIndex,o=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?o=-100+r:1===n&&0===e&&r<0&&(o=100+r),n!==i?0===i&&0===e&&0===r&&"left"===this.direction?o=100:1===i&&1===e&&0===r&&"right"===this.direction&&(o=-100):0===n&&1===e&&0===r&&"left"===this.direction?o=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(o=100),o}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=this.props,o=i.infinite,a=i.items,s=i.useTranslate3D,u=i.isRTL,c=-100*n,l=a.length-1,f=(c+100*e)*(u?-1:1)+r;o&&a.length>2&&(0===n&&e===l?f=-100*(u?-1:1)+r:n===l&&0===e&&(f=100*(u?-1:1)+r)),o&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var p="translate("+f+"%, 0)";return s&&(p="translate3d("+f+"%, 0, 0)"),{WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state.thumbsTranslate,o=r?-1*i:i;return this._isThumbnailHorizontal()?(e="translate(0, "+i+"px)",n&&(e="translate3d(0, "+i+"px, 0)")):(e="translate("+o+"px, 0)",n&&(e="translate3d("+o+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,c=t.scrollingLeftRight,l=this.props,f=l.infinite,p=l.preventDefaultTouchmoveEvent,h=l.isRTL,d=this._getThumbnailStyle(),v=this.props.thumbnailPosition,y=this._slideLeft,g=this._slideRight,m=[],_=[],b=[];this.props.items.forEach(function(t,i){var a=e._getAlignmentClassName(i),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",c=t.renderItem||e.props.renderItem||e._renderItem,l=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,p=!e.props.lazyLoad||a||e._lazyLoaded[i];p&&e.props.lazyLoad&&(e._lazyLoaded[i]=!0);var h=e._getSlideStyle(i),d=o.default.createElement("div",{key:i,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},p?c(t):o.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(i)&&m.push(d):m.push(d),e.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,onClick:function(t){return e._onThumbnailClick(t,i)}},l(t))),e.props.showBullets){b.push(o.default.createElement("button",{key:i,type:"button",className:["image-gallery-bullet",n===i?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:i,currentIndex:n}),e.slideToIndex.call(e,i,r)},"aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}});var w=o.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+v+" "+(h?"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(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:p||c},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))),E=["image-gallery",this.props.additionalClass,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return o.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:E,"aria-live":"polite"},o.default.createElement("div",{className:"image-gallery-content"+(i?" fullscreen":"")},("bottom"===v||"right"===v)&&w,this.props.showThumbnails&&o.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+v+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},o.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:d,"aria-label":"Thumbnail Navigation"},_))),("top"===v||"left"===v)&&w))}}]),t}();h.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,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},h.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(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"5L7H":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},i.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return i.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Or Create New Collection"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})),i.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to add this observation to a collection."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},l.defaultProps={collections:[],onSubmit:function(){}}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("O27J"),a=n.n(o),s=n("KSGD"),u=n.n(s),c=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),c(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return i.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},i.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(i.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=l,l.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},l.defaultProps={type:"success"},l.stack=[]},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,i=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:i,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,i=t.onSwiping,o=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,c=t.onSwipingRight,l=t.onSwipedRight,f=t.onSwipingUp,p=t.onSwipedUp,h=t.onSwipingDown,d=t.onSwipedDown,v=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var y=u(e,this.swipeable);if(!(y.absXy.absY?y.deltaX>0?(a||s)&&(a&&a(e,y.absX),g=!0):(c||l)&&(c&&c(e,y.absX),g=!0):y.deltaY>0?(f||p)&&(f&&f(e,y.absY),g=!0):(h||d)&&(h&&h(e,y.absY),g=!0),this.swipeable.swiping=!0,g&&v&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,i=t.onSwiped,o=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,c=t.onSwipedDown,l=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var p=f.velocity>r;i&&i(e,f.deltaX,f.deltaY,p,f.velocity),f.absX>f.absY?f.deltaX>0?o&&o(e,f.deltaX,p):a&&a(e,f.deltaX,p):f.deltaY>0?s&&s(e,f.deltaY,p):c&&c(e,f.deltaY,p)}else l&&l(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,i.createElement(this.props.nodeName,e,this.props.children)},t}(i.Component);c.propTypes={onSwiped:o.func,onSwiping:o.func,onSwipingUp:o.func,onSwipingRight:o.func,onSwipingDown:o.func,onSwipingLeft:o.func,onSwipedUp:o.func,onSwipedRight:o.func,onSwipedDown:o.func,onSwipedLeft:o.func,onTap:o.func,flickThreshold:o.number,delta:o.number,preventDefaultTouchmoveEvent:o.bool,stopPropagation:o.bool,nodeName:o.string,trackMouse:o.bool,disabled:o.bool,innerRef:o.func,children:o.node,rotationAngle:o.number},c.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=c},AByj:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("h7v/"),u=n("NdNt"),c=n("c8iI"),l=n("0dG/"),f=n.n(l),p=n("PJh5"),h=n.n(p),d=n("LZyd"),v=n("iwoP"),y=n("5L7H"),g=n("jVml"),m=n("mOuh"),_=n("OE/d"),b=n("t4LX"),w=n("F8kA"),E=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},i.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return i.a.createElement(c.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},i.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:i.a.createElement("div",null,i.a.createElement("div",{className:"flexbox observation-tools"},i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-star text-success"})),i.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-flag text-danger"})),i.a.createElement("span",null,"Flag Observation")):null,_.a.can("contact users")?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-envelope text-info"})),i.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return i.a.createElement(d.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return i.a.createElement(v.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h3",{className:"title is-4"},"Add to Collection"),i.a.createElement(y.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===m.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:i.a.createElement("tr",{key:n},i.a.createElement("th",null,e),i.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?i.a.createElement("p",{className:"help"},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),b.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return i.a.createElement("div",{className:"box has-text-centered"},i.a.createElement("div",{className:"content"},i.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),i.a.createElement("p",null,"Observation has been deleted successfully"),i.a.createElement(w.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return _.a.can("contact users")?i.a.createElement(E.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},i.a.createElement("option",{value:"US"},"US Units"),i.a.createElement("option",{value:"metric"},"Metric Units")))),_.a.can("delete observations")||_.a.owns(this.observation)?i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})),i.a.createElement("span",null,"Delete"))):null),i.a.createElement("div",{className:"columns mb-none"},i.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},i.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},i.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Submitted By"),i.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?i.a.createElement("tr",null,i.a.createElement("th",null,"Custom Tree Identifier"),i.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?i.a.createElement("tr",null,i.a.createElement("th",null,"ID"),i.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,i=void 0!==g.a[n]?g.a[n]:n,o=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],o=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(i,o,n,r)}),i.a.createElement("tr",null,i.a.createElement("th",null,"Coordinates"),i.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?i.a.createElement("tr",null,i.a.createElement("th",null,"Location Accuracy"),i.a.createElement("td",null,_.a.can("view accurate location")||_.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:i.a.createElement("tr",null,i.a.createElement("th",null,"Photos"),i.a.createElement("td",null,i.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"tabs has-no-shadow"},i.a.createElement("ul",null,i.a.createElement("li",{className:this.getTabClass("photos")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),i.a.createElement("li",{className:this.getTabClass("map")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?i.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},i.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return i.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?i.a.createElement("div",{className:"callout"},i.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?i.a.createElement("div",{style:{width:"100%",position:"relative"}},i.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=k,k.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},k.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},AwRT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),i=n.n(r),o=n("JsH4"),a=n("IFrJ"),s=n("saAw"),u=n("xC2h"),c=n("DakW"),l=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return i.a.createElement(p.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},i.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},i.a.createElement("div",{className:"media callout"},i.a.createElement("div",{className:"media-left mr-0"},i.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),i.a.createElement("div",{className:"media-content"},i.a.createElement("div",{className:"mb-0"},i.a.createElement("strong",null,t.observation_category)),i.a.createElement("div",{className:"mb-0"},"By ",t.user.name),i.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?i.a.createElement("div",{className:"content"},i.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),i.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),i.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):i.a.createElement(l.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return i.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},i.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),i.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Flag Observation"),i.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),v.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";v.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return i.a.createElement("div",{className:"card-footer marks-section"},i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.incorrectMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-times text-danger"})),i.a.createElement("span",null,"Marks")),i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.correctMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-check text-success"})),i.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":E(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,o=this.getAddress(t),a=o.address,u=o.addressLine1,l=o.addressLine2;return i.a.createElement("div",{className:"observation-card-container"},i.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},i.a.createElement("header",{className:"card-header"},i.a.createElement(b.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},i.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-times"})))):null,w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},i.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-check"})))):null),i.a.createElement("div",{className:"relative-block"},i.a.createElement(d.a,{visible:this.state.loading}),i.a.createElement("div",{className:"has-bg-image relative-block is-positioned-relatively"},i.a.createElement("div",{className:"card-image img-bg-zoom",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}},i.a.createElement("a",{href:"javascript:;",className:"sidebar-img-overlay flexbox flex-v-center flex-h-center flex-column z-10",onClick:function(){e.setState({showDetailsModal:!0})}},i.a.createElement("i",{className:"fa fa-photo"}),i.a.createElement("div",{className:"has-text-centered"},"Click for More Details")))),this._renderMarks(),i.a.createElement("div",{className:"card-content"},i.a.createElement("div",{className:"content"},this.props.owner?null:i.a.createElement("span",null,"By ",t.user.name,i.a.createElement("br",null)),i.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),i.a.createElement("br",null),t.custom_id?i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"Custom ID")," ",t.custom_id),i.a.createElement("br",null)):i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||w.a.can("view accurate location")?i.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,i.a.createElement("br",null)):null,i.a.createElement("small",null,c()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?i.a.createElement("div",{className:"text-ellipsis",title:a},i.a.createElement("small",null,i.a.createElement("b",null,"Near")," ",u),i.a.createElement("br",null),i.a.createElement("small",{style:{marginLeft:"35px"}},l)):i.a.createElement("div",{style:{height:48}},"Address is unavailable"))),i.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},i.a.createElement("div",{className:"p-1 relative-block"},i.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},i.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),i.a.createElement("footer",{className:"card-footer card-footer-z-index"},i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},i.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-star"})))),i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},i.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-map"})))),w.a.can("contact users")&&!this.props.owner?i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},i.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},i.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?i.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},i.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?i.a.createElement(_,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=M;M.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},M.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},LZyd:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n=t||n<0||p&&e-l>=a}function w(){var e=y();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?g(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?g(e):s}(c);if(p)return u=setTimeout(w,t),g(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=_(t)||0,m(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(_(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(y())},S}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return m(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),g(e,t,{leading:i,maxWait:t,trailing:o})}}).call(t,n("DuR2"))},c8iI:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),m=n.getEditorState();l=l?u({},O,l):O;var b=(0,S.default)((i(e={},T.default.editor,!0),i(e,T.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=d);var w=void 0;return h||(w=f.default.createElement(_.default,{className:a,keyEmitter:this._keyEmitter,editorState:m,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:v})),f.default.createElement("div",{className:(0,S.default)(T.default.root,r)},w,f.default.createElement("div",{className:b},f.default.createElement(p.Editor,u({},g,{blockStyleFn:(0,E.default)(o,y),customStyleMap:l,editorState:m,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:c,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,m.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(p.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),i=p.Modifier.removeRange(r,n,"forward"),o=i.getSelectionAfter(),a=i.getBlockForKey(o.getStartKey());i=p.Modifier.insertText(i,o,"\n",a.getInlineStyleAt(o.getStartOffset()),null),this._onChange(p.EditorState.push(t,i,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if((0,g.default)(i)&&0===i.getLength()){var o=i.getDepth(),a=0===o?(0,v.default)(e,r,x.BLOCK_TYPE.UNSTYLED):(0,d.default)(e,r,o-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if(!(0,g.default)(i)&&i.getType()!==x.BLOCK_TYPE.UNSTYLED&&i.getLength()===t.getStartOffset()){var o=(0,y.default)(e,r,x.BLOCK_TYPE.UNSTYLED);return this._onChange(o),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=C;var I=new p.CompositeDecorator([w.default]);Object.assign(C,{EditorValue:b.default,decorator:I,createEmptyValue:a,createValueFromString:s}),t.EditorValue=b.default,t.decorator=I,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(6),a=n(40),s=n(7),u=n(32),c=n(41),l=n(43),f=n(44),p=n(50),h=n(9),d=n(14),v=n(16),y=n(29),g=n(100),m=n(131),_=n(33),b=n(133),w={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:g,Modifier:h,RichUtils:m,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:b,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=w},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(9),s=n(29),u=n(5),c=n(21),l=u.List,f=u.Repeat,p={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),p=e.getSelection(),h=a.removeRange(u,p,"backward"),d=h.getSelectionAfter(),v=a.splitBlock(h,d),y=v.getSelectionAfter(),g=a.setBlockType(v,y,"atomic"),m=i.create({entity:t}),_=[new o({key:c(),type:"atomic",text:n,characterList:l(f(m,n.length))}),new o({key:c(),type:"unstyled",text:"",characterList:l()})],b=r.createFromArray(_),w=a.replaceWithFragment(g,y,b),E=w.merge({selectionBefore:p,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return s.push(e,E,"insert-fragment")}};e.exports=p},function(e,t,n){"use strict";var r=n(5).OrderedMap,i={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=i},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:C(e)}function n(e){return a(e)?e:I(e)}function r(e){return s(e)?e:N(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function g(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function m(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function M(e){return!!T(e)}function k(e){return e&&"function"==typeof e.next}function x(e){var t=T(e);return t&&t.call(e)}function T(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function O(e){return e&&"number"==typeof e.length}function C(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function I(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function N(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():k(e)?new z(e).fromEntrySeq():M(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return O(e)?new D(e):k(e)?new z(e):M(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,N(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?N(e).map(H).toList():W(e)?I(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=mn[t=e])&&(n=ie(t),gn===yn&&(gn=0,mn={}),gn++,mn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Te(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Oe(e){var t=De();if(null===e||void 0===e)return t;if(Ce(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Cn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Cn)return e;s=null}if(c===l)return Cn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ie(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ie(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ie([],r):d;if(d&&h>f&&aHt;g-=Ht){var m=f>>>g≫y=y.array[m]=Ae(y.array[m],r)}y.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),ke(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),g(t,n,i))return e;var o=m(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?I:s(e)?N:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,I),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,N),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(k(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!k(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,N),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,N),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return g(e,t,n)?this:new V(this._value,_(t,n)-m(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,gn=0,mn={};e(ae,$),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return me(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return me(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?ge():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ge()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ge(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,Me(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ge(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=l?d?c:c^u:c|u,g=l?d?Te(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Oe.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Oe.prototype.insert=function(e,t){return this.splice(e,0,t)},Oe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Oe.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ie([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Tn,On,Cn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,I),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,N),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,I),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,ge()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:vt(this,n)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var In=dt.prototype;In.delete=In.remove,In.deleteIn=In.removeIn=bn.removeIn,In.merge=bn.merge,In.mergeWith=bn.mergeWith,In.mergeIn=bn.mergeIn,In.mergeDeep=bn.mergeDeep,In.mergeDeepWith=bn.mergeDeepWith,In.mergeDeepIn=bn.mergeDeepIn,In.setIn=bn.setIn,In.update=bn.update,In.updateIn=bn.updateIn,In.withMutations=bn.withMutations,In.asMutable=bn.asMutable,In.asImmutable=bn.asImmutable,e(gt,te),gt.of=function(){return this(arguments)},gt.fromKeys=function(e){return this(n(e).keySeq())},gt.prototype.toString=function(){return this.__toString("Set {","}")},gt.prototype.has=function(e){return this._map.has(e)},gt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},gt.prototype.remove=function(e){return _t(this,this._map.remove(e))},gt.prototype.clear=function(){return _t(this,this._map.clear())},gt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ot(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ot(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Ct()},xt.prototype.slice=function(e,t){if(g(e,t,this.size))return this;var n=m(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ot(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ot(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Tt;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,It(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return gt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Oe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Nt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,function(){try{Object.defineProperty(Bn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),It(n,{flip:function(){return at(this,Ve(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},It(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=m(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var p=f[0];if("IMMUTABLE"===l)return t.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});var h=i.getRemovalRange(s,u,e.getText().slice(p.start,p.end),p.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,l,t),h=p.start,d=p.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e}(c.getCharacterList(),a,u):c.getCharacterList().slice(0,a).concat(l.getCharacterList().slice(u));var f=c.merge({text:c.getText().slice(0,a)+l.getText().slice(u),characterList:n}),p=i.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===o?f:null});return i=i.merge(p).filter(function(e){return!!e}),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:a,focusKey:o,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),i=n(21),o=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||o(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),c=u.getText(),l=u.getCharacterList(),f=u.merge({text:c.slice(0,r),characterList:l.slice(0,r)}),p=i(),h=f.merge({key:p,text:c.slice(r),characterList:l.slice(r),data:a()}),d=s.toSeq().takeUntil(function(e){return e===u}),v=s.toSeq().skipUntil(function(e){return e===u}).rest(),y=d.concat([[f.getKey(),f],[h.getKey(),h]],v).toOrderedMap();return e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function o(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return p()}var a=n(15)||function(e){for(var t=1;t0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):o(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r0?i.getInlineStyleAt(r-1):o(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var i="insert-characters"!==r,o=c.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),l=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var p={currentContent:l,directionMap:o,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=y},function(e,t,n){"use strict";function r(e,t){return e===t}var i=n(5),o=n(31),a=n(8),s=i.List,u=i.Repeat,c=i.Record,l=o.thatReturnsTrue,f=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],o=t?t.getDecorations(e):s(u(null,n)),c=e.getCharacterList();return a(o,r,l,function(e,t){var n,u,h,d;i.push(new p({start:e,end:t,decoratorKey:o.get(e),leaves:(n=c.slice(e,t).toList(),u=e,h=[],d=n.map(function(e){return e.getStyle()}).toList(),a(d,r,l,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(i)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(5),s=n(33),u=n(21),c=n(34),l=a.List,f=a.Record,p=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),i=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=c(e),new o({key:u(),text:e,type:"unstyled",characterList:l(p(i.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset();return t<=this.getEndOffset()&&o<=n}if(e!==r&&e!==i)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,i=n(5),o=n(36),a=n(39),s=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),c=s(n.keySeq().zip(u));return null!=t&&i.is(t,c)?t:c}};e.exports=u},function(e,t,n){"use strict";var r=n(37),i=n(38),o=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?i.isStrong(t)||o(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function i(e){var t=r(e);return null==t?s.NEUTRAL:p.exec(t)?s.RTL:s.LTR}function o(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=i(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),o(e,t)}var s=n(38),u=n(17),c="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",l="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+c+l+"]"),p=new RegExp("["+c+l+"]"),h={firstStrongChar:r,firstStrongCharDir:i,resolveBlockDir:o,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function i(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function o(e){c=e}var a=n(17),s="LTR",u="RTL",c=null,l={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:i(e)},setGlobalDir:o,initGlobalDir:function(){o(s)},getGlobalDir:function(){return c||this.initGlobalDir(),c||a(!1),c}};e.exports=l},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var i=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==o;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var p=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,o);return void this.update(i.push(t,p,"insert-characters"))}f&&this.update(i.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===i.get(e).getMutability()?e:null}var i=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?r(e.getBlockForKey(n).getEntityAt(i-1)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):ib,I));var R=T||o,B={className:P,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":N,key:M};void 0!==C&&(B=i({},B,{contentEditable:C,suppressContentEditableWarning:!0}));var K=s.createElement(A,B,s.createElement(R,L));_.push({block:K,wrapperTemplate:j,key:M,offsetKey:N}),b=j?S.getDepth():null,w=j}for(var U=[],F=0;F<_.length;){var q=_[F];if(q.wrapperTemplate){var Y=[];do{Y.push(_[F].block),F++}while(F<_.length&&_[F].wrapperTemplate===q.wrapperTemplate);var H=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},Y);U.push(H)}else U.push(q.block),F++}return s.createElement("div",{"data-contents":"true"},U)},t}(s.Component);e.exports=f},function(e,t,n){"use strict";function r(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var i=n(15)||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(i.offsetHeight+o.y))>0&&c.setTop(i,c.getTop(i)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),c=this.props.tree.size-1,l=r(this.props.selection,n);return this.props.tree.map(function(r,h){var d=r.get("leaves"),v=d.size-1,y=d.map(function(r,i){var f=a.encode(n,h,i),p=r.get("start"),d=r.get("end");return s.createElement(o,{key:f,offsetKey:f,blockKey:n,start:p,selection:l?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(p,d),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===c&&i===v})}).toArray(),m=r.get("decoratorKey");if(null==m)return y;if(!e.props.decorator)return y;var _=g(e.props.decorator),b=_.getComponentForKey(m);if(!b)return y;var w=_.getPropsForKey(m),E=a.encode(n,h,0),S=u.slice(d.first().get("start"),d.last().get("end")),M=p.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(b,i({},w,{decoratedText:S,dir:M,key:E,entityKey:t.getEntityAt(r.get("start")),offsetKey:E}),y)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=m},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,i=r+t.text.length;if(e.hasEdgeWithin(n,r,i)){var o,u=a.findDOMNode(this),c=u.firstChild;o=c.nodeType===Node.TEXT_NODE?c:"BR"===c.tagName?u:c.firstChild,s(e,o,n,r,i)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,c=u.reduce(function(e,t){var i={},o=n[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(i.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,i)},{});if(a){var l=a(u);c=r(c,l)}return o.createElement("span",{"data-offset-key":s,ref:"leaf",style:c},o.createElement(i,null,e))},t}(o.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),i=n(53),o=n(54).isBrowser("IE <= 11"),a=o?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=o?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=i.findDOMNode(this);return""===e.children?!function(e){return o?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,a.contains(i,t))}function i(e){return"Windows"===o.platformName?e.replace(/^\s*NT/,""):e}var o=n(55),a=n(58),s=n(59),u=n(60),c={isBrowser:function(e){return r(o.browserName,o.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(o.browserArchitecture,null,e)},isDevice:function(e){return r(o.deviceName,null,e)},isEngine:function(e){return r(o.engineName,o.engineVersion,e)},isPlatform:function(e){return r(o.platformName,o.platformFullVersion,e,i)},isPlatformArchitecture:function(e){return r(o.platformArchitecture,null,e)}};e.exports=s(c,u)},function(e,t,n){"use strict";var r,i="Unknown",o={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||i,browserFullVersion:a.browser.version||i,browserMinorVersion:s.minor||i,browserName:a.browser.name||i,browserVersion:a.browser.major||i,deviceName:a.device.model||i,engineName:a.engine.name||i,engineVersion:a.engine.version||i,platformArchitecture:a.cpu.architecture||i,platformName:(r=a.os.name,o[r]||r||i),platformVersion:a.os.version||i,platformFullVersion:a.os.version||i};e.exports=u},function(e,t,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",p="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},d={rgx:function(){for(var e,t,n,r,i,o,a,s=0,u=arguments;s0?2==i.length?"function"==typeof i[1]?e[i[0]]=i[1].call(this,a):e[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?e[i[0]]=a?a.replace(i[1],i[2]):void 0:e[i[0]]=a?i[1].call(this,a,i[2]):void 0:4==i.length&&(e[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):e[i]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return b.contains(e,t)}):function(e,t){var n=e.split(g);if(n.length>0&&n.length<=2||d(!1),1===n.length)return i(n[0],t);var r=n[0],o=n[1];return c(r)&&c(o)||d(!1),i(">="+r,t)&&i("<="+o,t)}(e=n[0].trim(),t)}function i(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(v),i=s(e),c=i.modifier,l=i.rangeComponents;switch(c){case"<":return o(r,l);case"<=":return-1===(n=h(r,l))||0===n;case">=":return a(r,l);case">":return function(e,t){return 1===h(e,t)}(r,l);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,s=parseInt(r[i],10);return u(s)&&(r[i]=s+1+""),a(e,n)&&o(e,r)}(r,l);default:return function(e,t){return 0===h(e,t)}(r,l)}}function o(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(v),n=t[0].match(m);return n||d(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function c(e){return!s(e).modifier}function l(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,_=/^(\d*)(.*)/,b={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=b},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var i={};for(var o in e)n.call(e,o)&&(i[o]=t.call(r,e[o],o,e));return i}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&o(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function i(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var o=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(o(document.documentElement,n)){var c=t.getSelection(),l=e.getAnchorKey(),f=e.getAnchorOffset(),p=e.getFocusKey(),h=e.getFocusOffset(),d=e.getIsBackward();if(!c.extend&&d){var v=l,y=f;l=p,f=h,p=v,h=y,d=!1}var g=l===a&&s<=f&&u>=f,m=p===a&&s<=h&&u>=h;if(g&&m)return c.removeAllRanges(),i(c,n,f-s),void r(c,n,h-s);if(d){if(m&&(c.removeAllRanges(),i(c,n,h-s)),g){var _=c.focusNode,b=c.focusOffset;c.removeAllRanges(),i(c,n,f-s),r(c,_,b)}}else g&&(c.removeAllRanges(),i(c,n,f-s)),m&&r(c,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],i=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=i},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var i=n(70),o=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(o(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[i(t)]:e.style&&e.style[i(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),i=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=i(e),o=e===t?document.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=i},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,d)))return;return void u(d,function(e){e&&t.update(r(p,l(h),e))})}var v=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,v)))return this._internalDrag?void this.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(p,h)):void this.update(r(p,h,n.getText()))}}};e.exports=p},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var i=n(81),o=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},c=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=c},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i=0;h--)if(!(null!=p&&h>0&&o.isSurrogatePair(p,h-1))){if(e.setStart(l,h),!r(a(e),n))break;u=l,c=h}if(-1===h||0===l.childNodes.length)break;f=i(l=l.childNodes[h])}return e.setStart(u,c),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function i(e){return p.test(e)}function o(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var l=null;if(null!=s)l=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);l=c(a(f))}return{key:l,offset:0}}var p=r.childNodes[n-1],h=null,d=null;if(a(p)){var v=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(p);h=c(a(v)),d=i(v)}else h=c(s),d=i(p);return{key:h,offset:d}}function i(e){var t=e.textContent;return"\n"===t?0:t.length}var o=n(83),a=n(84),s=n(86),u=n(17),c=n(39);e.exports=function(e,t,n,i,a,u){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:s(e,c(o(n)),i,c(o(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return l?(p={key:c(o(n)),offset:i},h=r(t,a,u)):f?(h={key:c(o(a)),offset:u},p=r(t,n,i)):(p=r(t,n,i),h=r(t,a,u),n===a&&i===u&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var u=r.getKeyBefore(i);null==u?a=i:(a=u,s=r.getBlockForKey(u).getText().length)}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=e.getSelection(),o=e.getCurrentContent(),a=i;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o}else if(e.isSelectionAtStartOfContent())return o;if((a=t(e))===i)return o}return r.removeRange(o,a,n)}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),s=r.getBackward(a);return o(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var i="\\s|(?![_])"+n(111).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['‘’]|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:['‘’]|(?!"+i+").)*(?:"+i+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),s=r.getForward(a);return o(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),i=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),i=n(29),o=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),c=e.getCurrentContent(),l=c.getBlockForKey(u).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(c,a),p=r.removeRange(c,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,v=h.merge({anchorOffset:d,focusOffset:d}),y=r.replaceWithFragment(p,v,f),g=i.push(e,y,"insert-fragment");return i.acceptSelection(g,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(i)},0)):void n(i);var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n,"insert-fragment")}var i=n(4),o=n(6),a=n(80),s=n(9),u=n(122),c=n(29),l=n(47),f=n(85),p=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var d=n.getFiles(),v=n.getText();if(d.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(d)))return;return void f(d,function(e){if(e=e||v){var n=t.props.editorState,r=p(e),a=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=i.createFromArray(f),d=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(c.push(n,d,"insert-fragment"))}})}}var y=[],g=n.getText(),m=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(g,m))){if(g&&(y=p(g)),!this.props.stripPastedStyles){var _=this.getClipboard();if(n.isRichText()&&_){if(-1!==m.indexOf(this.getEditorKey())||1===y.length&&1===_.size&&_.first().getText()===g)return void this.update(r(this.props.editorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(y,_))return void this.update(r(this.props.editorState,_));if(m){var b=u.processHTML(m,this.props.blockRenderMap);if(b){var w=i.createFromArray(b);return void this.update(r(this.props.editorState,w))}}this.setClipboard(null)}if(y){var E=this.props.editorState,S=o.create({style:E.getCurrentInlineStyle(),entity:l(E.getCurrentContent(),E.getSelection())}),M=u.processText(y,S),k=i.createFromArray(M);this.update(r(this.props.editorState,k))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),i=n(5),o=n(123),a=n(21),s=n(125),u=n(34),c=i.List,l=i.Repeat,f={processHTML:function(e,t){return o(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:c(l(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function i(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(k,t))}]}}function o(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):L.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(g,e,t),"ul"!==g&&"ol"!==g||(n&&(p+=1),n=g),o||-1===f.indexOf(g)?n&&"li"===o&&"li"===g&&(E=i(a(g,n,h),p),o=g,m=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"):(E=i(a(g,n,h),p),o=g,m=!0);var k=e.firstChild;null!=k&&(g=k.nodeName.toLowerCase());for(var x=null;k;){k instanceof HTMLAnchorElement&&k.href&&u(k)?function(){var e=k,t={};j.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new y(e.href).toString(),x=d.create("LINK","MUTABLE",t)}():x=void 0,E=s(E,c(k,t,n,o,f,p,h,x||v));var O=k.nextSibling;O&&f.indexOf(g)>=0&&o&&(E=s(E,r())),O&&(g=O.nodeName.toLowerCase()),k=O}return m&&(E=s(E,i(_,p))),E}var l,f=n(6),p=n(7),h=n(41),d=n(14),v=n(5),y=n(124),g=n(21),m=n(125),_=n(17),b=n(39),w=n(34),E=v.List,S=v.OrderedSet,M=" ",k=4,x=new RegExp("\r","g"),T=new RegExp("\n","g"),O=new RegExp(" ","g"),C=new RegExp(" ?","g"),I=new RegExp("​?","g"),N=["bold","bolder","500","600","700","800","900"],L=["light","lighter","100","200","300","400"],D={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},j=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(x,"").replace(O,M).replace(C,"").replace(I,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),i=t(e);if(!i)return null;l=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=c(i,S(),"ul",null,o,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?m:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=w(e);var i=n+e.length,o=b(t).inlines.slice(n,i),a=b(t).entities.slice(n,i),s=E(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=i+1,new p({key:g(),type:b(t).blocks[r].type,depth:b(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),i=n(53),o=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=o(e,i.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var i=t.getSelection();return 0===i.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),i=n(42),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=o},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var i=n(100),o=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),c=s&&a.isBrowser("Firefox < 29"),l=i.hasCommandModifier,f=i.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),c=i.setBlockType(n,s,n.getBlockForKey(r).getType()),l=i.removeRange(c,s,"backward");if(l!==n)return o.push(e,l,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?o.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=o.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return i.setBlockType(o,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),i=n(134),o=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var o=i.stringify(e.getEntityAt(r));n.hasOwnProperty(o)||(n[o]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:o(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(i.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),i=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var s=e.getText(),u=e.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),i=n(8),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return i(u,o,a,function(t,i){var o=e.getText();s.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,i.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,i=null,o=[],a=0,s=0,u=e.length;s0&&n!==i&&(o.push([i,r(e.slice(a,s),t.slice(a,s))]),a=s)}return o.push([n,r(e.slice(a),t.slice(a))]),o};var i=n(150),o=t.EMPTY_SET=new i.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:C(e)}function n(e){return a(e)?e:I(e)}function r(e){return s(e)?e:N(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function g(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function m(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function M(e){return!!T(e)}function k(e){return e&&"function"==typeof e.next}function x(e){var t=T(e);return t&&t.call(e)}function T(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function O(e){return e&&"number"==typeof e.length}function C(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function I(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function N(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():k(e)?new z(e).fromEntrySeq():M(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return O(e)?new D(e):k(e)?new z(e):M(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,N(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?N(e).map(H).toList():W(e)?I(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=mn[t=e])&&(n=ie(t),gn===yn&&(gn=0,mn={}),gn++,mn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Te(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Oe(e){var t=De();if(null===e||void 0===e)return t;if(Ce(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Cn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Cn)return e;s=null}if(c===l)return Cn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ie(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ie(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ie([],r):d;if(d&&h>f&&aHt;g-=Ht){var m=f>>>g≫y=y.array[m]=Ae(y.array[m],r)}y.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),ke(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),g(t,n,i))return e;var o=m(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?I:s(e)?N:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,I),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,N),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(k(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!k(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,N),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,N),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return g(e,t,n)?this:new V(this._value,_(t,n)-m(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,gn=0,mn={};e(ae,$),ae.of=function(){var e=Kt.call(arguments,0);return ge().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return me(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return me(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?ge():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ge()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ge(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,Me(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ge(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=l?d?c:c^u:c|u,g=l?d?Te(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Oe.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Oe.prototype.insert=function(e,t){return this.splice(e,0,t)},Oe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Oe.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ie([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Tn,On,Cn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,I),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,N),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,I),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,ge()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:vt(this,r)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var In=dt.prototype;In.delete=In.remove,In.deleteIn=In.removeIn=bn.removeIn,In.merge=bn.merge,In.mergeWith=bn.mergeWith,In.mergeIn=bn.mergeIn,In.mergeDeep=bn.mergeDeep,In.mergeDeepWith=bn.mergeDeepWith,In.mergeDeepIn=bn.mergeDeepIn,In.setIn=bn.setIn,In.update=bn.update,In.updateIn=bn.updateIn,In.withMutations=bn.withMutations,In.asMutable=bn.asMutable,In.asImmutable=bn.asImmutable,e(gt,te),gt.of=function(){return this(arguments)},gt.fromKeys=function(e){return this(n(e).keySeq())},gt.prototype.toString=function(){return this.__toString("Set {","}")},gt.prototype.has=function(e){return this._map.has(e)},gt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},gt.prototype.remove=function(e){return _t(this,this._map.remove(e))},gt.prototype.clear=function(){return _t(this,this._map.clear())},gt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Ot(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ot(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Ct()},xt.prototype.slice=function(e,t){if(g(e,t,this.size))return this;var n=m(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ot(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ot(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Tt;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,It(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return gt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Oe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(Nt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,It(n,{flip:function(){return at(this,Ve(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},It(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=m(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=n(151),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,i({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,c.default)(n,(i(e={},p.default.root,!0),i(e,p.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(l.default,o({},d,{title:a,className:n}),u.default.createElement("span",{className:p.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,l.default.root);var c=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=o?"submit":"button";return s.default.createElement("button",i({type:f},a,{onMouseDown:c,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var u=v++;n=d||(d=s(t)),r=c.bind(null,n,u,!1),i=c.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var l={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),d=null,v=0,y=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=p()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,i({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(c.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,l.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",o({},i,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=i(e,2),n=t[0],r=t[1],o=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},o)})}}]),t}();t.default=p},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),i=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var i=r,o=e.getLength();i=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return o(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,c.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,o){return new e(a.EditorState.push(this._editorState,i(t,n,o),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,o,s){var u=i(t,n,s);return new e(a.EditorState.createWithContent(u,o),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){switch(e){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["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,c,l=Object.assign||function(e){for(var t=1;t",M=/^data-([a-z0-9-]+)$/,k=(i(s={},m,{element:"strong"}),i(s,_,{element:"code"}),i(s,b,{element:"em"}),i(s,w,{element:"del"}),i(s,E,{element:"ins"}),s),x=[m,b,E,w,_],T=(i(u={},g.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),i(u,g.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),O=(i(c={},g.ENTITY_TYPE.LINK,function(e,t){var n=T.hasOwnProperty(e)?T[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else M.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),i(c,g.ENTITY_TYPE.IMAGE,function(e,t){var n=T.hasOwnProperty(e)?T[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else M.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),c),C=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[k,x]),i=f(r,2),o=i[0],a=i[1];this.inlineStyles=o,this.styleOrder=a}return p(e,[{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")}}catch(e){f=!0,p=e}finally{try{!c&&y.return&&y.return()}finally{if(f)throw p}}}},{key:"writeEndTag",value:function(e){var t=o(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value;n.unshift("")}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var i=e.getCharacterList();return(0,g.getEntityRanges)(r,i).map(function(e){var r=f(e,2),i=r[0],o=r[1].map(function(e){var r=f(e,2),i=r[0],o=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(i),u=!0,c=!1,p=void 0;try{for(var h,y=t.styleOrder[Symbol.iterator]();!(u=(h=y.next()).done);u=!0){var m=h.value;if((m!==_||n!==g.BLOCK_TYPE.CODE)&&o.has(m)){var b=t.inlineStyles[m],w=b.element,E=b.attributes,M=b.style;if(null==w&&(w="span"),E=(0,d.default)(E),null!=M){var k=(0,v.default)(M);E=null==E?{style:k}:l({},E,{style:k})}s="<"+w+a(E)+">"+s+""}}}catch(e){c=!0,p=e}finally{try{!u&&y.return&&y.return()}finally{if(c)throw p}}return s}).join(""),s=i?y.Entity.get(i):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===g.ENTITY_TYPE.LINK?""+o+"":null!=u&&u===g.ENTITY_TYPE.IMAGE?"":o}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,i=n.characterMeta,o=!1;if(r===d&&(o=!0,r=""),"pre"===e.tagName){var c=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,i);r=c.text,i=c.characterMeta}else{var l=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var i=e.length;i--;)" "===e.charAt(i)&&" "===e.charAt(i-1)&&(e=e.slice(0,i)+e.slice(i+1),t=t.slice(0,i).concat(t.slice(i+1)));var o=(0,a.default)({text:e,characterMeta:t},d+" ",d);e=o.text,t=o.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+d,d);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,i);r=l.text,i=l.characterMeta}((r=r.split(d).join("\n")).length||o)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:i.toList(),depth:e.depth}))}),t.length?t:[p]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){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(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case c.BLOCK_TYPE.UNORDERED_LIST_ITEM:case c.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),i=!b.hasOwnProperty(t),o={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};i&&(this.blockList.push(o),r&&(this.depth+=1)),this.blockStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),i&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],i=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(c.INLINE_STYLE.BOLD);case"i":case"em":return e.add(c.INLINE_STYLE.ITALIC);case"ins":return e.add(c.INLINE_STYLE.UNDERLINE);case"code":return e.add(c.INLINE_STYLE.CODE);case"del":return e.add(c.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),m.hasOwnProperty(t)&&(i=m[t](t,e)||i),n.styleStack.push(r),n.entityStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),w.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(d)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(d),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],i=s.CharacterMetadata.create({style:n,entity:r}),o=(0,u.Repeat)(i,e.length);t.textFragments.push({text:e,characterMeta:o})}},{key:"processNode",value:function(e){if(e.nodeType===l.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();_.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===l.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var i=e.text,o=e.characterMeta,a=t.length,s=r.length,u=[],c=o.slice(0,0),l=0,f=i.indexOf(t);-1!==f;)u.push(i.slice(l,f)+r),c=c.concat(o.slice(l,f),n(o.slice(f,f+1),s)),l=f+a,f=i.indexOf(t,l);return u.push(i.slice(l)),c=c.concat(o.slice(l)),{text:u.join(""),characterMeta:c}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,i){o(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var c=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=c,!c&&i&&i.forEach(a.appendChild,a),a}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.attributes[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=s.name,c=s.value;t.push(u+(c?'="'+c.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}var l=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+l+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+l+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=l,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function i(e){return e.replace(/\)/g,"%29")}function o(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.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()===t&&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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],i=n[1];if(!r)return"";var o=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return i.has(l)&&(o="**"+o+"**"),i.has(d)&&(o="++"+o+"++"),i.has(p)&&(o="_"+o+"_"),i.has(h)&&(o="~~"+o+"~~"),i.has(f)&&(o=t===u.BLOCK_TYPE.CODE?o:"`"+o+"`"),o}).join(""),v=r?c.Entity.get(r):null;if(null!=v&&v.getType()===u.ENTITY_TYPE.LINK){var y=v.getData(),g=y.url||"",m=y.title?' "'+o(y.title)+'"':"";return"["+s+"]("+i(g)+m+")"}if(null!=v&&v.getType()===u.ENTITY_TYPE.IMAGE){var _=v.getData(),b=_.src||"";return"!["+(_.alt?' "'+o(_.alt)+'"':"")+"]("+i(b)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,i=n(203),o=(r=i)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=l({},e||p),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function i(e,t){if(this.options=l({},t||p),this.links=e,this.rules=d.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=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function o(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=l({},e||p),this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),c=Object.prototype.hasOwnProperty,l=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=l({},h),h.gfm=l({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,i,o,a,s,u,c,l,f;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(o=o[0].match(this.rules.item)).length,l=0;l1&&s.length>1||(e=o.slice(l+1).join("\n")+e,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&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.paragraph.exec(e)))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var d={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};d.link=s(d.link)("inside",d._inside)("href",d._href)(),d.reflink=s(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:s(d.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(d.text)("]|","~+]|")()}),d.breaks=l({},d.gfm,{br:s(d.br)("{2,}","*")(),text:s(d.gfm.text)("{2,}","*")()}),i.rules=d,i.parse=function(e,t,n){return new i(t,n).parse(e)},i.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},o.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},o.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},o.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},o.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},o.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},o.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},o.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},o.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},o.prototype.em=function(e){return new u.ElementNode("em",[],[e])},o.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},o.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},o.prototype.del=function(e){return new u.ElementNode("del",[],[e])},o.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},o.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},o.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},o.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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(e,t){t=l({},p,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return o.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(c=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},"h7v/":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("NdNt"),u=n("t4LX"),c=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?i.a.Children.map(this.props.children,function(t){return t.type===s.a?i.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return i.a.createElement("div",c({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},i.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Additional Comments"),i.a.createElement("div",{className:"control"},i.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return i.a.createElement("div",null,i.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),i.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?i.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to flag this observation."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},l.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jVml:function(e,t,n){"use strict";var r=window.TreeSnap.metaLabels;t.a=r},mOuh:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"To")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"CC/BCC")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Subject")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"}),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}),i.a.createElement("p",{className:"help"},"You may use ",i.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return i.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},i.a.createElement("h5",{className:"title is-5"},"Message Preview"),i.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?i.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?i.a.createElement("table",{className:"table"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Category"),i.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?i.a.createElement("tr",null,i.a.createElement("th",null,"Found Near"),i.a.createElement("td",null,t.formatted)):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,u()(e.date.date).format("LL"))),i.a.createElement("tr",null,i.a.createElement("th",{colSpan:2},i.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?i.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):i.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return i.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},i.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),i.a.createElement("div",{className:"modal-card modal-card-lg"},i.a.createElement(c.a,{visible:this.state.loading}),i.a.createElement("header",{className:"modal-card-head"},i.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),i.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),i.a.createElement("section",{className:"modal-card-body"},i.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),i.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):i.a.createElement("div",{className:"flexbox flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),i.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,y=function(){return p.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,u,c,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function _(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-l>=a}function w(){var e=y();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?_(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?_(e):s}(c);if(p)return u=setTimeout(w,t),_(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=m(t)||0,g(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(m(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(y())},S}}).call(t,n("DuR2"))},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,M=function(){return function e(t){if(!(this instanceof e))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=l.getInstance(),r=new E(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){M.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var k=void 0!==i.ResizeObserver?i.ResizeObserver:M;t.default=k}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/5.0fcb379126c6dff92351.js b/public/js/5.0fcb379126c6dff92351.js deleted file mode 100644 index 56b22f21..00000000 --- a/public/js/5.0fcb379126c6dff92351.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([5,7],{"0dG/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;to&&(a=0),n.setState({previousIndex:i,currentIndex:a,isTransitioning:a!==i,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new c.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,i){var o=n.state,a=o.scrollingUpDown,s=o.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var c=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(c,i)}},n._handleSwiping=function(e,t,r,i){var o=n.state,a=o.galleryWidth,s=o.isTransitioning,u=o.scrollingUpDown,c=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var l=t<0?1:-1,f=i/a*100;Math.abs(f)>=100&&(f=100);var p={transition:"transform "+c+"ms ease-out"};n.setState({offsetPercentage:l*f,style:p})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-image"},e.imageSet?o.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return o.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),o.default.createElement("img",{alt:e.originalAlt,src:e.original})):o.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&o.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbnail-inner"},o.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(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(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,i)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;p.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;p.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,i=n.scrollingLeftRight,o=Math.abs(e);Math.abs(t)>o&&!r&&!i?this.setState({scrollingUpDown:!0}):i||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this._sufficientSwipeOffset()&&!t||i||(o+=e),e<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.currentIndex0&&(er&&this._setThumbsTranslate(n+o))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,i=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){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 e*(i/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=t.previousIndex,o=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?o=-100+r:1===n&&0===e&&r<0&&(o=100+r),n!==i?0===i&&0===e&&0===r&&"left"===this.direction?o=100:1===i&&1===e&&0===r&&"right"===this.direction&&(o=-100):0===n&&1===e&&0===r&&"left"===this.direction?o=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(o=100),o}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=this.props,o=i.infinite,a=i.items,s=i.useTranslate3D,u=i.isRTL,c=-100*n,l=a.length-1,f=(c+100*e)*(u?-1:1)+r;o&&a.length>2&&(0===n&&e===l?f=-100*(u?-1:1)+r:n===l&&0===e&&(f=100*(u?-1:1)+r)),o&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var p="translate("+f+"%, 0)";return s&&(p="translate3d("+f+"%, 0, 0)"),{WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state.thumbsTranslate,o=r?-1*i:i;return this._isThumbnailHorizontal()?(e="translate(0, "+i+"px)",n&&(e="translate3d(0, "+i+"px, 0)")):(e="translate("+o+"px, 0)",n&&(e="translate3d("+o+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,c=t.scrollingLeftRight,l=this.props,f=l.infinite,p=l.preventDefaultTouchmoveEvent,h=l.isRTL,d=this._getThumbnailStyle(),v=this.props.thumbnailPosition,m=this._slideLeft,y=this._slideRight,g=[],_=[],b=[];this.props.items.forEach(function(t,i){var a=e._getAlignmentClassName(i),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",c=t.renderItem||e.props.renderItem||e._renderItem,l=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,p=!e.props.lazyLoad||a||e._lazyLoaded[i];p&&e.props.lazyLoad&&(e._lazyLoaded[i]=!0);var h=e._getSlideStyle(i),d=o.default.createElement("div",{key:i,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},p?c(t):o.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(i)&&g.push(d):g.push(d),e.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,onClick:function(t){return e._onThumbnailClick(t,i)}},l(t))),e.props.showBullets){b.push(o.default.createElement("button",{key:i,type:"button",className:["image-gallery-bullet",n===i?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:i,currentIndex:n}),e.slideToIndex.call(e,i,r)},"aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}});var w=o.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+v+" "+(h?"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(m,!this._canSlideLeft()),this.props.renderRightNav(y,!this._canSlideRight())),o.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:p||c},o.default.createElement("div",{className:"image-gallery-slides"},g))]:o.default.createElement("div",{className:"image-gallery-slides"},g),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))),E=["image-gallery",this.props.additionalClass,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return o.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:E,"aria-live":"polite"},o.default.createElement("div",{className:"image-gallery-content"+(i?" fullscreen":"")},("bottom"===v||"right"===v)&&w,this.props.showThumbnails&&o.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+v+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},o.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:d,"aria-label":"Thumbnail Navigation"},_))),("top"===v||"left"===v)&&w))}}]),t}();h.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,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},h.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(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"1B1h":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=[{to:"/account",icon:"fa-address-card-o",label:"Settings"},{to:"/account/observations",icon:"fa-tree",label:"Observations"},{to:"/account/groups",icon:"fa-users",label:"Groups"},{to:"/account/collections",icon:"fa-th",label:"Collections"},{to:"/account/filters",icon:"fa-filter",label:"Filters"}],a=n("cabM"),s=n("TIMf"),u=n("ePhh"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},i.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return i.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Or Create New Collection"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})),i.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to add this observation to a collection."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},l.defaultProps={collections:[],onSubmit:function(){}}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("O27J"),a=n.n(o),s=n("KSGD"),u=n.n(s),c=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),c(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return i.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},i.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(i.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=l,l.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},l.defaultProps={type:"success"},l.stack=[]},"6Vhz":function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0}},{key:"clear",value:function(e){return this.errors.hasOwnProperty(e)&&delete this.errors[e],this}}]),e}();t.a=a},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,i=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:i,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,i=t.onSwiping,o=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,c=t.onSwipingRight,l=t.onSwipedRight,f=t.onSwipingUp,p=t.onSwipedUp,h=t.onSwipingDown,d=t.onSwipedDown,v=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var m=u(e,this.swipeable);if(!(m.absXm.absY?m.deltaX>0?(a||s)&&(a&&a(e,m.absX),y=!0):(c||l)&&(c&&c(e,m.absX),y=!0):m.deltaY>0?(f||p)&&(f&&f(e,m.absY),y=!0):(h||d)&&(h&&h(e,m.absY),y=!0),this.swipeable.swiping=!0,y&&v&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,i=t.onSwiped,o=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,c=t.onSwipedDown,l=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var p=f.velocity>r;i&&i(e,f.deltaX,f.deltaY,p,f.velocity),f.absX>f.absY?f.deltaX>0?o&&o(e,f.deltaX,p):a&&a(e,f.deltaX,p):f.deltaY>0?s&&s(e,f.deltaY,p):c&&c(e,f.deltaY,p)}else l&&l(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,i.createElement(this.props.nodeName,e,this.props.children)},t}(i.Component);c.propTypes={onSwiped:o.func,onSwiping:o.func,onSwipingUp:o.func,onSwipingRight:o.func,onSwipingDown:o.func,onSwipingLeft:o.func,onSwipedUp:o.func,onSwipedRight:o.func,onSwipedDown:o.func,onSwipedLeft:o.func,onTap:o.func,flickThreshold:o.number,delta:o.number,preventDefaultTouchmoveEvent:o.bool,stopPropagation:o.bool,nodeName:o.string,trackMouse:o.bool,disabled:o.bool,innerRef:o.func,children:o.node,rotationAngle:o.number},c.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=c},"8ji5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("F8kA"),u=n("saAw"),c=n("LZyd"),l=n("5zKI"),f=n("PJh5"),p=n.n(f),h=n("mOuh"),d=n("JsH4"),v=n("IFrJ"),m=n("OE/d"),y=n("t4LX"),g=n("Xxa5"),_=n.n(g),b=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({processing:this.state.processing.concat(t.id)}),e.prev=1,e.next=4,axios.post("/web/group/"+this.props.groupID+"/request/accept",{request_id:t.id});case 4:e.sent,this.setState({requests:this.state.requests.filter(function(e){return e.id!==t.id}),processing:this.state.processing.filter(function(e){return e!==t.id})}),n&&(l.a.push("Accepted "+t.user.name+"'s request to join this group"),this.props.onAccept()),e.next=15;break;case 9:if(e.prev=9,e.t0=e.catch(1),!n){e.next=14;break}return l.a.push("We encountered and error while processing your request. Please try again later","danger"),e.abrupt("return");case 14:throw new Error(e.t0.response.status);case 15:case"end":return e.stop()}},e,this,[[1,9]])}));return function(t){return e.apply(this,arguments)}}()},{key:"reject",value:function(e){var t=this;this.setState({processing:this.state.processing.concat(e.id)}),axios.post("/web/group/"+this.props.groupID+"/request/reject",{request_id:e.id}).then(function(n){t.setState({requests:t.state.requests.map(function(t){return t.id===e.id&&(t.rejected=!0),t}),processing:t.state.processing.filter(function(t){return t!==e.id})}),l.a.push("Rejected "+e.user.name+"'s request to join this group","warning")}).catch(function(e){l.a.push("We encountered and error while processing your request. Please try again later","danger")})}},{key:"acceptAll",value:function(){var e=E(_.a.mark(function e(){var t,n,r;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.state.requests,e.t0=_.a.keys(t);case 2:if((e.t1=e.t0()).done){e.next=19;break}if(n=e.t1.value,void 0!==(r=t[n])&&void 0!==r.id){e.next=7;break}return e.abrupt("continue",2);case 7:if(!r.rejected){e.next=9;break}return e.abrupt("continue",2);case 9:return e.prev=9,e.next=12,this.accept(r,!1);case 12:e.next=17;break;case 14:e.prev=14,e.t2=e.catch(9),l.a.push("Unable to accept "+r.user.name+" at this time, please try again later","danger");case 17:e.next=2;break;case 19:l.a.push("Accepted all requests"),this.props.onAccept();case 21:case"end":return e.stop()}},e,this,[[9,14]])}));return function(){return e.apply(this,arguments)}}()},{key:"undo",value:function(e){var t=this;this.setState({processing:this.state.processing.concat(e.id)}),axios.post("/web/group/"+this.props.groupID+"/request/reset",{request_id:e.id}).then(function(n){t.setState({requests:t.state.requests.map(function(t){return t.id===e.id&&(t.rejected=!1),t}),processing:t.state.processing.filter(function(t){return t!==e.id})})}).catch(function(e){l.a.push("We encountered and error while processing your request. Please try again later","danger")})}},{key:"_renderRows",value:function(){var e=this;return this.state.requests.map(function(t){return i.a.createElement("tr",{key:t.id},i.a.createElement("td",null,t.user.name),i.a.createElement("td",null,t.created_at),i.a.createElement("td",{className:"has-text-right"},e._renderActionButtons(t)))})}},{key:"_renderActionButtons",value:function(e){var t=this;return-1!==this.state.processing.indexOf(e.id)?i.a.createElement("button",{type:"button",className:"button is-link is-loading is-small",disabled:!0}):e.rejected?i.a.createElement("button",{type:"button",className:"button is-link is-small",onClick:function(){return t.undo(e)}},i.a.createElement("span",null,"Undo Rejection")):i.a.createElement("div",null,i.a.createElement("button",{type:"button",className:"button is-success is-small is-outlined mr-0",onClick:function(){return t.accept(e)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-check"})),i.a.createElement("span",null,"Accept")),i.a.createElement("button",{type:"button",className:"button is-danger is-small is-outlined",onClick:function(){return t.reject(e)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-times"})),i.a.createElement("span",null,"Reject")))}},{key:"render",value:function(){return this.state.requests.length<=0?null:i.a.createElement("div",{className:"box"},i.a.createElement("h4",{className:"title is-4"},"Pending Join Requests"),i.a.createElement("table",{className:"table is-striped"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"User Name"),i.a.createElement("th",null,"Request Date"),i.a.createElement("th",{className:"has-text-right"},"Action"))),i.a.createElement("tbody",null,this._renderRows())),i.a.createElement("div",{className:"has-text-right"},i.a.createElement("button",{type:"button",className:"button is-primary",onClick:this.acceptAll.bind(this)},"Accept All")))}}]),t}(),k=S;S.propTypes={groupID:a.a.number.isRequired,onAccept:a.a.func},S.defaultProps={onAccept:function(){}};var M=n("6Vhz"),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=function(){function e(e,t){for(var n=0;n0?i.a.createElement("ul",{className:"pagination-list"},i.a.createElement("li",null,"Page ",i.a.createElement("span",{className:"select is-small"},i.a.createElement("select",{value:this.state.page,onChange:function(t){var n=t.target;return e.goToPage(n.value)}},this.state.pages.map(function(e){return i.a.createElement("option",{value:e,key:"page_"+e},e)})))," out of ",this.state.pages.length," pages")):null,i.a.createElement("a",{href:"javascript:;",className:"pagination-next",onClick:this.nextPage.bind(this),disabled:!this.state.hasMorePages},"Next"))}},{key:"_renderPrivacyModal",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Observation Sharing"),i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",checked:this.state.isSharing,value:1,onChange:function(t){var n=t.target;return e.changeSharingStatus(n.checked)},disabled:this.state.privacyUpdating}),i.a.createElement("span",{className:"ml-1"},"Share my observations with the members of this group. Sharing will include sensitive information such as accurate location coordinates."))),this.state.isOwner?i.a.createElement("div",{className:"field mb-2"},i.a.createElement("label",{className:"label"},"Discoverability"),i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.isPrivate,onChange:function(t){var n=t.target;return e.toggleDiscoverability(parseInt(n.value))}},i.a.createElement("option",{value:1},"Users must be invited to join"),i.a.createElement("option",{value:0},"Allow anyone to find this group and apply to join")))):null,i.a.createElement("button",{type:"button",className:"button is-primary",disabled:this.state.privacyUpdating,onClick:function(){return e.setState({showPrivacyModal:!1})}},"Done"))}},{key:"toggleDiscoverability",value:function(e){var t=this;this.setState({privacyUpdating:!0});var n=this.state.id;axios.patch("/web/group/"+n+"/discoverability",{is_private:e}).then(function(e){t.setState({privacyUpdating:!1,isPrivate:e.data.data.is_private}),l.a.push("Privacy settings updated successfully")}).catch(function(e){console.error(e),t.setState({privacyUpdating:!1});var n=new M.a(e);n.has("general")?l.a.push(n.first("general"),"danger"):n.has("is_private")&&l.a.push(n.first("is_private"),"danger")})}},{key:"changeSharingStatus",value:function(e){var t=this,n=this.state.id;this.setState({privacyUpdating:!1}),axios.patch("/web/group/"+n+"/sharing",{share:e}).then(function(e){t.setState({isSharing:e.data.data,privacyUpdating:!1}),t.loadObservations(t.state),l.a.push("Privacy settings updated successfully")}).catch(function(e){console.error(e),t.setState({privacyUpdating:!1});var n=new M.a(e);n.has("share")?l.a.push(n.first("share"),"danger"):n.has("general")&&l.a.push(n.first("general"),"danger")})}},{key:"saveGroupName",value:function(){var e=this;this.setState({savingName:!0}),axios.put("/web/group/"+this.state.id,{name:this.state.newName}).then(function(t){l.a.push("Group name updated successfully"),e.setState({savingName:!1,updatingName:!1,name:t.data.data.name})}).catch(function(t){e.setState({savingName:!1});var n=new M.a(t);n.has("general")&&alert(n.first("general"))})}},{key:"renderNameForm",value:function(){var e=this;return i.a.createElement("form",{action:"#",method:"post",onSubmit:function(t){t.preventDefault(),e.saveGroupName()}},i.a.createElement("div",{className:"field is-grouped"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("input",{type:"text",className:"input is-large",name:"name",autoFocus:!0,value:this.state.newName,onChange:function(t){var n=t.target;return e.setState({newName:n.value})}})),i.a.createElement("div",{className:"control"},i.a.createElement("button",{className:"button is-primary is-large",type:"submit"},"Done"))))}},{key:"renderName",value:function(){var e=this;return i.a.createElement("h1",{className:"title is-3 is-flex align-items-end"},this.state.name,i.a.createElement("button",{className:"button is-link is-small",type:"button",onClick:function(){return e.setState({updatingName:!0})}},"rename"))}},{key:"render",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("div",{className:"columns"},i.a.createElement("div",{className:"column"},this.state.updatingName?this.renderNameForm():this.renderName()),i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("a",{href:"javascript:;",className:"button is-default",onClick:function(){return e.setState({showPrivacyModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Group Privacy")))),i.a.createElement(k,{groupID:parseInt(this.props.match.params.id),onAccept:this.loadGroup.bind(this)}),i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h4",{className:"title is-4"},"Users")),this.state.isOwner?i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("button",{type:"button",className:"button is-primary mr-0",onClick:function(){return e.setState({showInviteModal:!0})}},i.a.createElement("span",null,"Invite Users")),i.a.createElement("button",{type:"button",className:"button is-gray",onClick:this._deleteGroup.bind(this)},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})))):null),this._renderUsersTable()),this._renderPendingBox(),this._renderObservations(),this._renderPageLinks(),i.a.createElement(c.a,{visible:this.state.showInviteModal,onCloseRequest:function(){return e.setState({showInviteModal:!1})}},i.a.createElement("h4",{className:"title is-4"},"Invite Users",i.a.createElement("button",{className:"delete is-pulled-right",onClick:function(){return e.setState({showInviteModal:!1})},type:"button"})),this._renderForm(),this._renderFormErrors()),i.a.createElement(c.a,{visible:this.state.showPrivacyModal,onCloseRequest:function(){return e.setState({showPrivacyModal:!1})},showCloseButton:!1},i.a.createElement("h4",{className:"title is-4"},"Group Privacy Settings",i.a.createElement("button",{className:"delete is-pulled-right",onClick:function(){return e.setState({showPrivacyModal:!1})},type:"button"})),this._renderPrivacyModal()),i.a.createElement(u.a,{visible:this.state.pageLoading}))}}]),t}();t.default=N;N.propTypes={admin:a.a.bool},N.defaultProps={admin:!0}},AByj:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("h7v/"),u=n("NdNt"),c=n("c8iI"),l=n("0dG/"),f=n.n(l),p=n("PJh5"),h=n.n(p),d=n("LZyd"),v=n("iwoP"),m=n("5L7H"),y=n("jVml"),g=n("mOuh"),_=n("OE/d"),b=n("t4LX"),w=n("F8kA"),E=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},i.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return i.a.createElement(c.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},i.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:i.a.createElement("div",null,i.a.createElement("div",{className:"flexbox observation-tools"},i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-star text-success"})),i.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-flag text-danger"})),i.a.createElement("span",null,"Flag Observation")):null,_.a.can("contact users")?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-envelope text-info"})),i.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return i.a.createElement(d.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return i.a.createElement(v.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h3",{className:"title is-4"},"Add to Collection"),i.a.createElement(m.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:i.a.createElement("tr",{key:n},i.a.createElement("th",null,e),i.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?i.a.createElement("p",{className:"help"},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),b.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return i.a.createElement("div",{className:"box has-text-centered"},i.a.createElement("div",{className:"content"},i.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),i.a.createElement("p",null,"Observation has been deleted successfully"),i.a.createElement(w.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return _.a.can("contact users")?i.a.createElement(E.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},i.a.createElement("option",{value:"US"},"US Units"),i.a.createElement("option",{value:"metric"},"Metric Units")))),_.a.can("delete observations")||_.a.owns(this.observation)?i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})),i.a.createElement("span",null,"Delete"))):null),i.a.createElement("div",{className:"columns mb-none"},i.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},i.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},i.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Submitted By"),i.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?i.a.createElement("tr",null,i.a.createElement("th",null,"Custom Tree Identifier"),i.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?i.a.createElement("tr",null,i.a.createElement("th",null,"ID"),i.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,i=void 0!==y.a[n]?y.a[n]:n,o=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],o=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(i,o,n,r)}),i.a.createElement("tr",null,i.a.createElement("th",null,"Coordinates"),i.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?i.a.createElement("tr",null,i.a.createElement("th",null,"Location Accuracy"),i.a.createElement("td",null,_.a.can("view accurate location")||_.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:i.a.createElement("tr",null,i.a.createElement("th",null,"Photos"),i.a.createElement("td",null,i.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"tabs has-no-shadow"},i.a.createElement("ul",null,i.a.createElement("li",{className:this.getTabClass("photos")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),i.a.createElement("li",{className:this.getTabClass("map")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?i.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},i.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return i.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?i.a.createElement("div",{className:"callout"},i.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?i.a.createElement("div",{style:{width:"100%",position:"relative"}},i.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=M,M.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},M.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},CDck:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),i=n.n(r),o=n("8ji5"),a=n("1B1h"),s=n("DakW"),u=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is-active";return this.setPath(),t&&this.path===e?n:!t&&this.path.indexOf(e)>=0?n:null}},{key:"parseUrl",value:function(e){var t={};return(e=e.substr(1)).split("&").forEach(function(e){if(e){var n=(e=e.split("+").join(" ")).indexOf("="),r=n>-1?e.substr(0,n):e,i=n>-1?decodeURIComponent(e.substr(n+1)):"",o=r.indexOf("[");if(-1===o)t[decodeURIComponent(r)]=i;else{var a=r.indexOf("]",o),s=decodeURIComponent(r.substring(o+1,a));r=decodeURIComponent(r.substring(0,o)),t[r]||(t[r]=[]),s?t[r][s]=i:t[r].push(i)}}}),t}}]),e}();t.a=new i},JsH4:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("N7gF"),u=n("PJh5"),c=n.n(u),l=n("5L7H"),f=n("iwoP"),p=n("h7v/"),h=n("NdNt"),d=n("saAw"),v=n("5zKI"),m=n("AByj"),y=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return i.a.createElement(p.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},i.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},i.a.createElement("div",{className:"media callout"},i.a.createElement("div",{className:"media-left mr-0"},i.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),i.a.createElement("div",{className:"media-content"},i.a.createElement("div",{className:"mb-0"},i.a.createElement("strong",null,t.observation_category)),i.a.createElement("div",{className:"mb-0"},"By ",t.user.name),i.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?i.a.createElement("div",{className:"content"},i.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),i.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),i.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):i.a.createElement(l.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return i.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},i.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),i.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Flag Observation"),i.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),v.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";v.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return i.a.createElement("div",{className:"card-footer marks-section"},i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.incorrectMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-times text-danger"})),i.a.createElement("span",null,"Marks")),i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.correctMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-check text-success"})),i.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":E(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,o=this.getAddress(t),a=o.address,u=o.addressLine1,l=o.addressLine2;return i.a.createElement("div",{className:"observation-card-container"},i.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},i.a.createElement("header",{className:"card-header"},i.a.createElement(b.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},i.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-times"})))):null,w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},i.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-check"})))):null),i.a.createElement("div",{className:"relative-block"},i.a.createElement(d.a,{visible:this.state.loading}),i.a.createElement("div",{className:"has-bg-image relative-block"},i.a.createElement("div",{className:"card-image",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}})),this._renderMarks(),i.a.createElement("div",{className:"card-content"},i.a.createElement("div",{className:"content"},this.props.owner?null:i.a.createElement("span",null,"By ",t.user.name,i.a.createElement("br",null)),i.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),i.a.createElement("br",null),t.custom_id?i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"Custom ID")," ",t.custom_id),i.a.createElement("br",null)):i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||w.a.can("view accurate location")?i.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,i.a.createElement("br",null)):null,i.a.createElement("small",null,c()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?i.a.createElement("div",{className:"text-ellipsis",title:a},i.a.createElement("small",null,i.a.createElement("b",null,"Near")," ",u),i.a.createElement("br",null),i.a.createElement("small",{style:{marginLeft:"35px"}},l)):i.a.createElement("div",{style:{height:48}},"Address is unavailable"))),i.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},i.a.createElement("div",{className:"p-1 relative-block"},i.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},i.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),i.a.createElement("footer",{className:"card-footer card-footer-z-index"},i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},i.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-star"})))),i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},i.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-map"})))),w.a.can("contact users")&&!this.props.owner?i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},i.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},i.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?i.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},i.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?i.a.createElement(_,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=k;k.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},k.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},LZyd:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n-1}},{key:"owns",value:function(e,t){return void 0===t&&(t="user_id"),"object"===(void 0===e?"undefined":i(e))?Array.isArray(e)?e.every(this.owns.bind(this)):void 0!==e[t]&&e[t]===this._user.id:"number"==typeof e&&this._user.id===e}},{key:"inGroupWith",value:function(e){for(var t in this._groups)if(this._groups[t].users.indexOf(e)>-1)return!0;return!1}},{key:"inGroup",value:function(e){for(var t in this._groups)if(this._groups[t].id===e)return!0;return!1}},{key:"authenticated",value:function(){return this._isLoggedIn}},{key:"admin",value:function(){return this._isAdmin}},{key:"scientist",value:function(){return this._isScientist}},{key:"role",value:function(){return this._role}},{key:"user",value:function(){return this._user}}]),e}();t.a=new a},R3sX:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,m=function(){return p.Date.now()};function y(e,t,r){var i,o,a,s,u,c,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function y(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-l>=a}function w(){var e=m();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?y(e):(i=o=void 0,s)}function S(){var e=m(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?y(e):s}(c);if(p)return u=setTimeout(w,t),y(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=_(t)||0,g(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(_(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(m())},S}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),y(e,t,{leading:i,maxWait:t,trailing:o})}}).call(t,n("DuR2"))},SldL:function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"==typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=t.regeneratorRuntime=c?e.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={},m={};m[a]=function(){return this};var y=Object.getPrototypeOf,g=y&&y(y(I([])));g&&g!==r&&i.call(g,a)&&(m=g);var _=k.prototype=E.prototype=Object.create(m);S.prototype=_.constructor=k,k.constructor=S,k[u]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(_),e},l.awrap=function(e){return{__await:e}},M(x.prototype),x.prototype[s]=function(){return this},l.AsyncIterator=x,l.async=function(e,t,n,r){var i=new x(b(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},M(_),_[u]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(e,t,n,r){var i=t&&t.prototype instanceof E?t:E,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=w(e,t,n);if("normal"===u.type){if(r=n.done?d:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function E(){}function S(){}function k(){}function M(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e){var t;this._invoke=function(n,r){function o(){return new Promise(function(t,o){!function t(n,r,o,a){var s=w(e[n],e,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){u.value=e,o(u)},a)}a(s.arg)}(n,r,t,o)})}return t=t?t.then(o,o):o()}}function O(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,O(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();l=l?u({},N,l):N;var b=(0,S.default)((i(e={},O.default.editor,!0),i(e,O.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=d);var w=void 0;return h||(w=f.default.createElement(_.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:v})),f.default.createElement("div",{className:(0,S.default)(O.default.root,r)},w,f.default.createElement("div",{className:b},f.default.createElement(p.Editor,u({},y,{blockStyleFn:(0,E.default)(o,m),customStyleMap:l,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:c,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(p.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),i=p.Modifier.removeRange(r,n,"forward"),o=i.getSelectionAfter(),a=i.getBlockForKey(o.getStartKey());i=p.Modifier.insertText(i,o,"\n",a.getInlineStyleAt(o.getStartOffset()),null),this._onChange(p.EditorState.push(t,i,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if((0,y.default)(i)&&0===i.getLength()){var o=i.getDepth(),a=0===o?(0,v.default)(e,r,x.BLOCK_TYPE.UNSTYLED):(0,d.default)(e,r,o-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if(!(0,y.default)(i)&&i.getType()!==x.BLOCK_TYPE.UNSTYLED&&i.getLength()===t.getStartOffset()){var o=(0,m.default)(e,r,x.BLOCK_TYPE.UNSTYLED);return this._onChange(o),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=T;var C=new p.CompositeDecorator([w.default]);Object.assign(T,{EditorValue:b.default,decorator:C,createEmptyValue:a,createValueFromString:s}),t.EditorValue=b.default,t.decorator=C,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(6),a=n(40),s=n(7),u=n(32),c=n(41),l=n(43),f=n(44),p=n(50),h=n(9),d=n(14),v=n(16),m=n(29),y=n(100),g=n(131),_=n(33),b=n(133),w={Editor:f,EditorBlock:p,EditorState:m,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:b,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=w},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(9),s=n(29),u=n(5),c=n(21),l=u.List,f=u.Repeat,p={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),p=e.getSelection(),h=a.removeRange(u,p,"backward"),d=h.getSelectionAfter(),v=a.splitBlock(h,d),m=v.getSelectionAfter(),y=a.setBlockType(v,m,"atomic"),g=i.create({entity:t}),_=[new o({key:c(),type:"atomic",text:n,characterList:l(f(g,n.length))}),new o({key:c(),type:"unstyled",text:"",characterList:l()})],b=r.createFromArray(_),w=a.replaceWithFragment(y,m,b),E=w.merge({selectionBefore:p,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return s.push(e,E,"insert-fragment")}};e.exports=p},function(e,t,n){"use strict";var r=n(5).OrderedMap,i={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=i},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:T(e)}function n(e){return a(e)?e:C(e)}function r(e){return s(e)?e:I(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function m(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!O(e)}function M(e){return e&&"function"==typeof e.next}function x(e){var t=O(e);return t&&t.call(e)}function O(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function N(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function C(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return N(e)?new D(e):M(e)?new z(e):k(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,C(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?I(e).map(H).toList():W(e)?C(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),yn===mn&&(yn=0,gn={}),yn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Oe(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Ne(e){var t=De();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Tn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(c===l)return Tn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ce(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ce(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ce([],r):d;if(d&&h>f&&aHt;y-=Ht){var g=f>>>y≫m=m.array[g]=Ae(m.array[g],r)}m.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),y(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?C:s(e)?I:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,C),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,I),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!M(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,I),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,I),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new V(this._value,_(t,n)-g(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,mn=255,yn=0,gn={};e(ae,$),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?ye():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ye()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ye(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ye(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?me(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,m=l?d?c:c^u:c|u,y=l?d?Oe(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Ne.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ne.prototype.insert=function(e,t){return this.splice(e,0,t)},Ne.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Ne.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ce([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var On,Nn,Tn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,C),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,I),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,C),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(mt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,ye()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+mt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:vt(this,n)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Cn=dt.prototype;Cn.delete=Cn.remove,Cn.deleteIn=Cn.removeIn=bn.removeIn,Cn.merge=bn.merge,Cn.mergeWith=bn.mergeWith,Cn.mergeIn=bn.mergeIn,Cn.mergeDeep=bn.mergeDeep,Cn.mergeDeepWith=bn.mergeDeepWith,Cn.mergeDeepIn=bn.mergeDeepIn,Cn.setIn=bn.setIn,Cn.update=bn.update,Cn.updateIn=bn.updateIn,Cn.withMutations=bn.withMutations,Cn.asMutable=bn.asMutable,Cn.asImmutable=bn.asImmutable,e(yt,te),yt.of=function(){return this(arguments)},yt.fromKeys=function(e){return this(n(e).keySeq())},yt.prototype.toString=function(){return this.__toString("Set {","}")},yt.prototype.has=function(e){return this._map.has(e)},yt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},yt.prototype.remove=function(e){return _t(this,this._map.remove(e))},yt.prototype.clear=function(){return _t(this,this._map.clear())},yt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Nt(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Nt(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Tt()},xt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Nt(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Nt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Ot;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,Ct(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return yt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Ne(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(m)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(It).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,function(){try{Object.defineProperty(Bn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Ct(n,{flip:function(){return at(this,Ve(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},Ct(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var p=f[0];if("IMMUTABLE"===l)return t.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});var h=i.getRemovalRange(s,u,e.getText().slice(p.start,p.end),p.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,l,t),h=p.start,d=p.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e}(c.getCharacterList(),a,u):c.getCharacterList().slice(0,a).concat(l.getCharacterList().slice(u));var f=c.merge({text:c.getText().slice(0,a)+l.getText().slice(u),characterList:n}),p=i.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===o?f:null});return i=i.merge(p).filter(function(e){return!!e}),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:a,focusKey:o,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),i=n(21),o=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||o(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),c=u.getText(),l=u.getCharacterList(),f=u.merge({text:c.slice(0,r),characterList:l.slice(0,r)}),p=i(),h=f.merge({key:p,text:c.slice(r),characterList:l.slice(r),data:a()}),d=s.toSeq().takeUntil(function(e){return e===u}),v=s.toSeq().skipUntil(function(e){return e===u}).rest(),m=d.concat([[f.getKey(),f],[h.getKey(),h]],v).toOrderedMap();return e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return m.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function o(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return p()}var a=n(15)||function(e){for(var t=1;t0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):o(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r0?i.getInlineStyleAt(r-1):o(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var i="insert-characters"!==r,o=c.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),l=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var p={currentContent:l,directionMap:o,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=m},function(e,t,n){"use strict";function r(e,t){return e===t}var i=n(5),o=n(31),a=n(8),s=i.List,u=i.Repeat,c=i.Record,l=o.thatReturnsTrue,f=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],o=t?t.getDecorations(e):s(u(null,n)),c=e.getCharacterList();return a(o,r,l,function(e,t){var n,u,h,d;i.push(new p({start:e,end:t,decoratorKey:o.get(e),leaves:(n=c.slice(e,t).toList(),u=e,h=[],d=n.map(function(e){return e.getStyle()}).toList(),a(d,r,l,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(i)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(5),s=n(33),u=n(21),c=n(34),l=a.List,f=a.Record,p=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),i=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=c(e),new o({key:u(),text:e,type:"unstyled",characterList:l(p(i.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset();return t<=this.getEndOffset()&&o<=n}if(e!==r&&e!==i)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,i=n(5),o=n(36),a=n(39),s=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),c=s(n.keySeq().zip(u));return null!=t&&i.is(t,c)?t:c}};e.exports=u},function(e,t,n){"use strict";var r=n(37),i=n(38),o=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?i.isStrong(t)||o(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function i(e){var t=r(e);return null==t?s.NEUTRAL:p.exec(t)?s.RTL:s.LTR}function o(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=i(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),o(e,t)}var s=n(38),u=n(17),c="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",l="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+c+l+"]"),p=new RegExp("["+c+l+"]"),h={firstStrongChar:r,firstStrongCharDir:i,resolveBlockDir:o,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function i(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function o(e){c=e}var a=n(17),s="LTR",u="RTL",c=null,l={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:i(e)},setGlobalDir:o,initGlobalDir:function(){o(s)},getGlobalDir:function(){return c||this.initGlobalDir(),c||a(!1),c}};e.exports=l},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var i=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==o;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var p=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,o);return void this.update(i.push(t,p,"insert-characters"))}f&&this.update(i.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===i.get(e).getMutability()?e:null}var i=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?r(e.getBlockForKey(n).getEntityAt(i-1)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):ib,C));var R=O||o,B={className:P,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":I,key:k};void 0!==T&&(B=i({},B,{contentEditable:T,suppressContentEditableWarning:!0}));var K=s.createElement(A,B,s.createElement(R,L));_.push({block:K,wrapperTemplate:j,key:k,offsetKey:I}),b=j?S.getDepth():null,w=j}for(var U=[],F=0;F<_.length;){var q=_[F];if(q.wrapperTemplate){var Y=[];do{Y.push(_[F].block),F++}while(F<_.length&&_[F].wrapperTemplate===q.wrapperTemplate);var H=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},Y);U.push(H)}else U.push(q.block),F++}return s.createElement("div",{"data-contents":"true"},U)},t}(s.Component);e.exports=f},function(e,t,n){"use strict";function r(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var i=n(15)||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(i.offsetHeight+o.y))>0&&c.setTop(i,c.getTop(i)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),c=this.props.tree.size-1,l=r(this.props.selection,n);return this.props.tree.map(function(r,h){var d=r.get("leaves"),v=d.size-1,m=d.map(function(r,i){var f=a.encode(n,h,i),p=r.get("start"),d=r.get("end");return s.createElement(o,{key:f,offsetKey:f,blockKey:n,start:p,selection:l?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(p,d),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===c&&i===v})}).toArray(),g=r.get("decoratorKey");if(null==g)return m;if(!e.props.decorator)return m;var _=y(e.props.decorator),b=_.getComponentForKey(g);if(!b)return m;var w=_.getPropsForKey(g),E=a.encode(n,h,0),S=u.slice(d.first().get("start"),d.last().get("end")),k=p.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(b,i({},w,{decoratedText:S,dir:k,key:E,entityKey:t.getEntityAt(r.get("start")),offsetKey:E}),m)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,i=r+t.text.length;if(e.hasEdgeWithin(n,r,i)){var o,u=a.findDOMNode(this),c=u.firstChild;o=c.nodeType===Node.TEXT_NODE?c:"BR"===c.tagName?u:c.firstChild,s(e,o,n,r,i)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,c=u.reduce(function(e,t){var i={},o=n[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(i.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,i)},{});if(a){var l=a(u);c=r(c,l)}return o.createElement("span",{"data-offset-key":s,ref:"leaf",style:c},o.createElement(i,null,e))},t}(o.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),i=n(53),o=n(54).isBrowser("IE <= 11"),a=o?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=o?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=i.findDOMNode(this);return""===e.children?!function(e){return o?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,a.contains(i,t))}function i(e){return"Windows"===o.platformName?e.replace(/^\s*NT/,""):e}var o=n(55),a=n(58),s=n(59),u=n(60),c={isBrowser:function(e){return r(o.browserName,o.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(o.browserArchitecture,null,e)},isDevice:function(e){return r(o.deviceName,null,e)},isEngine:function(e){return r(o.engineName,o.engineVersion,e)},isPlatform:function(e){return r(o.platformName,o.platformFullVersion,e,i)},isPlatformArchitecture:function(e){return r(o.platformArchitecture,null,e)}};e.exports=s(c,u)},function(e,t,n){"use strict";var r,i="Unknown",o={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||i,browserFullVersion:a.browser.version||i,browserMinorVersion:s.minor||i,browserName:a.browser.name||i,browserVersion:a.browser.major||i,deviceName:a.device.model||i,engineName:a.engine.name||i,engineVersion:a.engine.version||i,platformArchitecture:a.cpu.architecture||i,platformName:(r=a.os.name,o[r]||r||i),platformVersion:a.os.version||i,platformFullVersion:a.os.version||i};e.exports=u},function(e,t,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",p="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},d={rgx:function(){for(var e,t,n,r,i,o,a,s=0,u=arguments;s0?2==i.length?"function"==typeof i[1]?e[i[0]]=i[1].call(this,a):e[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?e[i[0]]=a?a.replace(i[1],i[2]):void 0:e[i[0]]=a?i[1].call(this,a,i[2]):void 0:4==i.length&&(e[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):e[i]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return b.contains(e,t)}):function(e,t){var n=e.split(y);if(n.length>0&&n.length<=2||d(!1),1===n.length)return i(n[0],t);var r=n[0],o=n[1];return c(r)&&c(o)||d(!1),i(">="+r,t)&&i("<="+o,t)}(e=n[0].trim(),t)}function i(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(v),i=s(e),c=i.modifier,l=i.rangeComponents;switch(c){case"<":return o(r,l);case"<=":return-1===(n=h(r,l))||0===n;case">=":return a(r,l);case">":return function(e,t){return 1===h(e,t)}(r,l);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,s=parseInt(r[i],10);return u(s)&&(r[i]=s+1+""),a(e,n)&&o(e,r)}(r,l);default:return function(e,t){return 0===h(e,t)}(r,l)}}function o(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(v),n=t[0].match(g);return n||d(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function c(e){return!s(e).modifier}function l(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,_=/^(\d*)(.*)/,b={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=b},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var i={};for(var o in e)n.call(e,o)&&(i[o]=t.call(r,e[o],o,e));return i}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&o(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function i(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var o=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(o(document.documentElement,n)){var c=t.getSelection(),l=e.getAnchorKey(),f=e.getAnchorOffset(),p=e.getFocusKey(),h=e.getFocusOffset(),d=e.getIsBackward();if(!c.extend&&d){var v=l,m=f;l=p,f=h,p=v,h=m,d=!1}var y=l===a&&s<=f&&u>=f,g=p===a&&s<=h&&u>=h;if(y&&g)return c.removeAllRanges(),i(c,n,f-s),void r(c,n,h-s);if(d){if(g&&(c.removeAllRanges(),i(c,n,h-s)),y){var _=c.focusNode,b=c.focusOffset;c.removeAllRanges(),i(c,n,f-s),r(c,_,b)}}else y&&(c.removeAllRanges(),i(c,n,f-s)),g&&r(c,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],i=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=i},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var i=n(70),o=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(o(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[i(t)]:e.style&&e.style[i(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),i=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=i(e),o=e===t?document.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=i},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,d)))return;return void u(d,function(e){e&&t.update(r(p,l(h),e))})}var v=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,v)))return this._internalDrag?void this.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(p,h)):void this.update(r(p,h,n.getText()))}}};e.exports=p},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var i=n(81),o=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},c=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=c},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i=0;h--)if(!(null!=p&&h>0&&o.isSurrogatePair(p,h-1))){if(e.setStart(l,h),!r(a(e),n))break;u=l,c=h}if(-1===h||0===l.childNodes.length)break;f=i(l=l.childNodes[h])}return e.setStart(u,c),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function i(e){return p.test(e)}function o(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var l=null;if(null!=s)l=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);l=c(a(f))}return{key:l,offset:0}}var p=r.childNodes[n-1],h=null,d=null;if(a(p)){var v=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(p);h=c(a(v)),d=i(v)}else h=c(s),d=i(p);return{key:h,offset:d}}function i(e){var t=e.textContent;return"\n"===t?0:t.length}var o=n(83),a=n(84),s=n(86),u=n(17),c=n(39);e.exports=function(e,t,n,i,a,u){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:s(e,c(o(n)),i,c(o(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return l?(p={key:c(o(n)),offset:i},h=r(t,a,u)):f?(h={key:c(o(a)),offset:u},p=r(t,n,i)):(p=r(t,n,i),h=r(t,a,u),n===a&&i===u&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var u=r.getKeyBefore(i);null==u?a=i:(a=u,s=r.getBlockForKey(u).getText().length)}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=e.getSelection(),o=e.getCurrentContent(),a=i;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o}else if(e.isSelectionAtStartOfContent())return o;if((a=t(e))===i)return o}return r.removeRange(o,a,n)}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),s=r.getBackward(a);return o(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var i="\\s|(?![_])"+n(111).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['‘’]|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:['‘’]|(?!"+i+").)*(?:"+i+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),s=r.getForward(a);return o(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),i=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),i=n(29),o=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),c=e.getCurrentContent(),l=c.getBlockForKey(u).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(c,a),p=r.removeRange(c,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,v=h.merge({anchorOffset:d,focusOffset:d}),m=r.replaceWithFragment(p,v,f),y=i.push(e,m,"insert-fragment");return i.acceptSelection(y,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(i)},0)):void n(i);var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n,"insert-fragment")}var i=n(4),o=n(6),a=n(80),s=n(9),u=n(122),c=n(29),l=n(47),f=n(85),p=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var d=n.getFiles(),v=n.getText();if(d.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(d)))return;return void f(d,function(e){if(e=e||v){var n=t.props.editorState,r=p(e),a=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=i.createFromArray(f),d=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(c.push(n,d,"insert-fragment"))}})}}var m=[],y=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(y,g))){if(y&&(m=p(y)),!this.props.stripPastedStyles){var _=this.getClipboard();if(n.isRichText()&&_){if(-1!==g.indexOf(this.getEditorKey())||1===m.length&&1===_.size&&_.first().getText()===y)return void this.update(r(this.props.editorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(m,_))return void this.update(r(this.props.editorState,_));if(g){var b=u.processHTML(g,this.props.blockRenderMap);if(b){var w=i.createFromArray(b);return void this.update(r(this.props.editorState,w))}}this.setClipboard(null)}if(m){var E=this.props.editorState,S=o.create({style:E.getCurrentInlineStyle(),entity:l(E.getCurrentContent(),E.getSelection())}),k=u.processText(m,S),M=i.createFromArray(k);this.update(r(this.props.editorState,M))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),i=n(5),o=n(123),a=n(21),s=n(125),u=n(34),c=i.List,l=i.Repeat,f={processHTML:function(e,t){return o(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:c(l(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function i(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(M,t))}]}}function o(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):L.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(y,e,t),"ul"!==y&&"ol"!==y||(n&&(p+=1),n=y),o||-1===f.indexOf(y)?n&&"li"===o&&"li"===y&&(E=i(a(y,n,h),p),o=y,g=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"):(E=i(a(y,n,h),p),o=y,g=!0);var M=e.firstChild;null!=M&&(y=M.nodeName.toLowerCase());for(var x=null;M;){M instanceof HTMLAnchorElement&&M.href&&u(M)?function(){var e=M,t={};j.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new m(e.href).toString(),x=d.create("LINK","MUTABLE",t)}():x=void 0,E=s(E,c(M,t,n,o,f,p,h,x||v));var N=M.nextSibling;N&&f.indexOf(y)>=0&&o&&(E=s(E,r())),N&&(y=N.nodeName.toLowerCase()),M=N}return g&&(E=s(E,i(_,p))),E}var l,f=n(6),p=n(7),h=n(41),d=n(14),v=n(5),m=n(124),y=n(21),g=n(125),_=n(17),b=n(39),w=n(34),E=v.List,S=v.OrderedSet,k=" ",M=4,x=new RegExp("\r","g"),O=new RegExp("\n","g"),N=new RegExp(" ","g"),T=new RegExp(" ?","g"),C=new RegExp("​?","g"),I=["bold","bolder","500","600","700","800","900"],L=["light","lighter","100","200","300","400"],D={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},j=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(x,"").replace(N,k).replace(T,"").replace(C,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),i=t(e);if(!i)return null;l=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=c(i,S(),"ul",null,o,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=w(e);var i=n+e.length,o=b(t).inlines.slice(n,i),a=b(t).entities.slice(n,i),s=E(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=i+1,new p({key:y(),type:b(t).blocks[r].type,depth:b(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),i=n(53),o=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=o(e,i.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var i=t.getSelection();return 0===i.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),i=n(42),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=o},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var i=n(100),o=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),c=s&&a.isBrowser("Firefox < 29"),l=i.hasCommandModifier,f=i.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),c=i.setBlockType(n,s,n.getBlockForKey(r).getType()),l=i.removeRange(c,s,"backward");if(l!==n)return o.push(e,l,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?o.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=o.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return i.setBlockType(o,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),i=n(134),o=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var o=i.stringify(e.getEntityAt(r));n.hasOwnProperty(o)||(n[o]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:o(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(i.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),i=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var s=e.getText(),u=e.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),i=n(8),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return i(u,o,a,function(t,i){var o=e.getText();s.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,i.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,i=null,o=[],a=0,s=0,u=e.length;s0&&n!==i&&(o.push([i,r(e.slice(a,s),t.slice(a,s))]),a=s)}return o.push([n,r(e.slice(a),t.slice(a))]),o};var i=n(150),o=t.EMPTY_SET=new i.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:T(e)}function n(e){return a(e)?e:C(e)}function r(e){return s(e)?e:I(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function m(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!O(e)}function M(e){return e&&"function"==typeof e.next}function x(e){var t=O(e);return t&&t.call(e)}function O(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function N(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function C(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return N(e)?new D(e):M(e)?new z(e):k(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,C(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?I(e).map(H).toList():W(e)?C(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),yn===mn&&(yn=0,gn={}),yn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Oe(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Ne(e){var t=De();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Tn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(c===l)return Tn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ce(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ce(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ce([],r):d;if(d&&h>f&&aHt;y-=Ht){var g=f>>>y≫m=m.array[g]=Ae(m.array[g],r)}m.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),y(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?C:s(e)?I:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,C),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,I),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!M(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,I),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,I),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new V(this._value,_(t,n)-g(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,mn=255,yn=0,gn={};e(ae,$),ae.of=function(){var e=Kt.call(arguments,0);return ye().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?ye():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ye()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ye(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ye(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?me(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,m=l?d?c:c^u:c|u,y=l?d?Oe(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Ne.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ne.prototype.insert=function(e,t){return this.splice(e,0,t)},Ne.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Ne.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ce([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var On,Nn,Tn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,C),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,I),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,C),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(mt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,ye()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+mt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:vt(this,r)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Cn=dt.prototype;Cn.delete=Cn.remove,Cn.deleteIn=Cn.removeIn=bn.removeIn,Cn.merge=bn.merge,Cn.mergeWith=bn.mergeWith,Cn.mergeIn=bn.mergeIn,Cn.mergeDeep=bn.mergeDeep,Cn.mergeDeepWith=bn.mergeDeepWith,Cn.mergeDeepIn=bn.mergeDeepIn,Cn.setIn=bn.setIn,Cn.update=bn.update,Cn.updateIn=bn.updateIn,Cn.withMutations=bn.withMutations,Cn.asMutable=bn.asMutable,Cn.asImmutable=bn.asImmutable,e(yt,te),yt.of=function(){return this(arguments)},yt.fromKeys=function(e){return this(n(e).keySeq())},yt.prototype.toString=function(){return this.__toString("Set {","}")},yt.prototype.has=function(e){return this._map.has(e)},yt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},yt.prototype.remove=function(e){return _t(this,this._map.remove(e))},yt.prototype.clear=function(){return _t(this,this._map.clear())},yt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Nt(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Nt(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Tt()},xt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Nt(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Nt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Ot;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,Ct(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return yt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Ne(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(m)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(It).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,Ct(n,{flip:function(){return at(this,Ve(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},Ct(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=n(151),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,i({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,c.default)(n,(i(e={},p.default.root,!0),i(e,p.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(l.default,o({},d,{title:a,className:n}),u.default.createElement("span",{className:p.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,l.default.root);var c=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=o?"submit":"button";return s.default.createElement("button",i({type:f},a,{onMouseDown:c,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&m.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var u=v++;n=d||(d=s(t)),r=c.bind(null,n,u,!1),i=c.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var l={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),d=null,v=0,m=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=p()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,i({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(c.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,l.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",o({},i,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=i(e,2),n=t[0],r=t[1],o=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},o)})}}]),t}();t.default=p},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),i=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var i=r,o=e.getLength();i=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return o(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,c.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,o){return new e(a.EditorState.push(this._editorState,i(t,n,o),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,o,s){var u=i(t,n,s);return new e(a.EditorState.createWithContent(u,o),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){switch(e){case y.BLOCK_TYPE.HEADER_ONE:return["h1"];case y.BLOCK_TYPE.HEADER_TWO:return["h2"];case y.BLOCK_TYPE.HEADER_THREE:return["h3"];case y.BLOCK_TYPE.HEADER_FOUR:return["h4"];case y.BLOCK_TYPE.HEADER_FIVE:return["h5"];case y.BLOCK_TYPE.HEADER_SIX:return["h6"];case y.BLOCK_TYPE.UNORDERED_LIST_ITEM:case y.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case y.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case y.BLOCK_TYPE.CODE:return["pre","code"];case y.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,c,l=Object.assign||function(e){for(var t=1;t",k=/^data-([a-z0-9-]+)$/,M=(i(s={},g,{element:"strong"}),i(s,_,{element:"code"}),i(s,b,{element:"em"}),i(s,w,{element:"del"}),i(s,E,{element:"ins"}),s),x=[g,b,E,w,_],O=(i(u={},y.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),i(u,y.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),N=(i(c={},y.ENTITY_TYPE.LINK,function(e,t){var n=O.hasOwnProperty(e)?O[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else k.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),i(c,y.ENTITY_TYPE.IMAGE,function(e,t){var n=O.hasOwnProperty(e)?O[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else k.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),c),T=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[M,x]),i=f(r,2),o=i[0],a=i[1];this.inlineStyles=o,this.styleOrder=a}return p(e,[{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")}}catch(e){f=!0,p=e}finally{try{!c&&m.return&&m.return()}finally{if(f)throw p}}}},{key:"writeEndTag",value:function(e){var t=o(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value;n.unshift("")}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var i=e.getCharacterList();return(0,y.getEntityRanges)(r,i).map(function(e){var r=f(e,2),i=r[0],o=r[1].map(function(e){var r=f(e,2),i=r[0],o=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(i),u=!0,c=!1,p=void 0;try{for(var h,m=t.styleOrder[Symbol.iterator]();!(u=(h=m.next()).done);u=!0){var g=h.value;if((g!==_||n!==y.BLOCK_TYPE.CODE)&&o.has(g)){var b=t.inlineStyles[g],w=b.element,E=b.attributes,k=b.style;if(null==w&&(w="span"),E=(0,d.default)(E),null!=k){var M=(0,v.default)(k);E=null==E?{style:M}:l({},E,{style:M})}s="<"+w+a(E)+">"+s+""}}}catch(e){c=!0,p=e}finally{try{!u&&m.return&&m.return()}finally{if(c)throw p}}return s}).join(""),s=i?m.Entity.get(i):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===y.ENTITY_TYPE.LINK?""+o+"":null!=u&&u===y.ENTITY_TYPE.IMAGE?"":o}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,i=n.characterMeta,o=!1;if(r===d&&(o=!0,r=""),"pre"===e.tagName){var c=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,i);r=c.text,i=c.characterMeta}else{var l=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var i=e.length;i--;)" "===e.charAt(i)&&" "===e.charAt(i-1)&&(e=e.slice(0,i)+e.slice(i+1),t=t.slice(0,i).concat(t.slice(i+1)));var o=(0,a.default)({text:e,characterMeta:t},d+" ",d);e=o.text,t=o.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+d,d);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,i);r=l.text,i=l.characterMeta}((r=r.split(d).join("\n")).length||o)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:i.toList(),depth:e.depth}))}),t.length?t:[p]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){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(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case c.BLOCK_TYPE.UNORDERED_LIST_ITEM:case c.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),i=!b.hasOwnProperty(t),o={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};i&&(this.blockList.push(o),r&&(this.depth+=1)),this.blockStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),i&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],i=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(c.INLINE_STYLE.BOLD);case"i":case"em":return e.add(c.INLINE_STYLE.ITALIC);case"ins":return e.add(c.INLINE_STYLE.UNDERLINE);case"code":return e.add(c.INLINE_STYLE.CODE);case"del":return e.add(c.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(i=g[t](t,e)||i),n.styleStack.push(r),n.entityStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),w.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(d)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(d),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],i=s.CharacterMetadata.create({style:n,entity:r}),o=(0,u.Repeat)(i,e.length);t.textFragments.push({text:e,characterMeta:o})}},{key:"processNode",value:function(e){if(e.nodeType===l.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();_.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===l.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var i=e.text,o=e.characterMeta,a=t.length,s=r.length,u=[],c=o.slice(0,0),l=0,f=i.indexOf(t);-1!==f;)u.push(i.slice(l,f)+r),c=c.concat(o.slice(l,f),n(o.slice(f,f+1),s)),l=f+a,f=i.indexOf(t,l);return u.push(i.slice(l)),c=c.concat(o.slice(l)),{text:u.join(""),characterMeta:c}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,i){o(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var c=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=c,!c&&i&&i.forEach(a.appendChild,a),a}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.attributes[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=s.name,c=s.value;t.push(u+(c?'="'+c.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}var l=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+l+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+l+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=l,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function i(e){return e.replace(/\)/g,"%29")}function o(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.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()===t&&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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],i=n[1];if(!r)return"";var o=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return i.has(l)&&(o="**"+o+"**"),i.has(d)&&(o="++"+o+"++"),i.has(p)&&(o="_"+o+"_"),i.has(h)&&(o="~~"+o+"~~"),i.has(f)&&(o=t===u.BLOCK_TYPE.CODE?o:"`"+o+"`"),o}).join(""),v=r?c.Entity.get(r):null;if(null!=v&&v.getType()===u.ENTITY_TYPE.LINK){var m=v.getData(),y=m.url||"",g=m.title?' "'+o(m.title)+'"':"";return"["+s+"]("+i(y)+g+")"}if(null!=v&&v.getType()===u.ENTITY_TYPE.IMAGE){var _=v.getData(),b=_.src||"";return"!["+(_.alt?' "'+o(_.alt)+'"':"")+"]("+i(b)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,i=n(203),o=(r=i)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=l({},e||p),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function i(e,t){if(this.options=l({},t||p),this.links=e,this.rules=d.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=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function o(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=l({},e||p),this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),c=Object.prototype.hasOwnProperty,l=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=l({},h),h.gfm=l({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,i,o,a,s,u,c,l,f;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(o=o[0].match(this.rules.item)).length,l=0;l1&&s.length>1||(e=o.slice(l+1).join("\n")+e,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&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.paragraph.exec(e)))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var d={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};d.link=s(d.link)("inside",d._inside)("href",d._href)(),d.reflink=s(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:s(d.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(d.text)("]|","~+]|")()}),d.breaks=l({},d.gfm,{br:s(d.br)("{2,}","*")(),text:s(d.gfm.text)("{2,}","*")()}),i.rules=d,i.parse=function(e,t,n){return new i(t,n).parse(e)},i.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},o.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},o.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},o.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},o.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},o.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},o.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},o.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},o.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},o.prototype.em=function(e){return new u.ElementNode("em",[],[e])},o.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},o.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},o.prototype.del=function(e){return new u.ElementNode("del",[],[e])},o.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},o.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},o.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},o.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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(e,t){t=l({},p,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return o.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(c=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},ePhh:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("F8kA"),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?i.a.Children.map(this.props.children,function(t){return t.type===s.a?i.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return i.a.createElement("div",c({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},i.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Additional Comments"),i.a.createElement("div",{className:"control"},i.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return i.a.createElement("div",null,i.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),i.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?i.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to flag this observation."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},l.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jVml:function(e,t,n){"use strict";var r=window.TreeSnap.metaLabels;t.a=r},jyFz:function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},mOuh:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"To")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"CC/BCC")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Subject")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"}),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}),i.a.createElement("p",{className:"help"},"You may use ",i.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return i.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},i.a.createElement("h5",{className:"title is-5"},"Message Preview"),i.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?i.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?i.a.createElement("table",{className:"table"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Category"),i.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?i.a.createElement("tr",null,i.a.createElement("th",null,"Found Near"),i.a.createElement("td",null,t.formatted)):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,u()(e.date.date).format("LL"))),i.a.createElement("tr",null,i.a.createElement("th",{colSpan:2},i.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?i.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):i.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return i.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},i.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),i.a.createElement("div",{className:"modal-card modal-card-lg"},i.a.createElement(c.a,{visible:this.state.loading}),i.a.createElement("header",{className:"modal-card-head"},i.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),i.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),i.a.createElement("section",{className:"modal-card-body"},i.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),i.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):i.a.createElement("div",{className:"flexbox flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),i.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,m=function(){return p.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,u,c,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function _(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-l>=a}function w(){var e=m();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?_(e):(i=o=void 0,s)}function S(){var e=m(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?_(e):s}(c);if(p)return u=setTimeout(w,t),_(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=g(t)||0,y(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(m())},S}}).call(t,n("DuR2"))},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(){return function e(t){if(!(this instanceof e))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=l.getInstance(),r=new E(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var M=void 0!==i.ResizeObserver?i.ResizeObserver:k;t.default=M}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/5.7ff1c5eaa7fec20ea9ae.js b/public/js/5.7ff1c5eaa7fec20ea9ae.js new file mode 100644 index 00000000..e4f6915a --- /dev/null +++ b/public/js/5.7ff1c5eaa7fec20ea9ae.js @@ -0,0 +1 @@ +webpackJsonp([5,7],{"0dG/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;to&&(a=0),n.setState({previousIndex:i,currentIndex:a,isTransitioning:a!==i,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new c.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,i){var o=n.state,a=o.scrollingUpDown,s=o.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var c=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(c,i)}},n._handleSwiping=function(e,t,r,i){var o=n.state,a=o.galleryWidth,s=o.isTransitioning,u=o.scrollingUpDown,c=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var l=t<0?1:-1,f=i/a*100;Math.abs(f)>=100&&(f=100);var p={transition:"transform "+c+"ms ease-out"};n.setState({offsetPercentage:l*f,style:p})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-image"},e.imageSet?o.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return o.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),o.default.createElement("img",{alt:e.originalAlt,src:e.original})):o.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&o.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbnail-inner"},o.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(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(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,i)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;p.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;p.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,i=n.scrollingLeftRight,o=Math.abs(e);Math.abs(t)>o&&!r&&!i?this.setState({scrollingUpDown:!0}):i||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this._sufficientSwipeOffset()&&!t||i||(o+=e),e<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.currentIndex0&&(er&&this._setThumbsTranslate(n+o))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,i=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){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 e*(i/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=t.previousIndex,o=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?o=-100+r:1===n&&0===e&&r<0&&(o=100+r),n!==i?0===i&&0===e&&0===r&&"left"===this.direction?o=100:1===i&&1===e&&0===r&&"right"===this.direction&&(o=-100):0===n&&1===e&&0===r&&"left"===this.direction?o=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(o=100),o}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=this.props,o=i.infinite,a=i.items,s=i.useTranslate3D,u=i.isRTL,c=-100*n,l=a.length-1,f=(c+100*e)*(u?-1:1)+r;o&&a.length>2&&(0===n&&e===l?f=-100*(u?-1:1)+r:n===l&&0===e&&(f=100*(u?-1:1)+r)),o&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var p="translate("+f+"%, 0)";return s&&(p="translate3d("+f+"%, 0, 0)"),{WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state.thumbsTranslate,o=r?-1*i:i;return this._isThumbnailHorizontal()?(e="translate(0, "+i+"px)",n&&(e="translate3d(0, "+i+"px, 0)")):(e="translate("+o+"px, 0)",n&&(e="translate3d("+o+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,c=t.scrollingLeftRight,l=this.props,f=l.infinite,p=l.preventDefaultTouchmoveEvent,h=l.isRTL,d=this._getThumbnailStyle(),v=this.props.thumbnailPosition,m=this._slideLeft,y=this._slideRight,g=[],_=[],b=[];this.props.items.forEach(function(t,i){var a=e._getAlignmentClassName(i),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",c=t.renderItem||e.props.renderItem||e._renderItem,l=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,p=!e.props.lazyLoad||a||e._lazyLoaded[i];p&&e.props.lazyLoad&&(e._lazyLoaded[i]=!0);var h=e._getSlideStyle(i),d=o.default.createElement("div",{key:i,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},p?c(t):o.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(i)&&g.push(d):g.push(d),e.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,onClick:function(t){return e._onThumbnailClick(t,i)}},l(t))),e.props.showBullets){b.push(o.default.createElement("button",{key:i,type:"button",className:["image-gallery-bullet",n===i?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:i,currentIndex:n}),e.slideToIndex.call(e,i,r)},"aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}});var E=o.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+v+" "+(h?"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(m,!this._canSlideLeft()),this.props.renderRightNav(y,!this._canSlideRight())),o.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:p||c},o.default.createElement("div",{className:"image-gallery-slides"},g))]:o.default.createElement("div",{className:"image-gallery-slides"},g),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,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return o.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:w,"aria-live":"polite"},o.default.createElement("div",{className:"image-gallery-content"+(i?" fullscreen":"")},("bottom"===v||"right"===v)&&E,this.props.showThumbnails&&o.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+v+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},o.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:d,"aria-label":"Thumbnail Navigation"},_))),("top"===v||"left"===v)&&E))}}]),t}();h.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,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},h.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(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"1B1h":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=[{to:"/account",icon:"fa-address-card-o",label:"Settings"},{to:"/account/observations",icon:"fa-tree",label:"Observations"},{to:"/account/groups",icon:"fa-users",label:"Groups"},{to:"/account/collections",icon:"fa-th",label:"Collections"},{to:"/account/filters",icon:"fa-filter",label:"Filters"}],a=n("cabM"),s=n("TIMf"),u=n("ePhh"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},i.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return i.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Or Create New Collection"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})),i.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to add this observation to a collection."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},l.defaultProps={collections:[],onSubmit:function(){}}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("O27J"),a=n.n(o),s=n("KSGD"),u=n.n(s),c=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),c(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return i.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},i.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(i.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=l,l.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},l.defaultProps={type:"success"},l.stack=[]},"6Vhz":function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0}},{key:"clear",value:function(e){return this.errors.hasOwnProperty(e)&&delete this.errors[e],this}}]),e}();t.a=a},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,i=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:i,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,i=t.onSwiping,o=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,c=t.onSwipingRight,l=t.onSwipedRight,f=t.onSwipingUp,p=t.onSwipedUp,h=t.onSwipingDown,d=t.onSwipedDown,v=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var m=u(e,this.swipeable);if(!(m.absXm.absY?m.deltaX>0?(a||s)&&(a&&a(e,m.absX),y=!0):(c||l)&&(c&&c(e,m.absX),y=!0):m.deltaY>0?(f||p)&&(f&&f(e,m.absY),y=!0):(h||d)&&(h&&h(e,m.absY),y=!0),this.swipeable.swiping=!0,y&&v&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,i=t.onSwiped,o=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,c=t.onSwipedDown,l=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var p=f.velocity>r;i&&i(e,f.deltaX,f.deltaY,p,f.velocity),f.absX>f.absY?f.deltaX>0?o&&o(e,f.deltaX,p):a&&a(e,f.deltaX,p):f.deltaY>0?s&&s(e,f.deltaY,p):c&&c(e,f.deltaY,p)}else l&&l(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,i.createElement(this.props.nodeName,e,this.props.children)},t}(i.Component);c.propTypes={onSwiped:o.func,onSwiping:o.func,onSwipingUp:o.func,onSwipingRight:o.func,onSwipingDown:o.func,onSwipingLeft:o.func,onSwipedUp:o.func,onSwipedRight:o.func,onSwipedDown:o.func,onSwipedLeft:o.func,onTap:o.func,flickThreshold:o.number,delta:o.number,preventDefaultTouchmoveEvent:o.bool,stopPropagation:o.bool,nodeName:o.string,trackMouse:o.bool,disabled:o.bool,innerRef:o.func,children:o.node,rotationAngle:o.number},c.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=c},"8ji5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("F8kA"),u=n("saAw"),c=n("LZyd"),l=n("5zKI"),f=n("PJh5"),p=n.n(f),h=n("mOuh"),d=n("JsH4"),v=n("IFrJ"),m=n("OE/d"),y=n("t4LX"),g=n("Xxa5"),_=n.n(g),b=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({processing:this.state.processing.concat(t.id)}),e.prev=1,e.next=4,axios.post("/web/group/"+this.props.groupID+"/request/accept",{request_id:t.id});case 4:e.sent,this.setState({requests:this.state.requests.filter(function(e){return e.id!==t.id}),processing:this.state.processing.filter(function(e){return e!==t.id})}),n&&(l.a.push("Accepted "+t.user.name+"'s request to join this group"),this.props.onAccept()),e.next=15;break;case 9:if(e.prev=9,e.t0=e.catch(1),!n){e.next=14;break}return l.a.push("We encountered and error while processing your request. Please try again later","danger"),e.abrupt("return");case 14:throw new Error(e.t0.response.status);case 15:case"end":return e.stop()}},e,this,[[1,9]])}));return function(t){return e.apply(this,arguments)}}()},{key:"reject",value:function(e){var t=this;this.setState({processing:this.state.processing.concat(e.id)}),axios.post("/web/group/"+this.props.groupID+"/request/reject",{request_id:e.id}).then(function(n){t.setState({requests:t.state.requests.map(function(t){return t.id===e.id&&(t.rejected=!0),t}),processing:t.state.processing.filter(function(t){return t!==e.id})}),l.a.push("Rejected "+e.user.name+"'s request to join this group","warning")}).catch(function(e){l.a.push("We encountered and error while processing your request. Please try again later","danger")})}},{key:"acceptAll",value:function(){var e=w(_.a.mark(function e(){var t,n,r;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.state.requests,e.t0=_.a.keys(t);case 2:if((e.t1=e.t0()).done){e.next=19;break}if(n=e.t1.value,void 0!==(r=t[n])&&void 0!==r.id){e.next=7;break}return e.abrupt("continue",2);case 7:if(!r.rejected){e.next=9;break}return e.abrupt("continue",2);case 9:return e.prev=9,e.next=12,this.accept(r,!1);case 12:e.next=17;break;case 14:e.prev=14,e.t2=e.catch(9),l.a.push("Unable to accept "+r.user.name+" at this time, please try again later","danger");case 17:e.next=2;break;case 19:l.a.push("Accepted all requests"),this.props.onAccept();case 21:case"end":return e.stop()}},e,this,[[9,14]])}));return function(){return e.apply(this,arguments)}}()},{key:"undo",value:function(e){var t=this;this.setState({processing:this.state.processing.concat(e.id)}),axios.post("/web/group/"+this.props.groupID+"/request/reset",{request_id:e.id}).then(function(n){t.setState({requests:t.state.requests.map(function(t){return t.id===e.id&&(t.rejected=!1),t}),processing:t.state.processing.filter(function(t){return t!==e.id})})}).catch(function(e){l.a.push("We encountered and error while processing your request. Please try again later","danger")})}},{key:"_renderRows",value:function(){var e=this;return this.state.requests.map(function(t){return i.a.createElement("tr",{key:t.id},i.a.createElement("td",null,t.user.name),i.a.createElement("td",null,t.created_at),i.a.createElement("td",{className:"has-text-right"},e._renderActionButtons(t)))})}},{key:"_renderActionButtons",value:function(e){var t=this;return-1!==this.state.processing.indexOf(e.id)?i.a.createElement("button",{type:"button",className:"button is-link is-loading is-small",disabled:!0}):e.rejected?i.a.createElement("button",{type:"button",className:"button is-link is-small",onClick:function(){return t.undo(e)}},i.a.createElement("span",null,"Undo Rejection")):i.a.createElement("div",null,i.a.createElement("button",{type:"button",className:"button is-success is-small is-outlined mr-0",onClick:function(){return t.accept(e)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-check"})),i.a.createElement("span",null,"Accept")),i.a.createElement("button",{type:"button",className:"button is-danger is-small is-outlined",onClick:function(){return t.reject(e)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-times"})),i.a.createElement("span",null,"Reject")))}},{key:"render",value:function(){return this.state.requests.length<=0?null:i.a.createElement("div",{className:"box"},i.a.createElement("h4",{className:"title is-4"},"Pending Join Requests"),i.a.createElement("table",{className:"table is-striped"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"User Name"),i.a.createElement("th",null,"Request Date"),i.a.createElement("th",{className:"has-text-right"},"Action"))),i.a.createElement("tbody",null,this._renderRows())),i.a.createElement("div",{className:"has-text-right"},i.a.createElement("button",{type:"button",className:"button is-primary",onClick:this.acceptAll.bind(this)},"Accept All")))}}]),t}(),k=S;S.propTypes={groupID:a.a.number.isRequired,onAccept:a.a.func},S.defaultProps={onAccept:function(){}};var M=n("6Vhz"),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=function(){function e(e,t){for(var n=0;n0?i.a.createElement("ul",{className:"pagination-list"},i.a.createElement("li",null,"Page ",i.a.createElement("span",{className:"select is-small"},i.a.createElement("select",{value:this.state.page,onChange:function(t){var n=t.target;return e.goToPage(n.value)}},this.state.pages.map(function(e){return i.a.createElement("option",{value:e,key:"page_"+e},e)})))," out of ",this.state.pages.length," pages")):null,i.a.createElement("a",{href:"javascript:;",className:"pagination-next",onClick:this.nextPage.bind(this),disabled:!this.state.hasMorePages},"Next"))}},{key:"_renderPrivacyModal",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Observation Sharing"),i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",checked:this.state.isSharing,value:1,onChange:function(t){var n=t.target;return e.changeSharingStatus(n.checked)},disabled:this.state.privacyUpdating}),i.a.createElement("span",{className:"ml-1"},"Share my observations with the members of this group. Sharing will include sensitive information such as accurate location coordinates."))),this.state.isOwner?i.a.createElement("div",{className:"field mb-2"},i.a.createElement("label",{className:"label"},"Discoverability"),i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.isPrivate,onChange:function(t){var n=t.target;return e.toggleDiscoverability(parseInt(n.value))}},i.a.createElement("option",{value:1},"Users must be invited to join"),i.a.createElement("option",{value:0},"Allow anyone to find this group and apply to join")))):null,i.a.createElement("button",{type:"button",className:"button is-primary",disabled:this.state.privacyUpdating,onClick:function(){return e.setState({showPrivacyModal:!1})}},"Done"))}},{key:"toggleDiscoverability",value:function(e){var t=this;this.setState({privacyUpdating:!0});var n=this.state.id;axios.patch("/web/group/"+n+"/discoverability",{is_private:e}).then(function(e){t.setState({privacyUpdating:!1,isPrivate:e.data.data.is_private}),l.a.push("Privacy settings updated successfully")}).catch(function(e){console.error(e),t.setState({privacyUpdating:!1});var n=new M.a(e);n.has("general")?l.a.push(n.first("general"),"danger"):n.has("is_private")&&l.a.push(n.first("is_private"),"danger")})}},{key:"changeSharingStatus",value:function(e){var t=this,n=this.state.id;this.setState({privacyUpdating:!1}),axios.patch("/web/group/"+n+"/sharing",{share:e}).then(function(e){t.setState({isSharing:e.data.data,privacyUpdating:!1}),t.loadObservations(t.state),l.a.push("Privacy settings updated successfully")}).catch(function(e){console.error(e),t.setState({privacyUpdating:!1});var n=new M.a(e);n.has("share")?l.a.push(n.first("share"),"danger"):n.has("general")&&l.a.push(n.first("general"),"danger")})}},{key:"saveGroupName",value:function(){var e=this;this.setState({savingName:!0}),axios.put("/web/group/"+this.state.id,{name:this.state.newName}).then(function(t){l.a.push("Group name updated successfully"),e.setState({savingName:!1,updatingName:!1,name:t.data.data.name})}).catch(function(t){e.setState({savingName:!1});var n=new M.a(t);n.has("general")&&alert(n.first("general"))})}},{key:"renderNameForm",value:function(){var e=this;return i.a.createElement("form",{action:"#",method:"post",onSubmit:function(t){t.preventDefault(),e.saveGroupName()}},i.a.createElement("div",{className:"field is-grouped"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("input",{type:"text",className:"input is-large",name:"name",autoFocus:!0,value:this.state.newName,onChange:function(t){var n=t.target;return e.setState({newName:n.value})}})),i.a.createElement("div",{className:"control"},i.a.createElement("button",{className:"button is-primary is-large",type:"submit"},"Done"))))}},{key:"renderName",value:function(){var e=this;return i.a.createElement("h1",{className:"title is-3 is-flex align-items-end"},this.state.name,i.a.createElement("button",{className:"button is-link is-small",type:"button",onClick:function(){return e.setState({updatingName:!0})}},"rename"))}},{key:"render",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("div",{className:"columns"},i.a.createElement("div",{className:"column"},this.state.updatingName?this.renderNameForm():this.renderName()),i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("a",{href:"javascript:;",className:"button is-default",onClick:function(){return e.setState({showPrivacyModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Group Privacy")))),i.a.createElement(k,{groupID:parseInt(this.props.match.params.id),onAccept:this.loadGroup.bind(this)}),i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h4",{className:"title is-4"},"Users")),this.state.isOwner?i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("button",{type:"button",className:"button is-primary mr-0",onClick:function(){return e.setState({showInviteModal:!0})}},i.a.createElement("span",null,"Invite Users")),i.a.createElement("button",{type:"button",className:"button is-gray",onClick:this._deleteGroup.bind(this)},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})))):null),this._renderUsersTable()),this._renderPendingBox(),this._renderObservations(),this._renderPageLinks(),i.a.createElement(c.a,{visible:this.state.showInviteModal,onCloseRequest:function(){return e.setState({showInviteModal:!1})}},i.a.createElement("h4",{className:"title is-4"},"Invite Users",i.a.createElement("button",{className:"delete is-pulled-right",onClick:function(){return e.setState({showInviteModal:!1})},type:"button"})),this._renderForm(),this._renderFormErrors()),i.a.createElement(c.a,{visible:this.state.showPrivacyModal,onCloseRequest:function(){return e.setState({showPrivacyModal:!1})},showCloseButton:!1},i.a.createElement("h4",{className:"title is-4"},"Group Privacy Settings",i.a.createElement("button",{className:"delete is-pulled-right",onClick:function(){return e.setState({showPrivacyModal:!1})},type:"button"})),this._renderPrivacyModal()),i.a.createElement(u.a,{visible:this.state.pageLoading}))}}]),t}();t.default=N;N.propTypes={admin:a.a.bool},N.defaultProps={admin:!0}},AByj:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("h7v/"),u=n("NdNt"),c=n("c8iI"),l=n("0dG/"),f=n.n(l),p=n("PJh5"),h=n.n(p),d=n("LZyd"),v=n("iwoP"),m=n("5L7H"),y=n("jVml"),g=n("mOuh"),_=n("OE/d"),b=n("t4LX"),E=n("F8kA"),w=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},i.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return i.a.createElement(c.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},i.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:i.a.createElement("div",null,i.a.createElement("div",{className:"flexbox observation-tools"},i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-star text-success"})),i.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-flag text-danger"})),i.a.createElement("span",null,"Flag Observation")):null,_.a.can("contact users")?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-envelope text-info"})),i.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return i.a.createElement(d.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return i.a.createElement(v.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h3",{className:"title is-4"},"Add to Collection"),i.a.createElement(m.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:i.a.createElement("tr",{key:n},i.a.createElement("th",null,e),i.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?i.a.createElement("p",{className:"help"},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),b.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return i.a.createElement("div",{className:"box has-text-centered"},i.a.createElement("div",{className:"content"},i.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),i.a.createElement("p",null,"Observation has been deleted successfully"),i.a.createElement(E.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return _.a.can("contact users")?i.a.createElement(w.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},i.a.createElement("option",{value:"US"},"US Units"),i.a.createElement("option",{value:"metric"},"Metric Units")))),_.a.can("delete observations")||_.a.owns(this.observation)?i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})),i.a.createElement("span",null,"Delete"))):null),i.a.createElement("div",{className:"columns mb-none"},i.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},i.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},i.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Submitted By"),i.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?i.a.createElement("tr",null,i.a.createElement("th",null,"Custom Tree Identifier"),i.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?i.a.createElement("tr",null,i.a.createElement("th",null,"ID"),i.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,i=void 0!==y.a[n]?y.a[n]:n,o=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],o=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(i,o,n,r)}),i.a.createElement("tr",null,i.a.createElement("th",null,"Coordinates"),i.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?i.a.createElement("tr",null,i.a.createElement("th",null,"Location Accuracy"),i.a.createElement("td",null,_.a.can("view accurate location")||_.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:i.a.createElement("tr",null,i.a.createElement("th",null,"Photos"),i.a.createElement("td",null,i.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"tabs has-no-shadow"},i.a.createElement("ul",null,i.a.createElement("li",{className:this.getTabClass("photos")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),i.a.createElement("li",{className:this.getTabClass("map")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?i.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},i.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return i.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?i.a.createElement("div",{className:"callout"},i.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?i.a.createElement("div",{style:{width:"100%",position:"relative"}},i.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=M,M.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},M.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},CDck:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),i=n.n(r),o=n("8ji5"),a=n("1B1h"),s=n("DakW"),u=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is-active";return this.setPath(),t&&this.path===e?n:!t&&this.path.indexOf(e)>=0?n:null}},{key:"parseUrl",value:function(e){var t={};return(e=e.substr(1)).split("&").forEach(function(e){if(e){var n=(e=e.split("+").join(" ")).indexOf("="),r=n>-1?e.substr(0,n):e,i=n>-1?decodeURIComponent(e.substr(n+1)):"",o=r.indexOf("[");if(-1===o)t[decodeURIComponent(r)]=i;else{var a=r.indexOf("]",o),s=decodeURIComponent(r.substring(o+1,a));r=decodeURIComponent(r.substring(0,o)),t[r]||(t[r]=[]),s?t[r][s]=i:t[r].push(i)}}}),t}}]),e}();t.a=new i},JsH4:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("N7gF"),u=n("PJh5"),c=n.n(u),l=n("5L7H"),f=n("iwoP"),p=n("h7v/"),h=n("NdNt"),d=n("saAw"),v=n("5zKI"),m=n("AByj"),y=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return i.a.createElement(p.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},i.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},i.a.createElement("div",{className:"media callout"},i.a.createElement("div",{className:"media-left mr-0"},i.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),i.a.createElement("div",{className:"media-content"},i.a.createElement("div",{className:"mb-0"},i.a.createElement("strong",null,t.observation_category)),i.a.createElement("div",{className:"mb-0"},"By ",t.user.name),i.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?i.a.createElement("div",{className:"content"},i.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),i.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),i.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):i.a.createElement(l.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return i.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},i.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),i.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Flag Observation"),i.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),v.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";v.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return i.a.createElement("div",{className:"card-footer marks-section"},i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.incorrectMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-times text-danger"})),i.a.createElement("span",null,"Marks")),i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.correctMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-check text-success"})),i.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":w(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,o=this.getAddress(t),a=o.address,u=o.addressLine1,l=o.addressLine2;return i.a.createElement("div",{className:"observation-card-container"},i.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},i.a.createElement("header",{className:"card-header"},i.a.createElement(b.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),E.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},i.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-times"})))):null,E.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},i.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-check"})))):null),i.a.createElement("div",{className:"relative-block"},i.a.createElement(d.a,{visible:this.state.loading}),i.a.createElement("div",{className:"has-bg-image relative-block is-positioned-relatively"},i.a.createElement("div",{className:"card-image img-bg-zoom",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}},i.a.createElement("a",{href:"javascript:;",className:"sidebar-img-overlay flexbox flex-v-center flex-h-center flex-column z-10",onClick:function(){e.setState({showDetailsModal:!0})}},i.a.createElement("i",{className:"fa fa-photo"}),i.a.createElement("div",{className:"has-text-centered"},"Click for More Details")))),this._renderMarks(),i.a.createElement("div",{className:"card-content"},i.a.createElement("div",{className:"content"},this.props.owner?null:i.a.createElement("span",null,"By ",t.user.name,i.a.createElement("br",null)),i.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),i.a.createElement("br",null),t.custom_id?i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"Custom ID")," ",t.custom_id),i.a.createElement("br",null)):i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||E.a.can("view accurate location")?i.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,i.a.createElement("br",null)):null,i.a.createElement("small",null,c()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?i.a.createElement("div",{className:"text-ellipsis",title:a},i.a.createElement("small",null,i.a.createElement("b",null,"Near")," ",u),i.a.createElement("br",null),i.a.createElement("small",{style:{marginLeft:"35px"}},l)):i.a.createElement("div",{style:{height:48}},"Address is unavailable"))),i.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},i.a.createElement("div",{className:"p-1 relative-block"},i.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},i.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),i.a.createElement("footer",{className:"card-footer card-footer-z-index"},i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},i.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-star"})))),i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},i.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-map"})))),E.a.can("contact users")&&!this.props.owner?i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},i.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},i.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?i.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},i.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?i.a.createElement(_,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=k;k.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},k.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},LZyd:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n-1}},{key:"owns",value:function(e,t){return void 0===t&&(t="user_id"),"object"===(void 0===e?"undefined":i(e))?Array.isArray(e)?e.every(this.owns.bind(this)):void 0!==e[t]&&e[t]===this._user.id:"number"==typeof e&&this._user.id===e}},{key:"inGroupWith",value:function(e){for(var t in this._groups)if(this._groups[t].users.indexOf(e)>-1)return!0;return!1}},{key:"inGroup",value:function(e){for(var t in this._groups)if(this._groups[t].id===e)return!0;return!1}},{key:"authenticated",value:function(){return this._isLoggedIn}},{key:"admin",value:function(){return this._isAdmin}},{key:"scientist",value:function(){return this._isScientist}},{key:"role",value:function(){return this._role}},{key:"user",value:function(){return this._user}}]),e}();t.a=new a},R3sX:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,m=function(){return p.Date.now()};function y(e,t,r){var i,o,a,s,u,c,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function y(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-l>=a}function E(){var e=m();if(b(e))return w(e);u=setTimeout(E,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function w(e){return u=void 0,h&&i?y(e):(i=o=void 0,s)}function S(){var e=m(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(E,t),f?y(e):s}(c);if(p)return u=setTimeout(E,t),y(c)}return void 0===u&&(u=setTimeout(E,t)),s}return t=_(t)||0,g(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(_(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:w(m())},S}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),y(e,t,{leading:i,maxWait:t,trailing:o})}}).call(t,n("DuR2"))},SldL:function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"==typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=t.regeneratorRuntime=c?e.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={},m={};m[a]=function(){return this};var y=Object.getPrototypeOf,g=y&&y(y(I([])));g&&g!==r&&i.call(g,a)&&(m=g);var _=k.prototype=w.prototype=Object.create(m);S.prototype=_.constructor=k,k.constructor=S,k[u]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(_),e},l.awrap=function(e){return{__await:e}},M(x.prototype),x.prototype[s]=function(){return this},l.AsyncIterator=x,l.async=function(e,t,n,r){var i=new x(b(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},M(_),_[u]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(e,t,n,r){var i=t&&t.prototype instanceof w?t:w,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=E(e,t,n);if("normal"===u.type){if(r=n.done?d:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function w(){}function S(){}function k(){}function M(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e){var t;this._invoke=function(n,r){function o(){return new Promise(function(t,o){!function t(n,r,o,a){var s=E(e[n],e,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){u.value=e,o(u)},a)}a(s.arg)}(n,r,t,o)})}return t=t?t.then(o,o):o()}}function O(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,O(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=E(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();l=l?u({},N,l):N;var b=(0,S.default)((i(e={},O.default.editor,!0),i(e,O.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=d);var E=void 0;return h||(E=f.default.createElement(_.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:v})),f.default.createElement("div",{className:(0,S.default)(O.default.root,r)},E,f.default.createElement("div",{className:b},f.default.createElement(p.Editor,u({},y,{blockStyleFn:(0,w.default)(o,m),customStyleMap:l,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:c,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(p.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),i=p.Modifier.removeRange(r,n,"forward"),o=i.getSelectionAfter(),a=i.getBlockForKey(o.getStartKey());i=p.Modifier.insertText(i,o,"\n",a.getInlineStyleAt(o.getStartOffset()),null),this._onChange(p.EditorState.push(t,i,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if((0,y.default)(i)&&0===i.getLength()){var o=i.getDepth(),a=0===o?(0,v.default)(e,r,x.BLOCK_TYPE.UNSTYLED):(0,d.default)(e,r,o-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if(!(0,y.default)(i)&&i.getType()!==x.BLOCK_TYPE.UNSTYLED&&i.getLength()===t.getStartOffset()){var o=(0,m.default)(e,r,x.BLOCK_TYPE.UNSTYLED);return this._onChange(o),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=T;var C=new p.CompositeDecorator([E.default]);Object.assign(T,{EditorValue:b.default,decorator:C,createEmptyValue:a,createValueFromString:s}),t.EditorValue=b.default,t.decorator=C,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(6),a=n(40),s=n(7),u=n(32),c=n(41),l=n(43),f=n(44),p=n(50),h=n(9),d=n(14),v=n(16),m=n(29),y=n(100),g=n(131),_=n(33),b=n(133),E={Editor:f,EditorBlock:p,EditorState:m,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:b,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=E},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(9),s=n(29),u=n(5),c=n(21),l=u.List,f=u.Repeat,p={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),p=e.getSelection(),h=a.removeRange(u,p,"backward"),d=h.getSelectionAfter(),v=a.splitBlock(h,d),m=v.getSelectionAfter(),y=a.setBlockType(v,m,"atomic"),g=i.create({entity:t}),_=[new o({key:c(),type:"atomic",text:n,characterList:l(f(g,n.length))}),new o({key:c(),type:"unstyled",text:"",characterList:l()})],b=r.createFromArray(_),E=a.replaceWithFragment(y,m,b),w=E.merge({selectionBefore:p,selectionAfter:E.getSelectionAfter().set("hasFocus",!0)});return s.push(e,w,"insert-fragment")}};e.exports=p},function(e,t,n){"use strict";var r=n(5).OrderedMap,i={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=i},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:T(e)}function n(e){return a(e)?e:C(e)}function r(e){return s(e)?e:I(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function m(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function E(e){this.next=e}function w(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!O(e)}function M(e){return e&&"function"==typeof e.next}function x(e){var t=O(e);return t&&t.call(e)}function O(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function N(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function C(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return N(e)?new D(e):M(e)?new z(e):k(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new E(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,C(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?I(e).map(H).toList():W(e)?C(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),yn===mn&&(yn=0,gn={}),yn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[Ee(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Oe(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Ne(e){var t=De();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Tn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(c===l)return Tn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ce(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ce(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ce([],r):d;if(d&&h>f&&aHt;y-=Ht){var g=f>>>y≫m=m.array[g]=Ae(m.array[g],r)}m.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new E(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new E(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new E(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return w(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),y(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:w(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new E(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:w(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:w(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new E(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:w(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?C:s(e)?I:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:w(e,i,n[t?r-i++:i++])})},e(j,C),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new E(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:w(e,a,n[a])})},j.prototype[Yt]=!0,e(A,I),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!M(r))return new E(S);var i=0;return new E(function(){var t=r.next();return t.done?t:w(e,i++,t.value)})},e(z,I),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return w(e,i,r[i++])})},e(V,I),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new V(this._value,_(t,n)-g(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:w(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,mn=255,yn=0,gn={};e(ae,$),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?ye():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ye()},ae.prototype.merge=function(){return we(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return we(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ye(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return we(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return we(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ye(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?me(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=wn)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,m=l?d?c:c^u:c|u,y=l?d?Oe(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Ne.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ne.prototype.insert=function(e,t){return this.splice(e,0,t)},Ne.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Ne.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ce([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var On,Nn,Tn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,C),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new E(function(){var i=n.next();return i.done?i:w(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,I),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new E(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(Qe,C),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return w(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(mt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,ye()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+mt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:vt(this,n)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Cn=dt.prototype;Cn.delete=Cn.remove,Cn.deleteIn=Cn.removeIn=bn.removeIn,Cn.merge=bn.merge,Cn.mergeWith=bn.mergeWith,Cn.mergeIn=bn.mergeIn,Cn.mergeDeep=bn.mergeDeep,Cn.mergeDeepWith=bn.mergeDeepWith,Cn.mergeDeepIn=bn.mergeDeepIn,Cn.setIn=bn.setIn,Cn.update=bn.update,Cn.updateIn=bn.updateIn,Cn.withMutations=bn.withMutations,Cn.asMutable=bn.asMutable,Cn.asImmutable=bn.asImmutable,e(yt,te),yt.of=function(){return this(arguments)},yt.fromKeys=function(e){return this(n(e).keySeq())},yt.prototype.toString=function(){return this.__toString("Set {","}")},yt.prototype.has=function(e){return this._map.has(e)},yt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},yt.prototype.remove=function(e){return _t(this,this._map.remove(e))},yt.prototype.clear=function(){return _t(this,this._map.clear())},yt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Nt(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Nt(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Tt()},xt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Nt(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Nt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new E(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Ot;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=E,Ct(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return wt(a(this)?this.valueSeq():this)},toSet:function(){return yt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Ne(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(m)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(It).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new E(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:w(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,function(){try{Object.defineProperty(Bn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Ct(n,{flip:function(){return at(this,Ve(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},Ct(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var p=f[0];if("IMMUTABLE"===l)return t.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});var h=i.getRemovalRange(s,u,e.getText().slice(p.start,p.end),p.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,l,t),h=p.start,d=p.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e}(c.getCharacterList(),a,u):c.getCharacterList().slice(0,a).concat(l.getCharacterList().slice(u));var f=c.merge({text:c.getText().slice(0,a)+l.getText().slice(u),characterList:n}),p=i.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===o?f:null});return i=i.merge(p).filter(function(e){return!!e}),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:a,focusKey:o,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),i=n(21),o=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||o(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),c=u.getText(),l=u.getCharacterList(),f=u.merge({text:c.slice(0,r),characterList:l.slice(0,r)}),p=i(),h=f.merge({key:p,text:c.slice(r),characterList:l.slice(r),data:a()}),d=s.toSeq().takeUntil(function(e){return e===u}),v=s.toSeq().skipUntil(function(e){return e===u}).rest(),m=d.concat([[f.getKey(),f],[h.getKey(),h]],v).toOrderedMap();return e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return m.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function o(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return p()}var a=n(15)||function(e){for(var t=1;t0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):o(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r0?i.getInlineStyleAt(r-1):o(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var i="insert-characters"!==r,o=c.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),l=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var p={currentContent:l,directionMap:o,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=m},function(e,t,n){"use strict";function r(e,t){return e===t}var i=n(5),o=n(31),a=n(8),s=i.List,u=i.Repeat,c=i.Record,l=o.thatReturnsTrue,f=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],o=t?t.getDecorations(e):s(u(null,n)),c=e.getCharacterList();return a(o,r,l,function(e,t){var n,u,h,d;i.push(new p({start:e,end:t,decoratorKey:o.get(e),leaves:(n=c.slice(e,t).toList(),u=e,h=[],d=n.map(function(e){return e.getStyle()}).toList(),a(d,r,l,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(i)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(5),s=n(33),u=n(21),c=n(34),l=a.List,f=a.Record,p=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),i=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=c(e),new o({key:u(),text:e,type:"unstyled",characterList:l(p(i.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset();return t<=this.getEndOffset()&&o<=n}if(e!==r&&e!==i)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,i=n(5),o=n(36),a=n(39),s=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),c=s(n.keySeq().zip(u));return null!=t&&i.is(t,c)?t:c}};e.exports=u},function(e,t,n){"use strict";var r=n(37),i=n(38),o=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?i.isStrong(t)||o(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function i(e){var t=r(e);return null==t?s.NEUTRAL:p.exec(t)?s.RTL:s.LTR}function o(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=i(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),o(e,t)}var s=n(38),u=n(17),c="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",l="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+c+l+"]"),p=new RegExp("["+c+l+"]"),h={firstStrongChar:r,firstStrongCharDir:i,resolveBlockDir:o,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function i(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function o(e){c=e}var a=n(17),s="LTR",u="RTL",c=null,l={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:i(e)},setGlobalDir:o,initGlobalDir:function(){o(s)},getGlobalDir:function(){return c||this.initGlobalDir(),c||a(!1),c}};e.exports=l},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var i=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==o;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var p=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,o);return void this.update(i.push(t,p,"insert-characters"))}f&&this.update(i.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===i.get(e).getMutability()?e:null}var i=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?r(e.getBlockForKey(n).getEntityAt(i-1)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):ib,C));var R=O||o,B={className:P,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":I,key:k};void 0!==T&&(B=i({},B,{contentEditable:T,suppressContentEditableWarning:!0}));var K=s.createElement(A,B,s.createElement(R,L));_.push({block:K,wrapperTemplate:j,key:k,offsetKey:I}),b=j?S.getDepth():null,E=j}for(var U=[],F=0;F<_.length;){var q=_[F];if(q.wrapperTemplate){var Y=[];do{Y.push(_[F].block),F++}while(F<_.length&&_[F].wrapperTemplate===q.wrapperTemplate);var H=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},Y);U.push(H)}else U.push(q.block),F++}return s.createElement("div",{"data-contents":"true"},U)},t}(s.Component);e.exports=f},function(e,t,n){"use strict";function r(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var i=n(15)||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(i.offsetHeight+o.y))>0&&c.setTop(i,c.getTop(i)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),c=this.props.tree.size-1,l=r(this.props.selection,n);return this.props.tree.map(function(r,h){var d=r.get("leaves"),v=d.size-1,m=d.map(function(r,i){var f=a.encode(n,h,i),p=r.get("start"),d=r.get("end");return s.createElement(o,{key:f,offsetKey:f,blockKey:n,start:p,selection:l?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(p,d),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===c&&i===v})}).toArray(),g=r.get("decoratorKey");if(null==g)return m;if(!e.props.decorator)return m;var _=y(e.props.decorator),b=_.getComponentForKey(g);if(!b)return m;var E=_.getPropsForKey(g),w=a.encode(n,h,0),S=u.slice(d.first().get("start"),d.last().get("end")),k=p.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(b,i({},E,{decoratedText:S,dir:k,key:w,entityKey:t.getEntityAt(r.get("start")),offsetKey:w}),m)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,i=r+t.text.length;if(e.hasEdgeWithin(n,r,i)){var o,u=a.findDOMNode(this),c=u.firstChild;o=c.nodeType===Node.TEXT_NODE?c:"BR"===c.tagName?u:c.firstChild,s(e,o,n,r,i)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,c=u.reduce(function(e,t){var i={},o=n[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(i.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,i)},{});if(a){var l=a(u);c=r(c,l)}return o.createElement("span",{"data-offset-key":s,ref:"leaf",style:c},o.createElement(i,null,e))},t}(o.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),i=n(53),o=n(54).isBrowser("IE <= 11"),a=o?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=o?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=i.findDOMNode(this);return""===e.children?!function(e){return o?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,a.contains(i,t))}function i(e){return"Windows"===o.platformName?e.replace(/^\s*NT/,""):e}var o=n(55),a=n(58),s=n(59),u=n(60),c={isBrowser:function(e){return r(o.browserName,o.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(o.browserArchitecture,null,e)},isDevice:function(e){return r(o.deviceName,null,e)},isEngine:function(e){return r(o.engineName,o.engineVersion,e)},isPlatform:function(e){return r(o.platformName,o.platformFullVersion,e,i)},isPlatformArchitecture:function(e){return r(o.platformArchitecture,null,e)}};e.exports=s(c,u)},function(e,t,n){"use strict";var r,i="Unknown",o={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||i,browserFullVersion:a.browser.version||i,browserMinorVersion:s.minor||i,browserName:a.browser.name||i,browserVersion:a.browser.major||i,deviceName:a.device.model||i,engineName:a.engine.name||i,engineVersion:a.engine.version||i,platformArchitecture:a.cpu.architecture||i,platformName:(r=a.os.name,o[r]||r||i),platformVersion:a.os.version||i,platformFullVersion:a.os.version||i};e.exports=u},function(e,t,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",p="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},d={rgx:function(){for(var e,t,n,r,i,o,a,s=0,u=arguments;s0?2==i.length?"function"==typeof i[1]?e[i[0]]=i[1].call(this,a):e[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?e[i[0]]=a?a.replace(i[1],i[2]):void 0:e[i[0]]=a?i[1].call(this,a,i[2]):void 0:4==i.length&&(e[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):e[i]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return b.contains(e,t)}):function(e,t){var n=e.split(y);if(n.length>0&&n.length<=2||d(!1),1===n.length)return i(n[0],t);var r=n[0],o=n[1];return c(r)&&c(o)||d(!1),i(">="+r,t)&&i("<="+o,t)}(e=n[0].trim(),t)}function i(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(v),i=s(e),c=i.modifier,l=i.rangeComponents;switch(c){case"<":return o(r,l);case"<=":return-1===(n=h(r,l))||0===n;case">=":return a(r,l);case">":return function(e,t){return 1===h(e,t)}(r,l);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,s=parseInt(r[i],10);return u(s)&&(r[i]=s+1+""),a(e,n)&&o(e,r)}(r,l);default:return function(e,t){return 0===h(e,t)}(r,l)}}function o(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(v),n=t[0].match(g);return n||d(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function c(e){return!s(e).modifier}function l(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,_=/^(\d*)(.*)/,b={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=b},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var i={};for(var o in e)n.call(e,o)&&(i[o]=t.call(r,e[o],o,e));return i}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&o(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function i(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var o=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(o(document.documentElement,n)){var c=t.getSelection(),l=e.getAnchorKey(),f=e.getAnchorOffset(),p=e.getFocusKey(),h=e.getFocusOffset(),d=e.getIsBackward();if(!c.extend&&d){var v=l,m=f;l=p,f=h,p=v,h=m,d=!1}var y=l===a&&s<=f&&u>=f,g=p===a&&s<=h&&u>=h;if(y&&g)return c.removeAllRanges(),i(c,n,f-s),void r(c,n,h-s);if(d){if(g&&(c.removeAllRanges(),i(c,n,h-s)),y){var _=c.focusNode,b=c.focusOffset;c.removeAllRanges(),i(c,n,f-s),r(c,_,b)}}else y&&(c.removeAllRanges(),i(c,n,f-s)),g&&r(c,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],i=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=i},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var i=n(70),o=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(o(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[i(t)]:e.style&&e.style[i(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),i=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=i(e),o=e===t?document.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=i},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,d)))return;return void u(d,function(e){e&&t.update(r(p,l(h),e))})}var v=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,v)))return this._internalDrag?void this.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(p,h)):void this.update(r(p,h,n.getText()))}}};e.exports=p},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var i=n(81),o=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},c=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=c},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i=0;h--)if(!(null!=p&&h>0&&o.isSurrogatePair(p,h-1))){if(e.setStart(l,h),!r(a(e),n))break;u=l,c=h}if(-1===h||0===l.childNodes.length)break;f=i(l=l.childNodes[h])}return e.setStart(u,c),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function i(e){return p.test(e)}function o(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var l=null;if(null!=s)l=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);l=c(a(f))}return{key:l,offset:0}}var p=r.childNodes[n-1],h=null,d=null;if(a(p)){var v=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(p);h=c(a(v)),d=i(v)}else h=c(s),d=i(p);return{key:h,offset:d}}function i(e){var t=e.textContent;return"\n"===t?0:t.length}var o=n(83),a=n(84),s=n(86),u=n(17),c=n(39);e.exports=function(e,t,n,i,a,u){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:s(e,c(o(n)),i,c(o(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return l?(p={key:c(o(n)),offset:i},h=r(t,a,u)):f?(h={key:c(o(a)),offset:u},p=r(t,n,i)):(p=r(t,n,i),h=r(t,a,u),n===a&&i===u&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var u=r.getKeyBefore(i);null==u?a=i:(a=u,s=r.getBlockForKey(u).getText().length)}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=e.getSelection(),o=e.getCurrentContent(),a=i;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o}else if(e.isSelectionAtStartOfContent())return o;if((a=t(e))===i)return o}return r.removeRange(o,a,n)}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),s=r.getBackward(a);return o(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var i="\\s|(?![_])"+n(111).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['‘’]|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:['‘’]|(?!"+i+").)*(?:"+i+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),s=r.getForward(a);return o(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),i=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),i=n(29),o=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),c=e.getCurrentContent(),l=c.getBlockForKey(u).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(c,a),p=r.removeRange(c,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,v=h.merge({anchorOffset:d,focusOffset:d}),m=r.replaceWithFragment(p,v,f),y=i.push(e,m,"insert-fragment");return i.acceptSelection(y,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(i)},0)):void n(i);var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n,"insert-fragment")}var i=n(4),o=n(6),a=n(80),s=n(9),u=n(122),c=n(29),l=n(47),f=n(85),p=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var d=n.getFiles(),v=n.getText();if(d.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(d)))return;return void f(d,function(e){if(e=e||v){var n=t.props.editorState,r=p(e),a=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=i.createFromArray(f),d=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(c.push(n,d,"insert-fragment"))}})}}var m=[],y=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(y,g))){if(y&&(m=p(y)),!this.props.stripPastedStyles){var _=this.getClipboard();if(n.isRichText()&&_){if(-1!==g.indexOf(this.getEditorKey())||1===m.length&&1===_.size&&_.first().getText()===y)return void this.update(r(this.props.editorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(m,_))return void this.update(r(this.props.editorState,_));if(g){var b=u.processHTML(g,this.props.blockRenderMap);if(b){var E=i.createFromArray(b);return void this.update(r(this.props.editorState,E))}}this.setClipboard(null)}if(m){var w=this.props.editorState,S=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),k=u.processText(m,S),M=i.createFromArray(k);this.update(r(this.props.editorState,M))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),i=n(5),o=n(123),a=n(21),s=n(125),u=n(34),c=i.List,l=i.Repeat,f={processHTML:function(e,t){return o(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:c(l(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function i(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(M,t))}]}}function o(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):L.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(y,e,t),"ul"!==y&&"ol"!==y||(n&&(p+=1),n=y),o||-1===f.indexOf(y)?n&&"li"===o&&"li"===y&&(w=i(a(y,n,h),p),o=y,g=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"):(w=i(a(y,n,h),p),o=y,g=!0);var M=e.firstChild;null!=M&&(y=M.nodeName.toLowerCase());for(var x=null;M;){M instanceof HTMLAnchorElement&&M.href&&u(M)?function(){var e=M,t={};j.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new m(e.href).toString(),x=d.create("LINK","MUTABLE",t)}():x=void 0,w=s(w,c(M,t,n,o,f,p,h,x||v));var N=M.nextSibling;N&&f.indexOf(y)>=0&&o&&(w=s(w,r())),N&&(y=N.nodeName.toLowerCase()),M=N}return g&&(w=s(w,i(_,p))),w}var l,f=n(6),p=n(7),h=n(41),d=n(14),v=n(5),m=n(124),y=n(21),g=n(125),_=n(17),b=n(39),E=n(34),w=v.List,S=v.OrderedSet,k=" ",M=4,x=new RegExp("\r","g"),O=new RegExp("\n","g"),N=new RegExp(" ","g"),T=new RegExp(" ?","g"),C=new RegExp("​?","g"),I=["bold","bolder","500","600","700","800","900"],L=["light","lighter","100","200","300","400"],D={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},j=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(x,"").replace(N,k).replace(T,"").replace(C,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),i=t(e);if(!i)return null;l=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=c(i,S(),"ul",null,o,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=E(e);var i=n+e.length,o=b(t).inlines.slice(n,i),a=b(t).entities.slice(n,i),s=w(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=i+1,new p({key:y(),type:b(t).blocks[r].type,depth:b(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),i=n(53),o=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=o(e,i.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var i=t.getSelection();return 0===i.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),i=n(42),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=o},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var i=n(100),o=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),c=s&&a.isBrowser("Firefox < 29"),l=i.hasCommandModifier,f=i.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),c=i.setBlockType(n,s,n.getBlockForKey(r).getType()),l=i.removeRange(c,s,"backward");if(l!==n)return o.push(e,l,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?o.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=o.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return i.setBlockType(o,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),i=n(134),o=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var o=i.stringify(e.getEntityAt(r));n.hasOwnProperty(o)||(n[o]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:o(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(i.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),i=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var s=e.getText(),u=e.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),i=n(8),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return i(u,o,a,function(t,i){var o=e.getText();s.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,i.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,i=null,o=[],a=0,s=0,u=e.length;s0&&n!==i&&(o.push([i,r(e.slice(a,s),t.slice(a,s))]),a=s)}return o.push([n,r(e.slice(a),t.slice(a))]),o};var i=n(150),o=t.EMPTY_SET=new i.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:T(e)}function n(e){return a(e)?e:C(e)}function r(e){return s(e)?e:I(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function m(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function E(e){this.next=e}function w(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!O(e)}function M(e){return e&&"function"==typeof e.next}function x(e){var t=O(e);return t&&t.call(e)}function O(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function N(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function C(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return N(e)?new D(e):M(e)?new z(e):k(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new E(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,C(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?I(e).map(H).toList():W(e)?C(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),yn===mn&&(yn=0,gn={}),yn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[Ee(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Oe(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Ne(e){var t=De();if(null===e||void 0===e)return t;if(Te(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Tn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Tn)return e;s=null}if(c===l)return Tn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ce(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ce(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ce([],r):d;if(d&&h>f&&aHt;y-=Ht){var g=f>>>y≫m=m.array[g]=Ae(m.array[g],r)}m.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new E(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new E(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new E(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return w(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),y(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:w(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new E(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:w(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:w(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new E(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:w(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?C:s(e)?I:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:w(e,i,n[t?r-i++:i++])})},e(j,C),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new E(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:w(e,a,n[a])})},j.prototype[Yt]=!0,e(A,I),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!M(r))return new E(S);var i=0;return new E(function(){var t=r.next();return t.done?t:w(e,i++,t.value)})},e(z,I),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return w(e,i,r[i++])})},e(V,I),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new V(this._value,_(t,n)-g(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:w(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,mn=255,yn=0,gn={};e(ae,$),ae.of=function(){var e=Kt.call(arguments,0);return ye().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?ye():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ye()},ae.prototype.merge=function(){return we(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return we(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ye(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return we(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return we(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,ye(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?me(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=wn)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,m=l?d?c:c^u:c|u,y=l?d?Oe(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Ne.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ne.prototype.insert=function(e,t){return this.splice(e,0,t)},Ne.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Ne.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ce([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var On,Nn,Tn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,C),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new E(function(){var i=n.next();return i.done?i:w(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,I),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new E(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(Qe,C),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return w(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(mt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,ye()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+mt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:vt(this,r)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Cn=dt.prototype;Cn.delete=Cn.remove,Cn.deleteIn=Cn.removeIn=bn.removeIn,Cn.merge=bn.merge,Cn.mergeWith=bn.mergeWith,Cn.mergeIn=bn.mergeIn,Cn.mergeDeep=bn.mergeDeep,Cn.mergeDeepWith=bn.mergeDeepWith,Cn.mergeDeepIn=bn.mergeDeepIn,Cn.setIn=bn.setIn,Cn.update=bn.update,Cn.updateIn=bn.updateIn,Cn.withMutations=bn.withMutations,Cn.asMutable=bn.asMutable,Cn.asImmutable=bn.asImmutable,e(yt,te),yt.of=function(){return this(arguments)},yt.fromKeys=function(e){return this(n(e).keySeq())},yt.prototype.toString=function(){return this.__toString("Set {","}")},yt.prototype.has=function(e){return this._map.has(e)},yt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},yt.prototype.remove=function(e){return _t(this,this._map.remove(e))},yt.prototype.clear=function(){return _t(this,this._map.clear())},yt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Nt(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Nt(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Tt()},xt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Nt(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Nt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new E(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Ot;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=E,Ct(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return wt(a(this)?this.valueSeq():this)},toSet:function(){return yt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Ne(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(m)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(It).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new E(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:w(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,Ct(n,{flip:function(){return at(this,Ve(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},Ct(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=n(151),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,i({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,c.default)(n,(i(e={},p.default.root,!0),i(e,p.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(l.default,o({},d,{title:a,className:n}),u.default.createElement("span",{className:p.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,l.default.root);var c=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=o?"submit":"button";return s.default.createElement("button",i({type:f},a,{onMouseDown:c,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&m.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var u=v++;n=d||(d=s(t)),r=c.bind(null,n,u,!1),i=c.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var l={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),d=null,v=0,m=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=p()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,i({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(c.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,l.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",o({},i,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=i(e,2),n=t[0],r=t[1],o=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},o)})}}]),t}();t.default=p},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),i=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var i=r,o=e.getLength();i=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return o(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,c.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,o){return new e(a.EditorState.push(this._editorState,i(t,n,o),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,o,s){var u=i(t,n,s);return new e(a.EditorState.createWithContent(u,o),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){switch(e){case y.BLOCK_TYPE.HEADER_ONE:return["h1"];case y.BLOCK_TYPE.HEADER_TWO:return["h2"];case y.BLOCK_TYPE.HEADER_THREE:return["h3"];case y.BLOCK_TYPE.HEADER_FOUR:return["h4"];case y.BLOCK_TYPE.HEADER_FIVE:return["h5"];case y.BLOCK_TYPE.HEADER_SIX:return["h6"];case y.BLOCK_TYPE.UNORDERED_LIST_ITEM:case y.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case y.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case y.BLOCK_TYPE.CODE:return["pre","code"];case y.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,c,l=Object.assign||function(e){for(var t=1;t",k=/^data-([a-z0-9-]+)$/,M=(i(s={},g,{element:"strong"}),i(s,_,{element:"code"}),i(s,b,{element:"em"}),i(s,E,{element:"del"}),i(s,w,{element:"ins"}),s),x=[g,b,w,E,_],O=(i(u={},y.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),i(u,y.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),N=(i(c={},y.ENTITY_TYPE.LINK,function(e,t){var n=O.hasOwnProperty(e)?O[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else k.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),i(c,y.ENTITY_TYPE.IMAGE,function(e,t){var n=O.hasOwnProperty(e)?O[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else k.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),c),T=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[M,x]),i=f(r,2),o=i[0],a=i[1];this.inlineStyles=o,this.styleOrder=a}return p(e,[{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")}}catch(e){f=!0,p=e}finally{try{!c&&m.return&&m.return()}finally{if(f)throw p}}}},{key:"writeEndTag",value:function(e){var t=o(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value;n.unshift("")}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var i=e.getCharacterList();return(0,y.getEntityRanges)(r,i).map(function(e){var r=f(e,2),i=r[0],o=r[1].map(function(e){var r=f(e,2),i=r[0],o=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(i),u=!0,c=!1,p=void 0;try{for(var h,m=t.styleOrder[Symbol.iterator]();!(u=(h=m.next()).done);u=!0){var g=h.value;if((g!==_||n!==y.BLOCK_TYPE.CODE)&&o.has(g)){var b=t.inlineStyles[g],E=b.element,w=b.attributes,k=b.style;if(null==E&&(E="span"),w=(0,d.default)(w),null!=k){var M=(0,v.default)(k);w=null==w?{style:M}:l({},w,{style:M})}s="<"+E+a(w)+">"+s+""}}}catch(e){c=!0,p=e}finally{try{!u&&m.return&&m.return()}finally{if(c)throw p}}return s}).join(""),s=i?m.Entity.get(i):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===y.ENTITY_TYPE.LINK?""+o+"":null!=u&&u===y.ENTITY_TYPE.IMAGE?"":o}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,i=n.characterMeta,o=!1;if(r===d&&(o=!0,r=""),"pre"===e.tagName){var c=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,i);r=c.text,i=c.characterMeta}else{var l=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var i=e.length;i--;)" "===e.charAt(i)&&" "===e.charAt(i-1)&&(e=e.slice(0,i)+e.slice(i+1),t=t.slice(0,i).concat(t.slice(i+1)));var o=(0,a.default)({text:e,characterMeta:t},d+" ",d);e=o.text,t=o.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+d,d);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,i);r=l.text,i=l.characterMeta}((r=r.split(d).join("\n")).length||o)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:i.toList(),depth:e.depth}))}),t.length?t:[p]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){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(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case c.BLOCK_TYPE.UNORDERED_LIST_ITEM:case c.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),i=!b.hasOwnProperty(t),o={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};i&&(this.blockList.push(o),r&&(this.depth+=1)),this.blockStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),i&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],i=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(c.INLINE_STYLE.BOLD);case"i":case"em":return e.add(c.INLINE_STYLE.ITALIC);case"ins":return e.add(c.INLINE_STYLE.UNDERLINE);case"code":return e.add(c.INLINE_STYLE.CODE);case"del":return e.add(c.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(i=g[t](t,e)||i),n.styleStack.push(r),n.entityStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),E.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(d)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(d),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],i=s.CharacterMetadata.create({style:n,entity:r}),o=(0,u.Repeat)(i,e.length);t.textFragments.push({text:e,characterMeta:o})}},{key:"processNode",value:function(e){if(e.nodeType===l.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();_.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===l.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var i=e.text,o=e.characterMeta,a=t.length,s=r.length,u=[],c=o.slice(0,0),l=0,f=i.indexOf(t);-1!==f;)u.push(i.slice(l,f)+r),c=c.concat(o.slice(l,f),n(o.slice(f,f+1),s)),l=f+a,f=i.indexOf(t,l);return u.push(i.slice(l)),c=c.concat(o.slice(l)),{text:u.join(""),characterMeta:c}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,i){o(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var c=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=c,!c&&i&&i.forEach(a.appendChild,a),a}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.attributes[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=s.name,c=s.value;t.push(u+(c?'="'+c.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}var l=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+l+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+l+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=l,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function i(e){return e.replace(/\)/g,"%29")}function o(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.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()===t&&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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],i=n[1];if(!r)return"";var o=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return i.has(l)&&(o="**"+o+"**"),i.has(d)&&(o="++"+o+"++"),i.has(p)&&(o="_"+o+"_"),i.has(h)&&(o="~~"+o+"~~"),i.has(f)&&(o=t===u.BLOCK_TYPE.CODE?o:"`"+o+"`"),o}).join(""),v=r?c.Entity.get(r):null;if(null!=v&&v.getType()===u.ENTITY_TYPE.LINK){var m=v.getData(),y=m.url||"",g=m.title?' "'+o(m.title)+'"':"";return"["+s+"]("+i(y)+g+")"}if(null!=v&&v.getType()===u.ENTITY_TYPE.IMAGE){var _=v.getData(),b=_.src||"";return"!["+(_.alt?' "'+o(_.alt)+'"':"")+"]("+i(b)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,i=n(203),o=(r=i)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=l({},e||p),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function i(e,t){if(this.options=l({},t||p),this.links=e,this.rules=d.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=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function o(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=l({},e||p),this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),c=Object.prototype.hasOwnProperty,l=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=l({},h),h.gfm=l({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,i,o,a,s,u,c,l,f;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(o=o[0].match(this.rules.item)).length,l=0;l1&&s.length>1||(e=o.slice(l+1).join("\n")+e,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&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.paragraph.exec(e)))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var d={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};d.link=s(d.link)("inside",d._inside)("href",d._href)(),d.reflink=s(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:s(d.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(d.text)("]|","~+]|")()}),d.breaks=l({},d.gfm,{br:s(d.br)("{2,}","*")(),text:s(d.gfm.text)("{2,}","*")()}),i.rules=d,i.parse=function(e,t,n){return new i(t,n).parse(e)},i.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},o.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},o.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},o.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},o.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},o.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},o.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},o.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},o.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},o.prototype.em=function(e){return new u.ElementNode("em",[],[e])},o.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},o.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},o.prototype.del=function(e){return new u.ElementNode("del",[],[e])},o.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},o.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},o.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},o.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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(e,t){t=l({},p,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return o.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(c=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},ePhh:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("F8kA"),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?i.a.Children.map(this.props.children,function(t){return t.type===s.a?i.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return i.a.createElement("div",c({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},i.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Additional Comments"),i.a.createElement("div",{className:"control"},i.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return i.a.createElement("div",null,i.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),i.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?i.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to flag this observation."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},l.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jVml:function(e,t,n){"use strict";var r=window.TreeSnap.metaLabels;t.a=r},jyFz:function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},mOuh:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"To")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"CC/BCC")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Subject")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"}),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}),i.a.createElement("p",{className:"help"},"You may use ",i.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return i.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},i.a.createElement("h5",{className:"title is-5"},"Message Preview"),i.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?i.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?i.a.createElement("table",{className:"table"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Category"),i.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?i.a.createElement("tr",null,i.a.createElement("th",null,"Found Near"),i.a.createElement("td",null,t.formatted)):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,u()(e.date.date).format("LL"))),i.a.createElement("tr",null,i.a.createElement("th",{colSpan:2},i.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?i.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):i.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return i.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},i.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),i.a.createElement("div",{className:"modal-card modal-card-lg"},i.a.createElement(c.a,{visible:this.state.loading}),i.a.createElement("header",{className:"modal-card-head"},i.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),i.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),i.a.createElement("section",{className:"modal-card-body"},i.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),i.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):i.a.createElement("div",{className:"flexbox flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),i.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,m=function(){return p.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,u,c,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function _(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-l>=a}function E(){var e=m();if(b(e))return w(e);u=setTimeout(E,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function w(e){return u=void 0,h&&i?_(e):(i=o=void 0,s)}function S(){var e=m(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(E,t),f?_(e):s}(c);if(p)return u=setTimeout(E,t),_(c)}return void 0===u&&(u=setTimeout(E,t)),s}return t=g(t)||0,y(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:w(m())},S}}).call(t,n("DuR2"))},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(){return function e(t){if(!(this instanceof e))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=l.getInstance(),r=new w(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var M=void 0!==i.ResizeObserver?i.ResizeObserver:k;t.default=M}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/7.31711383b283780003ff.js b/public/js/7.31711383b283780003ff.js new file mode 100644 index 00000000..8336a8a3 --- /dev/null +++ b/public/js/7.31711383b283780003ff.js @@ -0,0 +1 @@ +webpackJsonp([7],{"0dG/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;to&&(a=0),n.setState({previousIndex:i,currentIndex:a,isTransitioning:a!==i,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new c.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,i){var o=n.state,a=o.scrollingUpDown,s=o.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var c=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(c,i)}},n._handleSwiping=function(e,t,r,i){var o=n.state,a=o.galleryWidth,s=o.isTransitioning,u=o.scrollingUpDown,c=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var l=t<0?1:-1,f=i/a*100;Math.abs(f)>=100&&(f=100);var p={transition:"transform "+c+"ms ease-out"};n.setState({offsetPercentage:l*f,style:p})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-image"},e.imageSet?o.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return o.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),o.default.createElement("img",{alt:e.originalAlt,src:e.original})):o.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&o.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbnail-inner"},o.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(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(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,i)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;p.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;p.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,i=n.scrollingLeftRight,o=Math.abs(e);Math.abs(t)>o&&!r&&!i?this.setState({scrollingUpDown:!0}):i||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this._sufficientSwipeOffset()&&!t||i||(o+=e),e<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.currentIndex0&&(er&&this._setThumbsTranslate(n+o))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,i=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){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 e*(i/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=t.previousIndex,o=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?o=-100+r:1===n&&0===e&&r<0&&(o=100+r),n!==i?0===i&&0===e&&0===r&&"left"===this.direction?o=100:1===i&&1===e&&0===r&&"right"===this.direction&&(o=-100):0===n&&1===e&&0===r&&"left"===this.direction?o=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(o=100),o}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=this.props,o=i.infinite,a=i.items,s=i.useTranslate3D,u=i.isRTL,c=-100*n,l=a.length-1,f=(c+100*e)*(u?-1:1)+r;o&&a.length>2&&(0===n&&e===l?f=-100*(u?-1:1)+r:n===l&&0===e&&(f=100*(u?-1:1)+r)),o&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var p="translate("+f+"%, 0)";return s&&(p="translate3d("+f+"%, 0, 0)"),{WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state.thumbsTranslate,o=r?-1*i:i;return this._isThumbnailHorizontal()?(e="translate(0, "+i+"px)",n&&(e="translate3d(0, "+i+"px, 0)")):(e="translate("+o+"px, 0)",n&&(e="translate3d("+o+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,c=t.scrollingLeftRight,l=this.props,f=l.infinite,p=l.preventDefaultTouchmoveEvent,h=l.isRTL,d=this._getThumbnailStyle(),v=this.props.thumbnailPosition,y=this._slideLeft,m=this._slideRight,g=[],_=[],b=[];this.props.items.forEach(function(t,i){var a=e._getAlignmentClassName(i),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",c=t.renderItem||e.props.renderItem||e._renderItem,l=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,p=!e.props.lazyLoad||a||e._lazyLoaded[i];p&&e.props.lazyLoad&&(e._lazyLoaded[i]=!0);var h=e._getSlideStyle(i),d=o.default.createElement("div",{key:i,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},p?c(t):o.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(i)&&g.push(d):g.push(d),e.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,onClick:function(t){return e._onThumbnailClick(t,i)}},l(t))),e.props.showBullets){b.push(o.default.createElement("button",{key:i,type:"button",className:["image-gallery-bullet",n===i?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:i,currentIndex:n}),e.slideToIndex.call(e,i,r)},"aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}});var w=o.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+v+" "+(h?"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(m,!this._canSlideRight())),o.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:p||c},o.default.createElement("div",{className:"image-gallery-slides"},g))]:o.default.createElement("div",{className:"image-gallery-slides"},g),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))),E=["image-gallery",this.props.additionalClass,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return o.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:E,"aria-live":"polite"},o.default.createElement("div",{className:"image-gallery-content"+(i?" fullscreen":"")},("bottom"===v||"right"===v)&&w,this.props.showThumbnails&&o.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+v+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},o.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:d,"aria-label":"Thumbnail Navigation"},_))),("top"===v||"left"===v)&&w))}}]),t}();h.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,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},h.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(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"5L7H":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},i.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return i.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Or Create New Collection"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})),i.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to add this observation to a collection."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},l.defaultProps={collections:[],onSubmit:function(){}}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("O27J"),a=n.n(o),s=n("KSGD"),u=n.n(s),c=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),c(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return i.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},i.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(i.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=l,l.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},l.defaultProps={type:"success"},l.stack=[]},"6Vhz":function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0}},{key:"clear",value:function(e){return this.errors.hasOwnProperty(e)&&delete this.errors[e],this}}]),e}();t.a=a},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,i=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:i,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,i=t.onSwiping,o=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,c=t.onSwipingRight,l=t.onSwipedRight,f=t.onSwipingUp,p=t.onSwipedUp,h=t.onSwipingDown,d=t.onSwipedDown,v=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var y=u(e,this.swipeable);if(!(y.absXy.absY?y.deltaX>0?(a||s)&&(a&&a(e,y.absX),m=!0):(c||l)&&(c&&c(e,y.absX),m=!0):y.deltaY>0?(f||p)&&(f&&f(e,y.absY),m=!0):(h||d)&&(h&&h(e,y.absY),m=!0),this.swipeable.swiping=!0,m&&v&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,i=t.onSwiped,o=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,c=t.onSwipedDown,l=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var p=f.velocity>r;i&&i(e,f.deltaX,f.deltaY,p,f.velocity),f.absX>f.absY?f.deltaX>0?o&&o(e,f.deltaX,p):a&&a(e,f.deltaX,p):f.deltaY>0?s&&s(e,f.deltaY,p):c&&c(e,f.deltaY,p)}else l&&l(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,i.createElement(this.props.nodeName,e,this.props.children)},t}(i.Component);c.propTypes={onSwiped:o.func,onSwiping:o.func,onSwipingUp:o.func,onSwipingRight:o.func,onSwipingDown:o.func,onSwipingLeft:o.func,onSwipedUp:o.func,onSwipedRight:o.func,onSwipedDown:o.func,onSwipedLeft:o.func,onTap:o.func,flickThreshold:o.number,delta:o.number,preventDefaultTouchmoveEvent:o.bool,stopPropagation:o.bool,nodeName:o.string,trackMouse:o.bool,disabled:o.bool,innerRef:o.func,children:o.node,rotationAngle:o.number},c.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=c},"8ji5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("F8kA"),u=n("saAw"),c=n("LZyd"),l=n("5zKI"),f=n("PJh5"),p=n.n(f),h=n("mOuh"),d=n("JsH4"),v=n("IFrJ"),y=n("OE/d"),m=n("t4LX"),g=n("Xxa5"),_=n.n(g),b=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({processing:this.state.processing.concat(t.id)}),e.prev=1,e.next=4,axios.post("/web/group/"+this.props.groupID+"/request/accept",{request_id:t.id});case 4:e.sent,this.setState({requests:this.state.requests.filter(function(e){return e.id!==t.id}),processing:this.state.processing.filter(function(e){return e!==t.id})}),n&&(l.a.push("Accepted "+t.user.name+"'s request to join this group"),this.props.onAccept()),e.next=15;break;case 9:if(e.prev=9,e.t0=e.catch(1),!n){e.next=14;break}return l.a.push("We encountered and error while processing your request. Please try again later","danger"),e.abrupt("return");case 14:throw new Error(e.t0.response.status);case 15:case"end":return e.stop()}},e,this,[[1,9]])}));return function(t){return e.apply(this,arguments)}}()},{key:"reject",value:function(e){var t=this;this.setState({processing:this.state.processing.concat(e.id)}),axios.post("/web/group/"+this.props.groupID+"/request/reject",{request_id:e.id}).then(function(n){t.setState({requests:t.state.requests.map(function(t){return t.id===e.id&&(t.rejected=!0),t}),processing:t.state.processing.filter(function(t){return t!==e.id})}),l.a.push("Rejected "+e.user.name+"'s request to join this group","warning")}).catch(function(e){l.a.push("We encountered and error while processing your request. Please try again later","danger")})}},{key:"acceptAll",value:function(){var e=E(_.a.mark(function e(){var t,n,r;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.state.requests,e.t0=_.a.keys(t);case 2:if((e.t1=e.t0()).done){e.next=19;break}if(n=e.t1.value,void 0!==(r=t[n])&&void 0!==r.id){e.next=7;break}return e.abrupt("continue",2);case 7:if(!r.rejected){e.next=9;break}return e.abrupt("continue",2);case 9:return e.prev=9,e.next=12,this.accept(r,!1);case 12:e.next=17;break;case 14:e.prev=14,e.t2=e.catch(9),l.a.push("Unable to accept "+r.user.name+" at this time, please try again later","danger");case 17:e.next=2;break;case 19:l.a.push("Accepted all requests"),this.props.onAccept();case 21:case"end":return e.stop()}},e,this,[[9,14]])}));return function(){return e.apply(this,arguments)}}()},{key:"undo",value:function(e){var t=this;this.setState({processing:this.state.processing.concat(e.id)}),axios.post("/web/group/"+this.props.groupID+"/request/reset",{request_id:e.id}).then(function(n){t.setState({requests:t.state.requests.map(function(t){return t.id===e.id&&(t.rejected=!1),t}),processing:t.state.processing.filter(function(t){return t!==e.id})})}).catch(function(e){l.a.push("We encountered and error while processing your request. Please try again later","danger")})}},{key:"_renderRows",value:function(){var e=this;return this.state.requests.map(function(t){return i.a.createElement("tr",{key:t.id},i.a.createElement("td",null,t.user.name),i.a.createElement("td",null,t.created_at),i.a.createElement("td",{className:"has-text-right"},e._renderActionButtons(t)))})}},{key:"_renderActionButtons",value:function(e){var t=this;return-1!==this.state.processing.indexOf(e.id)?i.a.createElement("button",{type:"button",className:"button is-link is-loading is-small",disabled:!0}):e.rejected?i.a.createElement("button",{type:"button",className:"button is-link is-small",onClick:function(){return t.undo(e)}},i.a.createElement("span",null,"Undo Rejection")):i.a.createElement("div",null,i.a.createElement("button",{type:"button",className:"button is-success is-small is-outlined mr-0",onClick:function(){return t.accept(e)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-check"})),i.a.createElement("span",null,"Accept")),i.a.createElement("button",{type:"button",className:"button is-danger is-small is-outlined",onClick:function(){return t.reject(e)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-times"})),i.a.createElement("span",null,"Reject")))}},{key:"render",value:function(){return this.state.requests.length<=0?null:i.a.createElement("div",{className:"box"},i.a.createElement("h4",{className:"title is-4"},"Pending Join Requests"),i.a.createElement("table",{className:"table is-striped"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"User Name"),i.a.createElement("th",null,"Request Date"),i.a.createElement("th",{className:"has-text-right"},"Action"))),i.a.createElement("tbody",null,this._renderRows())),i.a.createElement("div",{className:"has-text-right"},i.a.createElement("button",{type:"button",className:"button is-primary",onClick:this.acceptAll.bind(this)},"Accept All")))}}]),t}(),k=S;S.propTypes={groupID:a.a.number.isRequired,onAccept:a.a.func},S.defaultProps={onAccept:function(){}};var M=n("6Vhz"),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=function(){function e(e,t){for(var n=0;n0?i.a.createElement("ul",{className:"pagination-list"},i.a.createElement("li",null,"Page ",i.a.createElement("span",{className:"select is-small"},i.a.createElement("select",{value:this.state.page,onChange:function(t){var n=t.target;return e.goToPage(n.value)}},this.state.pages.map(function(e){return i.a.createElement("option",{value:e,key:"page_"+e},e)})))," out of ",this.state.pages.length," pages")):null,i.a.createElement("a",{href:"javascript:;",className:"pagination-next",onClick:this.nextPage.bind(this),disabled:!this.state.hasMorePages},"Next"))}},{key:"_renderPrivacyModal",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Observation Sharing"),i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",checked:this.state.isSharing,value:1,onChange:function(t){var n=t.target;return e.changeSharingStatus(n.checked)},disabled:this.state.privacyUpdating}),i.a.createElement("span",{className:"ml-1"},"Share my observations with the members of this group. Sharing will include sensitive information such as accurate location coordinates."))),this.state.isOwner?i.a.createElement("div",{className:"field mb-2"},i.a.createElement("label",{className:"label"},"Discoverability"),i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.isPrivate,onChange:function(t){var n=t.target;return e.toggleDiscoverability(parseInt(n.value))}},i.a.createElement("option",{value:1},"Users must be invited to join"),i.a.createElement("option",{value:0},"Allow anyone to find this group and apply to join")))):null,i.a.createElement("button",{type:"button",className:"button is-primary",disabled:this.state.privacyUpdating,onClick:function(){return e.setState({showPrivacyModal:!1})}},"Done"))}},{key:"toggleDiscoverability",value:function(e){var t=this;this.setState({privacyUpdating:!0});var n=this.state.id;axios.patch("/web/group/"+n+"/discoverability",{is_private:e}).then(function(e){t.setState({privacyUpdating:!1,isPrivate:e.data.data.is_private}),l.a.push("Privacy settings updated successfully")}).catch(function(e){console.error(e),t.setState({privacyUpdating:!1});var n=new M.a(e);n.has("general")?l.a.push(n.first("general"),"danger"):n.has("is_private")&&l.a.push(n.first("is_private"),"danger")})}},{key:"changeSharingStatus",value:function(e){var t=this,n=this.state.id;this.setState({privacyUpdating:!1}),axios.patch("/web/group/"+n+"/sharing",{share:e}).then(function(e){t.setState({isSharing:e.data.data,privacyUpdating:!1}),t.loadObservations(t.state),l.a.push("Privacy settings updated successfully")}).catch(function(e){console.error(e),t.setState({privacyUpdating:!1});var n=new M.a(e);n.has("share")?l.a.push(n.first("share"),"danger"):n.has("general")&&l.a.push(n.first("general"),"danger")})}},{key:"saveGroupName",value:function(){var e=this;this.setState({savingName:!0}),axios.put("/web/group/"+this.state.id,{name:this.state.newName}).then(function(t){l.a.push("Group name updated successfully"),e.setState({savingName:!1,updatingName:!1,name:t.data.data.name})}).catch(function(t){e.setState({savingName:!1});var n=new M.a(t);n.has("general")&&alert(n.first("general"))})}},{key:"renderNameForm",value:function(){var e=this;return i.a.createElement("form",{action:"#",method:"post",onSubmit:function(t){t.preventDefault(),e.saveGroupName()}},i.a.createElement("div",{className:"field is-grouped"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("input",{type:"text",className:"input is-large",name:"name",autoFocus:!0,value:this.state.newName,onChange:function(t){var n=t.target;return e.setState({newName:n.value})}})),i.a.createElement("div",{className:"control"},i.a.createElement("button",{className:"button is-primary is-large",type:"submit"},"Done"))))}},{key:"renderName",value:function(){var e=this;return i.a.createElement("h1",{className:"title is-3 is-flex align-items-end"},this.state.name,i.a.createElement("button",{className:"button is-link is-small",type:"button",onClick:function(){return e.setState({updatingName:!0})}},"rename"))}},{key:"render",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("div",{className:"columns"},i.a.createElement("div",{className:"column"},this.state.updatingName?this.renderNameForm():this.renderName()),i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("a",{href:"javascript:;",className:"button is-default",onClick:function(){return e.setState({showPrivacyModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Group Privacy")))),i.a.createElement(k,{groupID:parseInt(this.props.match.params.id),onAccept:this.loadGroup.bind(this)}),i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h4",{className:"title is-4"},"Users")),this.state.isOwner?i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("button",{type:"button",className:"button is-primary mr-0",onClick:function(){return e.setState({showInviteModal:!0})}},i.a.createElement("span",null,"Invite Users")),i.a.createElement("button",{type:"button",className:"button is-gray",onClick:this._deleteGroup.bind(this)},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})))):null),this._renderUsersTable()),this._renderPendingBox(),this._renderObservations(),this._renderPageLinks(),i.a.createElement(c.a,{visible:this.state.showInviteModal,onCloseRequest:function(){return e.setState({showInviteModal:!1})}},i.a.createElement("h4",{className:"title is-4"},"Invite Users",i.a.createElement("button",{className:"delete is-pulled-right",onClick:function(){return e.setState({showInviteModal:!1})},type:"button"})),this._renderForm(),this._renderFormErrors()),i.a.createElement(c.a,{visible:this.state.showPrivacyModal,onCloseRequest:function(){return e.setState({showPrivacyModal:!1})},showCloseButton:!1},i.a.createElement("h4",{className:"title is-4"},"Group Privacy Settings",i.a.createElement("button",{className:"delete is-pulled-right",onClick:function(){return e.setState({showPrivacyModal:!1})},type:"button"})),this._renderPrivacyModal()),i.a.createElement(u.a,{visible:this.state.pageLoading}))}}]),t}();t.default=T;T.propTypes={admin:a.a.bool},T.defaultProps={admin:!0}},AByj:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("h7v/"),u=n("NdNt"),c=n("c8iI"),l=n("0dG/"),f=n.n(l),p=n("PJh5"),h=n.n(p),d=n("LZyd"),v=n("iwoP"),y=n("5L7H"),m=n("jVml"),g=n("mOuh"),_=n("OE/d"),b=n("t4LX"),w=n("F8kA"),E=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},i.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return i.a.createElement(c.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},i.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:i.a.createElement("div",null,i.a.createElement("div",{className:"flexbox observation-tools"},i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-star text-success"})),i.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-flag text-danger"})),i.a.createElement("span",null,"Flag Observation")):null,_.a.can("contact users")?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-envelope text-info"})),i.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return i.a.createElement(d.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return i.a.createElement(v.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h3",{className:"title is-4"},"Add to Collection"),i.a.createElement(y.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:i.a.createElement("tr",{key:n},i.a.createElement("th",null,e),i.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?i.a.createElement("p",{className:"help"},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),b.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return i.a.createElement("div",{className:"box has-text-centered"},i.a.createElement("div",{className:"content"},i.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),i.a.createElement("p",null,"Observation has been deleted successfully"),i.a.createElement(w.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return _.a.can("contact users")?i.a.createElement(E.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},i.a.createElement("option",{value:"US"},"US Units"),i.a.createElement("option",{value:"metric"},"Metric Units")))),_.a.can("delete observations")||_.a.owns(this.observation)?i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})),i.a.createElement("span",null,"Delete"))):null),i.a.createElement("div",{className:"columns mb-none"},i.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},i.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},i.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Submitted By"),i.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?i.a.createElement("tr",null,i.a.createElement("th",null,"Custom Tree Identifier"),i.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?i.a.createElement("tr",null,i.a.createElement("th",null,"ID"),i.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,i=void 0!==m.a[n]?m.a[n]:n,o=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],o=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(i,o,n,r)}),i.a.createElement("tr",null,i.a.createElement("th",null,"Coordinates"),i.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?i.a.createElement("tr",null,i.a.createElement("th",null,"Location Accuracy"),i.a.createElement("td",null,_.a.can("view accurate location")||_.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:i.a.createElement("tr",null,i.a.createElement("th",null,"Photos"),i.a.createElement("td",null,i.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"tabs has-no-shadow"},i.a.createElement("ul",null,i.a.createElement("li",{className:this.getTabClass("photos")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),i.a.createElement("li",{className:this.getTabClass("map")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?i.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},i.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return i.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?i.a.createElement("div",{className:"callout"},i.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?i.a.createElement("div",{style:{width:"100%",position:"relative"}},i.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=M,M.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},M.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},JsH4:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("N7gF"),u=n("PJh5"),c=n.n(u),l=n("5L7H"),f=n("iwoP"),p=n("h7v/"),h=n("NdNt"),d=n("saAw"),v=n("5zKI"),y=n("AByj"),m=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return i.a.createElement(p.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},i.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},i.a.createElement("div",{className:"media callout"},i.a.createElement("div",{className:"media-left mr-0"},i.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),i.a.createElement("div",{className:"media-content"},i.a.createElement("div",{className:"mb-0"},i.a.createElement("strong",null,t.observation_category)),i.a.createElement("div",{className:"mb-0"},"By ",t.user.name),i.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?i.a.createElement("div",{className:"content"},i.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),i.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),i.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):i.a.createElement(l.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return i.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},i.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),i.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Flag Observation"),i.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),v.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";v.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return i.a.createElement("div",{className:"card-footer marks-section"},i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.incorrectMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-times text-danger"})),i.a.createElement("span",null,"Marks")),i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.correctMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-check text-success"})),i.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":E(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,o=this.getAddress(t),a=o.address,u=o.addressLine1,l=o.addressLine2;return i.a.createElement("div",{className:"observation-card-container"},i.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},i.a.createElement("header",{className:"card-header"},i.a.createElement(b.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},i.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-times"})))):null,w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},i.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-check"})))):null),i.a.createElement("div",{className:"relative-block"},i.a.createElement(d.a,{visible:this.state.loading}),i.a.createElement("div",{className:"has-bg-image relative-block is-positioned-relatively"},i.a.createElement("div",{className:"card-image img-bg-zoom",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}},i.a.createElement("a",{href:"javascript:;",className:"sidebar-img-overlay flexbox flex-v-center flex-h-center flex-column z-10",onClick:function(){e.setState({showDetailsModal:!0})}},i.a.createElement("i",{className:"fa fa-photo"}),i.a.createElement("div",{className:"has-text-centered"},"Click for More Details")))),this._renderMarks(),i.a.createElement("div",{className:"card-content"},i.a.createElement("div",{className:"content"},this.props.owner?null:i.a.createElement("span",null,"By ",t.user.name,i.a.createElement("br",null)),i.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),i.a.createElement("br",null),t.custom_id?i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"Custom ID")," ",t.custom_id),i.a.createElement("br",null)):i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||w.a.can("view accurate location")?i.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,i.a.createElement("br",null)):null,i.a.createElement("small",null,c()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?i.a.createElement("div",{className:"text-ellipsis",title:a},i.a.createElement("small",null,i.a.createElement("b",null,"Near")," ",u),i.a.createElement("br",null),i.a.createElement("small",{style:{marginLeft:"35px"}},l)):i.a.createElement("div",{style:{height:48}},"Address is unavailable"))),i.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},i.a.createElement("div",{className:"p-1 relative-block"},i.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},i.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),i.a.createElement("footer",{className:"card-footer card-footer-z-index"},i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},i.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-star"})))),i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},i.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-map"})))),w.a.can("contact users")&&!this.props.owner?i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},i.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},i.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?i.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},i.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?i.a.createElement(_,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=k;k.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},k.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},LZyd:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n=t||n<0||p&&e-l>=a}function w(){var e=y();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?m(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?m(e):s}(c);if(p)return u=setTimeout(w,t),m(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=_(t)||0,g(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(_(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(y())},S}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),m(e,t,{leading:i,maxWait:t,trailing:o})}}).call(t,n("DuR2"))},SldL:function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"==typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=t.regeneratorRuntime=c?e.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={},y={};y[a]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==r&&i.call(g,a)&&(y=g);var _=k.prototype=E.prototype=Object.create(y);S.prototype=_.constructor=k,k.constructor=S,k[u]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(_),e},l.awrap=function(e){return{__await:e}},M(x.prototype),x.prototype[s]=function(){return this},l.AsyncIterator=x,l.async=function(e,t,n,r){var i=new x(b(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},M(_),_[u]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=C,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(N),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(e,t,n,r){var i=t&&t.prototype instanceof E?t:E,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=w(e,t,n);if("normal"===u.type){if(r=n.done?d:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function E(){}function S(){}function k(){}function M(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e){var t;this._invoke=function(n,r){function o(){return new Promise(function(t,o){!function t(n,r,o,a){var s=w(e[n],e,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){u.value=e,o(u)},a)}a(s.arg)}(n,r,t,o)})}return t=t?t.then(o,o):o()}}function O(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,O(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();l=l?u({},T,l):T;var b=(0,S.default)((i(e={},O.default.editor,!0),i(e,O.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=d);var w=void 0;return h||(w=f.default.createElement(_.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:v})),f.default.createElement("div",{className:(0,S.default)(O.default.root,r)},w,f.default.createElement("div",{className:b},f.default.createElement(p.Editor,u({},m,{blockStyleFn:(0,E.default)(o,y),customStyleMap:l,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:c,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(p.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),i=p.Modifier.removeRange(r,n,"forward"),o=i.getSelectionAfter(),a=i.getBlockForKey(o.getStartKey());i=p.Modifier.insertText(i,o,"\n",a.getInlineStyleAt(o.getStartOffset()),null),this._onChange(p.EditorState.push(t,i,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if((0,m.default)(i)&&0===i.getLength()){var o=i.getDepth(),a=0===o?(0,v.default)(e,r,x.BLOCK_TYPE.UNSTYLED):(0,d.default)(e,r,o-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if(!(0,m.default)(i)&&i.getType()!==x.BLOCK_TYPE.UNSTYLED&&i.getLength()===t.getStartOffset()){var o=(0,y.default)(e,r,x.BLOCK_TYPE.UNSTYLED);return this._onChange(o),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=N;var I=new p.CompositeDecorator([w.default]);Object.assign(N,{EditorValue:b.default,decorator:I,createEmptyValue:a,createValueFromString:s}),t.EditorValue=b.default,t.decorator=I,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(6),a=n(40),s=n(7),u=n(32),c=n(41),l=n(43),f=n(44),p=n(50),h=n(9),d=n(14),v=n(16),y=n(29),m=n(100),g=n(131),_=n(33),b=n(133),w={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:b,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=w},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(9),s=n(29),u=n(5),c=n(21),l=u.List,f=u.Repeat,p={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),p=e.getSelection(),h=a.removeRange(u,p,"backward"),d=h.getSelectionAfter(),v=a.splitBlock(h,d),y=v.getSelectionAfter(),m=a.setBlockType(v,y,"atomic"),g=i.create({entity:t}),_=[new o({key:c(),type:"atomic",text:n,characterList:l(f(g,n.length))}),new o({key:c(),type:"unstyled",text:"",characterList:l()})],b=r.createFromArray(_),w=a.replaceWithFragment(m,y,b),E=w.merge({selectionBefore:p,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return s.push(e,E,"insert-fragment")}};e.exports=p},function(e,t,n){"use strict";var r=n(5).OrderedMap,i={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=i},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:N(e)}function n(e){return a(e)?e:I(e)}function r(e){return s(e)?e:C(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!O(e)}function M(e){return e&&"function"==typeof e.next}function x(e){var t=O(e);return t&&t.call(e)}function O(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function N(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function I(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function C(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return T(e)?new D(e):M(e)?new z(e):k(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,C(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?C(e).map(H).toList():W(e)?I(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),mn===yn&&(mn=0,gn={}),mn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Oe(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Te(e){var t=De();if(null===e||void 0===e)return t;if(Ne(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Nn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Nn)return e;s=null}if(c===l)return Nn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ie(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ie(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ie([],r):d;if(d&&h>f&&aHt;m-=Ht){var g=f>>>m≫y=y.array[g]=Ae(y.array[g],r)}y.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),m(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?I:s(e)?C:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):N.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,I),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,C),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!M(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,C),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,C),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new V(this._value,_(t,n)-g(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,mn=0,gn={};e(ae,$),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?me():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=l?d?c:c^u:c|u,m=l?d?Oe(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Te.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Te.prototype.insert=function(e,t){return this.splice(e,0,t)},Te.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Te.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ie([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var On,Tn,Nn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,I),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,C),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,I),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,me()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:vt(this,n)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var In=dt.prototype;In.delete=In.remove,In.deleteIn=In.removeIn=bn.removeIn,In.merge=bn.merge,In.mergeWith=bn.mergeWith,In.mergeIn=bn.mergeIn,In.mergeDeep=bn.mergeDeep,In.mergeDeepWith=bn.mergeDeepWith,In.mergeDeepIn=bn.mergeDeepIn,In.setIn=bn.setIn,In.update=bn.update,In.updateIn=bn.updateIn,In.withMutations=bn.withMutations,In.asMutable=bn.asMutable,In.asImmutable=bn.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return _t(this,this._map.remove(e))},mt.prototype.clear=function(){return _t(this,this._map.clear())},mt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tt(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tt(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Nt()},xt.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tt(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Ot;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,It(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Te(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Ct).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,function(){try{Object.defineProperty(Bn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),It(n,{flip:function(){return at(this,Ve(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},It(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var p=f[0];if("IMMUTABLE"===l)return t.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});var h=i.getRemovalRange(s,u,e.getText().slice(p.start,p.end),p.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,l,t),h=p.start,d=p.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e}(c.getCharacterList(),a,u):c.getCharacterList().slice(0,a).concat(l.getCharacterList().slice(u));var f=c.merge({text:c.getText().slice(0,a)+l.getText().slice(u),characterList:n}),p=i.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===o?f:null});return i=i.merge(p).filter(function(e){return!!e}),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:a,focusKey:o,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),i=n(21),o=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||o(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),c=u.getText(),l=u.getCharacterList(),f=u.merge({text:c.slice(0,r),characterList:l.slice(0,r)}),p=i(),h=f.merge({key:p,text:c.slice(r),characterList:l.slice(r),data:a()}),d=s.toSeq().takeUntil(function(e){return e===u}),v=s.toSeq().skipUntil(function(e){return e===u}).rest(),y=d.concat([[f.getKey(),f],[h.getKey(),h]],v).toOrderedMap();return e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function o(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return p()}var a=n(15)||function(e){for(var t=1;t0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):o(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r0?i.getInlineStyleAt(r-1):o(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var i="insert-characters"!==r,o=c.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),l=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var p={currentContent:l,directionMap:o,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=y},function(e,t,n){"use strict";function r(e,t){return e===t}var i=n(5),o=n(31),a=n(8),s=i.List,u=i.Repeat,c=i.Record,l=o.thatReturnsTrue,f=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],o=t?t.getDecorations(e):s(u(null,n)),c=e.getCharacterList();return a(o,r,l,function(e,t){var n,u,h,d;i.push(new p({start:e,end:t,decoratorKey:o.get(e),leaves:(n=c.slice(e,t).toList(),u=e,h=[],d=n.map(function(e){return e.getStyle()}).toList(),a(d,r,l,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(i)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(5),s=n(33),u=n(21),c=n(34),l=a.List,f=a.Record,p=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),i=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=c(e),new o({key:u(),text:e,type:"unstyled",characterList:l(p(i.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset();return t<=this.getEndOffset()&&o<=n}if(e!==r&&e!==i)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,i=n(5),o=n(36),a=n(39),s=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),c=s(n.keySeq().zip(u));return null!=t&&i.is(t,c)?t:c}};e.exports=u},function(e,t,n){"use strict";var r=n(37),i=n(38),o=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?i.isStrong(t)||o(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function i(e){var t=r(e);return null==t?s.NEUTRAL:p.exec(t)?s.RTL:s.LTR}function o(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=i(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),o(e,t)}var s=n(38),u=n(17),c="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",l="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+c+l+"]"),p=new RegExp("["+c+l+"]"),h={firstStrongChar:r,firstStrongCharDir:i,resolveBlockDir:o,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function i(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function o(e){c=e}var a=n(17),s="LTR",u="RTL",c=null,l={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:i(e)},setGlobalDir:o,initGlobalDir:function(){o(s)},getGlobalDir:function(){return c||this.initGlobalDir(),c||a(!1),c}};e.exports=l},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var i=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==o;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var p=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,o);return void this.update(i.push(t,p,"insert-characters"))}f&&this.update(i.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===i.get(e).getMutability()?e:null}var i=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?r(e.getBlockForKey(n).getEntityAt(i-1)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):ib,I));var R=O||o,B={className:P,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":C,key:k};void 0!==N&&(B=i({},B,{contentEditable:N,suppressContentEditableWarning:!0}));var K=s.createElement(A,B,s.createElement(R,L));_.push({block:K,wrapperTemplate:j,key:k,offsetKey:C}),b=j?S.getDepth():null,w=j}for(var U=[],F=0;F<_.length;){var q=_[F];if(q.wrapperTemplate){var Y=[];do{Y.push(_[F].block),F++}while(F<_.length&&_[F].wrapperTemplate===q.wrapperTemplate);var H=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},Y);U.push(H)}else U.push(q.block),F++}return s.createElement("div",{"data-contents":"true"},U)},t}(s.Component);e.exports=f},function(e,t,n){"use strict";function r(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var i=n(15)||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(i.offsetHeight+o.y))>0&&c.setTop(i,c.getTop(i)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),c=this.props.tree.size-1,l=r(this.props.selection,n);return this.props.tree.map(function(r,h){var d=r.get("leaves"),v=d.size-1,y=d.map(function(r,i){var f=a.encode(n,h,i),p=r.get("start"),d=r.get("end");return s.createElement(o,{key:f,offsetKey:f,blockKey:n,start:p,selection:l?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(p,d),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===c&&i===v})}).toArray(),g=r.get("decoratorKey");if(null==g)return y;if(!e.props.decorator)return y;var _=m(e.props.decorator),b=_.getComponentForKey(g);if(!b)return y;var w=_.getPropsForKey(g),E=a.encode(n,h,0),S=u.slice(d.first().get("start"),d.last().get("end")),k=p.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(b,i({},w,{decoratedText:S,dir:k,key:E,entityKey:t.getEntityAt(r.get("start")),offsetKey:E}),y)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,i=r+t.text.length;if(e.hasEdgeWithin(n,r,i)){var o,u=a.findDOMNode(this),c=u.firstChild;o=c.nodeType===Node.TEXT_NODE?c:"BR"===c.tagName?u:c.firstChild,s(e,o,n,r,i)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,c=u.reduce(function(e,t){var i={},o=n[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(i.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,i)},{});if(a){var l=a(u);c=r(c,l)}return o.createElement("span",{"data-offset-key":s,ref:"leaf",style:c},o.createElement(i,null,e))},t}(o.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),i=n(53),o=n(54).isBrowser("IE <= 11"),a=o?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=o?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=i.findDOMNode(this);return""===e.children?!function(e){return o?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,a.contains(i,t))}function i(e){return"Windows"===o.platformName?e.replace(/^\s*NT/,""):e}var o=n(55),a=n(58),s=n(59),u=n(60),c={isBrowser:function(e){return r(o.browserName,o.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(o.browserArchitecture,null,e)},isDevice:function(e){return r(o.deviceName,null,e)},isEngine:function(e){return r(o.engineName,o.engineVersion,e)},isPlatform:function(e){return r(o.platformName,o.platformFullVersion,e,i)},isPlatformArchitecture:function(e){return r(o.platformArchitecture,null,e)}};e.exports=s(c,u)},function(e,t,n){"use strict";var r,i="Unknown",o={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||i,browserFullVersion:a.browser.version||i,browserMinorVersion:s.minor||i,browserName:a.browser.name||i,browserVersion:a.browser.major||i,deviceName:a.device.model||i,engineName:a.engine.name||i,engineVersion:a.engine.version||i,platformArchitecture:a.cpu.architecture||i,platformName:(r=a.os.name,o[r]||r||i),platformVersion:a.os.version||i,platformFullVersion:a.os.version||i};e.exports=u},function(e,t,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",p="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},d={rgx:function(){for(var e,t,n,r,i,o,a,s=0,u=arguments;s0?2==i.length?"function"==typeof i[1]?e[i[0]]=i[1].call(this,a):e[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?e[i[0]]=a?a.replace(i[1],i[2]):void 0:e[i[0]]=a?i[1].call(this,a,i[2]):void 0:4==i.length&&(e[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):e[i]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return b.contains(e,t)}):function(e,t){var n=e.split(m);if(n.length>0&&n.length<=2||d(!1),1===n.length)return i(n[0],t);var r=n[0],o=n[1];return c(r)&&c(o)||d(!1),i(">="+r,t)&&i("<="+o,t)}(e=n[0].trim(),t)}function i(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(v),i=s(e),c=i.modifier,l=i.rangeComponents;switch(c){case"<":return o(r,l);case"<=":return-1===(n=h(r,l))||0===n;case">=":return a(r,l);case">":return function(e,t){return 1===h(e,t)}(r,l);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,s=parseInt(r[i],10);return u(s)&&(r[i]=s+1+""),a(e,n)&&o(e,r)}(r,l);default:return function(e,t){return 0===h(e,t)}(r,l)}}function o(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(v),n=t[0].match(g);return n||d(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function c(e){return!s(e).modifier}function l(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,_=/^(\d*)(.*)/,b={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=b},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var i={};for(var o in e)n.call(e,o)&&(i[o]=t.call(r,e[o],o,e));return i}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&o(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function i(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var o=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(o(document.documentElement,n)){var c=t.getSelection(),l=e.getAnchorKey(),f=e.getAnchorOffset(),p=e.getFocusKey(),h=e.getFocusOffset(),d=e.getIsBackward();if(!c.extend&&d){var v=l,y=f;l=p,f=h,p=v,h=y,d=!1}var m=l===a&&s<=f&&u>=f,g=p===a&&s<=h&&u>=h;if(m&&g)return c.removeAllRanges(),i(c,n,f-s),void r(c,n,h-s);if(d){if(g&&(c.removeAllRanges(),i(c,n,h-s)),m){var _=c.focusNode,b=c.focusOffset;c.removeAllRanges(),i(c,n,f-s),r(c,_,b)}}else m&&(c.removeAllRanges(),i(c,n,f-s)),g&&r(c,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],i=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=i},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var i=n(70),o=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(o(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[i(t)]:e.style&&e.style[i(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),i=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=i(e),o=e===t?document.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=i},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,d)))return;return void u(d,function(e){e&&t.update(r(p,l(h),e))})}var v=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,v)))return this._internalDrag?void this.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(p,h)):void this.update(r(p,h,n.getText()))}}};e.exports=p},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var i=n(81),o=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},c=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=c},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i=0;h--)if(!(null!=p&&h>0&&o.isSurrogatePair(p,h-1))){if(e.setStart(l,h),!r(a(e),n))break;u=l,c=h}if(-1===h||0===l.childNodes.length)break;f=i(l=l.childNodes[h])}return e.setStart(u,c),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function i(e){return p.test(e)}function o(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var l=null;if(null!=s)l=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);l=c(a(f))}return{key:l,offset:0}}var p=r.childNodes[n-1],h=null,d=null;if(a(p)){var v=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(p);h=c(a(v)),d=i(v)}else h=c(s),d=i(p);return{key:h,offset:d}}function i(e){var t=e.textContent;return"\n"===t?0:t.length}var o=n(83),a=n(84),s=n(86),u=n(17),c=n(39);e.exports=function(e,t,n,i,a,u){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:s(e,c(o(n)),i,c(o(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return l?(p={key:c(o(n)),offset:i},h=r(t,a,u)):f?(h={key:c(o(a)),offset:u},p=r(t,n,i)):(p=r(t,n,i),h=r(t,a,u),n===a&&i===u&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var u=r.getKeyBefore(i);null==u?a=i:(a=u,s=r.getBlockForKey(u).getText().length)}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=e.getSelection(),o=e.getCurrentContent(),a=i;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o}else if(e.isSelectionAtStartOfContent())return o;if((a=t(e))===i)return o}return r.removeRange(o,a,n)}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),s=r.getBackward(a);return o(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var i="\\s|(?![_])"+n(111).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['‘’]|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:['‘’]|(?!"+i+").)*(?:"+i+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),s=r.getForward(a);return o(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),i=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),i=n(29),o=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),c=e.getCurrentContent(),l=c.getBlockForKey(u).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(c,a),p=r.removeRange(c,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,v=h.merge({anchorOffset:d,focusOffset:d}),y=r.replaceWithFragment(p,v,f),m=i.push(e,y,"insert-fragment");return i.acceptSelection(m,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(i)},0)):void n(i);var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n,"insert-fragment")}var i=n(4),o=n(6),a=n(80),s=n(9),u=n(122),c=n(29),l=n(47),f=n(85),p=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var d=n.getFiles(),v=n.getText();if(d.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(d)))return;return void f(d,function(e){if(e=e||v){var n=t.props.editorState,r=p(e),a=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=i.createFromArray(f),d=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(c.push(n,d,"insert-fragment"))}})}}var y=[],m=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(m,g))){if(m&&(y=p(m)),!this.props.stripPastedStyles){var _=this.getClipboard();if(n.isRichText()&&_){if(-1!==g.indexOf(this.getEditorKey())||1===y.length&&1===_.size&&_.first().getText()===m)return void this.update(r(this.props.editorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(y,_))return void this.update(r(this.props.editorState,_));if(g){var b=u.processHTML(g,this.props.blockRenderMap);if(b){var w=i.createFromArray(b);return void this.update(r(this.props.editorState,w))}}this.setClipboard(null)}if(y){var E=this.props.editorState,S=o.create({style:E.getCurrentInlineStyle(),entity:l(E.getCurrentContent(),E.getSelection())}),k=u.processText(y,S),M=i.createFromArray(k);this.update(r(this.props.editorState,M))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),i=n(5),o=n(123),a=n(21),s=n(125),u=n(34),c=i.List,l=i.Repeat,f={processHTML:function(e,t){return o(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:c(l(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function i(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(M,t))}]}}function o(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):L.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(m,e,t),"ul"!==m&&"ol"!==m||(n&&(p+=1),n=m),o||-1===f.indexOf(m)?n&&"li"===o&&"li"===m&&(E=i(a(m,n,h),p),o=m,g=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"):(E=i(a(m,n,h),p),o=m,g=!0);var M=e.firstChild;null!=M&&(m=M.nodeName.toLowerCase());for(var x=null;M;){M instanceof HTMLAnchorElement&&M.href&&u(M)?function(){var e=M,t={};j.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new y(e.href).toString(),x=d.create("LINK","MUTABLE",t)}():x=void 0,E=s(E,c(M,t,n,o,f,p,h,x||v));var T=M.nextSibling;T&&f.indexOf(m)>=0&&o&&(E=s(E,r())),T&&(m=T.nodeName.toLowerCase()),M=T}return g&&(E=s(E,i(_,p))),E}var l,f=n(6),p=n(7),h=n(41),d=n(14),v=n(5),y=n(124),m=n(21),g=n(125),_=n(17),b=n(39),w=n(34),E=v.List,S=v.OrderedSet,k=" ",M=4,x=new RegExp("\r","g"),O=new RegExp("\n","g"),T=new RegExp(" ","g"),N=new RegExp(" ?","g"),I=new RegExp("​?","g"),C=["bold","bolder","500","600","700","800","900"],L=["light","lighter","100","200","300","400"],D={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},j=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(x,"").replace(T,k).replace(N,"").replace(I,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),i=t(e);if(!i)return null;l=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=c(i,S(),"ul",null,o,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=w(e);var i=n+e.length,o=b(t).inlines.slice(n,i),a=b(t).entities.slice(n,i),s=E(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=i+1,new p({key:m(),type:b(t).blocks[r].type,depth:b(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),i=n(53),o=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=o(e,i.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var i=t.getSelection();return 0===i.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),i=n(42),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=o},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var i=n(100),o=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),c=s&&a.isBrowser("Firefox < 29"),l=i.hasCommandModifier,f=i.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),c=i.setBlockType(n,s,n.getBlockForKey(r).getType()),l=i.removeRange(c,s,"backward");if(l!==n)return o.push(e,l,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?o.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=o.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return i.setBlockType(o,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),i=n(134),o=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var o=i.stringify(e.getEntityAt(r));n.hasOwnProperty(o)||(n[o]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:o(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(i.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),i=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var s=e.getText(),u=e.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),i=n(8),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return i(u,o,a,function(t,i){var o=e.getText();s.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,i.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,i=null,o=[],a=0,s=0,u=e.length;s0&&n!==i&&(o.push([i,r(e.slice(a,s),t.slice(a,s))]),a=s)}return o.push([n,r(e.slice(a),t.slice(a))]),o};var i=n(150),o=t.EMPTY_SET=new i.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:N(e)}function n(e){return a(e)?e:I(e)}function r(e){return s(e)?e:C(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!O(e)}function M(e){return e&&"function"==typeof e.next}function x(e){var t=O(e);return t&&t.call(e)}function O(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function N(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function I(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function C(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return T(e)?new D(e):M(e)?new z(e):k(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,C(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?C(e).map(H).toList():W(e)?I(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),mn===yn&&(mn=0,gn={}),mn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Oe(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Te(e){var t=De();if(null===e||void 0===e)return t;if(Ne(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Nn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Nn)return e;s=null}if(c===l)return Nn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ie(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ie(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ie([],r):d;if(d&&h>f&&aHt;m-=Ht){var g=f>>>m≫y=y.array[g]=Ae(y.array[g],r)}y.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),m(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?I:s(e)?C:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):N.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,I),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,C),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!M(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,C),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,C),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new V(this._value,_(t,n)-g(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,mn=0,gn={};e(ae,$),ae.of=function(){var e=Kt.call(arguments,0);return me().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?me():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=l?d?c:c^u:c|u,m=l?d?Oe(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Te.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Te.prototype.insert=function(e,t){return this.splice(e,0,t)},Te.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Te.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ie([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var On,Tn,Nn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,I),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,C),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,I),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,me()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:vt(this,r)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var In=dt.prototype;In.delete=In.remove,In.deleteIn=In.removeIn=bn.removeIn,In.merge=bn.merge,In.mergeWith=bn.mergeWith,In.mergeIn=bn.mergeIn,In.mergeDeep=bn.mergeDeep,In.mergeDeepWith=bn.mergeDeepWith,In.mergeDeepIn=bn.mergeDeepIn,In.setIn=bn.setIn,In.update=bn.update,In.updateIn=bn.updateIn,In.withMutations=bn.withMutations,In.asMutable=bn.asMutable,In.asImmutable=bn.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return _t(this,this._map.remove(e))},mt.prototype.clear=function(){return _t(this,this._map.clear())},mt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tt(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tt(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Nt()},xt.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tt(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Ot;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,It(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Te(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(Ct).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,It(n,{flip:function(){return at(this,Ve(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},It(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=n(151),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,i({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,c.default)(n,(i(e={},p.default.root,!0),i(e,p.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(l.default,o({},d,{title:a,className:n}),u.default.createElement("span",{className:p.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,l.default.root);var c=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=o?"submit":"button";return s.default.createElement("button",i({type:f},a,{onMouseDown:c,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var u=v++;n=d||(d=s(t)),r=c.bind(null,n,u,!1),i=c.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var l={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),d=null,v=0,y=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=p()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,i({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(c.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,l.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",o({},i,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=i(e,2),n=t[0],r=t[1],o=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},o)})}}]),t}();t.default=p},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),i=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var i=r,o=e.getLength();i=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return o(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,c.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,o){return new e(a.EditorState.push(this._editorState,i(t,n,o),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,o,s){var u=i(t,n,s);return new e(a.EditorState.createWithContent(u,o),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){switch(e){case m.BLOCK_TYPE.HEADER_ONE:return["h1"];case m.BLOCK_TYPE.HEADER_TWO:return["h2"];case m.BLOCK_TYPE.HEADER_THREE:return["h3"];case m.BLOCK_TYPE.HEADER_FOUR:return["h4"];case m.BLOCK_TYPE.HEADER_FIVE:return["h5"];case m.BLOCK_TYPE.HEADER_SIX:return["h6"];case m.BLOCK_TYPE.UNORDERED_LIST_ITEM:case m.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case m.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case m.BLOCK_TYPE.CODE:return["pre","code"];case m.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,c,l=Object.assign||function(e){for(var t=1;t",k=/^data-([a-z0-9-]+)$/,M=(i(s={},g,{element:"strong"}),i(s,_,{element:"code"}),i(s,b,{element:"em"}),i(s,w,{element:"del"}),i(s,E,{element:"ins"}),s),x=[g,b,E,w,_],O=(i(u={},m.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),i(u,m.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),T=(i(c={},m.ENTITY_TYPE.LINK,function(e,t){var n=O.hasOwnProperty(e)?O[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else k.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),i(c,m.ENTITY_TYPE.IMAGE,function(e,t){var n=O.hasOwnProperty(e)?O[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else k.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),c),N=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[M,x]),i=f(r,2),o=i[0],a=i[1];this.inlineStyles=o,this.styleOrder=a}return p(e,[{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")}}catch(e){f=!0,p=e}finally{try{!c&&y.return&&y.return()}finally{if(f)throw p}}}},{key:"writeEndTag",value:function(e){var t=o(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value;n.unshift("")}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var i=e.getCharacterList();return(0,m.getEntityRanges)(r,i).map(function(e){var r=f(e,2),i=r[0],o=r[1].map(function(e){var r=f(e,2),i=r[0],o=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(i),u=!0,c=!1,p=void 0;try{for(var h,y=t.styleOrder[Symbol.iterator]();!(u=(h=y.next()).done);u=!0){var g=h.value;if((g!==_||n!==m.BLOCK_TYPE.CODE)&&o.has(g)){var b=t.inlineStyles[g],w=b.element,E=b.attributes,k=b.style;if(null==w&&(w="span"),E=(0,d.default)(E),null!=k){var M=(0,v.default)(k);E=null==E?{style:M}:l({},E,{style:M})}s="<"+w+a(E)+">"+s+""}}}catch(e){c=!0,p=e}finally{try{!u&&y.return&&y.return()}finally{if(c)throw p}}return s}).join(""),s=i?y.Entity.get(i):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===m.ENTITY_TYPE.LINK?""+o+"":null!=u&&u===m.ENTITY_TYPE.IMAGE?"":o}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,i=n.characterMeta,o=!1;if(r===d&&(o=!0,r=""),"pre"===e.tagName){var c=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,i);r=c.text,i=c.characterMeta}else{var l=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var i=e.length;i--;)" "===e.charAt(i)&&" "===e.charAt(i-1)&&(e=e.slice(0,i)+e.slice(i+1),t=t.slice(0,i).concat(t.slice(i+1)));var o=(0,a.default)({text:e,characterMeta:t},d+" ",d);e=o.text,t=o.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+d,d);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,i);r=l.text,i=l.characterMeta}((r=r.split(d).join("\n")).length||o)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:i.toList(),depth:e.depth}))}),t.length?t:[p]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){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(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case c.BLOCK_TYPE.UNORDERED_LIST_ITEM:case c.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),i=!b.hasOwnProperty(t),o={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};i&&(this.blockList.push(o),r&&(this.depth+=1)),this.blockStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),i&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],i=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(c.INLINE_STYLE.BOLD);case"i":case"em":return e.add(c.INLINE_STYLE.ITALIC);case"ins":return e.add(c.INLINE_STYLE.UNDERLINE);case"code":return e.add(c.INLINE_STYLE.CODE);case"del":return e.add(c.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(i=g[t](t,e)||i),n.styleStack.push(r),n.entityStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),w.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(d)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(d),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],i=s.CharacterMetadata.create({style:n,entity:r}),o=(0,u.Repeat)(i,e.length);t.textFragments.push({text:e,characterMeta:o})}},{key:"processNode",value:function(e){if(e.nodeType===l.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();_.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===l.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var i=e.text,o=e.characterMeta,a=t.length,s=r.length,u=[],c=o.slice(0,0),l=0,f=i.indexOf(t);-1!==f;)u.push(i.slice(l,f)+r),c=c.concat(o.slice(l,f),n(o.slice(f,f+1),s)),l=f+a,f=i.indexOf(t,l);return u.push(i.slice(l)),c=c.concat(o.slice(l)),{text:u.join(""),characterMeta:c}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,i){o(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var c=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=c,!c&&i&&i.forEach(a.appendChild,a),a}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.attributes[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=s.name,c=s.value;t.push(u+(c?'="'+c.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}var l=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+l+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+l+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=l,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function i(e){return e.replace(/\)/g,"%29")}function o(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.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()===t&&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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],i=n[1];if(!r)return"";var o=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return i.has(l)&&(o="**"+o+"**"),i.has(d)&&(o="++"+o+"++"),i.has(p)&&(o="_"+o+"_"),i.has(h)&&(o="~~"+o+"~~"),i.has(f)&&(o=t===u.BLOCK_TYPE.CODE?o:"`"+o+"`"),o}).join(""),v=r?c.Entity.get(r):null;if(null!=v&&v.getType()===u.ENTITY_TYPE.LINK){var y=v.getData(),m=y.url||"",g=y.title?' "'+o(y.title)+'"':"";return"["+s+"]("+i(m)+g+")"}if(null!=v&&v.getType()===u.ENTITY_TYPE.IMAGE){var _=v.getData(),b=_.src||"";return"!["+(_.alt?' "'+o(_.alt)+'"':"")+"]("+i(b)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,i=n(203),o=(r=i)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=l({},e||p),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function i(e,t){if(this.options=l({},t||p),this.links=e,this.rules=d.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=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function o(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=l({},e||p),this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),c=Object.prototype.hasOwnProperty,l=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=l({},h),h.gfm=l({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,i,o,a,s,u,c,l,f;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(o=o[0].match(this.rules.item)).length,l=0;l1&&s.length>1||(e=o.slice(l+1).join("\n")+e,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&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.paragraph.exec(e)))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var d={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};d.link=s(d.link)("inside",d._inside)("href",d._href)(),d.reflink=s(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:s(d.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(d.text)("]|","~+]|")()}),d.breaks=l({},d.gfm,{br:s(d.br)("{2,}","*")(),text:s(d.gfm.text)("{2,}","*")()}),i.rules=d,i.parse=function(e,t,n){return new i(t,n).parse(e)},i.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},o.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},o.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},o.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},o.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},o.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},o.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},o.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},o.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},o.prototype.em=function(e){return new u.ElementNode("em",[],[e])},o.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},o.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},o.prototype.del=function(e){return new u.ElementNode("del",[],[e])},o.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},o.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},o.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},o.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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(e,t){t=l({},p,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return o.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(c=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},"h7v/":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("NdNt"),u=n("t4LX"),c=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?i.a.Children.map(this.props.children,function(t){return t.type===s.a?i.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return i.a.createElement("div",c({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},i.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Additional Comments"),i.a.createElement("div",{className:"control"},i.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return i.a.createElement("div",null,i.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),i.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?i.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to flag this observation."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},l.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jVml:function(e,t,n){"use strict";var r=window.TreeSnap.metaLabels;t.a=r},jyFz:function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},mOuh:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"To")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"CC/BCC")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Subject")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"}),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}),i.a.createElement("p",{className:"help"},"You may use ",i.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return i.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},i.a.createElement("h5",{className:"title is-5"},"Message Preview"),i.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?i.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?i.a.createElement("table",{className:"table"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Category"),i.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?i.a.createElement("tr",null,i.a.createElement("th",null,"Found Near"),i.a.createElement("td",null,t.formatted)):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,u()(e.date.date).format("LL"))),i.a.createElement("tr",null,i.a.createElement("th",{colSpan:2},i.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?i.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):i.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return i.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},i.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),i.a.createElement("div",{className:"modal-card modal-card-lg"},i.a.createElement(c.a,{visible:this.state.loading}),i.a.createElement("header",{className:"modal-card-head"},i.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),i.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),i.a.createElement("section",{className:"modal-card-body"},i.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),i.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):i.a.createElement("div",{className:"flexbox flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),i.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,y=function(){return p.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,u,c,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function _(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-l>=a}function w(){var e=y();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?_(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?_(e):s}(c);if(p)return u=setTimeout(w,t),_(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=g(t)||0,m(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(y())},S}}).call(t,n("DuR2"))},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(){return function e(t){if(!(this instanceof e))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=l.getInstance(),r=new E(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var M=void 0!==i.ResizeObserver?i.ResizeObserver:k;t.default=M}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/7.628127b85601a2003538.js b/public/js/7.628127b85601a2003538.js deleted file mode 100644 index 67c6a8dd..00000000 --- a/public/js/7.628127b85601a2003538.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([7],{"0dG/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;to&&(a=0),n.setState({previousIndex:i,currentIndex:a,isTransitioning:a!==i,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new c.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,i){var o=n.state,a=o.scrollingUpDown,s=o.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var c=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(c,i)}},n._handleSwiping=function(e,t,r,i){var o=n.state,a=o.galleryWidth,s=o.isTransitioning,u=o.scrollingUpDown,c=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var l=t<0?1:-1,f=i/a*100;Math.abs(f)>=100&&(f=100);var p={transition:"transform "+c+"ms ease-out"};n.setState({offsetPercentage:l*f,style:p})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-image"},e.imageSet?o.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return o.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),o.default.createElement("img",{alt:e.originalAlt,src:e.original})):o.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&o.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbnail-inner"},o.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(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(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,i)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;p.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;p.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,i=n.scrollingLeftRight,o=Math.abs(e);Math.abs(t)>o&&!r&&!i?this.setState({scrollingUpDown:!0}):i||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this._sufficientSwipeOffset()&&!t||i||(o+=e),e<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.currentIndex0&&(er&&this._setThumbsTranslate(n+o))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,i=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){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 e*(i/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=t.previousIndex,o=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?o=-100+r:1===n&&0===e&&r<0&&(o=100+r),n!==i?0===i&&0===e&&0===r&&"left"===this.direction?o=100:1===i&&1===e&&0===r&&"right"===this.direction&&(o=-100):0===n&&1===e&&0===r&&"left"===this.direction?o=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(o=100),o}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=this.props,o=i.infinite,a=i.items,s=i.useTranslate3D,u=i.isRTL,c=-100*n,l=a.length-1,f=(c+100*e)*(u?-1:1)+r;o&&a.length>2&&(0===n&&e===l?f=-100*(u?-1:1)+r:n===l&&0===e&&(f=100*(u?-1:1)+r)),o&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var p="translate("+f+"%, 0)";return s&&(p="translate3d("+f+"%, 0, 0)"),{WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state.thumbsTranslate,o=r?-1*i:i;return this._isThumbnailHorizontal()?(e="translate(0, "+i+"px)",n&&(e="translate3d(0, "+i+"px, 0)")):(e="translate("+o+"px, 0)",n&&(e="translate3d("+o+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,c=t.scrollingLeftRight,l=this.props,f=l.infinite,p=l.preventDefaultTouchmoveEvent,h=l.isRTL,d=this._getThumbnailStyle(),v=this.props.thumbnailPosition,y=this._slideLeft,m=this._slideRight,g=[],_=[],b=[];this.props.items.forEach(function(t,i){var a=e._getAlignmentClassName(i),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",c=t.renderItem||e.props.renderItem||e._renderItem,l=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,p=!e.props.lazyLoad||a||e._lazyLoaded[i];p&&e.props.lazyLoad&&(e._lazyLoaded[i]=!0);var h=e._getSlideStyle(i),d=o.default.createElement("div",{key:i,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},p?c(t):o.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(i)&&g.push(d):g.push(d),e.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,onClick:function(t){return e._onThumbnailClick(t,i)}},l(t))),e.props.showBullets){b.push(o.default.createElement("button",{key:i,type:"button",className:["image-gallery-bullet",n===i?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:i,currentIndex:n}),e.slideToIndex.call(e,i,r)},"aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}});var w=o.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+v+" "+(h?"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(m,!this._canSlideRight())),o.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:p||c},o.default.createElement("div",{className:"image-gallery-slides"},g))]:o.default.createElement("div",{className:"image-gallery-slides"},g),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))),E=["image-gallery",this.props.additionalClass,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return o.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:E,"aria-live":"polite"},o.default.createElement("div",{className:"image-gallery-content"+(i?" fullscreen":"")},("bottom"===v||"right"===v)&&w,this.props.showThumbnails&&o.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+v+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},o.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:d,"aria-label":"Thumbnail Navigation"},_))),("top"===v||"left"===v)&&w))}}]),t}();h.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,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},h.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(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"5L7H":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},i.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return i.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Or Create New Collection"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})),i.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to add this observation to a collection."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},l.defaultProps={collections:[],onSubmit:function(){}}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("O27J"),a=n.n(o),s=n("KSGD"),u=n.n(s),c=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),c(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return i.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},i.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(i.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=l,l.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},l.defaultProps={type:"success"},l.stack=[]},"6Vhz":function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0}},{key:"clear",value:function(e){return this.errors.hasOwnProperty(e)&&delete this.errors[e],this}}]),e}();t.a=a},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,i=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:i,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,i=t.onSwiping,o=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,c=t.onSwipingRight,l=t.onSwipedRight,f=t.onSwipingUp,p=t.onSwipedUp,h=t.onSwipingDown,d=t.onSwipedDown,v=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var y=u(e,this.swipeable);if(!(y.absXy.absY?y.deltaX>0?(a||s)&&(a&&a(e,y.absX),m=!0):(c||l)&&(c&&c(e,y.absX),m=!0):y.deltaY>0?(f||p)&&(f&&f(e,y.absY),m=!0):(h||d)&&(h&&h(e,y.absY),m=!0),this.swipeable.swiping=!0,m&&v&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,i=t.onSwiped,o=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,c=t.onSwipedDown,l=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var p=f.velocity>r;i&&i(e,f.deltaX,f.deltaY,p,f.velocity),f.absX>f.absY?f.deltaX>0?o&&o(e,f.deltaX,p):a&&a(e,f.deltaX,p):f.deltaY>0?s&&s(e,f.deltaY,p):c&&c(e,f.deltaY,p)}else l&&l(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,i.createElement(this.props.nodeName,e,this.props.children)},t}(i.Component);c.propTypes={onSwiped:o.func,onSwiping:o.func,onSwipingUp:o.func,onSwipingRight:o.func,onSwipingDown:o.func,onSwipingLeft:o.func,onSwipedUp:o.func,onSwipedRight:o.func,onSwipedDown:o.func,onSwipedLeft:o.func,onTap:o.func,flickThreshold:o.number,delta:o.number,preventDefaultTouchmoveEvent:o.bool,stopPropagation:o.bool,nodeName:o.string,trackMouse:o.bool,disabled:o.bool,innerRef:o.func,children:o.node,rotationAngle:o.number},c.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=c},"8ji5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("F8kA"),u=n("saAw"),c=n("LZyd"),l=n("5zKI"),f=n("PJh5"),p=n.n(f),h=n("mOuh"),d=n("JsH4"),v=n("IFrJ"),y=n("OE/d"),m=n("t4LX"),g=n("Xxa5"),_=n.n(g),b=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({processing:this.state.processing.concat(t.id)}),e.prev=1,e.next=4,axios.post("/web/group/"+this.props.groupID+"/request/accept",{request_id:t.id});case 4:e.sent,this.setState({requests:this.state.requests.filter(function(e){return e.id!==t.id}),processing:this.state.processing.filter(function(e){return e!==t.id})}),n&&(l.a.push("Accepted "+t.user.name+"'s request to join this group"),this.props.onAccept()),e.next=15;break;case 9:if(e.prev=9,e.t0=e.catch(1),!n){e.next=14;break}return l.a.push("We encountered and error while processing your request. Please try again later","danger"),e.abrupt("return");case 14:throw new Error(e.t0.response.status);case 15:case"end":return e.stop()}},e,this,[[1,9]])}));return function(t){return e.apply(this,arguments)}}()},{key:"reject",value:function(e){var t=this;this.setState({processing:this.state.processing.concat(e.id)}),axios.post("/web/group/"+this.props.groupID+"/request/reject",{request_id:e.id}).then(function(n){t.setState({requests:t.state.requests.map(function(t){return t.id===e.id&&(t.rejected=!0),t}),processing:t.state.processing.filter(function(t){return t!==e.id})}),l.a.push("Rejected "+e.user.name+"'s request to join this group","warning")}).catch(function(e){l.a.push("We encountered and error while processing your request. Please try again later","danger")})}},{key:"acceptAll",value:function(){var e=E(_.a.mark(function e(){var t,n,r;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.state.requests,e.t0=_.a.keys(t);case 2:if((e.t1=e.t0()).done){e.next=19;break}if(n=e.t1.value,void 0!==(r=t[n])&&void 0!==r.id){e.next=7;break}return e.abrupt("continue",2);case 7:if(!r.rejected){e.next=9;break}return e.abrupt("continue",2);case 9:return e.prev=9,e.next=12,this.accept(r,!1);case 12:e.next=17;break;case 14:e.prev=14,e.t2=e.catch(9),l.a.push("Unable to accept "+r.user.name+" at this time, please try again later","danger");case 17:e.next=2;break;case 19:l.a.push("Accepted all requests"),this.props.onAccept();case 21:case"end":return e.stop()}},e,this,[[9,14]])}));return function(){return e.apply(this,arguments)}}()},{key:"undo",value:function(e){var t=this;this.setState({processing:this.state.processing.concat(e.id)}),axios.post("/web/group/"+this.props.groupID+"/request/reset",{request_id:e.id}).then(function(n){t.setState({requests:t.state.requests.map(function(t){return t.id===e.id&&(t.rejected=!1),t}),processing:t.state.processing.filter(function(t){return t!==e.id})})}).catch(function(e){l.a.push("We encountered and error while processing your request. Please try again later","danger")})}},{key:"_renderRows",value:function(){var e=this;return this.state.requests.map(function(t){return i.a.createElement("tr",{key:t.id},i.a.createElement("td",null,t.user.name),i.a.createElement("td",null,t.created_at),i.a.createElement("td",{className:"has-text-right"},e._renderActionButtons(t)))})}},{key:"_renderActionButtons",value:function(e){var t=this;return-1!==this.state.processing.indexOf(e.id)?i.a.createElement("button",{type:"button",className:"button is-link is-loading is-small",disabled:!0}):e.rejected?i.a.createElement("button",{type:"button",className:"button is-link is-small",onClick:function(){return t.undo(e)}},i.a.createElement("span",null,"Undo Rejection")):i.a.createElement("div",null,i.a.createElement("button",{type:"button",className:"button is-success is-small is-outlined mr-0",onClick:function(){return t.accept(e)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-check"})),i.a.createElement("span",null,"Accept")),i.a.createElement("button",{type:"button",className:"button is-danger is-small is-outlined",onClick:function(){return t.reject(e)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-times"})),i.a.createElement("span",null,"Reject")))}},{key:"render",value:function(){return this.state.requests.length<=0?null:i.a.createElement("div",{className:"box"},i.a.createElement("h4",{className:"title is-4"},"Pending Join Requests"),i.a.createElement("table",{className:"table is-striped"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"User Name"),i.a.createElement("th",null,"Request Date"),i.a.createElement("th",{className:"has-text-right"},"Action"))),i.a.createElement("tbody",null,this._renderRows())),i.a.createElement("div",{className:"has-text-right"},i.a.createElement("button",{type:"button",className:"button is-primary",onClick:this.acceptAll.bind(this)},"Accept All")))}}]),t}(),k=S;S.propTypes={groupID:a.a.number.isRequired,onAccept:a.a.func},S.defaultProps={onAccept:function(){}};var M=n("6Vhz"),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=function(){function e(e,t){for(var n=0;n0?i.a.createElement("ul",{className:"pagination-list"},i.a.createElement("li",null,"Page ",i.a.createElement("span",{className:"select is-small"},i.a.createElement("select",{value:this.state.page,onChange:function(t){var n=t.target;return e.goToPage(n.value)}},this.state.pages.map(function(e){return i.a.createElement("option",{value:e,key:"page_"+e},e)})))," out of ",this.state.pages.length," pages")):null,i.a.createElement("a",{href:"javascript:;",className:"pagination-next",onClick:this.nextPage.bind(this),disabled:!this.state.hasMorePages},"Next"))}},{key:"_renderPrivacyModal",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Observation Sharing"),i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",checked:this.state.isSharing,value:1,onChange:function(t){var n=t.target;return e.changeSharingStatus(n.checked)},disabled:this.state.privacyUpdating}),i.a.createElement("span",{className:"ml-1"},"Share my observations with the members of this group. Sharing will include sensitive information such as accurate location coordinates."))),this.state.isOwner?i.a.createElement("div",{className:"field mb-2"},i.a.createElement("label",{className:"label"},"Discoverability"),i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.isPrivate,onChange:function(t){var n=t.target;return e.toggleDiscoverability(parseInt(n.value))}},i.a.createElement("option",{value:1},"Users must be invited to join"),i.a.createElement("option",{value:0},"Allow anyone to find this group and apply to join")))):null,i.a.createElement("button",{type:"button",className:"button is-primary",disabled:this.state.privacyUpdating,onClick:function(){return e.setState({showPrivacyModal:!1})}},"Done"))}},{key:"toggleDiscoverability",value:function(e){var t=this;this.setState({privacyUpdating:!0});var n=this.state.id;axios.patch("/web/group/"+n+"/discoverability",{is_private:e}).then(function(e){t.setState({privacyUpdating:!1,isPrivate:e.data.data.is_private}),l.a.push("Privacy settings updated successfully")}).catch(function(e){console.error(e),t.setState({privacyUpdating:!1});var n=new M.a(e);n.has("general")?l.a.push(n.first("general"),"danger"):n.has("is_private")&&l.a.push(n.first("is_private"),"danger")})}},{key:"changeSharingStatus",value:function(e){var t=this,n=this.state.id;this.setState({privacyUpdating:!1}),axios.patch("/web/group/"+n+"/sharing",{share:e}).then(function(e){t.setState({isSharing:e.data.data,privacyUpdating:!1}),t.loadObservations(t.state),l.a.push("Privacy settings updated successfully")}).catch(function(e){console.error(e),t.setState({privacyUpdating:!1});var n=new M.a(e);n.has("share")?l.a.push(n.first("share"),"danger"):n.has("general")&&l.a.push(n.first("general"),"danger")})}},{key:"saveGroupName",value:function(){var e=this;this.setState({savingName:!0}),axios.put("/web/group/"+this.state.id,{name:this.state.newName}).then(function(t){l.a.push("Group name updated successfully"),e.setState({savingName:!1,updatingName:!1,name:t.data.data.name})}).catch(function(t){e.setState({savingName:!1});var n=new M.a(t);n.has("general")&&alert(n.first("general"))})}},{key:"renderNameForm",value:function(){var e=this;return i.a.createElement("form",{action:"#",method:"post",onSubmit:function(t){t.preventDefault(),e.saveGroupName()}},i.a.createElement("div",{className:"field is-grouped"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("input",{type:"text",className:"input is-large",name:"name",autoFocus:!0,value:this.state.newName,onChange:function(t){var n=t.target;return e.setState({newName:n.value})}})),i.a.createElement("div",{className:"control"},i.a.createElement("button",{className:"button is-primary is-large",type:"submit"},"Done"))))}},{key:"renderName",value:function(){var e=this;return i.a.createElement("h1",{className:"title is-3 is-flex align-items-end"},this.state.name,i.a.createElement("button",{className:"button is-link is-small",type:"button",onClick:function(){return e.setState({updatingName:!0})}},"rename"))}},{key:"render",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("div",{className:"columns"},i.a.createElement("div",{className:"column"},this.state.updatingName?this.renderNameForm():this.renderName()),i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("a",{href:"javascript:;",className:"button is-default",onClick:function(){return e.setState({showPrivacyModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Group Privacy")))),i.a.createElement(k,{groupID:parseInt(this.props.match.params.id),onAccept:this.loadGroup.bind(this)}),i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h4",{className:"title is-4"},"Users")),this.state.isOwner?i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("button",{type:"button",className:"button is-primary mr-0",onClick:function(){return e.setState({showInviteModal:!0})}},i.a.createElement("span",null,"Invite Users")),i.a.createElement("button",{type:"button",className:"button is-gray",onClick:this._deleteGroup.bind(this)},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})))):null),this._renderUsersTable()),this._renderPendingBox(),this._renderObservations(),this._renderPageLinks(),i.a.createElement(c.a,{visible:this.state.showInviteModal,onCloseRequest:function(){return e.setState({showInviteModal:!1})}},i.a.createElement("h4",{className:"title is-4"},"Invite Users",i.a.createElement("button",{className:"delete is-pulled-right",onClick:function(){return e.setState({showInviteModal:!1})},type:"button"})),this._renderForm(),this._renderFormErrors()),i.a.createElement(c.a,{visible:this.state.showPrivacyModal,onCloseRequest:function(){return e.setState({showPrivacyModal:!1})},showCloseButton:!1},i.a.createElement("h4",{className:"title is-4"},"Group Privacy Settings",i.a.createElement("button",{className:"delete is-pulled-right",onClick:function(){return e.setState({showPrivacyModal:!1})},type:"button"})),this._renderPrivacyModal()),i.a.createElement(u.a,{visible:this.state.pageLoading}))}}]),t}();t.default=T;T.propTypes={admin:a.a.bool},T.defaultProps={admin:!0}},AByj:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("h7v/"),u=n("NdNt"),c=n("c8iI"),l=n("0dG/"),f=n.n(l),p=n("PJh5"),h=n.n(p),d=n("LZyd"),v=n("iwoP"),y=n("5L7H"),m=n("jVml"),g=n("mOuh"),_=n("OE/d"),b=n("t4LX"),w=n("F8kA"),E=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},i.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return i.a.createElement(c.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},i.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:i.a.createElement("div",null,i.a.createElement("div",{className:"flexbox observation-tools"},i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-star text-success"})),i.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-flag text-danger"})),i.a.createElement("span",null,"Flag Observation")):null,_.a.can("contact users")?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-envelope text-info"})),i.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return i.a.createElement(d.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return i.a.createElement(v.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h3",{className:"title is-4"},"Add to Collection"),i.a.createElement(y.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:i.a.createElement("tr",{key:n},i.a.createElement("th",null,e),i.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?i.a.createElement("p",{className:"help"},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),b.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return i.a.createElement("div",{className:"box has-text-centered"},i.a.createElement("div",{className:"content"},i.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),i.a.createElement("p",null,"Observation has been deleted successfully"),i.a.createElement(w.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return _.a.can("contact users")?i.a.createElement(E.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},i.a.createElement("option",{value:"US"},"US Units"),i.a.createElement("option",{value:"metric"},"Metric Units")))),_.a.can("delete observations")||_.a.owns(this.observation)?i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})),i.a.createElement("span",null,"Delete"))):null),i.a.createElement("div",{className:"columns mb-none"},i.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},i.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},i.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Submitted By"),i.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?i.a.createElement("tr",null,i.a.createElement("th",null,"Custom Tree Identifier"),i.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?i.a.createElement("tr",null,i.a.createElement("th",null,"ID"),i.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,i=void 0!==m.a[n]?m.a[n]:n,o=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],o=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(i,o,n,r)}),i.a.createElement("tr",null,i.a.createElement("th",null,"Coordinates"),i.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?i.a.createElement("tr",null,i.a.createElement("th",null,"Location Accuracy"),i.a.createElement("td",null,_.a.can("view accurate location")||_.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:i.a.createElement("tr",null,i.a.createElement("th",null,"Photos"),i.a.createElement("td",null,i.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"tabs has-no-shadow"},i.a.createElement("ul",null,i.a.createElement("li",{className:this.getTabClass("photos")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),i.a.createElement("li",{className:this.getTabClass("map")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?i.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},i.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return i.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?i.a.createElement("div",{className:"callout"},i.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?i.a.createElement("div",{style:{width:"100%",position:"relative"}},i.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=M,M.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},M.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},JsH4:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("N7gF"),u=n("PJh5"),c=n.n(u),l=n("5L7H"),f=n("iwoP"),p=n("h7v/"),h=n("NdNt"),d=n("saAw"),v=n("5zKI"),y=n("AByj"),m=function(){function e(e,t){for(var n=0;n0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return i.a.createElement(p.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},i.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},i.a.createElement("div",{className:"media callout"},i.a.createElement("div",{className:"media-left mr-0"},i.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),i.a.createElement("div",{className:"media-content"},i.a.createElement("div",{className:"mb-0"},i.a.createElement("strong",null,t.observation_category)),i.a.createElement("div",{className:"mb-0"},"By ",t.user.name),i.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?i.a.createElement("div",{className:"content"},i.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),i.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),i.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):i.a.createElement(l.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return i.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},i.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),i.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Flag Observation"),i.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),v.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";v.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return i.a.createElement("div",{className:"card-footer marks-section"},i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.incorrectMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-times text-danger"})),i.a.createElement("span",null,"Marks")),i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.correctMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-check text-success"})),i.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":E(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,o=this.getAddress(t),a=o.address,u=o.addressLine1,l=o.addressLine2;return i.a.createElement("div",{className:"observation-card-container"},i.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},i.a.createElement("header",{className:"card-header"},i.a.createElement(b.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},i.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-times"})))):null,w.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},i.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-check"})))):null),i.a.createElement("div",{className:"relative-block"},i.a.createElement(d.a,{visible:this.state.loading}),i.a.createElement("div",{className:"has-bg-image relative-block"},i.a.createElement("div",{className:"card-image",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}})),this._renderMarks(),i.a.createElement("div",{className:"card-content"},i.a.createElement("div",{className:"content"},this.props.owner?null:i.a.createElement("span",null,"By ",t.user.name,i.a.createElement("br",null)),i.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),i.a.createElement("br",null),t.custom_id?i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"Custom ID")," ",t.custom_id),i.a.createElement("br",null)):i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||w.a.can("view accurate location")?i.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,i.a.createElement("br",null)):null,i.a.createElement("small",null,c()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?i.a.createElement("div",{className:"text-ellipsis",title:a},i.a.createElement("small",null,i.a.createElement("b",null,"Near")," ",u),i.a.createElement("br",null),i.a.createElement("small",{style:{marginLeft:"35px"}},l)):i.a.createElement("div",{style:{height:48}},"Address is unavailable"))),i.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},i.a.createElement("div",{className:"p-1 relative-block"},i.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},i.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),i.a.createElement("footer",{className:"card-footer card-footer-z-index"},i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},i.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-star"})))),i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},i.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-map"})))),w.a.can("contact users")&&!this.props.owner?i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},i.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},i.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?i.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},i.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?i.a.createElement(_,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=k;k.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},k.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},LZyd:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n=t||n<0||p&&e-l>=a}function w(){var e=y();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?m(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?m(e):s}(c);if(p)return u=setTimeout(w,t),m(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=_(t)||0,g(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(_(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(y())},S}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),m(e,t,{leading:i,maxWait:t,trailing:o})}}).call(t,n("DuR2"))},SldL:function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"==typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=t.regeneratorRuntime=c?e.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={},y={};y[a]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==r&&i.call(g,a)&&(y=g);var _=k.prototype=E.prototype=Object.create(y);S.prototype=_.constructor=k,k.constructor=S,k[u]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(_),e},l.awrap=function(e){return{__await:e}},M(x.prototype),x.prototype[s]=function(){return this},l.AsyncIterator=x,l.async=function(e,t,n,r){var i=new x(b(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},M(_),_[u]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=C,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(N),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(e,t,n,r){var i=t&&t.prototype instanceof E?t:E,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=w(e,t,n);if("normal"===u.type){if(r=n.done?d:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function E(){}function S(){}function k(){}function M(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e){var t;this._invoke=function(n,r){function o(){return new Promise(function(t,o){!function t(n,r,o,a){var s=w(e[n],e,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){u.value=e,o(u)},a)}a(s.arg)}(n,r,t,o)})}return t=t?t.then(o,o):o()}}function O(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,O(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();l=l?u({},T,l):T;var b=(0,S.default)((i(e={},O.default.editor,!0),i(e,O.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=d);var w=void 0;return h||(w=f.default.createElement(_.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:v})),f.default.createElement("div",{className:(0,S.default)(O.default.root,r)},w,f.default.createElement("div",{className:b},f.default.createElement(p.Editor,u({},m,{blockStyleFn:(0,E.default)(o,y),customStyleMap:l,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:c,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(p.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),i=p.Modifier.removeRange(r,n,"forward"),o=i.getSelectionAfter(),a=i.getBlockForKey(o.getStartKey());i=p.Modifier.insertText(i,o,"\n",a.getInlineStyleAt(o.getStartOffset()),null),this._onChange(p.EditorState.push(t,i,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if((0,m.default)(i)&&0===i.getLength()){var o=i.getDepth(),a=0===o?(0,v.default)(e,r,x.BLOCK_TYPE.UNSTYLED):(0,d.default)(e,r,o-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if(!(0,m.default)(i)&&i.getType()!==x.BLOCK_TYPE.UNSTYLED&&i.getLength()===t.getStartOffset()){var o=(0,y.default)(e,r,x.BLOCK_TYPE.UNSTYLED);return this._onChange(o),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=N;var I=new p.CompositeDecorator([w.default]);Object.assign(N,{EditorValue:b.default,decorator:I,createEmptyValue:a,createValueFromString:s}),t.EditorValue=b.default,t.decorator=I,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(6),a=n(40),s=n(7),u=n(32),c=n(41),l=n(43),f=n(44),p=n(50),h=n(9),d=n(14),v=n(16),y=n(29),m=n(100),g=n(131),_=n(33),b=n(133),w={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:b,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=w},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(9),s=n(29),u=n(5),c=n(21),l=u.List,f=u.Repeat,p={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),p=e.getSelection(),h=a.removeRange(u,p,"backward"),d=h.getSelectionAfter(),v=a.splitBlock(h,d),y=v.getSelectionAfter(),m=a.setBlockType(v,y,"atomic"),g=i.create({entity:t}),_=[new o({key:c(),type:"atomic",text:n,characterList:l(f(g,n.length))}),new o({key:c(),type:"unstyled",text:"",characterList:l()})],b=r.createFromArray(_),w=a.replaceWithFragment(m,y,b),E=w.merge({selectionBefore:p,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return s.push(e,E,"insert-fragment")}};e.exports=p},function(e,t,n){"use strict";var r=n(5).OrderedMap,i={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=i},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:N(e)}function n(e){return a(e)?e:I(e)}function r(e){return s(e)?e:C(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!O(e)}function M(e){return e&&"function"==typeof e.next}function x(e){var t=O(e);return t&&t.call(e)}function O(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function N(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function I(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function C(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return T(e)?new D(e):M(e)?new z(e):k(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,C(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?C(e).map(H).toList():W(e)?I(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),mn===yn&&(mn=0,gn={}),mn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Oe(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Te(e){var t=De();if(null===e||void 0===e)return t;if(Ne(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Nn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Nn)return e;s=null}if(c===l)return Nn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ie(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ie(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ie([],r):d;if(d&&h>f&&aHt;m-=Ht){var g=f>>>m≫y=y.array[g]=Ae(y.array[g],r)}y.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),m(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?I:s(e)?C:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):N.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,I),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,C),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!M(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,C),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,C),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new V(this._value,_(t,n)-g(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,mn=0,gn={};e(ae,$),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?me():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=l?d?c:c^u:c|u,m=l?d?Oe(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Te.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Te.prototype.insert=function(e,t){return this.splice(e,0,t)},Te.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Te.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ie([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var On,Tn,Nn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,I),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,C),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,I),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,me()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:vt(this,n)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var In=dt.prototype;In.delete=In.remove,In.deleteIn=In.removeIn=bn.removeIn,In.merge=bn.merge,In.mergeWith=bn.mergeWith,In.mergeIn=bn.mergeIn,In.mergeDeep=bn.mergeDeep,In.mergeDeepWith=bn.mergeDeepWith,In.mergeDeepIn=bn.mergeDeepIn,In.setIn=bn.setIn,In.update=bn.update,In.updateIn=bn.updateIn,In.withMutations=bn.withMutations,In.asMutable=bn.asMutable,In.asImmutable=bn.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return _t(this,this._map.remove(e))},mt.prototype.clear=function(){return _t(this,this._map.clear())},mt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tt(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tt(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Nt()},xt.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tt(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Ot;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,It(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Te(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Ct).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,function(){try{Object.defineProperty(Bn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),It(n,{flip:function(){return at(this,Ve(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return G(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},It(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var p=f[0];if("IMMUTABLE"===l)return t.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});var h=i.getRemovalRange(s,u,e.getText().slice(p.start,p.end),p.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,l,t),h=p.start,d=p.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e}(c.getCharacterList(),a,u):c.getCharacterList().slice(0,a).concat(l.getCharacterList().slice(u));var f=c.merge({text:c.getText().slice(0,a)+l.getText().slice(u),characterList:n}),p=i.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===o?f:null});return i=i.merge(p).filter(function(e){return!!e}),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:a,focusKey:o,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),i=n(21),o=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||o(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),c=u.getText(),l=u.getCharacterList(),f=u.merge({text:c.slice(0,r),characterList:l.slice(0,r)}),p=i(),h=f.merge({key:p,text:c.slice(r),characterList:l.slice(r),data:a()}),d=s.toSeq().takeUntil(function(e){return e===u}),v=s.toSeq().skipUntil(function(e){return e===u}).rest(),y=d.concat([[f.getKey(),f],[h.getKey(),h]],v).toOrderedMap();return e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function o(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return p()}var a=n(15)||function(e){for(var t=1;t0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):o(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r0?i.getInlineStyleAt(r-1):o(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var i="insert-characters"!==r,o=c.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),l=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var p={currentContent:l,directionMap:o,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=c.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=y},function(e,t,n){"use strict";function r(e,t){return e===t}var i=n(5),o=n(31),a=n(8),s=i.List,u=i.Repeat,c=i.Record,l=o.thatReturnsTrue,f=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],o=t?t.getDecorations(e):s(u(null,n)),c=e.getCharacterList();return a(o,r,l,function(e,t){var n,u,h,d;i.push(new p({start:e,end:t,decoratorKey:o.get(e),leaves:(n=c.slice(e,t).toList(),u=e,h=[],d=n.map(function(e){return e.getStyle()}).toList(),a(d,r,l,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(i)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(5),s=n(33),u=n(21),c=n(34),l=a.List,f=a.Record,p=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),i=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=c(e),new o({key:u(),text:e,type:"unstyled",characterList:l(p(i.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset();return t<=this.getEndOffset()&&o<=n}if(e!==r&&e!==i)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,i=n(5),o=n(36),a=n(39),s=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),c=s(n.keySeq().zip(u));return null!=t&&i.is(t,c)?t:c}};e.exports=u},function(e,t,n){"use strict";var r=n(37),i=n(38),o=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?i.isStrong(t)||o(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function i(e){var t=r(e);return null==t?s.NEUTRAL:p.exec(t)?s.RTL:s.LTR}function o(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=i(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),o(e,t)}var s=n(38),u=n(17),c="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",l="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+c+l+"]"),p=new RegExp("["+c+l+"]"),h={firstStrongChar:r,firstStrongCharDir:i,resolveBlockDir:o,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function i(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function o(e){c=e}var a=n(17),s="LTR",u="RTL",c=null,l={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:i(e)},setGlobalDir:o,initGlobalDir:function(){o(s)},getGlobalDir:function(){return c||this.initGlobalDir(),c||a(!1),c}};e.exports=l},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var i=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==o;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var p=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,o);return void this.update(i.push(t,p,"insert-characters"))}f&&this.update(i.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===i.get(e).getMutability()?e:null}var i=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?r(e.getBlockForKey(n).getEntityAt(i-1)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):ib,I));var R=O||o,B={className:P,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":C,key:k};void 0!==N&&(B=i({},B,{contentEditable:N,suppressContentEditableWarning:!0}));var K=s.createElement(A,B,s.createElement(R,L));_.push({block:K,wrapperTemplate:j,key:k,offsetKey:C}),b=j?S.getDepth():null,w=j}for(var U=[],F=0;F<_.length;){var q=_[F];if(q.wrapperTemplate){var Y=[];do{Y.push(_[F].block),F++}while(F<_.length&&_[F].wrapperTemplate===q.wrapperTemplate);var H=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},Y);U.push(H)}else U.push(q.block),F++}return s.createElement("div",{"data-contents":"true"},U)},t}(s.Component);e.exports=f},function(e,t,n){"use strict";function r(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var i=n(15)||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(i.offsetHeight+o.y))>0&&c.setTop(i,c.getTop(i)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),c=this.props.tree.size-1,l=r(this.props.selection,n);return this.props.tree.map(function(r,h){var d=r.get("leaves"),v=d.size-1,y=d.map(function(r,i){var f=a.encode(n,h,i),p=r.get("start"),d=r.get("end");return s.createElement(o,{key:f,offsetKey:f,blockKey:n,start:p,selection:l?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(p,d),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===c&&i===v})}).toArray(),g=r.get("decoratorKey");if(null==g)return y;if(!e.props.decorator)return y;var _=m(e.props.decorator),b=_.getComponentForKey(g);if(!b)return y;var w=_.getPropsForKey(g),E=a.encode(n,h,0),S=u.slice(d.first().get("start"),d.last().get("end")),k=p.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(b,i({},w,{decoratedText:S,dir:k,key:E,entityKey:t.getEntityAt(r.get("start")),offsetKey:E}),y)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,i=r+t.text.length;if(e.hasEdgeWithin(n,r,i)){var o,u=a.findDOMNode(this),c=u.firstChild;o=c.nodeType===Node.TEXT_NODE?c:"BR"===c.tagName?u:c.firstChild,s(e,o,n,r,i)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,c=u.reduce(function(e,t){var i={},o=n[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(i.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,i)},{});if(a){var l=a(u);c=r(c,l)}return o.createElement("span",{"data-offset-key":s,ref:"leaf",style:c},o.createElement(i,null,e))},t}(o.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),i=n(53),o=n(54).isBrowser("IE <= 11"),a=o?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=o?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=i.findDOMNode(this);return""===e.children?!function(e){return o?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,a.contains(i,t))}function i(e){return"Windows"===o.platformName?e.replace(/^\s*NT/,""):e}var o=n(55),a=n(58),s=n(59),u=n(60),c={isBrowser:function(e){return r(o.browserName,o.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(o.browserArchitecture,null,e)},isDevice:function(e){return r(o.deviceName,null,e)},isEngine:function(e){return r(o.engineName,o.engineVersion,e)},isPlatform:function(e){return r(o.platformName,o.platformFullVersion,e,i)},isPlatformArchitecture:function(e){return r(o.platformArchitecture,null,e)}};e.exports=s(c,u)},function(e,t,n){"use strict";var r,i="Unknown",o={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||i,browserFullVersion:a.browser.version||i,browserMinorVersion:s.minor||i,browserName:a.browser.name||i,browserVersion:a.browser.major||i,deviceName:a.device.model||i,engineName:a.engine.name||i,engineVersion:a.engine.version||i,platformArchitecture:a.cpu.architecture||i,platformName:(r=a.os.name,o[r]||r||i),platformVersion:a.os.version||i,platformFullVersion:a.os.version||i};e.exports=u},function(e,t,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",p="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},d={rgx:function(){for(var e,t,n,r,i,o,a,s=0,u=arguments;s0?2==i.length?"function"==typeof i[1]?e[i[0]]=i[1].call(this,a):e[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?e[i[0]]=a?a.replace(i[1],i[2]):void 0:e[i[0]]=a?i[1].call(this,a,i[2]):void 0:4==i.length&&(e[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):e[i]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return b.contains(e,t)}):function(e,t){var n=e.split(m);if(n.length>0&&n.length<=2||d(!1),1===n.length)return i(n[0],t);var r=n[0],o=n[1];return c(r)&&c(o)||d(!1),i(">="+r,t)&&i("<="+o,t)}(e=n[0].trim(),t)}function i(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(v),i=s(e),c=i.modifier,l=i.rangeComponents;switch(c){case"<":return o(r,l);case"<=":return-1===(n=h(r,l))||0===n;case">=":return a(r,l);case">":return function(e,t){return 1===h(e,t)}(r,l);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,s=parseInt(r[i],10);return u(s)&&(r[i]=s+1+""),a(e,n)&&o(e,r)}(r,l);default:return function(e,t){return 0===h(e,t)}(r,l)}}function o(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(v),n=t[0].match(g);return n||d(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function c(e){return!s(e).modifier}function l(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,_=/^(\d*)(.*)/,b={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=b},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var i={};for(var o in e)n.call(e,o)&&(i[o]=t.call(r,e[o],o,e));return i}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&o(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function i(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var o=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(o(document.documentElement,n)){var c=t.getSelection(),l=e.getAnchorKey(),f=e.getAnchorOffset(),p=e.getFocusKey(),h=e.getFocusOffset(),d=e.getIsBackward();if(!c.extend&&d){var v=l,y=f;l=p,f=h,p=v,h=y,d=!1}var m=l===a&&s<=f&&u>=f,g=p===a&&s<=h&&u>=h;if(m&&g)return c.removeAllRanges(),i(c,n,f-s),void r(c,n,h-s);if(d){if(g&&(c.removeAllRanges(),i(c,n,h-s)),m){var _=c.focusNode,b=c.focusOffset;c.removeAllRanges(),i(c,n,f-s),r(c,_,b)}}else m&&(c.removeAllRanges(),i(c,n,f-s)),g&&r(c,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],i=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=i},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var i=n(70),o=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(o(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[i(t)]:e.style&&e.style[i(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),i=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=i(e),o=e===t?document.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=i},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,d)))return;return void u(d,function(e){e&&t.update(r(p,l(h),e))})}var v=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,v)))return this._internalDrag?void this.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(p,h)):void this.update(r(p,h,n.getText()))}}};e.exports=p},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var i=n(81),o=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},c=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=c},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i=0;h--)if(!(null!=p&&h>0&&o.isSurrogatePair(p,h-1))){if(e.setStart(l,h),!r(a(e),n))break;u=l,c=h}if(-1===h||0===l.childNodes.length)break;f=i(l=l.childNodes[h])}return e.setStart(u,c),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function i(e){return p.test(e)}function o(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var l=null;if(null!=s)l=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);l=c(a(f))}return{key:l,offset:0}}var p=r.childNodes[n-1],h=null,d=null;if(a(p)){var v=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(p);h=c(a(v)),d=i(v)}else h=c(s),d=i(p);return{key:h,offset:d}}function i(e){var t=e.textContent;return"\n"===t?0:t.length}var o=n(83),a=n(84),s=n(86),u=n(17),c=n(39);e.exports=function(e,t,n,i,a,u){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:s(e,c(o(n)),i,c(o(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return l?(p={key:c(o(n)),offset:i},h=r(t,a,u)):f?(h={key:c(o(a)),offset:u},p=r(t,n,i)):(p=r(t,n,i),h=r(t,a,u),n===a&&i===u&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var u=r.getKeyBefore(i);null==u?a=i:(a=u,s=r.getBlockForKey(u).getText().length)}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=e.getSelection(),o=e.getCurrentContent(),a=i;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o}else if(e.isSelectionAtStartOfContent())return o;if((a=t(e))===i)return o}return r.removeRange(o,a,n)}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),s=r.getBackward(a);return o(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var i="\\s|(?![_])"+n(111).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['‘’]|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:['‘’]|(?!"+i+").)*(?:"+i+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),s=r.getForward(a);return o(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),i=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),i=n(29),o=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),c=e.getCurrentContent(),l=c.getBlockForKey(u).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(c,a),p=r.removeRange(c,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,v=h.merge({anchorOffset:d,focusOffset:d}),y=r.replaceWithFragment(p,v,f),m=i.push(e,y,"insert-fragment");return i.acceptSelection(m,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(i)},0)):void n(i);var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n,"insert-fragment")}var i=n(4),o=n(6),a=n(80),s=n(9),u=n(122),c=n(29),l=n(47),f=n(85),p=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var d=n.getFiles(),v=n.getText();if(d.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(d)))return;return void f(d,function(e){if(e=e||v){var n=t.props.editorState,r=p(e),a=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=i.createFromArray(f),d=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(c.push(n,d,"insert-fragment"))}})}}var y=[],m=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(m,g))){if(m&&(y=p(m)),!this.props.stripPastedStyles){var _=this.getClipboard();if(n.isRichText()&&_){if(-1!==g.indexOf(this.getEditorKey())||1===y.length&&1===_.size&&_.first().getText()===m)return void this.update(r(this.props.editorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(y,_))return void this.update(r(this.props.editorState,_));if(g){var b=u.processHTML(g,this.props.blockRenderMap);if(b){var w=i.createFromArray(b);return void this.update(r(this.props.editorState,w))}}this.setClipboard(null)}if(y){var E=this.props.editorState,S=o.create({style:E.getCurrentInlineStyle(),entity:l(E.getCurrentContent(),E.getSelection())}),k=u.processText(y,S),M=i.createFromArray(k);this.update(r(this.props.editorState,M))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),i=n(5),o=n(123),a=n(21),s=n(125),u=n(34),c=i.List,l=i.Repeat,f={processHTML:function(e,t){return o(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:c(l(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function i(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(M,t))}]}}function o(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):L.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(m,e,t),"ul"!==m&&"ol"!==m||(n&&(p+=1),n=m),o||-1===f.indexOf(m)?n&&"li"===o&&"li"===m&&(E=i(a(m,n,h),p),o=m,g=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"):(E=i(a(m,n,h),p),o=m,g=!0);var M=e.firstChild;null!=M&&(m=M.nodeName.toLowerCase());for(var x=null;M;){M instanceof HTMLAnchorElement&&M.href&&u(M)?function(){var e=M,t={};j.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new y(e.href).toString(),x=d.create("LINK","MUTABLE",t)}():x=void 0,E=s(E,c(M,t,n,o,f,p,h,x||v));var T=M.nextSibling;T&&f.indexOf(m)>=0&&o&&(E=s(E,r())),T&&(m=T.nodeName.toLowerCase()),M=T}return g&&(E=s(E,i(_,p))),E}var l,f=n(6),p=n(7),h=n(41),d=n(14),v=n(5),y=n(124),m=n(21),g=n(125),_=n(17),b=n(39),w=n(34),E=v.List,S=v.OrderedSet,k=" ",M=4,x=new RegExp("\r","g"),O=new RegExp("\n","g"),T=new RegExp(" ","g"),N=new RegExp(" ?","g"),I=new RegExp("​?","g"),C=["bold","bolder","500","600","700","800","900"],L=["light","lighter","100","200","300","400"],D={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},j=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(x,"").replace(T,k).replace(N,"").replace(I,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),i=t(e);if(!i)return null;l=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=c(i,S(),"ul",null,o,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=w(e);var i=n+e.length,o=b(t).inlines.slice(n,i),a=b(t).entities.slice(n,i),s=E(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=i+1,new p({key:m(),type:b(t).blocks[r].type,depth:b(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),i=n(53),o=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=o(e,i.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var i=t.getSelection();return 0===i.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),i=n(42),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=o},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var i=n(100),o=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),c=s&&a.isBrowser("Firefox < 29"),l=i.hasCommandModifier,f=i.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),c=i.setBlockType(n,s,n.getBlockForKey(r).getType()),l=i.removeRange(c,s,"backward");if(l!==n)return o.push(e,l,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?o.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=o.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return i.setBlockType(o,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),i=n(134),o=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var o=i.stringify(e.getEntityAt(r));n.hasOwnProperty(o)||(n[o]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:o(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(i.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),i=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var s=e.getText(),u=e.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),i=n(8),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return i(u,o,a,function(t,i){var o=e.getText();s.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,i.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,i=null,o=[],a=0,s=0,u=e.length;s0&&n!==i&&(o.push([i,r(e.slice(a,s),t.slice(a,s))]),a=s)}return o.push([n,r(e.slice(a),t.slice(a))]),o};var i=n(150),o=t.EMPTY_SET=new i.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:N(e)}function n(e){return a(e)?e:I(e)}function r(e){return s(e)?e:C(e)}function i(e){return o(e)&&!u(e)?e:L(e)}function o(e){return!(!e||!e[Ut])}function a(e){return!(!e||!e[Ft])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function c(e){return!(!e||!e[Yt])}function l(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!O(e)}function M(e){return e&&"function"==typeof e.next}function x(e){var t=O(e);return t&&t.call(e)}function O(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function N(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function I(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function C(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function L(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function D(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new D([]))}function B(e){var t=Array.isArray(e)?new D(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){return T(e)?new D(e):M(e)?new z(e):k(e)?new A(e):void 0}function F(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,C(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?C(e).map(H).toList():W(e)?I(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var l=e;e=t,t=l}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,Qt)):!G(e.get(r,Qt),t))return f=!1,!1});return f&&e.size===p}function V(e,t){if(!(this instanceof V))return new V(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),mn===yn&&(mn=0,gn={}),mn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==ln&&!1===ln(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Gt,s=(0===n?r:r>>>n)&Gt,u=a===s?[we(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Oe(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Te(e){var t=De();if(null===e||void 0===e)return t;if(Ne(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,c=i-n;return c>Wt&&(c=Wt),function(){if(u===c)return Nn;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,c=a>r?0:r-a>>o,l=1+(i-a>>o);return l>Wt&&(l=Wt),function(){for(;;){if(s){var e=s();if(e!==Nn)return e;s=null}if(c===l)return Nn;var r=t?--l:c++;s=n(u&&u[r],o-Ht,a+(r<>>n&Gt,u=e&&s0){var c=e&&e.array[s],l=je(c,t,n-Ht,r,i,o);return l===c?e:((a=Ae(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new Ie(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Gt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Ie(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Ht);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Be(o),h=Be(s);h>=1<f?new Ie([],r):d;if(d&&h>f&&aHt;m-=Ht){var g=f>>>m≫y=y.array[g]=Ae(y.array[g],r)}y.array[f>>>Ht&Gt]=d}if(s=h)a-=h,s-=h,u=Ht,c=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u≫if(_!==h>>>u&Gt)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ha&&(a=c.size),o(u)||(c=c.map(function(e){return Y(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Fe(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){this._iter=e,this.size=e.size}function Ve(e){var t=lt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=lt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Qt);return o===Qt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=lt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ve(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=lt(e);return r&&(i.has=function(r){var i=e.get(r,Qt);return i!==Qt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Qt);return o!==Qt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return E(i,r?c:s++,l,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),m(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=lt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(c.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:E(t,u-1,t===Zt?void 0:e.value[1],e)})},c}function et(e,t,n,r){var i=lt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,c=0;return new w(function(){var e,o,l;do{if((e=s.next()).done)return r||i===Xt?e:E(i,c++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===$t?e:E(i,o,l,e)})},i}function tt(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,c){var l=this;u.__iterate(function(i,u){return(!t||c0}function ot(e,n,r){var i=lt(e);return i.size=new D(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),x(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function ct(e){return a(e)?n:s(e)?r:i}function lt(e){return Object.create((a(e)?I:s(e)?C:L).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):N.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=cn(t,3432918353),t=cn(t<<15|t>>>-15,461845907),t=cn(t<<13|t>>>-13,5),t=cn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=cn(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Kt=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var Ut="@@__IMMUTABLE_ITERABLE__@@",Ft="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:E(e,i,n[t?r-i++:i++])})},e(j,I),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:E(e,a,n[a])})},j.prototype[Yt]=!0,e(A,C),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=x(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=x(n);if(!M(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(z,C),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})},e(V,C),V.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},V.prototype.get=function(e,t){return this.has(e)?this._value:t},V.prototype.includes=function(e){return G(this._value,e)},V.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new V(this._value,_(t,n)-g(e,n))},V.prototype.reverse=function(){return this},V.prototype.indexOf=function(e){return G(this._value,e)?0:-1},V.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},V.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,cn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ln=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,mn=0,gn={};e(ae,$),ae.of=function(){var e=Kt.call(arguments,0);return me().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Qt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Qt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Qt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Qt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?Qt:t.get(c,Qt),f=e(l,n,r,i);return f===l?t:f===Qt?t.remove(c):(o?me():t).set(c,f)}(this,ht(e),t,n);return r===Qt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return Ee(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Kt.call(arguments,1);return Ee(this,e,t)},ae.prototype.mergeIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return Ee(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Kt.call(arguments,1);return Ee(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Kt.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Ke(nt(this,e))},ae.prototype.sortBy=function(e,t){return Ke(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=En)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Gt),o=this.bitmap;return 0==(o&i)?r:this.nodes[xe(o&i-1)].get(e+Ht,t,n,r)},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new le(e,o+1,a)}(e,p,c,s,d);if(l&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=l?d?c:c^u:c|u,m=l?d?Oe(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Gt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Gt,u=i===Qt,c=this.nodes,l=c[s];if(u&&!l)return this;var f=_e(l,e,t+Ht,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=l(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Le(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Te.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Te.prototype.insert=function(e,t){return this.splice(e,0,t)},Te.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):De()},Te.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t≫if(r>=this.array.length)return new Ie([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t≫if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var On,Tn,Nn={};e(Ke,ae),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Ke.prototype.set=function(e,t){return Ye(this,e,t)},Ke.prototype.remove=function(e){return Ye(this,e,Qt)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ke.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ke.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Fe(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ke.isOrderedMap=Ue,Ke.prototype[Yt]=!0,Ke.prototype.delete=Ke.prototype.remove,e(He,I),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,C),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(Ge,L),Ge.prototype.has=function(e){return this._iter.includes(e)},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(Qe,I),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Qe.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,me()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:vt(this,r)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var In=dt.prototype;In.delete=In.remove,In.deleteIn=In.removeIn=bn.removeIn,In.merge=bn.merge,In.mergeWith=bn.mergeWith,In.mergeIn=bn.mergeIn,In.mergeDeep=bn.mergeDeep,In.mergeDeepWith=bn.mergeDeepWith,In.mergeDeepIn=bn.mergeDeepIn,In.setIn=bn.setIn,In.update=bn.update,In.updateIn=bn.updateIn,In.withMutations=bn.withMutations,In.asMutable=bn.asMutable,In.asImmutable=bn.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return _t(this,this._map.remove(e))},mt.prototype.clear=function(){return _t(this,this._map.clear())},mt.prototype.union=function(){var e=Kt.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tt(e,t)},xt.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tt(t,n)},xt.prototype.pop=function(){return this.slice(1)},xt.prototype.unshift=function(){return this.push.apply(this,arguments)},xt.prototype.unshiftAll=function(e){return this.pushAll(e)},xt.prototype.shift=function(){return this.pop.apply(this,arguments)},xt.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):Nt()},xt.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tt(i,o)},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}})},xt.isStack=Ot;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=xt.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=w,It(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Et(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xt(a(this)?this.valueSeq():this)},toList:function(){return Te(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Kt.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var c=new D(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Dt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new D(e._cache);var t=e.toSeq().map(Lt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Dt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=ct(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Qt):Qt)===Qt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(c(e)?Ke():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=ct(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Qt)!==Qt},hasIn:function(e){return this.getIn(e,Qt)!==Qt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(Ct).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Dt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=lt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new w(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?r===$t?e:E(r,u,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Dt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Ut]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,It(n,{flip:function(){return at(this,Ve(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Kn=n.prototype;return Kn[Ft]=!0,Kn[nn]=Bn.entries,Kn.__toJS=Bn.toObject,Kn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},It(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=n(151),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,i({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,c.default)(n,(i(e={},p.default.root,!0),i(e,p.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(l.default,o({},d,{title:a,className:n}),u.default.createElement("span",{className:p.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,l.default.root);var c=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=o?"submit":"button";return s.default.createElement("button",i({type:f},a,{onMouseDown:c,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var u=v++;n=d||(d=s(t)),r=c.bind(null,n,u,!1),i=c.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var l={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),d=null,v=0,y=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=p()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,i({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(c.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,l.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",o({},i,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=i(e,2),n=t[0],r=t[1],o=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},o)})}}]),t}();t.default=p},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),i=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var i=r,o=e.getLength();i=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return o(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,c.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,o){return new e(a.EditorState.push(this._editorState,i(t,n,o),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,o,s){var u=i(t,n,s);return new e(a.EditorState.createWithContent(u,o),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){switch(e){case m.BLOCK_TYPE.HEADER_ONE:return["h1"];case m.BLOCK_TYPE.HEADER_TWO:return["h2"];case m.BLOCK_TYPE.HEADER_THREE:return["h3"];case m.BLOCK_TYPE.HEADER_FOUR:return["h4"];case m.BLOCK_TYPE.HEADER_FIVE:return["h5"];case m.BLOCK_TYPE.HEADER_SIX:return["h6"];case m.BLOCK_TYPE.UNORDERED_LIST_ITEM:case m.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case m.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case m.BLOCK_TYPE.CODE:return["pre","code"];case m.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,c,l=Object.assign||function(e){for(var t=1;t",k=/^data-([a-z0-9-]+)$/,M=(i(s={},g,{element:"strong"}),i(s,_,{element:"code"}),i(s,b,{element:"em"}),i(s,w,{element:"del"}),i(s,E,{element:"ins"}),s),x=[g,b,E,w,_],O=(i(u={},m.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),i(u,m.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),T=(i(c={},m.ENTITY_TYPE.LINK,function(e,t){var n=O.hasOwnProperty(e)?O[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else k.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),i(c,m.ENTITY_TYPE.IMAGE,function(e,t){var n=O.hasOwnProperty(e)?O[e]:{},r=t.getData(),i={},o=!0,a=!1,s=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];if(n.hasOwnProperty(l))i[n[l]]=f;else k.test(l)&&(i[l]=f)}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}),c),N=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[M,x]),i=f(r,2),o=i[0],a=i[1];this.inlineStyles=o,this.styleOrder=a}return p(e,[{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")}}catch(e){f=!0,p=e}finally{try{!c&&y.return&&y.return()}finally{if(f)throw p}}}},{key:"writeEndTag",value:function(e){var t=o(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value;n.unshift("")}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var i=e.getCharacterList();return(0,m.getEntityRanges)(r,i).map(function(e){var r=f(e,2),i=r[0],o=r[1].map(function(e){var r=f(e,2),i=r[0],o=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(i),u=!0,c=!1,p=void 0;try{for(var h,y=t.styleOrder[Symbol.iterator]();!(u=(h=y.next()).done);u=!0){var g=h.value;if((g!==_||n!==m.BLOCK_TYPE.CODE)&&o.has(g)){var b=t.inlineStyles[g],w=b.element,E=b.attributes,k=b.style;if(null==w&&(w="span"),E=(0,d.default)(E),null!=k){var M=(0,v.default)(k);E=null==E?{style:M}:l({},E,{style:M})}s="<"+w+a(E)+">"+s+""}}}catch(e){c=!0,p=e}finally{try{!u&&y.return&&y.return()}finally{if(c)throw p}}return s}).join(""),s=i?y.Entity.get(i):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===m.ENTITY_TYPE.LINK?""+o+"":null!=u&&u===m.ENTITY_TYPE.IMAGE?"":o}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,i=n.characterMeta,o=!1;if(r===d&&(o=!0,r=""),"pre"===e.tagName){var c=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,i);r=c.text,i=c.characterMeta}else{var l=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var i=e.length;i--;)" "===e.charAt(i)&&" "===e.charAt(i-1)&&(e=e.slice(0,i)+e.slice(i+1),t=t.slice(0,i).concat(t.slice(i+1)));var o=(0,a.default)({text:e,characterMeta:t},d+" ",d);e=o.text,t=o.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+d,d);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,i);r=l.text,i=l.characterMeta}((r=r.split(d).join("\n")).length||o)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:i.toList(),depth:e.depth}))}),t.length?t:[p]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){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(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case c.BLOCK_TYPE.UNORDERED_LIST_ITEM:case c.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),i=!b.hasOwnProperty(t),o={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};i&&(this.blockList.push(o),r&&(this.depth+=1)),this.blockStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),i&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],i=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(c.INLINE_STYLE.BOLD);case"i":case"em":return e.add(c.INLINE_STYLE.ITALIC);case"ins":return e.add(c.INLINE_STYLE.UNDERLINE);case"code":return e.add(c.INLINE_STYLE.CODE);case"del":return e.add(c.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(i=g[t](t,e)||i),n.styleStack.push(r),n.entityStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),w.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(d)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(d),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],i=s.CharacterMetadata.create({style:n,entity:r}),o=(0,u.Repeat)(i,e.length);t.textFragments.push({text:e,characterMeta:o})}},{key:"processNode",value:function(e){if(e.nodeType===l.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();_.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===l.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var i=e.text,o=e.characterMeta,a=t.length,s=r.length,u=[],c=o.slice(0,0),l=0,f=i.indexOf(t);-1!==f;)u.push(i.slice(l,f)+r),c=c.concat(o.slice(l,f),n(o.slice(f,f+1),s)),l=f+a,f=i.indexOf(t,l);return u.push(i.slice(l)),c=c.concat(o.slice(l)),{text:u.join(""),characterMeta:c}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,i){o(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var c=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=c,!c&&i&&i.forEach(a.appendChild,a),a}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.attributes[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=s.name,c=s.value;t.push(u+(c?'="'+c.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}var l=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+l+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+l+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=l,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===l){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function i(e){return e.replace(/\)/g,"%29")}function o(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.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()===t&&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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],i=n[1];if(!r)return"";var o=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return i.has(l)&&(o="**"+o+"**"),i.has(d)&&(o="++"+o+"++"),i.has(p)&&(o="_"+o+"_"),i.has(h)&&(o="~~"+o+"~~"),i.has(f)&&(o=t===u.BLOCK_TYPE.CODE?o:"`"+o+"`"),o}).join(""),v=r?c.Entity.get(r):null;if(null!=v&&v.getType()===u.ENTITY_TYPE.LINK){var y=v.getData(),m=y.url||"",g=y.title?' "'+o(y.title)+'"':"";return"["+s+"]("+i(m)+g+")"}if(null!=v&&v.getType()===u.ENTITY_TYPE.IMAGE){var _=v.getData(),b=_.src||"";return"!["+(_.alt?' "'+o(_.alt)+'"':"")+"]("+i(b)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,i=n(203),o=(r=i)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=l({},e||p),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function i(e,t){if(this.options=l({},t||p),this.links=e,this.rules=d.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=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function o(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=l({},e||p),this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),c=Object.prototype.hasOwnProperty,l=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=l({},h),h.gfm=l({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,i,o,a,s,u,c,l,f;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(o=o[0].match(this.rules.item)).length,l=0;l1&&s.length>1||(e=o.slice(l+1).join("\n")+e,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&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.paragraph.exec(e)))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var d={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};d.link=s(d.link)("inside",d._inside)("href",d._href)(),d.reflink=s(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:s(d.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(d.text)("]|","~+]|")()}),d.breaks=l({},d.gfm,{br:s(d.br)("{2,}","*")(),text:s(d.gfm.text)("{2,}","*")()}),i.rules=d,i.parse=function(e,t,n){return new i(t,n).parse(e)},i.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},o.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},o.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},o.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},o.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},o.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},o.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},o.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},o.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},o.prototype.em=function(e){return new u.ElementNode("em",[],[e])},o.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},o.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},o.prototype.del=function(e){return new u.ElementNode("del",[],[e])},o.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},o.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},o.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},o.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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(e,t){t=l({},p,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return o.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(c=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},"h7v/":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("NdNt"),u=n("t4LX"),c=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?i.a.Children.map(this.props.children,function(t){return t.type===s.a?i.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return i.a.createElement("div",c({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),c=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},i.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Additional Comments"),i.a.createElement("div",{className:"control"},i.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return i.a.createElement("div",null,i.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),i.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?i.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to flag this observation."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=l,l.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},l.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jVml:function(e,t,n){"use strict";var r=window.TreeSnap.metaLabels;t.a=r},jyFz:function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},mOuh:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"To")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"CC/BCC")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Subject")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"}),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}),i.a.createElement("p",{className:"help"},"You may use ",i.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return i.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},i.a.createElement("h5",{className:"title is-5"},"Message Preview"),i.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?i.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?i.a.createElement("table",{className:"table"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Category"),i.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?i.a.createElement("tr",null,i.a.createElement("th",null,"Found Near"),i.a.createElement("td",null,t.formatted)):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,u()(e.date.date).format("LL"))),i.a.createElement("tr",null,i.a.createElement("th",{colSpan:2},i.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?i.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):i.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return i.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},i.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),i.a.createElement("div",{className:"modal-card modal-card-lg"},i.a.createElement(c.a,{visible:this.state.loading}),i.a.createElement("header",{className:"modal-card-head"},i.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),i.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),i.a.createElement("section",{className:"modal-card-body"},i.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),i.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):i.a.createElement("div",{className:"flexbox flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),i.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,y=function(){return p.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,u,c,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function _(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-l>=a}function w(){var e=y();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-c);return p?v(n,a-(e-l)):n}(e))}function E(e){return u=void 0,h&&i?_(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),f?_(e):s}(c);if(p)return u=setTimeout(w,t),_(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=g(t)||0,m(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},S.flush=function(){return void 0===u?s:E(y())},S}}).call(t,n("DuR2"))},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(){return function e(t){if(!(this instanceof e))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=l.getInstance(),r=new E(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var M=void 0!==i.ResizeObserver?i.ResizeObserver:k;t.default=M}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/8.86ef8961eaaf3c5048fd.js b/public/js/8.86ef8961eaaf3c5048fd.js deleted file mode 100644 index c3140de4..00000000 --- a/public/js/8.86ef8961eaaf3c5048fd.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([8],{"0dG/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;to&&(a=0),n.setState({previousIndex:i,currentIndex:a,isTransitioning:a!==i,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new l.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,i){var o=n.state,a=o.scrollingUpDown,s=o.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var l=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(l,i)}},n._handleSwiping=function(e,t,r,i){var o=n.state,a=o.galleryWidth,s=o.isTransitioning,u=o.scrollingUpDown,l=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var c=t<0?1:-1,f=i/a*100;Math.abs(f)>=100&&(f=100);var p={transition:"transform "+l+"ms ease-out"};n.setState({offsetPercentage:c*f,style:p})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-image"},e.imageSet?o.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return o.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),o.default.createElement("img",{alt:e.originalAlt,src:e.original})):o.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&o.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbnail-inner"},o.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(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(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,i)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;p.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;p.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,i=n.scrollingLeftRight,o=Math.abs(e);Math.abs(t)>o&&!r&&!i?this.setState({scrollingUpDown:!0}):i||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this._sufficientSwipeOffset()&&!t||i||(o+=e),e<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.currentIndex0&&(er&&this._setThumbsTranslate(n+o))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,i=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){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 e*(i/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=t.previousIndex,o=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?o=-100+r:1===n&&0===e&&r<0&&(o=100+r),n!==i?0===i&&0===e&&0===r&&"left"===this.direction?o=100:1===i&&1===e&&0===r&&"right"===this.direction&&(o=-100):0===n&&1===e&&0===r&&"left"===this.direction?o=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(o=100),o}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=this.props,o=i.infinite,a=i.items,s=i.useTranslate3D,u=i.isRTL,l=-100*n,c=a.length-1,f=(l+100*e)*(u?-1:1)+r;o&&a.length>2&&(0===n&&e===c?f=-100*(u?-1:1)+r:n===c&&0===e&&(f=100*(u?-1:1)+r)),o&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var p="translate("+f+"%, 0)";return s&&(p="translate3d("+f+"%, 0, 0)"),{WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state.thumbsTranslate,o=r?-1*i:i;return this._isThumbnailHorizontal()?(e="translate(0, "+i+"px)",n&&(e="translate3d(0, "+i+"px, 0)")):(e="translate("+o+"px, 0)",n&&(e="translate3d("+o+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,l=t.scrollingLeftRight,c=this.props,f=c.infinite,p=c.preventDefaultTouchmoveEvent,h=c.isRTL,d=this._getThumbnailStyle(),v=this.props.thumbnailPosition,y=this._slideLeft,m=this._slideRight,g=[],_=[],b=[];this.props.items.forEach(function(t,i){var a=e._getAlignmentClassName(i),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",l=t.renderItem||e.props.renderItem||e._renderItem,c=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,p=!e.props.lazyLoad||a||e._lazyLoaded[i];p&&e.props.lazyLoad&&(e._lazyLoaded[i]=!0);var h=e._getSlideStyle(i),d=o.default.createElement("div",{key:i,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},p?l(t):o.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(i)&&g.push(d):g.push(d),e.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,onClick:function(t){return e._onThumbnailClick(t,i)}},c(t))),e.props.showBullets){b.push(o.default.createElement("button",{key:i,type:"button",className:["image-gallery-bullet",n===i?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:i,currentIndex:n}),e.slideToIndex.call(e,i,r)},"aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}});var E=o.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+v+" "+(h?"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(m,!this._canSlideRight())),o.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:p||l},o.default.createElement("div",{className:"image-gallery-slides"},g))]:o.default.createElement("div",{className:"image-gallery-slides"},g),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,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return o.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:w,"aria-live":"polite"},o.default.createElement("div",{className:"image-gallery-content"+(i?" fullscreen":"")},("bottom"===v||"right"===v)&&E,this.props.showThumbnails&&o.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+v+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},o.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:d,"aria-label":"Thumbnail Navigation"},_))),("top"===v||"left"===v)&&E))}}]),t}();h.propTypes={flickThreshold:c.default.number,items:c.default.array.isRequired,showNav:c.default.bool,autoPlay:c.default.bool,lazyLoad:c.default.bool,infinite:c.default.bool,showIndex:c.default.bool,showBullets:c.default.bool,showThumbnails:c.default.bool,showPlayButton:c.default.bool,showFullscreenButton:c.default.bool,disableThumbnailScroll:c.default.bool,disableArrowKeys:c.default.bool,disableSwipe:c.default.bool,useBrowserFullscreen:c.default.bool,preventDefaultTouchmoveEvent:c.default.bool,defaultImage:c.default.string,indexSeparator:c.default.string,thumbnailPosition:c.default.string,startIndex:c.default.number,slideDuration:c.default.number,slideInterval:c.default.number,swipeThreshold:c.default.number,swipingTransitionDuration:c.default.number,onSlide:c.default.func,onScreenChange:c.default.func,onPause:c.default.func,onPlay:c.default.func,onClick:c.default.func,onImageLoad:c.default.func,onImageError:c.default.func,onTouchMove:c.default.func,onTouchEnd:c.default.func,onTouchStart:c.default.func,onMouseOver:c.default.func,onMouseLeave:c.default.func,onThumbnailError:c.default.func,onThumbnailClick:c.default.func,renderCustomControls:c.default.func,renderLeftNav:c.default.func,renderRightNav:c.default.func,renderPlayPauseButton:c.default.func,renderFullscreenButton:c.default.func,renderItem:c.default.func,stopPropagation:c.default.bool,additionalClass:c.default.string,useTranslate3D:c.default.bool,isRTL:c.default.bool},h.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(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"5L7H":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),l=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},i.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return i.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Or Create New Collection"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})),i.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to add this observation to a collection."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},c.defaultProps={collections:[],onSubmit:function(){}}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("O27J"),a=n.n(o),s=n("KSGD"),u=n.n(s),l=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),l(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return i.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},i.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(i.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=c,c.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},c.defaultProps={type:"success"},c.stack=[]},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,i=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:i,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,i=t.onSwiping,o=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,l=t.onSwipingRight,c=t.onSwipedRight,f=t.onSwipingUp,p=t.onSwipedUp,h=t.onSwipingDown,d=t.onSwipedDown,v=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var y=u(e,this.swipeable);if(!(y.absXy.absY?y.deltaX>0?(a||s)&&(a&&a(e,y.absX),m=!0):(l||c)&&(l&&l(e,y.absX),m=!0):y.deltaY>0?(f||p)&&(f&&f(e,y.absY),m=!0):(h||d)&&(h&&h(e,y.absY),m=!0),this.swipeable.swiping=!0,m&&v&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,i=t.onSwiped,o=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,l=t.onSwipedDown,c=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var p=f.velocity>r;i&&i(e,f.deltaX,f.deltaY,p,f.velocity),f.absX>f.absY?f.deltaX>0?o&&o(e,f.deltaX,p):a&&a(e,f.deltaX,p):f.deltaY>0?s&&s(e,f.deltaY,p):l&&l(e,f.deltaY,p)}else c&&c(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,i.createElement(this.props.nodeName,e,this.props.children)},t}(i.Component);l.propTypes={onSwiped:o.func,onSwiping:o.func,onSwipingUp:o.func,onSwipingRight:o.func,onSwipingDown:o.func,onSwipingLeft:o.func,onSwipedUp:o.func,onSwipedRight:o.func,onSwipedDown:o.func,onSwipedLeft:o.func,onTap:o.func,flickThreshold:o.number,delta:o.number,preventDefaultTouchmoveEvent:o.bool,stopPropagation:o.bool,nodeName:o.string,trackMouse:o.bool,disabled:o.bool,innerRef:o.func,children:o.node,rotationAngle:o.number},l.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=l},AByj:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("h7v/"),u=n("NdNt"),l=n("c8iI"),c=n("0dG/"),f=n.n(c),p=n("PJh5"),h=n.n(p),d=n("LZyd"),v=n("iwoP"),y=n("5L7H"),m=n("jVml"),g=n("mOuh"),_=n("OE/d"),b=n("t4LX"),E=n("F8kA"),w=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},i.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return i.a.createElement(l.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},i.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:i.a.createElement("div",null,i.a.createElement("div",{className:"flexbox observation-tools"},i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-star text-success"})),i.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-flag text-danger"})),i.a.createElement("span",null,"Flag Observation")):null,_.a.can("contact users")?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-envelope text-info"})),i.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return i.a.createElement(d.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return i.a.createElement(v.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h3",{className:"title is-4"},"Add to Collection"),i.a.createElement(y.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:i.a.createElement("tr",{key:n},i.a.createElement("th",null,e),i.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?i.a.createElement("p",{className:"help"},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),b.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return i.a.createElement("div",{className:"box has-text-centered"},i.a.createElement("div",{className:"content"},i.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),i.a.createElement("p",null,"Observation has been deleted successfully"),i.a.createElement(E.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return _.a.can("contact users")?i.a.createElement(w.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},i.a.createElement("option",{value:"US"},"US Units"),i.a.createElement("option",{value:"metric"},"Metric Units")))),_.a.can("delete observations")||_.a.owns(this.observation)?i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})),i.a.createElement("span",null,"Delete"))):null),i.a.createElement("div",{className:"columns mb-none"},i.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},i.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},i.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Submitted By"),i.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?i.a.createElement("tr",null,i.a.createElement("th",null,"Custom Tree Identifier"),i.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?i.a.createElement("tr",null,i.a.createElement("th",null,"ID"),i.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,i=void 0!==m.a[n]?m.a[n]:n,o=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],o=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(i,o,n,r)}),i.a.createElement("tr",null,i.a.createElement("th",null,"Coordinates"),i.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?i.a.createElement("tr",null,i.a.createElement("th",null,"Location Accuracy"),i.a.createElement("td",null,_.a.can("view accurate location")||_.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:i.a.createElement("tr",null,i.a.createElement("th",null,"Photos"),i.a.createElement("td",null,i.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"tabs has-no-shadow"},i.a.createElement("ul",null,i.a.createElement("li",{className:this.getTabClass("photos")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),i.a.createElement("li",{className:this.getTabClass("map")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?i.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},i.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return i.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?i.a.createElement("div",{className:"callout"},i.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?i.a.createElement("div",{style:{width:"100%",position:"relative"}},i.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=M,M.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},M.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},DakW:function(e,t,n){"use strict";var r=n("GiK3");n.n(r);var i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return window.ga&&setTimeout(function(){return window.ga("send","pageview")},2500),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),t}();t.a=i},Fu8L:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach(function(t){return delete e[t]})}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},i,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}();d.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},d.defaultProps={minWidth:1,injectStyles:!0},t.default=d},HW6M:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return i.a.createElement(p.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},i.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},i.a.createElement("div",{className:"media callout"},i.a.createElement("div",{className:"media-left mr-0"},i.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),i.a.createElement("div",{className:"media-content"},i.a.createElement("div",{className:"mb-0"},i.a.createElement("strong",null,t.observation_category)),i.a.createElement("div",{className:"mb-0"},"By ",t.user.name),i.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?i.a.createElement("div",{className:"content"},i.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),i.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),i.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):i.a.createElement(c.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return i.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},i.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),i.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Flag Observation"),i.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),v.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";v.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return i.a.createElement("div",{className:"card-footer marks-section"},i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.incorrectMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-times text-danger"})),i.a.createElement("span",null,"Marks")),i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.correctMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-check text-success"})),i.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":w(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,o=this.getAddress(t),a=o.address,u=o.addressLine1,c=o.addressLine2;return i.a.createElement("div",{className:"observation-card-container"},i.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},i.a.createElement("header",{className:"card-header"},i.a.createElement(b.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),E.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},i.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-times"})))):null,E.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},i.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-check"})))):null),i.a.createElement("div",{className:"relative-block"},i.a.createElement(d.a,{visible:this.state.loading}),i.a.createElement("div",{className:"has-bg-image relative-block"},i.a.createElement("div",{className:"card-image",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}})),this._renderMarks(),i.a.createElement("div",{className:"card-content"},i.a.createElement("div",{className:"content"},this.props.owner?null:i.a.createElement("span",null,"By ",t.user.name,i.a.createElement("br",null)),i.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),i.a.createElement("br",null),t.custom_id?i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"Custom ID")," ",t.custom_id),i.a.createElement("br",null)):i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||E.a.can("view accurate location")?i.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,i.a.createElement("br",null)):null,i.a.createElement("small",null,l()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?i.a.createElement("div",{className:"text-ellipsis",title:a},i.a.createElement("small",null,i.a.createElement("b",null,"Near")," ",u),i.a.createElement("br",null),i.a.createElement("small",{style:{marginLeft:"35px"}},c)):i.a.createElement("div",{style:{height:48}},"Address is unavailable"))),i.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},i.a.createElement("div",{className:"p-1 relative-block"},i.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},i.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),i.a.createElement("footer",{className:"card-footer card-footer-z-index"},i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},i.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-star"})))),i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},i.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-map"})))),E.a.can("contact users")&&!this.props.owner?i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},i.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},i.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?i.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},i.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?i.a.createElement(_,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=k;k.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},k.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},LZyd:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n=t||n<0||p&&e-c>=a}function E(){var e=y();if(b(e))return w(e);u=setTimeout(E,function(e){var n=t-(e-l);return p?v(n,a-(e-c)):n}(e))}function w(e){return u=void 0,h&&i?m(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,l=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(E,t),f?m(e):s}(l);if(p)return u=setTimeout(E,t),m(l)}return void 0===u&&(u=setTimeout(E,t)),s}return t=_(t)||0,g(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(_(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),c=0,i=l=o=u=void 0},S.flush=function(){return void 0===u?s:w(y())},S}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),m(e,t,{leading:i,maxWait:t,trailing:o})}}).call(t,n("DuR2"))},c8iI:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;ne-101;n--)t.push(n);return t}},{key:"_userObject",value:function(e){var t=[];return e.groups.map(function(e){return t.push({label:e.name,value:e.id})}),{id:e.id,name:e.name,email:e.email,birth_year:e.birth_year,role:e.role,role_id:e.role.id,class:e.class,is_anonymous:e.is_anonymous,zipcode:e.zipcode,user_groups:t,created_at:e.created_at}}},{key:"getGroups",value:function(){return axios.get("/admin/web/groups").then(function(e){var t=[];return e.data.data.map(function(e){return t.push({label:e.name,value:e.id})}),{options:t}}).catch(function(e){console.log(e)})}},{key:"_renderPersonalInfo",value:function(){var e=this;return""===this.state.name||this.state.editing?null:i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h4",{className:"title is-4"},"Personal Information")),i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("button",{type:"button",className:"button is-info",onClick:function(t){t.preventDefault(),e.setState({editing:!e.state.editing})}},"Edit"))),i.a.createElement("div",{className:"table-responsive"},i.a.createElement("table",{className:"table is-striped mb-none"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",{style:{width:"240px"}},"Name"),i.a.createElement("td",null,this.state.name)),i.a.createElement("tr",null,i.a.createElement("th",null,"Role"),i.a.createElement("td",null,this.state.role.name)),i.a.createElement("tr",null,i.a.createElement("th",null,"Email"),i.a.createElement("td",null,this.state.email)),i.a.createElement("tr",null,i.a.createElement("th",null,"Zip Code"),i.a.createElement("td",null,this.state.zipcode)),i.a.createElement("tr",null,i.a.createElement("th",null,"Number of Observations"),i.a.createElement("td",null,this.state.observations.length)),i.a.createElement("tr",null,i.a.createElement("th",null,"Birth Year"),i.a.createElement("td",null,this.state.birth_year)),i.a.createElement("tr",null,i.a.createElement("th",null,"Class"),i.a.createElement("td",null,this.state.class)),i.a.createElement("tr",null,i.a.createElement("th",null,"Anonymous"),i.a.createElement("td",null,this.state.is_anonymous?"Yes":"No")),i.a.createElement("tr",null,i.a.createElement("th",null,"Groups"),i.a.createElement("td",null,0===this.state.user_groups.length&&"The user does not belong to any groups",this.state.user_groups.map(function(e,t){return i.a.createElement("span",{key:t},e.label,",")}))),i.a.createElement("tr",null,i.a.createElement("th",null,"Date Joined"),i.a.createElement("td",null,u()(this.state.created_at).format("MMM Do, YYYY")," (",u()(this.state.created_at).fromNow(),")"))))))}},{key:"_renderObservations",value:function(){var e=this;return""===this.state.name?null:i.a.createElement("div",null,i.a.createElement("h4",{className:"title is-4"},"Observations"),0===this.state.observations.length?i.a.createElement("p",{className:"box"},"The user didn't submit any observations"):null,i.a.createElement("div",{className:"columns is-multiline is-tablet"},this.state.observations.map(function(t,n){return n=e.state.offset*e.state.perPage+e.state.perPage?null:i.a.createElement("div",{className:"column is-6-tablet is-4-desktop",key:n},i.a.createElement(f.a,{observation:t,onEmailRequest:function(){e.setState({showEmail:!0,contact:{to:{user_id:e.state.id,name:e.state.name},from:e.state.email,observation:t}})}}))})),this._renderPaginationLinks())}},{key:"_renderPaginationLinks",value:function(){var e=this;if(this.state.observations.length<=this.state.perPage)return null;for(var t=[],n=0;n=this.state.numPages||this.setState({offset:this.state.offset+1})}},{key:"_prevPage",value:function(){this.state.offset<=0||this.setState({offset:this.state.offset-1})}},{key:"_page",value:function(e,t){e.preventDefault(),this.setState({offset:t-1})}},{key:"_renderErrors",value:function(){if(null===this.state.errors)return null;var e=this.state.errors,t=[];return Object.keys(e).map(function(n){e[n].map(function(e){t.push(e)})}),i.a.createElement("div",{className:"alert is-danger"},t.map(function(e,t){return i.a.createElement("p",{key:t},e)}))}},{key:"_renderEditingForm",value:function(){var e=this;return this.state.editing?i.a.createElement("div",{className:"box"},i.a.createElement("h4",{className:"title is-4"},"Personal Information"),this._renderErrors(),i.a.createElement("form",{action:"#",onSubmit:this.updateUserInfo.bind(this)},i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Name"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input limit-width",value:this.state.name,onChange:function(t){return e.setState({name:t.target.value})}}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Role"),i.a.createElement("div",{className:"control"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{onChange:function(t){var n=t.target;return e.setState({role_id:n.value})},value:this.state.role_id},this.state.roles.map(function(e){return i.a.createElement("option",{key:e.id,value:e.id},e.name)}))))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Email"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"email",className:"input limit-width",value:this.state.email,onChange:function(t){return e.setState({email:t.target.value})}}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Zip Code"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input limit-width",value:this.state.zipcode||"",onChange:function(t){return e.setState({zipcode:t.target.value})}}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Class"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input limit-width",value:this.state.class,onChange:function(t){return e.setState({class:t.target.value})}}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Groups"),i.a.createElement("div",{className:"control limit-width"},i.a.createElement(c.a.Async,{value:this.state.user_groups,loadOptions:this.getGroups.bind(this),onChange:function(t){e.setState({user_groups:t})},multi:!0}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"label"},"Birth Year"),i.a.createElement("div",{className:"control"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.birth_year,onChange:function(t){var n=t.target;return e.setState({birth_year:n.value})}},this._years.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)})))))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",onChange:function(t){return e.setState({is_anonymous:t.target.checked})},value:this.state.is_anonymous,defaultChecked:this.state.is_anonymous}),i.a.createElement("span",{className:"ml-1"},"This user is anonymous")))),i.a.createElement("div",{className:"box-footer"},i.a.createElement("div",{className:"columns"},i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Save")))),i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("button",{type:"button",className:"button is-link",onClick:function(t){t.preventDefault(),e.getUser.call(e),e.setState({editing:!e.state.editing})}},"Cancel")))))):null}},{key:"_handleRoleChange",value:function(e){var t={};this.state.roles.map(function(n){n.id===e.target.value&&(t=n)}),this.setState({role:t})}},{key:"updateUserInfo",value:function(e){var t=this;e.preventDefault(),this.setState({loading:!0});var n=[];this.state.user_groups.map(function(e){n.push(e.value)}),axios.put("/admin/web/user/"+this.props.match.params.id,{name:this.state.name,email:this.state.email,class:this.state.class,role:this.state.role_id,groups:n,is_anonymous:this.state.is_anonymous,birth_year:this.state.birth_year,zipcode:this.state.zipcode}).then(function(e){var n=t._userObject(e.data.data);t.setState(Object.assign({},n,{editing:!1,errors:null}))}).catch(function(e){e.response&&422===e.response.status&&t.setState({errors:e.response.data})}).then(function(){t.setState({loading:!1})})}},{key:"render",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h1",{className:"title is-3"},""!==this.state.name?this.state.name:"User Page"),this._renderEditingForm(),this._renderPersonalInfo(),this._renderObservations(),i.a.createElement(l.a,{visible:this.state.loading}),this.state.showEmail?i.a.createElement(h.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.state.contact.observation,onCloseRequest:function(){return e.setState({showEmail:!1})}}):null)}}]),t}();t.default=y,y.propTypes={location:a.a.object.isRequired}},cihR:function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=C.default.block;switch(e.getType()){case"unstyled":return(0,S.default)(t,C.default.paragraph);case"blockquote":return(0,S.default)(t,C.default.blockquote);case"code-block":return(0,S.default)(t,C.default.codeBlock);default:return t}}function a(){return b.default.createEmpty(D)}function s(e,t,n){return b.default.createFromString(e,t,D,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.createValueFromString=t.createEmptyValue=t.decorator=t.EditorValue=void 0;var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();c=c?u({},T,c):T;var b=(0,S.default)((i(e={},C.default.editor,!0),i(e,C.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=d);var E=void 0;return h||(E=f.default.createElement(_.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:v})),f.default.createElement("div",{className:(0,S.default)(C.default.root,r)},E,f.default.createElement("div",{className:b},f.default.createElement(p.Editor,u({},m,{blockStyleFn:(0,w.default)(o,y),customStyleMap:c,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:l,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(p.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),i=p.Modifier.removeRange(r,n,"forward"),o=i.getSelectionAfter(),a=i.getBlockForKey(o.getStartKey());i=p.Modifier.insertText(i,o,"\n",a.getInlineStyleAt(o.getStartOffset()),null),this._onChange(p.EditorState.push(t,i,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if((0,m.default)(i)&&0===i.getLength()){var o=i.getDepth(),a=0===o?(0,v.default)(e,r,O.BLOCK_TYPE.UNSTYLED):(0,d.default)(e,r,o-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if(!(0,m.default)(i)&&i.getType()!==O.BLOCK_TYPE.UNSTYLED&&i.getLength()===t.getStartOffset()){var o=(0,y.default)(e,r,O.BLOCK_TYPE.UNSTYLED);return this._onChange(o),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=x;var D=new p.CompositeDecorator([E.default]);Object.assign(x,{EditorValue:b.default,decorator:D,createEmptyValue:a,createValueFromString:s}),t.EditorValue=b.default,t.decorator=D,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(6),a=n(40),s=n(7),u=n(32),l=n(41),c=n(43),f=n(44),p=n(50),h=n(9),d=n(14),v=n(16),y=n(29),m=n(100),g=n(131),_=n(33),b=n(133),E={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:c,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:b,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=E},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(9),s=n(29),u=n(5),l=n(21),c=u.List,f=u.Repeat,p={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),p=e.getSelection(),h=a.removeRange(u,p,"backward"),d=h.getSelectionAfter(),v=a.splitBlock(h,d),y=v.getSelectionAfter(),m=a.setBlockType(v,y,"atomic"),g=i.create({entity:t}),_=[new o({key:l(),type:"atomic",text:n,characterList:c(f(g,n.length))}),new o({key:l(),type:"unstyled",text:"",characterList:c()})],b=r.createFromArray(_),E=a.replaceWithFragment(m,y,b),w=E.merge({selectionBefore:p,selectionAfter:E.getSelectionAfter().set("hasFocus",!0)});return s.push(e,w,"insert-fragment")}};e.exports=p},function(e,t,n){"use strict";var r=n(5).OrderedMap,i={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=i},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:x(e)}function n(e){return a(e)?e:D(e)}function r(e){return s(e)?e:I(e)}function i(e){return o(e)&&!u(e)?e:N(e)}function o(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ut])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[Yt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function E(e){this.next=e}function w(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!C(e)}function M(e){return e&&"function"==typeof e.next}function O(e){var t=C(e);return t&&t.call(e)}function C(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function x(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function D(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():F(e)}function N(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:F(e)).toSetSeq()}function L(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new L([]))}function B(e){var t=Array.isArray(e)?new L(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function F(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return T(e)?new L(e):M(e)?new z(e):k(e)?new A(e):void 0}function U(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new E(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,D(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?I(e).map(H).toList():W(e)?D(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function V(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function G(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&V(i[1],e)&&(n||V(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!V(t,e.get(r,Gt)):!V(e.get(r,Gt),t))return f=!1,!1});return f&&e.size===p}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),mn===yn&&(mn=0,gn={}),mn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Vt,s=(0===n?r:r>>>n)&Vt,u=a===s?[Ee(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ce(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Te(e){var t=Le();if(null===e||void 0===e)return t;if(xe(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,l=i-n;return l>Wt&&(l=Wt),function(){if(u===l)return xn;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,l=a>r?0:r-a>>o,c=1+(i-a>>o);return c>Wt&&(c=Wt),function(){for(;;){if(s){var e=s();if(e!==xn)return e;s=null}if(l===c)return xn;var r=t?--c:l++;s=n(u&&u[r],o-Ht,a+(r<>>n&Vt,u=e&&s0){var l=e&&e.array[s],c=je(l,t,n-Ht,r,i,o);return c===l?e:((a=Ae(e,t)).array[s]=c,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new De(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Vt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new De(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=Ht);c&&(a+=c,i+=c,s+=c,o+=c);for(var f=Be(o),h=Be(s);h>=1<f?new De([],r):d;if(d&&h>f&&aHt;m-=Ht){var g=f>>>m&Vt;y=y.array[g]=Ae(y.array[g],r)}y.array[f>>>Ht&Vt]=d}if(s=h)a-=h,s-=h,u=Ht,l=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u&Vt;if(_!==h>>>u&Vt)break;_&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&ha&&(a=l.size),o(u)||(l=l.map(function(e){return Y(e)})),i.push(l)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Ue(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new E(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Gt);return o===Gt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new E(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=ct(e);return r&&(i.has=function(r){var i=e.get(r,Gt);return i!==Gt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Gt);return o!==Gt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new E(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return w(i,r?l:s++,c,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),m(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var l=ct(e);return l.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(l.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:w(t,u-1,t===Zt?void 0:e.value[1],e)})},l}function et(e,t,n,r){var i=ct(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,l=0;return new E(function(){var e,o,c;do{if((e=s.next()).done)return r||i===Xt?e:w(i,l++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],c=f[1],u&&(u=t.call(n,c,o,a))}while(u);return i===$t?e:w(i,o,c,e)})},i}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,l){var c=this;u.__iterate(function(i,u){return(!t||l0}function ot(e,n,r){var i=ct(e);return i.size=new L(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),O(i?e.reverse():e)}),a=0,s=!1;return new E(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:w(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function lt(e){return a(e)?n:s(e)?r:i}function ct(e){return Object.create((a(e)?D:s(e)?I:N).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):x.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=ln(t,3432918353),t=ln(t<<15|t>>>-15,461845907),t=ln(t<<13|t>>>-13,5),t=ln((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=ln(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Ft=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=i;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ut="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:w(e,i,n[t?r-i++:i++])})},e(j,D),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new E(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:w(e,a,n[a])})},j.prototype[Yt]=!0,e(A,I),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!M(r))return new E(S);var i=0;return new E(function(){var t=r.next();return t.done?t:w(e,i++,t.value)})},e(z,I),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return w(e,i,r[i++])})},e(Q,I),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return V(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,_(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return V(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return V(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:w(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:G(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,mn=0,gn={};e(ae,$),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Gt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Gt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Gt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Gt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var l=a.value,c=o?Gt:t.get(l,Gt),f=e(c,n,r,i);return f===c?t:f===Gt?t.remove(l):(o?me():t).set(l,f)}(this,ht(e),t,n);return r===Gt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return we(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Ft.call(arguments,1);return we(this,e,t)},ae.prototype.mergeIn=function(e){var t=Ft.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return we(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Ft.call(arguments,1);return we(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Ft.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Fe(nt(this,e))},ae.prototype.sortBy=function(e,t){return Fe(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=wn)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Vt),o=this.bitmap;return 0==(o&i)?r:this.nodes[Oe(o&i-1)].get(e+Ht,t,n,r)},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Vt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new ce(e,o+1,a)}(e,p,l,s,d);if(c&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(c&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=c?d?l:l^u:l|u,m=c?d?Ce(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Vt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Vt,u=i===Gt,l=this.nodes,c=l[s];if(u&&!c)return this;var f=_e(c,e,t+Ht,n,r,i,o,a);if(f===c)return this;var p=this.count;if(c){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ne(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Te.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Te.prototype.insert=function(e,t){return this.splice(e,0,t)},Te.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Le()},Te.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t&Vt;if(r>=this.array.length)return new De([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t&Vt;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Cn,Tn,xn={};e(Fe,ae),Fe.of=function(){return this(arguments)},Fe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Fe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Fe.prototype.set=function(e,t){return Ye(this,e,t)},Fe.prototype.remove=function(e){return Ye(this,e,Gt)},Fe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Fe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Fe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Fe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ue(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Fe.isOrderedMap=Ke,Fe.prototype[Yt]=!0,Fe.prototype.delete=Fe.prototype.remove,e(He,D),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new E(function(){var i=n.next();return i.done?i:w(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,I),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new E(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(Ve,N),Ve.prototype.has=function(e){return this._iter.includes(e)},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(Ge,D),Ge.prototype.entrySeq=function(){return this._iter.toSeq()},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return w(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ve.prototype.cacheResult=Ge.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,me()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:vt(this,n)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Dn=dt.prototype;Dn.delete=Dn.remove,Dn.deleteIn=Dn.removeIn=bn.removeIn,Dn.merge=bn.merge,Dn.mergeWith=bn.mergeWith,Dn.mergeIn=bn.mergeIn,Dn.mergeDeep=bn.mergeDeep,Dn.mergeDeepWith=bn.mergeDeepWith,Dn.mergeDeepIn=bn.mergeDeepIn,Dn.setIn=bn.setIn,Dn.update=bn.update,Dn.updateIn=bn.updateIn,Dn.withMutations=bn.withMutations,Dn.asMutable=bn.asMutable,Dn.asImmutable=bn.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return _t(this,this._map.remove(e))},mt.prototype.clear=function(){return _t(this,this._map.clear())},mt.prototype.union=function(){var e=Ft.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tt(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tt(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):xt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tt(i,o)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new E(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Ct;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=Ot.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=E,Dt(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Fe(this.toKeyedSeq())},toOrderedSet:function(){return wt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ve(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Te(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Ft.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):F(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new L(i);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}(this,e))},includes:function(e){return this.some(function(t){return V(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Lt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return G(this,e)},entrySeq:function(){var e=this;if(e._cache)return new L(e._cache);var t=e.toSeq().map(Nt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Lt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=lt(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ge(this)},get:function(e,t){return this.find(function(t,n){return V(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Gt):Gt)===Gt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(l(e)?Fe():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=lt(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Gt)!==Gt},hasIn:function(e){return this.getIn(e,Gt)!==Gt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(It).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Lt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new E(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===$t?e:w(r,u,l,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Lt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Kt]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,function(){try{Object.defineProperty(Bn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Dt(n,{flip:function(){return at(this,Qe(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return V(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return V(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Fn=n.prototype;return Fn[Ut]=!0,Fn[nn]=Bn.entries,Fn.__toJS=Bn.toObject,Fn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},Dt(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var p=f[0];if("IMMUTABLE"===c)return t.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});var h=i.getRemovalRange(s,u,e.getText().slice(p.start,p.end),p.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,c,t),h=p.start,d=p.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e}(l.getCharacterList(),a,u):l.getCharacterList().slice(0,a).concat(c.getCharacterList().slice(u));var f=l.merge({text:l.getText().slice(0,a)+c.getText().slice(u),characterList:n}),p=i.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===o?f:null});return i=i.merge(p).filter(function(e){return!!e}),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:a,focusKey:o,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),i=n(21),o=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||o(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),l=u.getText(),c=u.getCharacterList(),f=u.merge({text:l.slice(0,r),characterList:c.slice(0,r)}),p=i(),h=f.merge({key:p,text:l.slice(r),characterList:c.slice(r),data:a()}),d=s.toSeq().takeUntil(function(e){return e===u}),v=s.toSeq().skipUntil(function(e){return e===u}).rest(),y=d.concat([[f.getKey(),f],[h.getKey(),h]],v).toOrderedMap();return e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function o(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return p()}var a=n(15)||function(e){for(var t=1;t0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):o(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r0?i.getInlineStyleAt(r-1):o(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var i="insert-characters"!==r,o=l.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),c=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var p={currentContent:c,directionMap:o,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=l.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=l.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=y},function(e,t,n){"use strict";function r(e,t){return e===t}var i=n(5),o=n(31),a=n(8),s=i.List,u=i.Repeat,l=i.Record,c=o.thatReturnsTrue,f=l({start:null,end:null}),p=l({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],o=t?t.getDecorations(e):s(u(null,n)),l=e.getCharacterList();return a(o,r,c,function(e,t){var n,u,h,d;i.push(new p({start:e,end:t,decoratorKey:o.get(e),leaves:(n=l.slice(e,t).toList(),u=e,h=[],d=n.map(function(e){return e.getStyle()}).toList(),a(d,r,c,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(i)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(5),s=n(33),u=n(21),l=n(34),c=a.List,f=a.Record,p=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),i=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=l(e),new o({key:u(),text:e,type:"unstyled",characterList:c(p(i.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset();return t<=this.getEndOffset()&&o<=n}if(e!==r&&e!==i)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,i=n(5),o=n(36),a=n(39),s=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),l=s(n.keySeq().zip(u));return null!=t&&i.is(t,l)?t:l}};e.exports=u},function(e,t,n){"use strict";var r=n(37),i=n(38),o=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?i.isStrong(t)||o(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function i(e){var t=r(e);return null==t?s.NEUTRAL:p.exec(t)?s.RTL:s.LTR}function o(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=i(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),o(e,t)}var s=n(38),u=n(17),l="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",c="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+l+c+"]"),p=new RegExp("["+l+c+"]"),h={firstStrongChar:r,firstStrongCharDir:i,resolveBlockDir:o,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function i(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function o(e){l=e}var a=n(17),s="LTR",u="RTL",l=null,c={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:i(e)},setGlobalDir:o,initGlobalDir:function(){o(s)},getGlobalDir:function(){return l||this.initGlobalDir(),l||a(!1),l}};e.exports=c},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var i=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==o;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var p=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,o);return void this.update(i.push(t,p,"insert-characters"))}f&&this.update(i.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===i.get(e).getMutability()?e:null}var i=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?r(e.getBlockForKey(n).getEntityAt(i-1)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):ib,D));var R=C||o,B={className:P,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":I,key:k};void 0!==x&&(B=i({},B,{contentEditable:x,suppressContentEditableWarning:!0}));var F=s.createElement(A,B,s.createElement(R,N));_.push({block:F,wrapperTemplate:j,key:k,offsetKey:I}),b=j?S.getDepth():null,E=j}for(var K=[],U=0;U<_.length;){var q=_[U];if(q.wrapperTemplate){var Y=[];do{Y.push(_[U].block),U++}while(U<_.length&&_[U].wrapperTemplate===q.wrapperTemplate);var H=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},Y);K.push(H)}else K.push(q.block),U++}return s.createElement("div",{"data-contents":"true"},K)},t}(s.Component);e.exports=f},function(e,t,n){"use strict";function r(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var i=n(15)||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(i.offsetHeight+o.y))>0&&l.setTop(i,l.getTop(i)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),l=this.props.tree.size-1,c=r(this.props.selection,n);return this.props.tree.map(function(r,h){var d=r.get("leaves"),v=d.size-1,y=d.map(function(r,i){var f=a.encode(n,h,i),p=r.get("start"),d=r.get("end");return s.createElement(o,{key:f,offsetKey:f,blockKey:n,start:p,selection:c?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(p,d),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===l&&i===v})}).toArray(),g=r.get("decoratorKey");if(null==g)return y;if(!e.props.decorator)return y;var _=m(e.props.decorator),b=_.getComponentForKey(g);if(!b)return y;var E=_.getPropsForKey(g),w=a.encode(n,h,0),S=u.slice(d.first().get("start"),d.last().get("end")),k=p.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(b,i({},E,{decoratedText:S,dir:k,key:w,entityKey:t.getEntityAt(r.get("start")),offsetKey:w}),y)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,i=r+t.text.length;if(e.hasEdgeWithin(n,r,i)){var o,u=a.findDOMNode(this),l=u.firstChild;o=l.nodeType===Node.TEXT_NODE?l:"BR"===l.tagName?u:l.firstChild,s(e,o,n,r,i)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,l=u.reduce(function(e,t){var i={},o=n[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(i.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,i)},{});if(a){var c=a(u);l=r(l,c)}return o.createElement("span",{"data-offset-key":s,ref:"leaf",style:l},o.createElement(i,null,e))},t}(o.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),i=n(53),o=n(54).isBrowser("IE <= 11"),a=o?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=o?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=i.findDOMNode(this);return""===e.children?!function(e){return o?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,a.contains(i,t))}function i(e){return"Windows"===o.platformName?e.replace(/^\s*NT/,""):e}var o=n(55),a=n(58),s=n(59),u=n(60),l={isBrowser:function(e){return r(o.browserName,o.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(o.browserArchitecture,null,e)},isDevice:function(e){return r(o.deviceName,null,e)},isEngine:function(e){return r(o.engineName,o.engineVersion,e)},isPlatform:function(e){return r(o.platformName,o.platformFullVersion,e,i)},isPlatformArchitecture:function(e){return r(o.platformArchitecture,null,e)}};e.exports=s(l,u)},function(e,t,n){"use strict";var r,i="Unknown",o={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||i,browserFullVersion:a.browser.version||i,browserMinorVersion:s.minor||i,browserName:a.browser.name||i,browserVersion:a.browser.major||i,deviceName:a.device.model||i,engineName:a.engine.name||i,engineVersion:a.engine.version||i,platformArchitecture:a.cpu.architecture||i,platformName:(r=a.os.name,o[r]||r||i),platformVersion:a.os.version||i,platformFullVersion:a.os.version||i};e.exports=u},function(e,t,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",l="vendor",c="version",f="mobile",p="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},d={rgx:function(){for(var e,t,n,r,i,o,a,s=0,u=arguments;s0?2==i.length?"function"==typeof i[1]?e[i[0]]=i[1].call(this,a):e[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?e[i[0]]=a?a.replace(i[1],i[2]):void 0:e[i[0]]=a?i[1].call(this,a,i[2]):void 0:4==i.length&&(e[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):e[i]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return b.contains(e,t)}):function(e,t){var n=e.split(m);if(n.length>0&&n.length<=2||d(!1),1===n.length)return i(n[0],t);var r=n[0],o=n[1];return l(r)&&l(o)||d(!1),i(">="+r,t)&&i("<="+o,t)}(e=n[0].trim(),t)}function i(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(v),i=s(e),l=i.modifier,c=i.rangeComponents;switch(l){case"<":return o(r,c);case"<=":return-1===(n=h(r,c))||0===n;case">=":return a(r,c);case">":return function(e,t){return 1===h(e,t)}(r,c);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,s=parseInt(r[i],10);return u(s)&&(r[i]=s+1+""),a(e,n)&&o(e,r)}(r,c);default:return function(e,t){return 0===h(e,t)}(r,c)}}function o(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(v),n=t[0].match(g);return n||d(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function l(e){return!s(e).modifier}function c(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,_=/^(\d*)(.*)/,b={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=b},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var i={};for(var o in e)n.call(e,o)&&(i[o]=t.call(r,e[o],o,e));return i}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&o(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function i(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var o=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(o(document.documentElement,n)){var l=t.getSelection(),c=e.getAnchorKey(),f=e.getAnchorOffset(),p=e.getFocusKey(),h=e.getFocusOffset(),d=e.getIsBackward();if(!l.extend&&d){var v=c,y=f;c=p,f=h,p=v,h=y,d=!1}var m=c===a&&s<=f&&u>=f,g=p===a&&s<=h&&u>=h;if(m&&g)return l.removeAllRanges(),i(l,n,f-s),void r(l,n,h-s);if(d){if(g&&(l.removeAllRanges(),i(l,n,h-s)),m){var _=l.focusNode,b=l.focusOffset;l.removeAllRanges(),i(l,n,f-s),r(l,_,b)}}else m&&(l.removeAllRanges(),i(l,n,f-s)),g&&r(l,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],i=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=i},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var i=n(70),o=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(o(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[i(t)]:e.style&&e.style[i(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),i=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=i(e),o=e===t?document.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=i},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,d)))return;return void u(d,function(e){e&&t.update(r(p,c(h),e))})}var v=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,v)))return this._internalDrag?void this.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(p,h)):void this.update(r(p,h,n.getText()))}}};e.exports=p},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var i=n(81),o=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},l=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=l},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i=0;h--)if(!(null!=p&&h>0&&o.isSurrogatePair(p,h-1))){if(e.setStart(c,h),!r(a(e),n))break;u=c,l=h}if(-1===h||0===c.childNodes.length)break;f=i(c=c.childNodes[h])}return e.setStart(u,l),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function i(e){return p.test(e)}function o(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var c=null;if(null!=s)c=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);c=l(a(f))}return{key:c,offset:0}}var p=r.childNodes[n-1],h=null,d=null;if(a(p)){var v=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(p);h=l(a(v)),d=i(v)}else h=l(s),d=i(p);return{key:h,offset:d}}function i(e){var t=e.textContent;return"\n"===t?0:t.length}var o=n(83),a=n(84),s=n(86),u=n(17),l=n(39);e.exports=function(e,t,n,i,a,u){var c=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:s(e,l(o(n)),i,l(o(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return c?(p={key:l(o(n)),offset:i},h=r(t,a,u)):f?(h={key:l(o(a)),offset:u},p=r(t,n,i)):(p=r(t,n,i),h=r(t,a,u),n===a&&i===u&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var u=r.getKeyBefore(i);null==u?a=i:(a=u,s=r.getBlockForKey(u).getText().length)}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=e.getSelection(),o=e.getCurrentContent(),a=i;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o}else if(e.isSelectionAtStartOfContent())return o;if((a=t(e))===i)return o}return r.removeRange(o,a,n)}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),s=r.getBackward(a);return o(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var i="\\s|(?![_])"+n(111).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['‘’]|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:['‘’]|(?!"+i+").)*(?:"+i+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),s=r.getForward(a);return o(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),i=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),i=n(29),o=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),l=e.getCurrentContent(),c=l.getBlockForKey(u).getLength();if(c<=1)return e;n===c?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(l,a),p=r.removeRange(l,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,v=h.merge({anchorOffset:d,focusOffset:d}),y=r.replaceWithFragment(p,v,f),m=i.push(e,y,"insert-fragment");return i.acceptSelection(m,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(i)},0)):void n(i);var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,n,"insert-fragment")}var i=n(4),o=n(6),a=n(80),s=n(9),u=n(122),l=n(29),c=n(47),f=n(85),p=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var d=n.getFiles(),v=n.getText();if(d.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(d)))return;return void f(d,function(e){if(e=e||v){var n=t.props.editorState,r=p(e),a=o.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=i.createFromArray(f),d=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(l.push(n,d,"insert-fragment"))}})}}var y=[],m=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(m,g))){if(m&&(y=p(m)),!this.props.stripPastedStyles){var _=this.getClipboard();if(n.isRichText()&&_){if(-1!==g.indexOf(this.getEditorKey())||1===y.length&&1===_.size&&_.first().getText()===m)return void this.update(r(this.props.editorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(y,_))return void this.update(r(this.props.editorState,_));if(g){var b=u.processHTML(g,this.props.blockRenderMap);if(b){var E=i.createFromArray(b);return void this.update(r(this.props.editorState,E))}}this.setClipboard(null)}if(y){var w=this.props.editorState,S=o.create({style:w.getCurrentInlineStyle(),entity:c(w.getCurrentContent(),w.getSelection())}),k=u.processText(y,S),M=i.createFromArray(k);this.update(r(this.props.editorState,M))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),i=n(5),o=n(123),a=n(21),s=n(125),u=n(34),l=i.List,c=i.Repeat,f={processHTML:function(e,t){return o(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:l(c(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function i(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(M,t))}]}}function o(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):N.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(m,e,t),"ul"!==m&&"ol"!==m||(n&&(p+=1),n=m),o||-1===f.indexOf(m)?n&&"li"===o&&"li"===m&&(w=i(a(m,n,h),p),o=m,g=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"):(w=i(a(m,n,h),p),o=m,g=!0);var M=e.firstChild;null!=M&&(m=M.nodeName.toLowerCase());for(var O=null;M;){M instanceof HTMLAnchorElement&&M.href&&u(M)?function(){var e=M,t={};j.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new y(e.href).toString(),O=d.create("LINK","MUTABLE",t)}():O=void 0,w=s(w,l(M,t,n,o,f,p,h,O||v));var T=M.nextSibling;T&&f.indexOf(m)>=0&&o&&(w=s(w,r())),T&&(m=T.nodeName.toLowerCase()),M=T}return g&&(w=s(w,i(_,p))),w}var c,f=n(6),p=n(7),h=n(41),d=n(14),v=n(5),y=n(124),m=n(21),g=n(125),_=n(17),b=n(39),E=n(34),w=v.List,S=v.OrderedSet,k=" ",M=4,O=new RegExp("\r","g"),C=new RegExp("\n","g"),T=new RegExp(" ","g"),x=new RegExp(" ?","g"),D=new RegExp("​?","g"),I=["bold","bolder","500","600","700","800","900"],N=["light","lighter","100","200","300","400"],L={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},j=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(O,"").replace(T,k).replace(x,"").replace(D,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),i=t(e);if(!i)return null;c=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=l(i,S(),"ul",null,o,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=E(e);var i=n+e.length,o=b(t).inlines.slice(n,i),a=b(t).entities.slice(n,i),s=w(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=i+1,new p({key:m(),type:b(t).blocks[r].type,depth:b(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),i=n(53),o=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=o(e,i.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var i=t.getSelection();return 0===i.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),i=n(42),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=o},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var i=n(100),o=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),l=s&&a.isBrowser("Firefox < 29"),c=i.hasCommandModifier,f=i.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return c(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case o.LEFT:return l&&c(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return l&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),l=i.setBlockType(n,s,n.getBlockForKey(r).getType()),c=i.removeRange(l,s,"backward");if(c!==n)return o.push(e,c,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?o.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=o.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return i.setBlockType(o,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),i=n(134),o=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var o=i.stringify(e.getEntityAt(r));n.hasOwnProperty(o)||(n[o]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:o(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(i.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),i=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var s=e.getText(),u=e.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),i=n(8),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return i(u,o,a,function(t,i){var o=e.getText();s.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,i.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,i=null,o=[],a=0,s=0,u=e.length;s0&&n!==i&&(o.push([i,r(e.slice(a,s),t.slice(a,s))]),a=s)}return o.push([n,r(e.slice(a),t.slice(a))]),o};var i=n(150),o=t.EMPTY_SET=new i.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:x(e)}function n(e){return a(e)?e:D(e)}function r(e){return s(e)?e:I(e)}function i(e){return o(e)&&!u(e)?e:N(e)}function o(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ut])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[Yt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function E(e){this.next=e}function w(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!C(e)}function M(e){return e&&"function"==typeof e.next}function O(e){var t=C(e);return t&&t.call(e)}function C(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function x(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function D(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():F(e)}function N(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:F(e)).toSetSeq()}function L(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new L([]))}function B(e){var t=Array.isArray(e)?new L(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function F(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return T(e)?new L(e):M(e)?new z(e):k(e)?new A(e):void 0}function U(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new E(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,D(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?I(e).map(H).toList():W(e)?D(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function V(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function G(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&V(i[1],e)&&(n||V(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!V(t,e.get(r,Gt)):!V(e.get(r,Gt),t))return f=!1,!1});return f&&e.size===p}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),mn===yn&&(mn=0,gn={}),mn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Vt,s=(0===n?r:r>>>n)&Vt,u=a===s?[Ee(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ce(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Te(e){var t=Le();if(null===e||void 0===e)return t;if(xe(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,l=i-n;return l>Wt&&(l=Wt),function(){if(u===l)return xn;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,l=a>r?0:r-a>>o,c=1+(i-a>>o);return c>Wt&&(c=Wt),function(){for(;;){if(s){var e=s();if(e!==xn)return e;s=null}if(l===c)return xn;var r=t?--c:l++;s=n(u&&u[r],o-Ht,a+(r<>>n&Vt,u=e&&s0){var l=e&&e.array[s],c=je(l,t,n-Ht,r,i,o);return c===l?e:((a=Ae(e,t)).array[s]=c,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new De(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Vt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new De(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=Ht);c&&(a+=c,i+=c,s+=c,o+=c);for(var f=Be(o),h=Be(s);h>=1<f?new De([],r):d;if(d&&h>f&&aHt;m-=Ht){var g=f>>>m&Vt;y=y.array[g]=Ae(y.array[g],r)}y.array[f>>>Ht&Vt]=d}if(s=h)a-=h,s-=h,u=Ht,l=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u&Vt;if(_!==h>>>u&Vt)break;_&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&ha&&(a=l.size),o(u)||(l=l.map(function(e){return Y(e)})),i.push(l)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Ue(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new E(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Gt);return o===Gt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new E(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=ct(e);return r&&(i.has=function(r){var i=e.get(r,Gt);return i!==Gt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Gt);return o!==Gt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new E(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return w(i,r?l:s++,c,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),m(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var l=ct(e);return l.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(l.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:w(t,u-1,t===Zt?void 0:e.value[1],e)})},l}function et(e,t,n,r){var i=ct(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,l=0;return new E(function(){var e,o,c;do{if((e=s.next()).done)return r||i===Xt?e:w(i,l++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],c=f[1],u&&(u=t.call(n,c,o,a))}while(u);return i===$t?e:w(i,o,c,e)})},i}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,l){var c=this;u.__iterate(function(i,u){return(!t||l0}function ot(e,n,r){var i=ct(e);return i.size=new L(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),O(i?e.reverse():e)}),a=0,s=!1;return new E(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:w(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function lt(e){return a(e)?n:s(e)?r:i}function ct(e){return Object.create((a(e)?D:s(e)?I:N).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):x.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=ln(t,3432918353),t=ln(t<<15|t>>>-15,461845907),t=ln(t<<13|t>>>-13,5),t=ln((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=ln(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Ft=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=i;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ut="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:w(e,i,n[t?r-i++:i++])})},e(j,D),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new E(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:w(e,a,n[a])})},j.prototype[Yt]=!0,e(A,I),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!M(r))return new E(S);var i=0;return new E(function(){var t=r.next();return t.done?t:w(e,i++,t.value)})},e(z,I),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return w(e,i,r[i++])})},e(Q,I),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return V(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,_(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return V(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return V(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:w(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:G(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,mn=0,gn={};e(ae,$),ae.of=function(){var e=Ft.call(arguments,0);return me().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Gt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Gt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Gt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Gt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var l=a.value,c=o?Gt:t.get(l,Gt),f=e(c,n,r,i);return f===c?t:f===Gt?t.remove(l):(o?me():t).set(l,f)}(this,ht(e),t,n);return r===Gt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return we(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Ft.call(arguments,1);return we(this,e,t)},ae.prototype.mergeIn=function(e){var t=Ft.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return we(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Ft.call(arguments,1);return we(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Ft.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Fe(nt(this,e))},ae.prototype.sortBy=function(e,t){return Fe(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=wn)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Vt),o=this.bitmap;return 0==(o&i)?r:this.nodes[Oe(o&i-1)].get(e+Ht,t,n,r)},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Vt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new ce(e,o+1,a)}(e,p,l,s,d);if(c&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(c&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=c?d?l:l^u:l|u,m=c?d?Ce(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Vt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Vt,u=i===Gt,l=this.nodes,c=l[s];if(u&&!c)return this;var f=_e(c,e,t+Ht,n,r,i,o,a);if(f===c)return this;var p=this.count;if(c){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ne(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Te.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Te.prototype.insert=function(e,t){return this.splice(e,0,t)},Te.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Le()},Te.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t&Vt;if(r>=this.array.length)return new De([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t&Vt;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Cn,Tn,xn={};e(Fe,ae),Fe.of=function(){return this(arguments)},Fe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Fe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Fe.prototype.set=function(e,t){return Ye(this,e,t)},Fe.prototype.remove=function(e){return Ye(this,e,Gt)},Fe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Fe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Fe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Fe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ue(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Fe.isOrderedMap=Ke,Fe.prototype[Yt]=!0,Fe.prototype.delete=Fe.prototype.remove,e(He,D),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new E(function(){var i=n.next();return i.done?i:w(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,I),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new E(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(Ve,N),Ve.prototype.has=function(e){return this._iter.includes(e)},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(Ge,D),Ge.prototype.entrySeq=function(){return this._iter.toSeq()},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return w(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ve.prototype.cacheResult=Ge.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,me()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:vt(this,r)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Dn=dt.prototype;Dn.delete=Dn.remove,Dn.deleteIn=Dn.removeIn=bn.removeIn,Dn.merge=bn.merge,Dn.mergeWith=bn.mergeWith,Dn.mergeIn=bn.mergeIn,Dn.mergeDeep=bn.mergeDeep,Dn.mergeDeepWith=bn.mergeDeepWith,Dn.mergeDeepIn=bn.mergeDeepIn,Dn.setIn=bn.setIn,Dn.update=bn.update,Dn.updateIn=bn.updateIn,Dn.withMutations=bn.withMutations,Dn.asMutable=bn.asMutable,Dn.asImmutable=bn.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return _t(this,this._map.remove(e))},mt.prototype.clear=function(){return _t(this,this._map.clear())},mt.prototype.union=function(){var e=Ft.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tt(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tt(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):xt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tt(i,o)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new E(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Ct;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=Ot.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=E,Dt(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Fe(this.toKeyedSeq())},toOrderedSet:function(){return wt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ve(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Te(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Ft.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):F(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new L(i);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}(this,e))},includes:function(e){return this.some(function(t){return V(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Lt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return G(this,e)},entrySeq:function(){var e=this;if(e._cache)return new L(e._cache);var t=e.toSeq().map(Nt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Lt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=lt(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ge(this)},get:function(e,t){return this.find(function(t,n){return V(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Gt):Gt)===Gt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(l(e)?Fe():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=lt(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Gt)!==Gt},hasIn:function(e){return this.getIn(e,Gt)!==Gt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return V(t,e)})},keySeq:function(){return this.toSeq().map(It).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Lt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new E(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===$t?e:w(r,u,l,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Lt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Kt]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,Dt(n,{flip:function(){return at(this,Qe(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Fn=n.prototype;return Fn[Ut]=!0,Fn[nn]=Bn.entries,Fn.__toJS=Bn.toObject,Fn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},Dt(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=n(151),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,i({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,l.default)(n,(i(e={},p.default.root,!0),i(e,p.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(c.default,o({},d,{title:a,className:n}),u.default.createElement("span",{className:p.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,c.default.root);var l=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=o?"submit":"button";return s.default.createElement("button",i({type:f},a,{onMouseDown:l,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var u=v++;n=d||(d=s(t)),r=l.bind(null,n,u,!1),i=l.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var c={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),d=null,v=0,y=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=p()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,i({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(l.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,c.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",o({},i,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=i(e,2),n=t[0],r=t[1],o=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},o)})}}]),t}();t.default=p},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),i=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var i=r,o=e.getLength();i=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return o(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,l.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,o){return new e(a.EditorState.push(this._editorState,i(t,n,o),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,o,s){var u=i(t,n,s);return new e(a.EditorState.createWithContent(u,o),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){switch(e){case m.BLOCK_TYPE.HEADER_ONE:return["h1"];case m.BLOCK_TYPE.HEADER_TWO:return["h2"];case m.BLOCK_TYPE.HEADER_THREE:return["h3"];case m.BLOCK_TYPE.HEADER_FOUR:return["h4"];case m.BLOCK_TYPE.HEADER_FIVE:return["h5"];case m.BLOCK_TYPE.HEADER_SIX:return["h6"];case m.BLOCK_TYPE.UNORDERED_LIST_ITEM:case m.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case m.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case m.BLOCK_TYPE.CODE:return["pre","code"];case m.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,l,c=Object.assign||function(e){for(var t=1;t",k=/^data-([a-z0-9-]+)$/,M=(i(s={},g,{element:"strong"}),i(s,_,{element:"code"}),i(s,b,{element:"em"}),i(s,E,{element:"del"}),i(s,w,{element:"ins"}),s),O=[g,b,w,E,_],C=(i(u={},m.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),i(u,m.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),T=(i(l={},m.ENTITY_TYPE.LINK,function(e,t){var n=C.hasOwnProperty(e)?C[e]:{},r=t.getData(),i={},o=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(r)[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value,f=r[c];if(n.hasOwnProperty(c))i[n[c]]=f;else k.test(c)&&(i[c]=f)}}catch(e){a=!0,s=e}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}return i}),i(l,m.ENTITY_TYPE.IMAGE,function(e,t){var n=C.hasOwnProperty(e)?C[e]:{},r=t.getData(),i={},o=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(r)[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value,f=r[c];if(n.hasOwnProperty(c))i[n[c]]=f;else k.test(c)&&(i[c]=f)}}catch(e){a=!0,s=e}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}return i}),l),x=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[M,O]),i=f(r,2),o=i[0],a=i[1];this.inlineStyles=o,this.styleOrder=a}return p(e,[{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")}}catch(e){f=!0,p=e}finally{try{!l&&y.return&&y.return()}finally{if(f)throw p}}}},{key:"writeEndTag",value:function(e){var t=o(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var l=s.value;n.unshift("")}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var i=e.getCharacterList();return(0,m.getEntityRanges)(r,i).map(function(e){var r=f(e,2),i=r[0],o=r[1].map(function(e){var r=f(e,2),i=r[0],o=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(i),u=!0,l=!1,p=void 0;try{for(var h,y=t.styleOrder[Symbol.iterator]();!(u=(h=y.next()).done);u=!0){var g=h.value;if((g!==_||n!==m.BLOCK_TYPE.CODE)&&o.has(g)){var b=t.inlineStyles[g],E=b.element,w=b.attributes,k=b.style;if(null==E&&(E="span"),w=(0,d.default)(w),null!=k){var M=(0,v.default)(k);w=null==w?{style:M}:c({},w,{style:M})}s="<"+E+a(w)+">"+s+""}}}catch(e){l=!0,p=e}finally{try{!u&&y.return&&y.return()}finally{if(l)throw p}}return s}).join(""),s=i?y.Entity.get(i):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===m.ENTITY_TYPE.LINK?""+o+"":null!=u&&u===m.ENTITY_TYPE.IMAGE?"":o}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,i=n.characterMeta,o=!1;if(r===d&&(o=!0,r=""),"pre"===e.tagName){var l=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,i);r=l.text,i=l.characterMeta}else{var c=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var i=e.length;i--;)" "===e.charAt(i)&&" "===e.charAt(i-1)&&(e=e.slice(0,i)+e.slice(i+1),t=t.slice(0,i).concat(t.slice(i+1)));var o=(0,a.default)({text:e,characterMeta:t},d+" ",d);e=o.text,t=o.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+d,d);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,i);r=c.text,i=c.characterMeta}((r=r.split(d).join("\n")).length||o)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:i.toList(),depth:e.depth}))}),t.length?t:[p]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?l.BLOCK_TYPE.ORDERED_LIST_ITEM:l.BLOCK_TYPE.UNORDERED_LIST_ITEM;case"blockquote":return l.BLOCK_TYPE.BLOCKQUOTE;case"h1":return l.BLOCK_TYPE.HEADER_ONE;case"h2":return l.BLOCK_TYPE.HEADER_TWO;case"h3":return l.BLOCK_TYPE.HEADER_THREE;case"h4":return l.BLOCK_TYPE.HEADER_FOUR;case"h5":return l.BLOCK_TYPE.HEADER_FIVE;case"h6":return l.BLOCK_TYPE.HEADER_SIX;case"pre":return l.BLOCK_TYPE.CODE;case"figure":return l.BLOCK_TYPE.ATOMIC;default:return l.BLOCK_TYPE.UNSTYLED}}},{key:"processBlockElement",value:function(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case l.BLOCK_TYPE.UNORDERED_LIST_ITEM:case l.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),i=!b.hasOwnProperty(t),o={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};i&&(this.blockList.push(o),r&&(this.depth+=1)),this.blockStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),i&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],i=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(l.INLINE_STYLE.BOLD);case"i":case"em":return e.add(l.INLINE_STYLE.ITALIC);case"ins":return e.add(l.INLINE_STYLE.UNDERLINE);case"code":return e.add(l.INLINE_STYLE.CODE);case"del":return e.add(l.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(i=g[t](t,e)||i),n.styleStack.push(r),n.entityStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),E.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(d)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(d),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],i=s.CharacterMetadata.create({style:n,entity:r}),o=(0,u.Repeat)(i,e.length);t.textFragments.push({text:e,characterMeta:o})}},{key:"processNode",value:function(e){if(e.nodeType===c.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();_.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===c.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var i=e.text,o=e.characterMeta,a=t.length,s=r.length,u=[],l=o.slice(0,0),c=0,f=i.indexOf(t);-1!==f;)u.push(i.slice(c,f)+r),l=l.concat(o.slice(c,f),n(o.slice(f,f+1),s)),c=f+a,f=i.indexOf(t,c);return u.push(i.slice(c)),l=l.concat(o.slice(c)),{text:u.join(""),characterMeta:l}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,i){o(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var l=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=l,!l&&i&&i.forEach(a.appendChild,a),a}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.attributes[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=s.name,l=s.value;t.push(u+(l?'="'+l.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}var c=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+c+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+c+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=c,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function i(e){return e.replace(/\)/g,"%29")}function o(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.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()===t&&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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],i=n[1];if(!r)return"";var o=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return i.has(c)&&(o="**"+o+"**"),i.has(d)&&(o="++"+o+"++"),i.has(p)&&(o="_"+o+"_"),i.has(h)&&(o="~~"+o+"~~"),i.has(f)&&(o=t===u.BLOCK_TYPE.CODE?o:"`"+o+"`"),o}).join(""),v=r?l.Entity.get(r):null;if(null!=v&&v.getType()===u.ENTITY_TYPE.LINK){var y=v.getData(),m=y.url||"",g=y.title?' "'+o(y.title)+'"':"";return"["+s+"]("+i(m)+g+")"}if(null!=v&&v.getType()===u.ENTITY_TYPE.IMAGE){var _=v.getData(),b=_.src||"";return"!["+(_.alt?' "'+o(_.alt)+'"':"")+"]("+i(b)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,i=n(203),o=(r=i)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=c({},e||p),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function i(e,t){if(this.options=c({},t||p),this.links=e,this.rules=d.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=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function o(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=c({},e||p),this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),l=Object.prototype.hasOwnProperty,c=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=c({},h),h.gfm=c({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,i,o,a,s,u,l,c,f;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(o=o[0].match(this.rules.item)).length,c=0;c1&&s.length>1||(e=o.slice(c+1).join("\n")+e,c=f-1)),i=r||/\n\n(?!\s*$)/.test(u),c!==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&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.paragraph.exec(e)))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var d={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};d.link=s(d.link)("inside",d._inside)("href",d._href)(),d.reflink=s(d.reflink)("inside",d._inside)(),d.normal=c({},d),d.pedantic=c({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=c({},d.normal,{escape:s(d.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(d.text)("]|","~+]|")()}),d.breaks=c({},d.gfm,{br:s(d.br)("{2,}","*")(),text:s(d.gfm.text)("{2,}","*")()}),i.rules=d,i.parse=function(e,t,n){return new i(t,n).parse(e)},i.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},o.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},o.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},o.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},o.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},o.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},o.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},o.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},o.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},o.prototype.em=function(e){return new u.ElementNode("em",[],[e])},o.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},o.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},o.prototype.del=function(e){return new u.ElementNode("del",[],[e])},o.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},o.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},o.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},o.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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(e,t){t=c({},p,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return o.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(o(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(l=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},"h7v/":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("NdNt"),u=n("t4LX"),l=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?i.a.Children.map(this.props.children,function(t){return t.type===s.a?i.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return i.a.createElement("div",l({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),l=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},i.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Additional Comments"),i.a.createElement("div",{className:"control"},i.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return i.a.createElement("div",null,i.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),i.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?i.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to flag this observation."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},c.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jVml:function(e,t,n){"use strict";var r=window.TreeSnap.metaLabels;t.a=r},"m/Dr":function(e,t,n){"use strict";var r=n("Fu8L"),i=n.n(r),o=n("HW6M"),a=n.n(o),s=n("KSGD"),u=n.n(s),l=n("GiK3"),c=n.n(l),f=n("O27J"),p=(n.n(f),function(e){var t=e.onMouseDown;return c.a.createElement("span",{className:"Select-arrow",onMouseDown:t})});p.propTypes={onMouseDown:u.a.func};var h=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],d=function(e){for(var t=0;t-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var i=e[r.valueKey],o=e[r.labelKey],a=v(i),s=v(o);if(!a&&!s)return!1;var u=a?String(i):null,l=s?String(o):null;return r.ignoreAccents&&(u&&"label"!==r.matchProp&&(u=d(u)),l&&"value"!==r.matchProp&&(l=d(l))),r.ignoreCase&&(u&&"label"!==r.matchProp&&(u=u.toLowerCase()),l&&"value"!==r.matchProp&&(l=l.toLowerCase())),"start"===r.matchPos?u&&"label"!==r.matchProp&&u.substr(0,t.length)===t||l&&"value"!==r.matchProp&&l.substr(0,t.length)===t:u&&"label"!==r.matchProp&&u.indexOf(t)>=0||l&&"value"!==r.matchProp&&l.indexOf(t)>=0})},m=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,i=e.instancePrefix,o=e.onFocus,s=e.onOptionRef,u=e.onSelect,l=e.optionClassName,f=e.optionComponent,p=e.optionRenderer,h=e.options,d=e.removeValue,v=e.selectValue,y=e.valueArray,m=e.valueKey,g=f;return h.map(function(e,f){var h=y&&y.some(function(t){return t[m]===e[m]}),_=e===t,b=a()(l,{"Select-option":!0,"is-selected":h,"is-focused":_,"is-disabled":e.disabled});return c.a.createElement(g,{className:b,focusOption:n,inputValue:r,instancePrefix:i,isDisabled:e.disabled,isFocused:_,isSelected:h,key:"option-"+f+"-"+e[m],onFocus:o,onSelect:u,option:e,optionIndex:f,ref:function(e){s(e,_)},removeValue:d,selectValue:v},p(e,f,r))})};m.propTypes={focusOption:u.a.func,focusedOption:u.a.object,inputValue:u.a.string,instancePrefix:u.a.string,onFocus:u.a.func,onOptionRef:u.a.func,onSelect:u.a.func,optionClassName:u.a.string,optionComponent:u.a.func,optionRenderer:u.a.func,options:u.a.array,removeValue:u.a.func,selectValue:u.a.func,valueArray:u.a.array,valueKey:u.a.string};var g=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b=(function(){function e(e){this.value=e}function t(t){var n,r;function i(n,r){try{var a=t[n](r),s=a.value;s instanceof e?Promise.resolve(s.value).then(function(e){i("next",e)},function(e){i("throw",e)}):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),E=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},O=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},C=function(e){function t(e){b(this,t);var n=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return k(t,e),E(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,i=a()(this.props.className,t.className);return t.disabled?c.a.createElement("div",{className:i,onMouseDown:g,onClick:g},this.props.children):c.a.createElement("div",{className:i,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(c.a.Component);C.propTypes={children:u.a.node,className:u.a.string,instancePrefix:u.a.string.isRequired,isDisabled:u.a.bool,isFocused:u.a.bool,isSelected:u.a.bool,onFocus:u.a.func,onSelect:u.a.func,onUnfocus:u.a.func,option:u.a.object.isRequired,optionIndex:u.a.number};var T=function(e){function t(e){b(this,t);var n=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return k(t,e),E(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return c.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?c.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):c.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return c.a.createElement("div",{className:a()("Select-value",this.props.value.disabled?"Select-value-disabled":"",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(c.a.Component);T.propTypes={children:u.a.node,disabled:u.a.bool,id:u.a.string,onClick:u.a.func,onRemove:u.a.func,value:u.a.object.isRequired};var x=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},D=u.a.oneOfType([u.a.string,u.a.node]),I=u.a.oneOfType([u.a.string,u.a.number]),N=1,L=function(e,t){var n=void 0===e?"undefined":_(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,i=t.valueKey;if(r)for(var o=0;oa||op.bottom?l.scrollTop=u.offsetTop+u.clientHeight-l.offsetHeight:c.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===(void 0===t?"undefined":_(t))?t:this.props;if(n.multi){if("string"==typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return L(e,n)}).filter(function(e){return e})}var r=L(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=j(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},function(){t.getValueArray(t.props.value).some(function(n){return n[t.props.valueKey]===e[t.props.valueKey]})?t.removeValue(e):t.addValue(e)}):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter(function(e){return!e.disabled}),r=n.indexOf(e);this.setValue(t.concat(e)),this.props.closeOnSelect&&(n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1]))}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter(function(n){return n[t.props.valueKey]!==e[t.props.valueKey]})),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,i=0;i0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var o=r-this.props.pageSize;r=o<0?0:o}else if("page_down"===e){var a=r+this.props.pageSize;r=a>t.length-1?t.length-1:a}-1===r&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return c.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},c.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,i=this.props.valueComponent;if(!e.length)return function(e,t,n){var r=e.inputValue,i=e.isPseudoFocused,o=e.isFocused,a=t.onSelectResetsInput;return!r||!a&&!n&&!i&&!o}(this.state,this.props,t)?c.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null;var o,a,s,u,l,f,p=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(t,o){return c.a.createElement(i,{disabled:n.props.disabled||!1===t.clearableValue,id:n._instancePrefix+"-value-"+o,instancePrefix:n._instancePrefix,key:"value-"+o+"-"+t[n.props.valueKey],onClick:p,onRemove:n.removeValue,placeholder:n.props.placeholder,value:t,values:e},r(t,o),c.a.createElement("span",{className:"Select-aria-only"}," "))}):(o=this.state,a=this.props,s=o.inputValue,u=o.isPseudoFocused,l=o.isFocused,f=a.onSelectResetsInput,s&&(f||!l&&u||l&&!u)?void 0:(t&&(p=null),c.a.createElement(i,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:p,placeholder:this.props.placeholder,value:e[0]},r(e[0]))))}},{key:"renderInput",value:function(e,t){var n,r=this,o=a()("Select-input",this.props.inputProps.className),s=this.state.isOpen,u=a()((w(n={},this._instancePrefix+"-list",s),w(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),l=this.state.inputValue;!l||this.props.onSelectResetsInput||this.state.isFocused||(l="");var f=S({},this.props.inputProps,{"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+s,"aria-haspopup":""+s,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":u,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:l});if(this.props.inputRenderer)return this.props.inputRenderer(f);if(this.props.disabled||!this.props.searchable){var p=M(this.props.inputProps,[]),h=a()(w({},this._instancePrefix+"-list",s));return c.a.createElement("div",S({},p,{"aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:o,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?c.a.createElement(i.a,S({id:this.props.id},f,{className:o,minWidth:"5"})):c.a.createElement("div",{className:o,key:"input-wrap",style:{display:"inline-block"}},c.a.createElement("input",S({id:this.props.id},f)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return c.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?c.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var r="function"==typeof this.props.filterOptions?this.props.filterOptions:y;return r(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?c.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return x(e[t.props.valueKey])}).join(this.props.delimiter);return c.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map(function(e,n){return c.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:x(e[t.props.valueKey])})})}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var i=-1;if(t.some(function(e,t){var o=e[n]===r[n];return o&&(i=t),o}),-1!==i)return i}for(var o=0;o0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"To")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"CC/BCC")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Subject")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"}),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}),i.a.createElement("p",{className:"help"},"You may use ",i.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return i.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},i.a.createElement("h5",{className:"title is-5"},"Message Preview"),i.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?i.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?i.a.createElement("table",{className:"table"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Category"),i.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?i.a.createElement("tr",null,i.a.createElement("th",null,"Found Near"),i.a.createElement("td",null,t.formatted)):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,u()(e.date.date).format("LL"))),i.a.createElement("tr",null,i.a.createElement("th",{colSpan:2},i.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?i.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):i.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return i.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},i.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),i.a.createElement("div",{className:"modal-card modal-card-lg"},i.a.createElement(l.a,{visible:this.state.loading}),i.a.createElement("header",{className:"modal-card-head"},i.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),i.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),i.a.createElement("section",{className:"modal-card-body"},i.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),i.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):i.a.createElement("div",{className:"flexbox flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),i.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=c||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,y=function(){return p.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,u,l,c=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function _(t){var n=i,r=o;return i=o=void 0,c=t,s=e.apply(r,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=a}function E(){var e=y();if(b(e))return w(e);u=setTimeout(E,function(e){var n=t-(e-l);return p?v(n,a-(e-c)):n}(e))}function w(e){return u=void 0,h&&i?_(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,l=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(E,t),f?_(e):s}(l);if(p)return u=setTimeout(E,t),_(l)}return void 0===u&&(u=setTimeout(E,t)),s}return t=g(t)||0,m(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),c=0,i=l=o=u=void 0},S.flush=function(){return void 0===u?s:w(y())},S}}).call(t,n("DuR2"))},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(){return function e(t){if(!(this instanceof e))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 w(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var M=void 0!==i.ResizeObserver?i.ResizeObserver:k;t.default=M}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/8.e3c466dcae3156837f34.js b/public/js/8.e3c466dcae3156837f34.js new file mode 100644 index 00000000..51c29577 --- /dev/null +++ b/public/js/8.e3c466dcae3156837f34.js @@ -0,0 +1 @@ +webpackJsonp([8],{"0dG/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;to&&(a=0),n.setState({previousIndex:i,currentIndex:a,isTransitioning:a!==i,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var e=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){e&&(n.setState({isTransitioning:!e}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var e=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(e),n.setState({isFullscreen:!!e})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(e){e&&(n._imageGallerySlideWrapper=e,n.resizeObserver=new l.default(n._createResizeObserver),n.resizeObserver.observe(e))},n._createResizeObserver=(0,u.default)(function(e){e&&e.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var e=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailHorizontal()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(e))},n._handleKeyDown=function(e){if(!n.props.disableArrowKeys){switch(parseInt(e.keyCode||e.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(e){n.props.defaultImage&&-1===e.target.src.indexOf(n.props.defaultImage)&&(e.target.src=n.props.defaultImage)},n._handleOnSwiped=function(e,t,r,i){var o=n.state,a=o.scrollingUpDown,s=o.scrollingLeftRight,u=n.props.isRTL;if(a&&n.setState({scrollingUpDown:!1}),s&&n.setState({scrollingLeftRight:!1}),!a){var l=(t>0?1:-1)*(u?-1:1);n._handleOnSwipedTo(l,i)}},n._handleSwiping=function(e,t,r,i){var o=n.state,a=o.galleryWidth,s=o.isTransitioning,u=o.scrollingUpDown,l=n.props.swipingTransitionDuration;if(n._setScrollDirection(t,r),s||u)n.setState({offsetPercentage:0});else{var c=t<0?1:-1,f=i/a*100;Math.abs(f)>=100&&(f=100);var p={transition:"transform "+l+"ms ease-out"};n.setState({offsetPercentage:c*f,style:p})}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(e){n.slideToIndex(n.state.currentIndex-1,e)},n._slideNext=function(e){n.slideToIndex(n.state.currentIndex+1,e)},n._renderItem=function(e){var t=n.props.onImageError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-image"},e.imageSet?o.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:t},e.imageSet.map(function(e,t){return o.default.createElement("source",{key:t,media:e.media,srcSet:e.srcSet,type:e.type})}),o.default.createElement("img",{alt:e.originalAlt,src:e.original})):o.default.createElement("img",{src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:n.props.onImageLoad,onError:t}),e.description&&o.default.createElement("span",{className:"image-gallery-description"},e.description))},n._renderThumbInner=function(e){var t=n.props.onThumbnailError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbnail-inner"},o.default.createElement("img",{src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))},n._onThumbnailClick=function(e,t){n.slideToIndex(t,e),n.props.onThumbnailClick&&n.props.onThumbnailClick(e,t)},n.state={currentIndex:e.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,s.default)(n._unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n._lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){!e.lazyLoad||this.props.lazyLoad&&this.props.items===e.items||(this._lazyLoaded=[])}},{key:"componentDidUpdate",value:function(e,t){e.items.length!==this.props.items.length&&this._handleResize(),t.currentIndex!==this.state.currentIndex&&this._updateThumbnailTranslate(t.currentIndex),e.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,s.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1}))}},{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 e=this,t=!(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(){e.state.hovering||(e.props.infinite||e._canSlideRight()?e.slideToIndex(e.state.currentIndex+1):e.pause())},Math.max(r,i)),this.props.onPlay&&t&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var e=!(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&&e&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(e){this.setState({modalFullscreen:e}),this.props.onScreenChange&&this.props.onScreenChange(e)}},{key:"fullScreen",value:function(){var e=this._imageGallery;this.props.useBrowserFullscreen?e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.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 e=this;p.map(function(t){document.addEventListener(t,e._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var e=this;p.map(function(t){document.removeEventListener(t,e._handleScreenChange)})}},{key:"_isThumbnailHorizontal",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"_setScrollDirection",value:function(e,t){var n=this.state,r=n.scrollingUpDown,i=n.scrollingLeftRight,o=Math.abs(e);Math.abs(t)>o&&!r&&!i?this.setState({scrollingUpDown:!0}):i||r||this.setState({scrollingLeftRight:!0})}},{key:"_handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this._sufficientSwipeOffset()&&!t||i||(o+=e),e<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.currentIndex0&&(er&&this._setThumbsTranslate(n+o))}}},{key:"_setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"_getThumbsTranslate",value:function(e){if(this.props.disableThumbnailScroll)return 0;var t=this.state,n=t.thumbnailsWrapperWidth,r=t.thumbnailsWrapperHeight,i=void 0;if(this._thumbnails){if(this._isThumbnailHorizontal()){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 e*(i/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n="";switch(e){case t-1:n=" left";break;case t:n=" center";break;case t+1:n=" right"}return this.props.items.length>=3&&this.props.infinite&&(0===e&&t===this.props.items.length-1?n=" right":e===this.props.items.length-1&&0===t&&(n=" left")),n}},{key:"_isGoingFromFirstToLast",value:function(){var e=this.state,t=e.currentIndex,n=e.previousIndex,r=this.props.items.length-1;return 0===n&&t===r}},{key:"_isGoingFromLastToFirst",value:function(){var e=this.state,t=e.currentIndex;return e.previousIndex===this.props.items.length-1&&0===t}},{key:"_getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=t.previousIndex,o=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===e&&r>0?o=-100+r:1===n&&0===e&&r<0&&(o=100+r),n!==i?0===i&&0===e&&0===r&&"left"===this.direction?o=100:1===i&&1===e&&0===r&&"right"===this.direction&&(o=-100):0===n&&1===e&&0===r&&"left"===this.direction?o=-100:1===n&&0===e&&0===r&&"right"===this.direction&&(o=100),o}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailHorizontal()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(e){return!this._slideIsTransitioning(e)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(e)}},{key:"_slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"_isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"_ignoreIsTransitioning",value:function(){var e=this.state,t=e.previousIndex,n=e.currentIndex,r=this.props.items.length-1;return Math.abs(t-n)>1&&!(0===t&&n===r)&&!(t===r&&0===n)}},{key:"_getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.offsetPercentage,i=this.props,o=i.infinite,a=i.items,s=i.useTranslate3D,u=i.isRTL,l=-100*n,c=a.length-1,f=(l+100*e)*(u?-1:1)+r;o&&a.length>2&&(0===n&&e===c?f=-100*(u?-1:1)+r:n===c&&0===e&&(f=100*(u?-1:1)+r)),o&&2===a.length&&(f=this._getTranslateXForTwoSlide(e));var p="translate("+f+"%, 0)";return s&&(p="translate3d("+f+"%, 0, 0)"),{WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p}}},{key:"_getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state.thumbsTranslate,o=r?-1*i:i;return this._isThumbnailHorizontal()?(e="translate(0, "+i+"px)",n&&(e="translate3d(0, "+i+"px, 0)")):(e="translate("+o+"px, 0)",n&&(e="translate3d("+o+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isFullscreen,s=t.modalFullscreen,u=t.isPlaying,l=t.scrollingLeftRight,c=this.props,f=c.infinite,p=c.preventDefaultTouchmoveEvent,h=c.isRTL,d=this._getThumbnailStyle(),v=this.props.thumbnailPosition,y=this._slideLeft,m=this._slideRight,g=[],_=[],b=[];this.props.items.forEach(function(t,i){var a=e._getAlignmentClassName(i),s=t.originalClass?" "+t.originalClass:"",u=t.thumbnailClass?" "+t.thumbnailClass:"",l=t.renderItem||e.props.renderItem||e._renderItem,c=t.renderThumbInner||e.props.renderThumbInner||e._renderThumbInner,p=!e.props.lazyLoad||a||e._lazyLoaded[i];p&&e.props.lazyLoad&&(e._lazyLoaded[i]=!0);var h=e._getSlideStyle(i),d=o.default.createElement("div",{key:i,className:"image-gallery-slide"+a+s,style:r(h,e.state.style),onClick:e.props.onClick,onTouchMove:e.props.onTouchMove,onTouchEnd:e.props.onTouchEnd,onTouchStart:e.props.onTouchStart,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,role:e.props.onClick&&"button"},p?l(t):o.default.createElement("div",{style:{height:"100%"}}));if(f?e._shouldPushSlideOnInfiniteMode(i)&&g.push(d):g.push(d),e.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,onClick:function(t){return e._onThumbnailClick(t,i)}},c(t))),e.props.showBullets){b.push(o.default.createElement("button",{key:i,type:"button",className:["image-gallery-bullet",n===i?"active":"",t.bulletClass||""].join(" "),onClick:function(r){return t.bulletOnClick&&t.bulletOnClick({item:t,itemIndex:i,currentIndex:n}),e.slideToIndex.call(e,i,r)},"aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}});var E=o.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+v+" "+(h?"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(m,!this._canSlideRight())),o.default.createElement(a.default,{className:"image-gallery-swipe",disabled:this.props.disableSwipe,key:"swipeable",delta:0,flickThreshold:this.props.flickThreshold,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped,stopPropagation:this.props.stopPropagation,preventDefaultTouchmoveEvent:p||l},o.default.createElement("div",{className:"image-gallery-slides"},g))]:o.default.createElement("div",{className:"image-gallery-slides"},g),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,s?"fullscreen-modal":""].filter(function(e){return"string"==typeof e}).join(" ");return o.default.createElement("div",{ref:function(t){return e._imageGallery=t},className:w,"aria-live":"polite"},o.default.createElement("div",{className:"image-gallery-content"+(i?" fullscreen":"")},("bottom"===v||"right"===v)&&E,this.props.showThumbnails&&o.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+v+" "+(!this._isThumbnailHorizontal()&&h?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(t){return e._thumbnailsWrapper=t}},o.default.createElement("div",{ref:function(t){return e._thumbnails=t},className:"image-gallery-thumbnails-container",style:d,"aria-label":"Thumbnail Navigation"},_))),("top"===v||"left"===v)&&E))}}]),t}();h.propTypes={flickThreshold:c.default.number,items:c.default.array.isRequired,showNav:c.default.bool,autoPlay:c.default.bool,lazyLoad:c.default.bool,infinite:c.default.bool,showIndex:c.default.bool,showBullets:c.default.bool,showThumbnails:c.default.bool,showPlayButton:c.default.bool,showFullscreenButton:c.default.bool,disableThumbnailScroll:c.default.bool,disableArrowKeys:c.default.bool,disableSwipe:c.default.bool,useBrowserFullscreen:c.default.bool,preventDefaultTouchmoveEvent:c.default.bool,defaultImage:c.default.string,indexSeparator:c.default.string,thumbnailPosition:c.default.string,startIndex:c.default.number,slideDuration:c.default.number,slideInterval:c.default.number,swipeThreshold:c.default.number,swipingTransitionDuration:c.default.number,onSlide:c.default.func,onScreenChange:c.default.func,onPause:c.default.func,onPlay:c.default.func,onClick:c.default.func,onImageLoad:c.default.func,onImageError:c.default.func,onTouchMove:c.default.func,onTouchEnd:c.default.func,onTouchStart:c.default.func,onMouseOver:c.default.func,onMouseLeave:c.default.func,onThumbnailError:c.default.func,onThumbnailClick:c.default.func,renderCustomControls:c.default.func,renderLeftNav:c.default.func,renderRightNav:c.default.func,renderPlayPauseButton:c.default.func,renderFullscreenButton:c.default.func,renderItem:c.default.func,stopPropagation:c.default.bool,additionalClass:c.default.string,useTranslate3D:c.default.bool,isRTL:c.default.bool},h.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(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"})},renderRightNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"})},renderPlayPauseButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(t?" active":""),onClick:e,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(t?" active":""),onClick:e,"aria-label":"Open Fullscreen"})}},t.default=h},"5L7H":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),l=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.collection_id,onChange:function(t){var n=t.target;return e.setState({collection_id:n.value})}},i.a.createElement("option",{value:"0"},"[Select Collection]"),this.props.collections.map(function(e,t){return i.a.createElement("option",{value:e.value,key:t},e.label)}))),this.state.errors.collection_id.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Or Create New Collection"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.label.length>0?" is-danger":""),onChange:function(t){var n=t.target;return e.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(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})),i.a.createElement("p",{className:"help"},"The selected observation will be automatically added to the newly created collection.")),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Add Observation"))),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to add this observation to a collection."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,collections:a.a.array,onSubmit:a.a.func},c.defaultProps={collections:[],onSubmit:function(){}}},"5zKI":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("O27J"),a=n.n(o),s=n("KSGD"),u=n.n(s),l=function(){function e(e,t){for(var n=0;n70?-40:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),l(t,[{key:"componentWillMount",value:function(){var e=this;this.timer=setTimeout(function(){e.hide()},5e3)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.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 e=window.scrollY>70?-40:0;this.setState({marginTop:e})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var e="";switch(this.props.type){case"success":case"danger":case"info":case"warning":e="is-"+this.props.type;break;default:e="is-success"}e+=this.state.show?" show":"",e+=this.state.hiding?" hiding":"";var t=this.state.marginTop;return i.a.createElement("div",{className:"notification push-notification "+e,style:{marginTop:t+"px"}},i.a.createElement("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message)}}],[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=document.createElement("div");a.a.render(i.a.createElement(t,{message:e,type:n,container:r}),r),document.body.appendChild(r),this.stack.length>0&&this._remove(),this.stack.push(r)}}]),t}();t.a=c,c.propTypes={message:u.a.string.isRequired,type:u.a.string,container:u.a.object.isRequired},c.defaultProps={type:"success"},c.stack=[]},7610:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)){var t=this.props.rotationAngle,n=s(function(e){return"touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}(e),t),r=n.x,i=n.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:r,y:i,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,n=t.stopPropagation,r=t.delta,i=t.onSwiping,o=t.onSwiped,a=t.onSwipingLeft,s=t.onSwipedLeft,l=t.onSwipingRight,c=t.onSwipedRight,f=t.onSwipingUp,p=t.onSwipedUp,h=t.onSwipingDown,d=t.onSwipedDown,v=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&!(e.touches&&e.touches.length>1)){var y=u(e,this.swipeable);if(!(y.absXy.absY?y.deltaX>0?(a||s)&&(a&&a(e,y.absX),m=!0):(l||c)&&(l&&l(e,y.absX),m=!0):y.deltaY>0?(f||p)&&(f&&f(e,y.absY),m=!0):(h||d)&&(h&&h(e,y.absY),m=!0),this.swipeable.swiping=!0,m&&v&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,n=t.stopPropagation,r=t.flickThreshold,i=t.onSwiped,o=t.onSwipedLeft,a=t.onSwipedRight,s=t.onSwipedUp,l=t.onSwipedDown,c=t.onTap;if(this.swipeable.swiping){var f=u(e,this.swipeable);n&&e.stopPropagation();var p=f.velocity>r;i&&i(e,f.deltaX,f.deltaY,p,f.velocity),f.absX>f.absY?f.deltaX>0?o&&o(e,f.deltaX,p):a&&a(e,f.deltaX,p):f.deltaY>0?s&&s(e,f.deltaY,p):l&&l(e,f.deltaY,p)}else c&&c(e);this.swipeable={x:null,y:null,swiping:!1,start:0}},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=r({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,i.createElement(this.props.nodeName,e,this.props.children)},t}(i.Component);l.propTypes={onSwiped:o.func,onSwiping:o.func,onSwipingUp:o.func,onSwipingRight:o.func,onSwipingDown:o.func,onSwipingLeft:o.func,onSwipedUp:o.func,onSwipedRight:o.func,onSwipedDown:o.func,onSwipedLeft:o.func,onTap:o.func,flickThreshold:o.number,delta:o.number,preventDefaultTouchmoveEvent:o.bool,stopPropagation:o.bool,nodeName:o.string,trackMouse:o.bool,disabled:o.bool,innerRef:o.func,children:o.node,rotationAngle:o.number},l.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},e.exports=l},AByj:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("h7v/"),u=n("NdNt"),l=n("c8iI"),c=n("0dG/"),f=n.n(c),p=n("PJh5"),h=n.n(p),d=n("LZyd"),v=n("iwoP"),y=n("5L7H"),m=n("jVml"),g=n("mOuh"),_=n("OE/d"),b=n("t4LX"),E=n("F8kA"),w=n("xC2h"),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=function(){function e(e,t){for(var n=0;n1?"#222":"transparent"}},i.a.createElement("img",{src:e.original,alt:"Plant Image"}))}},{key:"getImages",value:function(){var e=[],t=this.observation.images;return Object.keys(t).map(function(n){t[n].map(function(t){e.push({original:t})})}),e}},{key:"_renderImagesModal",value:function(){var e=this;if(!this.state.showModal||0===this.observation.images.images.length)return null;var t=this.getImages();return i.a.createElement(l.a,{onCloseRequest:function(){return e.setState({showModal:!1})}},i.a.createElement(f.a,{items:t,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)}))}},{key:"_renderControls",value:function(){var e=this;return!1===this.props.showControls?null:i.a.createElement("div",null,i.a.createElement("div",{className:"flexbox observation-tools"},i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"collection",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-star text-success"})),i.a.createElement("span",null,"Add to Collection")),0===this.observation.flags.length?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({controlModalContent:"flag",showControlModal:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-flag text-danger"})),i.a.createElement("span",null,"Flag Observation")):null,_.a.can("contact users")?i.a.createElement("a",{className:"button is-outlined",onClick:function(){return e.setState({showEmail:!0})}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-envelope text-info"})),i.a.createElement("span",null,"Contact Submitter")):null),this._renderControlModal())}},{key:"_renderControlModal",value:function(){var e=this;return i.a.createElement(d.a,{visible:this.state.showControlModal,onCloseRequest:function(){return e.setState({showControlModal:!1})}},"flag"===this.state.controlModalContent?this._renderFlagForm():null,"collection"===this.state.controlModalContent?this._renderCollectionForm():null)}},{key:"_renderFlagForm",value:function(){var e=this;return i.a.createElement(v.a,{observationId:this.observation.observation_id,onSubmit:function(t){e.props.onFlagCreated(t),e.setState({showControlModal:!1})}})}},{key:"_renderCollectionForm",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h3",{className:"title is-4"},"Add to Collection"),i.a.createElement(y.a,{observationId:this.observation.observation_id,collections:this.state.collections,onSubmit:function(t){e.props.onAddedToCollection(t),e.setState({showControlModal:!1})}}))}},{key:"_renderMetaData",value:function(e,t,n,r){return!0===g.a.isJson(t)&&(t=JSON.parse(t),Array.isArray(t)?t=t.join(", "):"object"===(void 0===t?"undefined":S(t))&&(t=Object.keys(t).map(function(e){return t[e]}).join(", "))),"function"==typeof t.trim&&0===t.trim().length?null:i.a.createElement("tr",{key:n},i.a.createElement("th",null,e),i.a.createElement("td",null,t," ",r||"","comment"===n&&this.props.observation.has_private_comments?i.a.createElement("p",{className:"help"},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-lock"})),i.a.createElement("span",null,"Only you can see this comment")):null))}},{key:"destroy",value:function(e){var t=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/"+e.observation_id).then(function(e){t.setState({deleted:!0}),b.a.emit("observation_deleted")}).catch(function(e){if(e.response){var t=e.response.status;return 500===t?void alert("Server error. Please try again later."):401===t||403===t?void alert("You are unauthorized to delete this observation."):void alert(e.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return i.a.createElement("div",{className:"box has-text-centered"},i.a.createElement("div",{className:"content"},i.a.createElement("h4",{className:"title is-4"},"Observation Deleted"),i.a.createElement("p",null,"Observation has been deleted successfully"),i.a.createElement(E.b,{to:"/",className:"button is-primary"},"Back to Home Page")))}},{key:"renderEmailModal",value:function(){var e=this;return _.a.can("contact users")?i.a.createElement(w.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.observation,onCloseRequest:function(){e.setState({showEmail:!1})}}):null}},{key:"getTabClass",value:function(e){return e===this.state.activeTab?"is-active":""}},{key:"render",value:function(){var e=this;if(this.state.deleted)return this.deleted();var t=this.observation.meta_data;return i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns is-mobile flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h3",{className:"title is-4"},this.observation.observation_category)),i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.selectedUnit,onChange:function(t){var n=t.target;window.units=n.value,e.setState({selectedUnit:n.value})}},i.a.createElement("option",{value:"US"},"US Units"),i.a.createElement("option",{value:"metric"},"Metric Units")))),_.a.can("delete observations")||_.a.owns(this.observation)?i.a.createElement("div",{className:"column is-narrow"},i.a.createElement("button",{type:"button",className:"button is-outlined is-danger",onClick:function(){return e.destroy(e.observation)}},i.a.createElement("span",{className:"icon is-small"},i.a.createElement("i",{className:"fa fa-trash"})),i.a.createElement("span",null,"Delete"))):null),i.a.createElement("div",{className:"columns mb-none"},i.a.createElement("div",{className:"column is-8-desktop",style:{minHeight:"300px"}},i.a.createElement("div",{className:"flexbox flex-column flex-space-between",style:{minHeight:"300px"}},i.a.createElement("table",{className:"table is-striped",style:{tableLayout:"fixed"}},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Submitted By"),i.a.createElement("td",null,this.observation.user.name)),this.observation.custom_id?i.a.createElement("tr",null,i.a.createElement("th",null,"Custom Tree Identifier"),i.a.createElement("td",null,this.observation.custom_id)):null,this.observation.mobile_id?i.a.createElement("tr",null,i.a.createElement("th",null,"ID"),i.a.createElement("td",null,this.observation.mobile_id)):null,Object.keys(t).map(function(n){if(n.indexOf("_values")>-1||n.indexOf("_units")>-1||n.indexOf("_confidence")>-1)return null;var r=null,i=void 0!==m.a[n]?m.a[n]:n,o=t[n];return void 0!==t[n+"_values"]&&(r=t[n+"_values"][e.state.selectedUnit+"_unit"],o=t[n+"_values"][e.state.selectedUnit+"_value"]),e._renderMetaData(i,o,n,r)}),i.a.createElement("tr",null,i.a.createElement("th",null,"Coordinates"),i.a.createElement("td",null,this.observation.location.latitude,", ",this.observation.location.longitude)),this.observation.location.accuracy?i.a.createElement("tr",null,i.a.createElement("th",null,"Location Accuracy"),i.a.createElement("td",null,_.a.can("view accurate location")||_.a.owns(this.observation)?"Within "+this.observation.location.accuracy+" meters radius":"Within 5 miles radius")):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,this.observation.collection_date)),0===this.observation.images.length?null:i.a.createElement("tr",null,i.a.createElement("th",null,"Photos"),i.a.createElement("td",null,i.a.createElement("a",{href:"javascript:;",onClick:function(){return e.setState({showModal:!0})}},"See All Photos"))))),this._renderControls())),i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"tabs has-no-shadow"},i.a.createElement("ul",null,i.a.createElement("li",{className:this.getTabClass("photos")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"photos"})}},"Photos")),i.a.createElement("li",{className:this.getTabClass("map")},i.a.createElement("a",{onClick:function(){return e.setState({activeTab:"map"})}},"Map")))),"map"===this.state.activeTab?i.a.createElement("div",{style:{height:"300px",width:"100%",position:"relative"}},i.a.createElement(s.a,{ref:function(t){return e.map=t},style:{height:"300px"},center:this.state.center,zoom:this.state.zoom},this.state.markers.map(function(e,t){return i.a.createElement(u.a,{owner_id:e.user_id,key:t,position:e.position,show:!0},""!==e.image?i.a.createElement("div",{className:"callout"},i.a.createElement("img",{src:e.image,alt:e.title,style:{width:"auto",height:100}})):null)}))):null,"photos"===this.state.activeTab?i.a.createElement("div",{style:{width:"100%",position:"relative"}},i.a.createElement(f.a,{items:this.getImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this._renderImage.bind(this)})):null)),this._renderImagesModal(),this.renderEmailModal())}}]),t}();t.a=M,M.propTypes={observation:a.a.object.isRequired,showControls:a.a.bool,onAddedToCollection:a.a.func,onFlagCreated:a.a.func},M.defaultProps={showControls:!1,onFlagCreated:function(e){},onAddedToCollection:function(e){}}},DakW:function(e,t,n){"use strict";var r=n("GiK3");n.n(r);var i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return window.ga&&setTimeout(function(){return window.ga("send","pageview")},2500),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),t}();t.a=i},Fu8L:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach(function(t){return delete e[t]})}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},i,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}();d.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},d.defaultProps={minWidth:1,injectStyles:!0},t.default=d},HW6M:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&this.setState({flagged:!0,flag_id:e.flags[0].id}),e.confirmations.length>0&&this.setState({confirmation:e.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var e=this,t=this.props.observation;if(void 0===t.correct_marks||void 0===t.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/admin/web/confirmations/count/"+n).then(function(t){var n=t.data.data;e.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(e){console.log(e)})}else this.setState({correctMarks:t.correct_marks,incorrectMarks:t.incorrect_marks})}},{key:"shouldSlide",value:function(e){var t=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),t!==e?n?this.setState({slideContent:e}):this.setState({slide:!n,slideContent:e}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var e=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){e.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var e=this,t=this.props.observation,n=t.images.images?t.images.images[0]:"/images/placeholder.png";return i.a.createElement(p.a,{ref:function(t){return e.maps=t},style:{height:"100%",zIndex:"0"},center:{lat:t.location.latitude,lng:t.location.longitude},zoom:4},i.a.createElement(h.a,{title:t.observation_category,position:t.location,owner_id:t.user_id,show:!0},i.a.createElement("div",{className:"media callout"},i.a.createElement("div",{className:"media-left mr-0"},i.a.createElement("img",{src:n,alt:t.observation_category,style:{width:50,height:"auto"}})),i.a.createElement("div",{className:"media-content"},i.a.createElement("div",{className:"mb-0"},i.a.createElement("strong",null,t.observation_category)),i.a.createElement("div",{className:"mb-0"},"By ",t.user.name),i.a.createElement("a",{href:"/observation/"+t.observation_id},"See full description")))))}},{key:"removeFromCollection",value:function(e,t){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:e.id,observation_id:t.observation_id}}).then(function(t){n.setState({loading:!1}),n.props.onRemovedFromCollection(e)}).catch(function(e){console.log(e.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var e=this,t=this.props.observation;return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Add to Collection"),this.state.addedToCollection?i.a.createElement("div",{className:"content"},i.a.createElement("p",{className:"text-success"},"Observation was successfully added to your collection."),i.a.createElement("div",{className:"flexbox flex-row flex-v-center flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return e.setState({addedToCollection:!1})}},"Add to Another Collection"),i.a.createElement("button",{className:"button",type:"button",onClick:function(){e.setState({addedToCollection:!1}),e.slowCloseSlideContent()}},"Done"))):i.a.createElement(c.a,{observationId:t.observation_id,collections:this.props.collections,onSubmit:function(t){e.setState({addedToCollection:!0}),e.props.onCollectionCreated(t)}}),t.collections.map(function(n){return i.a.createElement("div",{key:"collection_"+n.id,className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"}},i.a.createElement("p",{style:{paddingRight:"5px"}},'Found in "',n.label,'"'),i.a.createElement("button",{onClick:function(){return e.removeFromCollection(n,t)},className:"button is-small is-danger is-outlined"},"Remove"))}))}},{key:"renderSlideContent",value:function(e){var t=this,n=this.props.observation;switch(e){case"addToCollection":return this.renderCollectionForm();case"flag":return i.a.createElement("div",{className:"card-slide-container"},i.a.createElement("h3",{className:"title is-5"},"Flag Observation"),i.a.createElement(f.a,{observationId:n.observation_id,onSubmit:function(e){t.setState({flagged:!0,flag_id:e.id}),t.props.onFlagChange("added",e)},onUndo:function(e){t.setState({flagged:!1,flag_id:0}),t.props.onFlagChange("removed",e)},flagged:this.state.flagged,flagId:this.state.flag_id}));case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(e,t){var n=this;if(this.state.confirmation.correct===e)return this.deleteConfirmation(this.state.confirmation),v.a.push("Unmarked observation","warning"),void(e?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:e}}),-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:t.observation_id,correct:e}).then(function(e){var t=e.data.data;n.setState({confirmation:t});var r=t.correct?"correct":"incorrect";v.a.push("Marked observation as "+r+" species",t.correct?"success":"danger"),t.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(e){console.log(e.response)})}},{key:"deleteConfirmation",value:function(e){e.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/"+e.id).then(function(e){}).catch(function(e){console.log(e.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return i.a.createElement("div",{className:"card-footer marks-section"},i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.incorrectMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-times text-danger"})),i.a.createElement("span",null,"Marks")),i.a.createElement("div",{className:"card-footer-item",style:{zIndex:0}},i.a.createElement("span",null,this.state.correctMarks),i.a.createElement("span",{className:"icon ml-0 mr-0"},i.a.createElement("b",{className:"fa fa-check text-success"})),i.a.createElement("span",null,"Marks")))}},{key:"getAddress",value:function(e){var t=e.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==(void 0===t?"undefined":w(t))?n:Array.isArray(t)?n:null===t?n:{addressLine1:(t=(t=t.formatted).split(",")).shift(),addressLine2:t.join(","),address:t}}},{key:"render",value:function(){var e=this,t=this.props.observation,n=t.observation_category+("Other"===t.observation_category?" ("+t.meta_data.otherLabel+")":""),r=this.state.confirmation,o=this.getAddress(t),a=o.address,u=o.addressLine1,c=o.addressLine2;return i.a.createElement("div",{className:"observation-card-container"},i.a.createElement("div",{className:"card",style:{opacity:this.props.loading?.1:1}},i.a.createElement("header",{className:"card-header"},i.a.createElement(b.b,{to:"/observation/"+t.observation_id,className:"card-header-title text-ellipsis",title:"Visit Observation Page"},n),E.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1===r.id||r.correct?"":" is-active"),onClick:function(){return e.confirm(!1,t)}},i.a.createElement(s.a,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-times"})))):null,E.a.can("confirm species")?i.a.createElement("a",{className:"card-header-icon is-clear"+(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return e.confirm(!0,t)}},i.a.createElement(s.a,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1},i.a.createElement("span",{className:"icon"},i.a.createElement("i",{className:"fa fa-check"})))):null),i.a.createElement("div",{className:"relative-block"},i.a.createElement(d.a,{visible:this.state.loading}),i.a.createElement("div",{className:"has-bg-image relative-block is-positioned-relatively"},i.a.createElement("div",{className:"card-image img-bg-zoom",style:{backgroundImage:"url("+(t.thumbnail||"/images/placeholder.png")+")"}},i.a.createElement("a",{href:"javascript:;",className:"sidebar-img-overlay flexbox flex-v-center flex-h-center flex-column z-10",onClick:function(){e.setState({showDetailsModal:!0})}},i.a.createElement("i",{className:"fa fa-photo"}),i.a.createElement("div",{className:"has-text-centered"},"Click for More Details")))),this._renderMarks(),i.a.createElement("div",{className:"card-content"},i.a.createElement("div",{className:"content"},this.props.owner?null:i.a.createElement("span",null,"By ",t.user.name,i.a.createElement("br",null)),i.a.createElement("a",{href:"javascript:;",onClick:function(t){t.preventDefault(),e.setState({showDetailsModal:!0})}},"Quick View"),i.a.createElement("br",null),t.custom_id?i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"Custom ID")," ",t.custom_id),i.a.createElement("br",null)):i.a.createElement("div",null,i.a.createElement("small",null,i.a.createElement("strong",null,"ID")," ",t.mobile_id)),this.props.owner||E.a.can("view accurate location")?i.a.createElement("small",{className:"no-wrap"},t.location.latitude,", ",t.location.longitude,i.a.createElement("br",null)):null,i.a.createElement("small",null,l()(t.date.date).format("MMM, D YYYY H:m A Z")),""!==a?i.a.createElement("div",{className:"text-ellipsis",title:a},i.a.createElement("small",null,i.a.createElement("b",null,"Near")," ",u),i.a.createElement("br",null),i.a.createElement("small",{style:{marginLeft:"35px"}},c)):i.a.createElement("div",{style:{height:48}},"Address is unavailable"))),i.a.createElement("div",{className:"card-slide-content"+(this.state.slide?" show":"")},i.a.createElement("div",{className:"p-1 relative-block"},i.a.createElement("button",{href:"javascript:;",className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this)},i.a.createElement("i",{className:"fa fa-times"})),this.renderSlideContent(this.state.slideContent)))),i.a.createElement("footer",{className:"card-footer card-footer-z-index"},i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("addToCollection")}},i.a.createElement(s.a,{label:"Add to Collection",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-star"})))),i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("map")}},i.a.createElement(s.a,{label:"Show on Map",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-map"})))),E.a.can("contact users")&&!this.props.owner?i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){e.props.onEmailRequest(t)}},i.a.createElement(s.a,{label:"Contact Submitter",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-envelope"})))):null,this.props.owner?null:i.a.createElement("a",{href:"javascript:;",className:"card-footer-item is-paddingless",onClick:function(){return e.shouldSlide("flag")}},i.a.createElement(s.a,{label:"Flag as Inappropriate",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-flag"+(this.state.flagged?" text-danger":"")})))),this.props.owner?i.a.createElement("a",{href:"mailto:?body="+this.createUrl(t.observation_id),className:"card-footer-item is-paddingless"},i.a.createElement(s.a,{label:"Share",style:{padding:"0.75rem"}},i.a.createElement("span",{className:"icon is-small is-marginless"},i.a.createElement("i",{className:"fa fa-share"})))):null)),this.state.showDetailsModal?i.a.createElement(_,{observation:t,onCloseRequest:function(){return e.setState({showDetailsModal:!1})},visible:!0}):null)}},{key:"createUrl",value:function(e){var t=window.location;return t.port?t.protocol+"//"+t.hostname+":"+t.port+"/observation/"+e:t.protocol+"//"+t.hostname+"/observation/"+e}}]),t}();t.a=k;k.propTypes={observation:a.a.object.isRequired,onFlagChange:a.a.func,onCollectionCreated:a.a.func,onRemovedFromCollection:a.a.func,onEmailRequest:a.a.func,collections:a.a.array,loading:a.a.bool,showMarks:a.a.bool,owner:a.a.bool,marks:a.a.object},k.defaultProps={onFlagChange:function(){},onCollectionCreated:function(e){},onEmailRequest:function(e){},onRemovedFromCollection:function(e){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},LZyd:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;n=t||n<0||p&&e-c>=a}function E(){var e=y();if(b(e))return w(e);u=setTimeout(E,function(e){var n=t-(e-l);return p?v(n,a-(e-c)):n}(e))}function w(e){return u=void 0,h&&i?m(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,l=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(E,t),f?m(e):s}(l);if(p)return u=setTimeout(E,t),m(l)}return void 0===u&&(u=setTimeout(E,t)),s}return t=_(t)||0,g(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(_(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),c=0,i=l=o=u=void 0},S.flush=function(){return void 0===u?s:w(y())},S}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return g(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),m(e,t,{leading:i,maxWait:t,trailing:o})}}).call(t,n("DuR2"))},c8iI:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=function(){function e(e,t){for(var n=0;ne-101;n--)t.push(n);return t}},{key:"_userObject",value:function(e){var t=[];return e.groups.map(function(e){return t.push({label:e.name,value:e.id})}),{id:e.id,name:e.name,email:e.email,birth_year:e.birth_year,role:e.role,role_id:e.role.id,class:e.class,is_anonymous:e.is_anonymous,zipcode:e.zipcode,user_groups:t,created_at:e.created_at}}},{key:"getGroups",value:function(){return axios.get("/admin/web/groups").then(function(e){var t=[];return e.data.data.map(function(e){return t.push({label:e.name,value:e.id})}),{options:t}}).catch(function(e){console.log(e)})}},{key:"_renderPersonalInfo",value:function(){var e=this;return""===this.state.name||this.state.editing?null:i.a.createElement("div",{className:"box"},i.a.createElement("div",{className:"columns flex-v-center"},i.a.createElement("div",{className:"column"},i.a.createElement("h4",{className:"title is-4"},"Personal Information")),i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("button",{type:"button",className:"button is-info",onClick:function(t){t.preventDefault(),e.setState({editing:!e.state.editing})}},"Edit"))),i.a.createElement("div",{className:"table-responsive"},i.a.createElement("table",{className:"table is-striped mb-none"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",{style:{width:"240px"}},"Name"),i.a.createElement("td",null,this.state.name)),i.a.createElement("tr",null,i.a.createElement("th",null,"Role"),i.a.createElement("td",null,this.state.role.name)),i.a.createElement("tr",null,i.a.createElement("th",null,"Email"),i.a.createElement("td",null,this.state.email)),i.a.createElement("tr",null,i.a.createElement("th",null,"Zip Code"),i.a.createElement("td",null,this.state.zipcode)),i.a.createElement("tr",null,i.a.createElement("th",null,"Number of Observations"),i.a.createElement("td",null,this.state.observations.length)),i.a.createElement("tr",null,i.a.createElement("th",null,"Birth Year"),i.a.createElement("td",null,this.state.birth_year)),i.a.createElement("tr",null,i.a.createElement("th",null,"Class"),i.a.createElement("td",null,this.state.class)),i.a.createElement("tr",null,i.a.createElement("th",null,"Anonymous"),i.a.createElement("td",null,this.state.is_anonymous?"Yes":"No")),i.a.createElement("tr",null,i.a.createElement("th",null,"Groups"),i.a.createElement("td",null,0===this.state.user_groups.length&&"The user does not belong to any groups",this.state.user_groups.map(function(e,t){return i.a.createElement("span",{key:t},e.label,",")}))),i.a.createElement("tr",null,i.a.createElement("th",null,"Date Joined"),i.a.createElement("td",null,u()(this.state.created_at).format("MMM Do, YYYY")," (",u()(this.state.created_at).fromNow(),")"))))))}},{key:"_renderObservations",value:function(){var e=this;return""===this.state.name?null:i.a.createElement("div",null,i.a.createElement("h4",{className:"title is-4"},"Observations"),0===this.state.observations.length?i.a.createElement("p",{className:"box"},"The user didn't submit any observations"):null,i.a.createElement("div",{className:"columns is-multiline is-tablet"},this.state.observations.map(function(t,n){return n=e.state.offset*e.state.perPage+e.state.perPage?null:i.a.createElement("div",{className:"column is-6-tablet is-4-desktop",key:n},i.a.createElement(f.a,{observation:t,onEmailRequest:function(){e.setState({showEmail:!0,contact:{to:{user_id:e.state.id,name:e.state.name},from:e.state.email,observation:t}})}}))})),this._renderPaginationLinks())}},{key:"_renderPaginationLinks",value:function(){var e=this;if(this.state.observations.length<=this.state.perPage)return null;for(var t=[],n=0;n=this.state.numPages||this.setState({offset:this.state.offset+1})}},{key:"_prevPage",value:function(){this.state.offset<=0||this.setState({offset:this.state.offset-1})}},{key:"_page",value:function(e,t){e.preventDefault(),this.setState({offset:t-1})}},{key:"_renderErrors",value:function(){if(null===this.state.errors)return null;var e=this.state.errors,t=[];return Object.keys(e).map(function(n){e[n].map(function(e){t.push(e)})}),i.a.createElement("div",{className:"alert is-danger"},t.map(function(e,t){return i.a.createElement("p",{key:t},e)}))}},{key:"_renderEditingForm",value:function(){var e=this;return this.state.editing?i.a.createElement("div",{className:"box"},i.a.createElement("h4",{className:"title is-4"},"Personal Information"),this._renderErrors(),i.a.createElement("form",{action:"#",onSubmit:this.updateUserInfo.bind(this)},i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Name"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input limit-width",value:this.state.name,onChange:function(t){return e.setState({name:t.target.value})}}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Role"),i.a.createElement("div",{className:"control"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{onChange:function(t){var n=t.target;return e.setState({role_id:n.value})},value:this.state.role_id},this.state.roles.map(function(e){return i.a.createElement("option",{key:e.id,value:e.id},e.name)}))))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Email"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"email",className:"input limit-width",value:this.state.email,onChange:function(t){return e.setState({email:t.target.value})}}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Zip Code"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input limit-width",value:this.state.zipcode||"",onChange:function(t){return e.setState({zipcode:t.target.value})}}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Class"),i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input limit-width",value:this.state.class,onChange:function(t){return e.setState({class:t.target.value})}}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Groups"),i.a.createElement("div",{className:"control limit-width"},i.a.createElement(c.a.Async,{value:this.state.user_groups,loadOptions:this.getGroups.bind(this),onChange:function(t){e.setState({user_groups:t})},multi:!0}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"label"},"Birth Year"),i.a.createElement("div",{className:"control"},i.a.createElement("span",{className:"select"},i.a.createElement("select",{value:this.state.birth_year,onChange:function(t){var n=t.target;return e.setState({birth_year:n.value})}},this._years.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)})))))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",onChange:function(t){return e.setState({is_anonymous:t.target.checked})},value:this.state.is_anonymous,defaultChecked:this.state.is_anonymous}),i.a.createElement("span",{className:"ml-1"},"This user is anonymous")))),i.a.createElement("div",{className:"box-footer"},i.a.createElement("div",{className:"columns"},i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Save")))),i.a.createElement("div",{className:"column has-text-right"},i.a.createElement("button",{type:"button",className:"button is-link",onClick:function(t){t.preventDefault(),e.getUser.call(e),e.setState({editing:!e.state.editing})}},"Cancel")))))):null}},{key:"_handleRoleChange",value:function(e){var t={};this.state.roles.map(function(n){n.id===e.target.value&&(t=n)}),this.setState({role:t})}},{key:"updateUserInfo",value:function(e){var t=this;e.preventDefault(),this.setState({loading:!0});var n=[];this.state.user_groups.map(function(e){n.push(e.value)}),axios.put("/admin/web/user/"+this.props.match.params.id,{name:this.state.name,email:this.state.email,class:this.state.class,role:this.state.role_id,groups:n,is_anonymous:this.state.is_anonymous,birth_year:this.state.birth_year,zipcode:this.state.zipcode}).then(function(e){var n=t._userObject(e.data.data);t.setState(Object.assign({},n,{editing:!1,errors:null}))}).catch(function(e){e.response&&422===e.response.status&&t.setState({errors:e.response.data})}).then(function(){t.setState({loading:!1})})}},{key:"render",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement("h1",{className:"title is-3"},""!==this.state.name?this.state.name:"User Page"),this._renderEditingForm(),this._renderPersonalInfo(),this._renderObservations(),i.a.createElement(l.a,{visible:this.state.loading}),this.state.showEmail?i.a.createElement(h.a,{visible:this.state.showEmail,contact:this.state.contact,observation:this.state.contact.observation,onCloseRequest:function(){return e.setState({showEmail:!1})}}):null)}}]),t}();t.default=y,y.propTypes={location:a.a.object.isRequired}},cihR:function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=C.default.block;switch(e.getType()){case"unstyled":return(0,S.default)(t,C.default.paragraph);case"blockquote":return(0,S.default)(t,C.default.blockquote);case"code-block":return(0,S.default)(t,C.default.codeBlock);default:return t}}function a(){return b.default.createEmpty(D)}function s(e,t,n){return b.default.createFromString(e,t,D,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.createValueFromString=t.createEmptyValue=t.decorator=t.EditorValue=void 0;var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","disabled","toolbarConfig","blockStyleFn"]),g=n.getEditorState();c=c?u({},T,c):T;var b=(0,S.default)((i(e={},C.default.editor,!0),i(e,C.default.hidePlaceholder,this._shouldHidePlaceholder()),e),s);null==h&&(h=d);var E=void 0;return h||(E=f.default.createElement(_.default,{className:a,keyEmitter:this._keyEmitter,editorState:g,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:v})),f.default.createElement("div",{className:(0,S.default)(C.default.root,r)},E,f.default.createElement("div",{className:b},f.default.createElement(p.Editor,u({},m,{blockStyleFn:(0,w.default)(o,y),customStyleMap:c,editorState:g,handleReturn:this._handleReturn,keyBindingFn:this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:l,ref:"editor",spellCheck:!0,readOnly:h}))))}},{key:"_shouldHidePlaceholder",value:function(){var e=this.props.value.getEditorState().getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(e){var t=this.props.handleReturn;return!!(null!=t&&t(e)||this._handleReturnSoftNewline(e)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(e){var t=this.props.value.getEditorState();if((0,g.default)(e)){var n=t.getSelection();if(n.isCollapsed())this._onChange(p.RichUtils.insertSoftNewline(t));else{var r=t.getCurrentContent(),i=p.Modifier.removeRange(r,n,"forward"),o=i.getSelectionAfter(),a=i.getBlockForKey(o.getStartKey());i=p.Modifier.insertText(i,o,"\n",a.getInlineStyleAt(o.getStartOffset()),null),this._onChange(p.EditorState.push(t,i,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if((0,m.default)(i)&&0===i.getLength()){var o=i.getDepth(),a=0===o?(0,v.default)(e,r,O.BLOCK_TYPE.UNSTYLED):(0,d.default)(e,r,o-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var e=this.props.value.getEditorState(),t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if(!(0,m.default)(i)&&i.getType()!==O.BLOCK_TYPE.UNSTYLED&&i.getLength()===t.getStartOffset()){var o=(0,y.default)(e,r,O.BLOCK_TYPE.UNSTYLED);return this._onChange(o),!0}}return!1}},{key:"_onTab",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.onTab(e,t,2);n!==t&&this._onChange(n)}},{key:"_customKeyHandler",value:function(e){var t={};return this._keyEmitter.emit("keypress",e,t),t.wasHandled?null:(0,h.default)(e)}},{key:"_handleKeyCommand",value:function(e){var t=this.props.value.getEditorState(),n=p.RichUtils.handleKeyCommand(t,e);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(e){var t=this.props,n=t.onChange,r=t.value;null!=n&&n(r.setEditorState(e))}},{key:"_focus",value:function(){this.refs.editor.focus()}}]),t}();t.default=x;var D=new p.CompositeDecorator([E.default]);Object.assign(x,{EditorValue:b.default,decorator:D,createEmptyValue:a,createValueFromString:s}),t.EditorValue=b.default,t.decorator=D,t.createEmptyValue=a,t.createValueFromString=s},function(e,t){e.exports=n("GiK3")},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(6),a=n(40),s=n(7),u=n(32),l=n(41),c=n(43),f=n(44),p=n(50),h=n(9),d=n(14),v=n(16),y=n(29),m=n(100),g=n(131),_=n(33),b=n(133),E={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:c,convertFromHTML:n(123),convertFromRaw:n(137),convertToRaw:b,genKey:n(21),getDefaultKeyBinding:n(130),getVisibleSelectionRect:n(141)};e.exports=E},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(9),s=n(29),u=n(5),l=n(21),c=u.List,f=u.Repeat,p={insertAtomicBlock:function(e,t,n){var u=e.getCurrentContent(),p=e.getSelection(),h=a.removeRange(u,p,"backward"),d=h.getSelectionAfter(),v=a.splitBlock(h,d),y=v.getSelectionAfter(),m=a.setBlockType(v,y,"atomic"),g=i.create({entity:t}),_=[new o({key:l(),type:"atomic",text:n,characterList:c(f(g,n.length))}),new o({key:l(),type:"unstyled",text:"",characterList:c()})],b=r.createFromArray(_),E=a.replaceWithFragment(m,y,b),w=E.merge({selectionBefore:p,selectionAfter:E.getSelectionAfter().set("hasFocus",!0)});return s.push(e,w,"insert-fragment")}};e.exports=p},function(e,t,n){"use strict";var r=n(5).OrderedMap,i={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=i},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:x(e)}function n(e){return a(e)?e:D(e)}function r(e){return s(e)?e:I(e)}function i(e){return o(e)&&!u(e)?e:N(e)}function o(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ut])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[Yt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function E(e){this.next=e}function w(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!C(e)}function M(e){return e&&"function"==typeof e.next}function O(e){var t=C(e);return t&&t.call(e)}function C(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function x(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function D(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():F(e)}function N(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:F(e)).toSetSeq()}function L(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new L([]))}function B(e){var t=Array.isArray(e)?new L(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function F(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return T(e)?new L(e):M(e)?new z(e):k(e)?new A(e):void 0}function U(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new E(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,D(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?I(e).map(H).toList():W(e)?D(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function V(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function G(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&V(i[1],e)&&(n||V(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!V(t,e.get(r,Gt)):!V(e.get(r,Gt),t))return f=!1,!1});return f&&e.size===p}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),mn===yn&&(mn=0,gn={}),mn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Vt,s=(0===n?r:r>>>n)&Vt,u=a===s?[Ee(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ce(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Te(e){var t=Le();if(null===e||void 0===e)return t;if(xe(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,l=i-n;return l>Wt&&(l=Wt),function(){if(u===l)return xn;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,l=a>r?0:r-a>>o,c=1+(i-a>>o);return c>Wt&&(c=Wt),function(){for(;;){if(s){var e=s();if(e!==xn)return e;s=null}if(l===c)return xn;var r=t?--c:l++;s=n(u&&u[r],o-Ht,a+(r<>>n&Vt,u=e&&s0){var l=e&&e.array[s],c=je(l,t,n-Ht,r,i,o);return c===l?e:((a=Ae(e,t)).array[s]=c,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new De(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Vt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new De(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=Ht);c&&(a+=c,i+=c,s+=c,o+=c);for(var f=Be(o),h=Be(s);h>=1<f?new De([],r):d;if(d&&h>f&&aHt;m-=Ht){var g=f>>>m&Vt;y=y.array[g]=Ae(y.array[g],r)}y.array[f>>>Ht&Vt]=d}if(s=h)a-=h,s-=h,u=Ht,l=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u&Vt;if(_!==h>>>u&Vt)break;_&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&ha&&(a=l.size),o(u)||(l=l.map(function(e){return Y(e)})),i.push(l)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Ue(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new E(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Gt);return o===Gt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new E(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=ct(e);return r&&(i.has=function(r){var i=e.get(r,Gt);return i!==Gt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Gt);return o!==Gt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new E(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return w(i,r?l:s++,c,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),m(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var l=ct(e);return l.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(l.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:w(t,u-1,t===Zt?void 0:e.value[1],e)})},l}function et(e,t,n,r){var i=ct(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,l=0;return new E(function(){var e,o,c;do{if((e=s.next()).done)return r||i===Xt?e:w(i,l++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],c=f[1],u&&(u=t.call(n,c,o,a))}while(u);return i===$t?e:w(i,o,c,e)})},i}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,l){var c=this;u.__iterate(function(i,u){return(!t||l0}function ot(e,n,r){var i=ct(e);return i.size=new L(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),O(i?e.reverse():e)}),a=0,s=!1;return new E(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:w(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function lt(e){return a(e)?n:s(e)?r:i}function ct(e){return Object.create((a(e)?D:s(e)?I:N).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):x.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=ln(t,3432918353),t=ln(t<<15|t>>>-15,461845907),t=ln(t<<13|t>>>-13,5),t=ln((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=ln(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Ft=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=i;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ut="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:w(e,i,n[t?r-i++:i++])})},e(j,D),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new E(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:w(e,a,n[a])})},j.prototype[Yt]=!0,e(A,I),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!M(r))return new E(S);var i=0;return new E(function(){var t=r.next();return t.done?t:w(e,i++,t.value)})},e(z,I),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return w(e,i,r[i++])})},e(Q,I),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return V(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,_(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return V(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return V(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:w(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:G(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,mn=0,gn={};e(ae,$),ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Gt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Gt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Gt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Gt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var l=a.value,c=o?Gt:t.get(l,Gt),f=e(c,n,r,i);return f===c?t:f===Gt?t.remove(l):(o?me():t).set(l,f)}(this,ht(e),t,n);return r===Gt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return we(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Ft.call(arguments,1);return we(this,e,t)},ae.prototype.mergeIn=function(e){var t=Ft.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return we(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Ft.call(arguments,1);return we(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Ft.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Fe(nt(this,e))},ae.prototype.sortBy=function(e,t){return Fe(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=wn)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Vt),o=this.bitmap;return 0==(o&i)?r:this.nodes[Oe(o&i-1)].get(e+Ht,t,n,r)},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Vt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new ce(e,o+1,a)}(e,p,l,s,d);if(c&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(c&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=c?d?l:l^u:l|u,m=c?d?Ce(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Vt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Vt,u=i===Gt,l=this.nodes,c=l[s];if(u&&!c)return this;var f=_e(c,e,t+Ht,n,r,i,o,a);if(f===c)return this;var p=this.count;if(c){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ne(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Te.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Te.prototype.insert=function(e,t){return this.splice(e,0,t)},Te.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Le()},Te.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t&Vt;if(r>=this.array.length)return new De([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t&Vt;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Cn,Tn,xn={};e(Fe,ae),Fe.of=function(){return this(arguments)},Fe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Fe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Fe.prototype.set=function(e,t){return Ye(this,e,t)},Fe.prototype.remove=function(e){return Ye(this,e,Gt)},Fe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Fe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Fe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Fe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ue(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Fe.isOrderedMap=Ke,Fe.prototype[Yt]=!0,Fe.prototype.delete=Fe.prototype.remove,e(He,D),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new E(function(){var i=n.next();return i.done?i:w(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,I),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new E(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(Ve,N),Ve.prototype.has=function(e){return this._iter.includes(e)},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(Ge,D),Ge.prototype.entrySeq=function(){return this._iter.toSeq()},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return w(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ve.prototype.cacheResult=Ge.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,me()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:vt(this,n)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Dn=dt.prototype;Dn.delete=Dn.remove,Dn.deleteIn=Dn.removeIn=bn.removeIn,Dn.merge=bn.merge,Dn.mergeWith=bn.mergeWith,Dn.mergeIn=bn.mergeIn,Dn.mergeDeep=bn.mergeDeep,Dn.mergeDeepWith=bn.mergeDeepWith,Dn.mergeDeepIn=bn.mergeDeepIn,Dn.setIn=bn.setIn,Dn.update=bn.update,Dn.updateIn=bn.updateIn,Dn.withMutations=bn.withMutations,Dn.asMutable=bn.asMutable,Dn.asImmutable=bn.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return _t(this,this._map.remove(e))},mt.prototype.clear=function(){return _t(this,this._map.clear())},mt.prototype.union=function(){var e=Ft.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tt(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tt(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):xt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tt(i,o)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new E(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Ct;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=Ot.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=E,Dt(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Fe(this.toKeyedSeq())},toOrderedSet:function(){return wt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ve(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Te(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Ft.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):F(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new L(i);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}(this,e))},includes:function(e){return this.some(function(t){return V(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Lt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return G(this,e)},entrySeq:function(){var e=this;if(e._cache)return new L(e._cache);var t=e.toSeq().map(Nt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Lt(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=lt(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ge(this)},get:function(e,t){return this.find(function(t,n){return V(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Gt):Gt)===Gt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(l(e)?Fe():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=lt(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Gt)!==Gt},hasIn:function(e){return this.getIn(e,Gt)!==Gt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(It).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Lt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new E(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===$t?e:w(r,u,l,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Lt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Kt]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,function(){try{Object.defineProperty(Bn,"length",{get:function(){if(!t.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Dt(n,{flip:function(){return at(this,Qe(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return V(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return V(t,e)})},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Fn=n.prototype;return Fn[Ut]=!0,Fn[nn]=Bn.entries,Fn.__toJS=Bn.toObject,Fn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},Dt(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||ee.start});1!=f.length&&a(!1);var p=f[0];if("IMMUTABLE"===c)return t.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});var h=i.getRemovalRange(s,u,e.getText().slice(p.start,p.end),p.start,n);return t.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0)return" "+e}else if(t0?n.get(t-1):void 0,u=t=n&&(r={start:e,end:t})}),"object"!=typeof r&&s(!1),r}(n,c,t),h=p.start,d=p.end;ht;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e}(l.getCharacterList(),a,u):l.getCharacterList().slice(0,a).concat(c.getCharacterList().slice(u));var f=l.merge({text:l.getText().slice(0,a)+c.getText().slice(u),characterList:n}),p=i.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===s}).concat(r.Map([[s,null]])).map(function(e,t){return t===o?f:null});return i=i.merge(p).filter(function(e){return!!e}),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:a,focusKey:o,focusOffset:a,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(5),i=n(21),o=n(17),a=r.Map;e.exports=function(e,t){t.isCollapsed()||o(!1);var n=t.getAnchorKey(),r=t.getAnchorOffset(),s=e.getBlockMap(),u=s.get(n),l=u.getText(),c=u.getCharacterList(),f=u.merge({text:l.slice(0,r),characterList:c.slice(0,r)}),p=i(),h=f.merge({key:p,text:l.slice(r),characterList:c.slice(r),data:a()}),d=s.toSeq().takeUntil(function(e){return e===u}),v=s.toSeq().skipUntil(function(e){return e===u}).rest(),y=d.concat([[f.getKey(),f],[h.getKey(),h]],v).toOrderedMap();return e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(e,t){return e.getBlockMap().map(function(e){return s.generate(e,t)}).toOrderedMap()}function o(e,t){for(var n,r=e.getBlockBefore(t);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=e.getBlockBefore(r.getKey())}return p()}var a=n(15)||function(e){for(var t=1;t0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):o(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r0?i.getInlineStyleAt(r-1):o(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return r(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),r(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return e.acceptSelection(t,new f({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var i="insert-characters"!==r,o=l.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),c=n;a!==s.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();"adjust-depth"!==r&&"change-block-type"!==r&&(f=null);var p={currentContent:c,directionMap:o,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=l.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=l.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();e.exports=y},function(e,t,n){"use strict";function r(e,t){return e===t}var i=n(5),o=n(31),a=n(8),s=i.List,u=i.Repeat,l=i.Record,c=o.thatReturnsTrue,f=l({start:null,end:null}),p=l({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t){var n=e.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],o=t?t.getDecorations(e):s(u(null,n)),l=e.getCharacterList();return a(o,r,c,function(e,t){var n,u,h,d;i.push(new p({start:e,end:t,decoratorKey:o.get(e),leaves:(n=l.slice(e,t).toList(),u=e,h=[],d=n.map(function(e){return e.getStyle()}).toList(),a(d,r,c,function(e,t){h.push(new f({start:e+u,end:t+u}))}),s(h))}))}),s(i)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};e.exports=h},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(7),a=n(5),s=n(33),u=n(21),l=n(34),c=a.List,f=a.Record,p=a.Repeat,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.createFromBlockArray=function(e){var n=r.createFromArray(e),i=s.createEmpty(n.first().getKey());return new t({blockMap:n,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=e.split(n).map(function(e){return e=l(e),new o({key:u(),text:e,type:"unstyled",characterList:c(p(i.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(f({blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=h},function(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset();return t<=this.getEndOffset()&&o<=n}if(e!==r&&e!==i)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(5).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,n){"use strict";var r,i=n(5),o=n(36),a=n(39),s=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),l=s(n.keySeq().zip(u));return null!=t&&i.is(t,l)?t:l}};e.exports=u},function(e,t,n){"use strict";var r=n(37),i=n(38),o=n(17),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?i.isStrong(t)||o(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},function(e,t,n){"use strict";function r(e){var t=f.exec(e);return null==t?null:t[0]}function i(e){var t=r(e);return null==t?s.NEUTRAL:p.exec(t)?s.RTL:s.LTR}function o(e,t){if(t=t||s.NEUTRAL,!e.length)return t;var n=i(e);return n===s.NEUTRAL?t:n}function a(e,t){return t||(t=s.getGlobalDir()),s.isStrong(t)||u(!1),o(e,t)}var s=n(38),u=n(17),l="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",c="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+l+c+"]"),p=new RegExp("["+l+c+"]"),h={firstStrongChar:r,firstStrongCharDir:i,resolveBlockDir:o,getDirection:a,isDirectionLTR:function(e,t){return a(e,t)===s.LTR},isDirectionRTL:function(e,t){return a(e,t)===s.RTL}};e.exports=h},function(e,t,n){"use strict";function r(e){return e===s||e===u}function i(e){return r(e)||a(!1),e===s?"ltr":"rtl"}function o(e){l=e}var a=n(17),s="LTR",u="RTL",l=null,c={NEUTRAL:"NEUTRAL",LTR:s,RTL:u,isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(e,t){return r(e)||a(!1),r(t)||a(!1),e===t?null:i(e)},setGlobalDir:o,initGlobalDir:function(){o(s)},getGlobalDir:function(){return l||this.initGlobalDir(),l||a(!1),l}};e.exports=c},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(5).List,i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,r){var i=0;(0,n.strategy)(e,function(e,n){(function(e,t,n){for(var r=t;r0||null!==o;if(f&&this.restoreEditorDOM(),this.exitCurrentMode(),this.removeRenderGuard(),e){var p=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,o);return void this.update(i.push(t,p,"insert-characters"))}f&&this.update(i.set(t,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e){return e&&"MUTABLE"===i.get(e).getMutability()?e:null}var i=n(14);e.exports=function(e,t){if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?r(e.getBlockForKey(n).getEntityAt(i-1)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return r(a===s.getLength()?null:s.getEntityAt(a))}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):ib,D));var R=C||o,B={className:P,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":I,key:k};void 0!==x&&(B=i({},B,{contentEditable:x,suppressContentEditableWarning:!0}));var F=s.createElement(A,B,s.createElement(R,N));_.push({block:F,wrapperTemplate:j,key:k,offsetKey:I}),b=j?S.getDepth():null,E=j}for(var K=[],U=0;U<_.length;){var q=_[U];if(q.wrapperTemplate){var Y=[];do{Y.push(_[U].block),U++}while(U<_.length&&_[U].wrapperTemplate===q.wrapperTemplate);var H=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},Y);K.push(H)}else K.push(q.block),U++}return s.createElement("div",{"data-contents":"true"},K)},t}(s.Component);e.exports=f},function(e,t,n){"use strict";function r(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var i=n(15)||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+n+10)}else{(n=r.offsetHeight+r.offsetTop-(i.offsetHeight+o.y))>0&&l.setTop(i,l.getTop(i)+n+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),u=t.getText(),l=this.props.tree.size-1,c=r(this.props.selection,n);return this.props.tree.map(function(r,h){var d=r.get("leaves"),v=d.size-1,y=d.map(function(r,i){var f=a.encode(n,h,i),p=r.get("start"),d=r.get("end");return s.createElement(o,{key:f,offsetKey:f,blockKey:n,start:p,selection:c?e.props.selection:void 0,forceSelection:e.props.forceSelection,text:u.slice(p,d),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===l&&i===v})}).toArray(),g=r.get("decoratorKey");if(null==g)return y;if(!e.props.decorator)return y;var _=m(e.props.decorator),b=_.getComponentForKey(g);if(!b)return y;var E=_.getPropsForKey(g),w=a.encode(n,h,0),S=u.slice(d.first().get("start"),d.last().get("end")),k=p.getHTMLDirIfDifferent(f.getDirection(S),e.props.direction);return s.createElement(b,i({},E,{decoratedText:S,dir:k,key:w,entityKey:t.getEntityAt(r.get("start")),offsetKey:w}),y)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=g},function(e,t,n){"use strict";var r=n(15),i=n(52),o=n(1),a=n(53),s=(n(33),n(61)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.blockKey,r=t.start,i=r+t.text.length;if(e.hasEdgeWithin(n,r,i)){var o,u=a.findDOMNode(this),l=u.firstChild;o=l.nodeType===Node.TEXT_NODE?l:"BR"===l.tagName?u:l.firstChild,s(e,o,n,r,i)}}},t.prototype.shouldComponentUpdate=function(e){return a.findDOMNode(this.refs.leaf).textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var t=this.props,n=t.customStyleMap,a=t.customStyleFn,s=t.offsetKey,u=t.styleSet,l=u.reduce(function(e,t){var i={},o=n[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(i.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,i)},{});if(a){var c=a(u);l=r(l,c)}return o.createElement("span",{"data-offset-key":s,ref:"leaf",style:l},o.createElement(i,null,e))},t}(o.Component);e.exports=u},function(e,t,n){"use strict";var r=n(1),i=n(53),o=n(54).isBrowser("IE <= 11"),a=o?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),s=o?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=i.findDOMNode(this);return""===e.children?!function(e){return o?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?a:s:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},function(e,t){e.exports=n("O27J")},function(e,t,n){"use strict";function r(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,a.contains(i,t))}function i(e){return"Windows"===o.platformName?e.replace(/^\s*NT/,""):e}var o=n(55),a=n(58),s=n(59),u=n(60),l={isBrowser:function(e){return r(o.browserName,o.browserFullVersion,e)},isBrowserArchitecture:function(e){return r(o.browserArchitecture,null,e)},isDevice:function(e){return r(o.deviceName,null,e)},isEngine:function(e){return r(o.engineName,o.engineVersion,e)},isPlatform:function(e){return r(o.platformName,o.platformFullVersion,e,i)},isPlatformArchitecture:function(e){return r(o.platformArchitecture,null,e)}};e.exports=s(l,u)},function(e,t,n){"use strict";var r,i="Unknown",o={"Mac OS":"Mac OS X"},a=(new(n(56))).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),u={browserArchitecture:a.cpu.architecture||i,browserFullVersion:a.browser.version||i,browserMinorVersion:s.minor||i,browserName:a.browser.name||i,browserVersion:a.browser.major||i,deviceName:a.device.model||i,engineName:a.engine.name||i,engineVersion:a.engine.version||i,platformArchitecture:a.cpu.architecture||i,platformName:(r=a.os.name,o[r]||r||i),platformVersion:a.os.version||i,platformFullVersion:a.os.version||i};e.exports=u},function(e,t,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",l="vendor",c="version",f="mobile",p="tablet",h={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2==0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.split(".")[0]:void 0}},d={rgx:function(){for(var e,t,n,r,i,o,a,s=0,u=arguments;s0?2==i.length?"function"==typeof i[1]?e[i[0]]=i[1].call(this,a):e[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?e[i[0]]=a?a.replace(i[1],i[2]):void 0:e[i[0]]=a?i[1].call(this,a,i[2]):void 0:4==i.length&&(e[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):e[i]=a||void 0;s+=2}return e},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r1?n.some(function(e){return b.contains(e,t)}):function(e,t){var n=e.split(m);if(n.length>0&&n.length<=2||d(!1),1===n.length)return i(n[0],t);var r=n[0],o=n[1];return l(r)&&l(o)||d(!1),i(">="+r,t)&&i("<="+o,t)}(e=n[0].trim(),t)}function i(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(v),i=s(e),l=i.modifier,c=i.rangeComponents;switch(l){case"<":return o(r,c);case"<=":return-1===(n=h(r,c))||0===n;case">=":return a(r,c);case">":return function(e,t){return 1===h(e,t)}(r,c);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,s=parseInt(r[i],10);return u(s)&&(r[i]=s+1+""),a(e,n)&&o(e,r)}(r,c);default:return function(e,t){return 0===h(e,t)}(r,c)}}function o(e,t){return-1===h(e,t)}function a(e,t){var n=h(e,t);return 1===n||0===n}function s(e){var t=e.split(v),n=t[0].match(g);return n||d(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function l(e){return!s(e).modifier}function c(e,t){for(var n=e.length;nt?1:e=|~>|~|>|)?\s*(.+)/,_=/^(\d*)(.*)/,b={contains:function(e,t){return r(e.trim(),t.trim())}};e.exports=b},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var i={};for(var o in e)n.call(e,o)&&(i[o]=t.call(r,e[o],o,e));return i}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){if(e.extend&&o(a(),t))e.extend(t,n);else{var r=e.getRangeAt(0);r.setEnd(t,n),e.addRange(r.cloneRange())}}function i(e,t,n){var r=document.createRange();r.setStart(t,n),e.addRange(r)}var o=n(62),a=n(65);e.exports=function(e,n,a,s,u){if(o(document.documentElement,n)){var l=t.getSelection(),c=e.getAnchorKey(),f=e.getAnchorOffset(),p=e.getFocusKey(),h=e.getFocusOffset(),d=e.getIsBackward();if(!l.extend&&d){var v=c,y=f;c=p,f=h,p=v,h=y,d=!1}var m=c===a&&s<=f&&u>=f,g=p===a&&s<=h&&u>=h;if(m&&g)return l.removeAllRanges(),i(l,n,f-s),void r(l,n,h-s);if(d){if(g&&(l.removeAllRanges(),i(l,n,h-s)),m){var _=l.focusNode,b=l.focusOffset;l.removeAllRanges(),i(l,n,f-s),r(l,_,b)}}else m&&(l.removeAllRanges(),i(l,n,f-s)),g&&r(l,n,h-s)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(63);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(64);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],i=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};e.exports=n},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(69),getScrollParent:function(e){if(!e)return null;for(;e&&e!==document.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return window}};e.exports=i},function(e,t,n){"use strict";function r(e){return null==e?e:String(e)}var i=n(70),o=n(71);e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return r(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return r(n.getPropertyValue(o(t)));if("display"===t)return"none"}return r(e.currentStyle?"float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[i(t)]:e.style&&e.style[i(t)])}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e){var t=document.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(75),i=n(76);e.exports=function(e){var t=r();e===window&&(e=t);var n=i(e),o=e===t?document.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return e=e||document,n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=i},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(this.props.handleDroppedFiles&&f(this.props.handleDroppedFiles(h,d)))return;return void u(d,function(e){e&&t.update(r(p,c(h),e))})}var v=this._internalDrag?"internal":"external";if(!this.props.handleDrop||!f(this.props.handleDrop(h,n,v)))return this._internalDrag?void this.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(p,h)):void this.update(r(p,h,n.getText()))}}};e.exports=p},function(e,t,n){"use strict";function r(e){if("file"==e.kind)return e.getAsFile()}var i=n(81),o=n(82),a=n(31),s=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},l=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return u[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(s,"\n"):null},e.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")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.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},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=l},function(e,t){"use strict";function n(e){return e.split("/")}var r={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var t=n(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};e.exports=r},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i=0;h--)if(!(null!=p&&h>0&&o.isSurrogatePair(p,h-1))){if(e.setStart(c,h),!r(a(e),n))break;u=c,l=h}if(-1===h||0===c.childNodes.length)break;f=i(c=c.childNodes[h])}return e.setStart(u,l),e}},function(e,t,n){"use strict";function r(e){return u<=e&&e<=f}function i(e){return p.test(e)}function o(e,t){return 1+r(e.charCodeAt(t))}function a(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a=r)return""}else if(t<0){for(a=r;t<0&&00&&s0&&(n=r.childNodes.length)),0===n){var c=null;if(null!=s)c=s;else{var f=function(e){for(;e.firstChild&&a(e.firstChild);)e=e.firstChild;return e}(r);c=l(a(f))}return{key:c,offset:0}}var p=r.childNodes[n-1],h=null,d=null;if(a(p)){var v=function(e){for(;e.lastChild&&a(e.lastChild);)e=e.lastChild;return e}(p);h=l(a(v)),d=i(v)}else h=l(s),d=i(p);return{key:h,offset:d}}function i(e){var t=e.textContent;return"\n"===t?0:t.length}var o=n(83),a=n(84),s=n(86),u=n(17),l=n(39);e.exports=function(e,t,n,i,a,u){var c=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:s(e,l(o(n)),i,l(o(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return c?(p={key:l(o(n)),offset:i},h=r(t,a,u)):f?(h={key:l(o(a)),offset:u},p=r(t,n,i)):(p=r(t,n,i),h=r(t,a,u),n===a&&i===u&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:s(e,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var u=r.getKeyBefore(i);null==u?a=i:(a=u,s=r.getBlockForKey(u).getText().length)}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=e.getSelection(),o=e.getCurrentContent(),a=i;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o}else if(e.isSelectionAtStartOfContent())return o;if((a=t(e))===i)return o}return r.removeRange(o,a,n)}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),s=r.getBackward(a);return o(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t,n){"use strict";function r(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var i="\\s|(?![_])"+n(111).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['‘’]|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:['‘’]|(?!"+i+").)*(?:"+i+")*$"),s={getBackward:function(e){return r(e,!0)},getForward:function(e){return r(e,!1)}};e.exports=s},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(110),i=n(29),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),s=r.getForward(a);return o(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(9),i=n(29);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(107),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29),i=n(104),o=n(113),a=n(108);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(9),i=n(29),o=n(20);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),l=e.getCurrentContent(),c=l.getBlockForKey(u).getLength();if(c<=1)return e;n===c?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(l,a),p=r.removeRange(l,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,v=h.merge({anchorOffset:d,focusOffset:d}),y=r.replaceWithFragment(p,v,f),m=i.push(e,y,"insert-fragment");return i.acceptSelection(m,s)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())return e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),void setTimeout(function(){n(i)},0)):void n(i);var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}},function(e,t,n){"use strict";function r(e,t){var n=s.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,n,"insert-fragment")}var i=n(4),o=n(6),a=n(80),s=n(9),u=n(122),l=n(29),c=n(47),f=n(85),p=n(126),h=n(87);e.exports=function(e){var t=this;e.preventDefault();var n=new a(e.clipboardData);if(!n.isRichText()){var d=n.getFiles(),v=n.getText();if(d.length>0){if(this.props.handlePastedFiles&&h(this.props.handlePastedFiles(d)))return;return void f(d,function(e){if(e=e||v){var n=t.props.editorState,r=p(e),a=o.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,a),h=i.createFromArray(f),d=s.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(l.push(n,d,"insert-fragment"))}})}}var y=[],m=n.getText(),g=n.getHTML();if(!this.props.handlePastedText||!h(this.props.handlePastedText(m,g))){if(m&&(y=p(m)),!this.props.stripPastedStyles){var _=this.getClipboard();if(n.isRichText()&&_){if(-1!==g.indexOf(this.getEditorKey())||1===y.length&&1===_.size&&_.first().getText()===m)return void this.update(r(this.props.editorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(y,_))return void this.update(r(this.props.editorState,_));if(g){var b=u.processHTML(g,this.props.blockRenderMap);if(b){var E=i.createFromArray(b);return void this.update(r(this.props.editorState,E))}}this.setClipboard(null)}if(y){var w=this.props.editorState,S=o.create({style:w.getCurrentInlineStyle(),entity:c(w.getCurrentContent(),w.getSelection())}),k=u.processText(y,S),M=i.createFromArray(k);this.update(r(this.props.editorState,M))}}}},function(e,t,n){"use strict";var r=(n(6),n(7)),i=n(5),o=n(123),a=n(21),s=n(125),u=n(34),l=i.List,c=i.Repeat,f={processHTML:function(e,t){return o(e,s,t)},processText:function(e,t){return e.map(function(e){return e=u(e),new r({key:a(),type:"unstyled",text:e,characterList:l(c(t,e.length))})})}};e.exports=f},function(e,t,n){"use strict";function r(){return{text:"\n",inlines:[S()],entities:new Array(1),blocks:[]}}function i(e,t){return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[{type:e,depth:Math.max(0,Math.min(M,t))}]}}function o(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}function a(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r=0?e.add("BOLD"):N.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()),n}(m,e,t),"ul"!==m&&"ol"!==m||(n&&(p+=1),n=m),o||-1===f.indexOf(m)?n&&"li"===o&&"li"===m&&(w=i(a(m,n,h),p),o=m,g=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"):(w=i(a(m,n,h),p),o=m,g=!0);var M=e.firstChild;null!=M&&(m=M.nodeName.toLowerCase());for(var O=null;M;){M instanceof HTMLAnchorElement&&M.href&&u(M)?function(){var e=M,t={};j.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new y(e.href).toString(),O=d.create("LINK","MUTABLE",t)}():O=void 0,w=s(w,l(M,t,n,o,f,p,h,O||v));var T=M.nextSibling;T&&f.indexOf(m)>=0&&o&&(w=s(w,r())),T&&(m=T.nodeName.toLowerCase()),M=T}return g&&(w=s(w,i(_,p))),w}var c,f=n(6),p=n(7),h=n(41),d=n(14),v=n(5),y=n(124),m=n(21),g=n(125),_=n(17),b=n(39),E=n(34),w=v.List,S=v.OrderedSet,k=" ",M=4,O=new RegExp("\r","g"),C=new RegExp("\n","g"),T=new RegExp(" ","g"),x=new RegExp(" ?","g"),D=new RegExp("​?","g"),I=["bold","bolder","500","600","700","800","900"],N=["light","lighter","100","200","300","400"],L={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},j=["className","href","rel","target","title"];e.exports=function(e){var t=function(e,t,n){e=e.trim().replace(O,"").replace(T,k).replace(x,"").replace(D,"");var r=function(e){var t=e.get("unstyled").element;return e.map(function(e){return e.element}).valueSeq().toSet().filter(function(e){return e&&e!==t}).toArray().sort()}(n),i=t(e);if(!i)return null;c=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,r)?r:["div"],a=l(i,S(),"ul",null,o,-1,n);return 0===a.text.indexOf("\r")&&(a={text:a.text.slice(1),inlines:a.inlines.slice(1),entities:a.entities.slice(1),blocks:a.blocks}),"\r"===a.text.slice(-1)&&(a.text=a.text.slice(0,-1),a.inlines=a.inlines.slice(0,-1),a.entities=a.entities.slice(0,-1),a.blocks.pop()),0===a.blocks.length&&a.blocks.push({type:"unstyled",depth:0}),a.text.split("\r").length===a.blocks.length+1&&a.blocks.unshift({type:"unstyled",depth:0}),a}(e,arguments.length<=1||void 0===arguments[1]?g:arguments[1],arguments.length<=2||void 0===arguments[2]?h:arguments[2]);if(null==t)return null;var n=0;return t.text.split("\r").map(function(e,r){e=E(e);var i=n+e.length,o=b(t).inlines.slice(n,i),a=b(t).entities.slice(n,i),s=w(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),f.create(n)}));return n=i+1,new p({key:m(),type:b(t).blocks[r].type,depth:b(t).blocks[r].depth,text:e,characterList:s})})}},function(e,t){"use strict";var n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=n},function(e,t,n){"use strict";var r=n(54).isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t,n){"use strict";var r=n(29),i=n(53),o=n(128);e.exports=function(){if(!this._blockSelectEvents){var e=this.props.editorState,t=o(e,i.findDOMNode(this.refs.editorContainer).firstChild),n=t.selectionState;n!==e.getSelection()&&(e=t.needsRecovery?r.forceSelection(e,n):r.acceptSelection(e,n),this.update(e))}}},function(e,t,n){(function(t){"use strict";var r=n(106);e.exports=function(e,n){var i=t.getSelection();return 0===i.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(1),i=n(42),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},t}(r.Component);e.exports=o},function(e,t,n){"use strict";function r(e){return s&&e.altKey||f(e)}var i=n(100),o=n(46),a=n(54),s=a.isPlatform("Mac OS X"),u=a.isPlatform("Windows"),l=s&&a.isBrowser("Firefox < 29"),c=i.hasCommandModifier,f=i.isCtrlKeyCommand;e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return f(e)?"delete":null;case 72:return f(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return!u&&f(e)?"secondary-cut":null;case 77:case 79:return f(e)?"split-block":null;case 84:return s&&f(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return s&&f(e)?"backspace-word":null;case 89:return f(e)?u?"redo":"secondary-paste":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return u&&e.shiftKey?null:r(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return c(e)&&s?"backspace-to-start-of-line":r(e)?"backspace-word":"backspace"}(e);case o.LEFT:return l&&c(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return l&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(29),a=(n(33),n(132)),s=n(39),u={currentBlockContainsLink:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var s=t.merge({anchorKey:a.getKey(),anchorOffset:0}),l=i.setBlockType(n,s,n.getBlockForKey(r).getType()),c=i.removeRange(l,s,"backward");if(c!==n)return o.push(e,c,"remove-range")}var f=u.tryToRemoveBlockStyle(e);return f?o.push(e,f,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockForKey(r).getLength();if(t.getStartOffset()0)return null;var s=a.getType(),u=o.getBlockBefore(r);if("code-block"===s&&u&&"code-block"===u.getType())return null;if("unstyled"!==s)return i.setBlockType(o,t,"unstyled")}return null}};e.exports=u},function(e,t){"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(14),i=n(134),o=n(135),a=n(136);e.exports=function(e){var t=0,n={},s=[];e.getBlockMap().forEach(function(e,r){e.findEntityRanges(function(e){return null!==e.getEntity()},function(r){var o=i.stringify(e.getEntityAt(r));n.hasOwnProperty(o)||(n[o]=""+t++)}),s.push({key:r,text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:a(e),entityRanges:o(e,n),data:e.getData().toObject()})});var u={};return Object.keys(n).forEach(function(e,t){var n=r.get(i.unstringify(e));u[t]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{entityMap:u,blocks:s}}},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(134),i=n(104).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var s=e.getText(),u=e.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[r.stringify(u)])})}),n}},function(e,t,n){"use strict";var r=n(104),i=n(8),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],u=t.map(function(e){return e.has(n)}).toList();return i(u,o,a,function(t,i){var o=e.getText();s.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(15)||function(e){for(var t=1;t0&&!(0,i.is)(n,r)&&(a.push([e.slice(s,u),r]),s=u)}return a.push([e.slice(s),n]),a}Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SET=void 0,t.default=function(e,t){for(var n=null,i=null,o=[],a=0,s=0,u=e.length;s0&&n!==i&&(o.push([i,r(e.slice(a,s),t.slice(a,s))]),a=s)}return o.push([n,r(e.slice(a),t.slice(a))]),o};var i=n(150),o=t.EMPTY_SET=new i.OrderedSet},function(e,t,n){e.exports=function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:x(e)}function n(e){return a(e)?e:D(e)}function r(e){return s(e)?e:I(e)}function i(e){return o(e)&&!u(e)?e:N(e)}function o(e){return!(!e||!e[Kt])}function a(e){return!(!e||!e[Ut])}function s(e){return!(!e||!e[qt])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[Yt])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function h(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function y(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function E(e){this.next=e}function w(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!C(e)}function M(e){return e&&"function"==typeof e.next}function O(e){var t=C(e);return t&&t.call(e)}function C(e){var t=e&&(en&&e[en]||e[tn]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function x(e){return null===e||void 0===e?R():o(e)?e.toSeq():function(e){var t=K(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function D(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():F(e)}function N(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:F(e)).toSetSeq()}function L(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[sn])}function R(){return rn||(rn=new L([]))}function B(e){var t=Array.isArray(e)?new L(e).fromEntrySeq():M(e)?new z(e).fromEntrySeq():k(e)?new A(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function F(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){return T(e)?new L(e):M(e)?new z(e):k(e)?new A(e):void 0}function U(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new E(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function Y(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,I(n).map(function(r,i){return e(t,r,i,n)})):W(n)?t.call(i,r,D(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):H(e)}function H(e){return Array.isArray(e)?I(e).map(H).toList():W(e)?D(e).map(H).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function V(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function G(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&V(i[1],e)&&(n||V(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!V(t,e.get(r,Gt)):!V(e.get(r,Gt),t))return f=!1,!1});return f&&e.size===p}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(on)return on;on=this}}function J(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function re(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var i=0|e;for(i!==e&&(i^=4294967295*e);e>4294967295;)i^=e/=4294967295;return ne(i)}if("string"===r)return e.length>vn?(void 0===(n=gn[t=e])&&(n=ie(t),mn===yn&&(mn=0,gn={}),mn++,gn[t]=n),n):ie(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(pn&&void 0!==(t=un.get(e)))return t;if(void 0!==(t=e[dn]))return t;if(!fn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[dn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++hn,1073741824&hn&&(hn=0),pn)un.set(e,t);else{if(void 0!==cn&&!1===cn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fn)Object.defineProperty(e,dn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[dn]=t}}return t}(e);if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+r+" cannot be hashed.")}function ie(e){for(var t=0,n=0;n>>n)&Vt,s=(0===n?r:r>>>n)&Vt,u=a===s?[Ee(e,t,n+Ht,r,i)]:(o=new pe(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ce(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Te(e){var t=Le();if(null===e||void 0===e)return t;if(xe(e))return e;var n=r(e),i=n.size;return 0===i?t:(oe(i),i>0&&ir?0:r-n,l=i-n;return l>Wt&&(l=Wt),function(){if(u===l)return xn;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,o,a){var s,u=e&&e.array,l=a>r?0:r-a>>o,c=1+(i-a>>o);return c>Wt&&(c=Wt),function(){for(;;){if(s){var e=s();if(e!==xn)return e;s=null}if(l===c)return xn;var r=t?--c:l++;s=n(u&&u[r],o-Ht,a+(r<>>n&Vt,u=e&&s0){var l=e&&e.array[s],c=je(l,t,n-Ht,r,i,o);return c===l?e:((a=Ae(e,t)).array[s]=c,a)}return u&&e.array[s]===i?e:(f(o),a=Ae(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ae(e,t){return t&&e&&t===e.ownerID?e:new De(e?e.array.slice():[],t)}function ze(e,t){if(t>=Be(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&Vt],r-=Ht;return n}}function Pe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new De(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=Ht);c&&(a+=c,i+=c,s+=c,o+=c);for(var f=Be(o),h=Be(s);h>=1<f?new De([],r):d;if(d&&h>f&&aHt;m-=Ht){var g=f>>>m&Vt;y=y.array[g]=Ae(y.array[g],r)}y.array[f>>>Ht&Vt]=d}if(s=h)a-=h,s-=h,u=Ht,l=null,v=v&&v.removeBefore(r,0,a);else if(a>i||h>>u&Vt;if(_!==h>>>u&Vt)break;_&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&ha&&(a=l.size),o(u)||(l=l.map(function(e){return Y(e)})),i.push(l)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Be(e){return e>>Ht<=Wt&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Ue(r,i)}function He(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function We(e){this._iter=e,this.size=e.size}function Ve(e){this._iter=e,this.size=e.size}function Ge(e){this._iter=e,this.size=e.size}function Qe(e){var t=ct(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ft,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$t){var r=e.__iterator(t,n);return new E(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Xt?Zt:Xt,n)},t}function Je(e,t,n){var r=ct(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,Gt);return o===Gt?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($t,i);return new E(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),i)})},r}function Ze(e,t){var n=ct(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qe(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=ft,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Xe(e,t,n,r){var i=ct(e);return r&&(i.has=function(r){var i=e.get(r,Gt);return i!==Gt&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,Gt);return o!==Gt&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($t,o),s=0;return new E(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return w(i,r?l:s++,c,o)}})},i}function $e(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),m(t,n,i))return e;var o=g(t,i),a=_(n,i);if(o!=o||a!=a)return $e(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var l=ct(e);return l.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(l.get=function(t,n){return(t=v(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===Xt?e:w(t,u-1,t===Zt?void 0:e.value[1],e)})},l}function et(e,t,n,r){var i=ct(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($t,o),u=!0,l=0;return new E(function(){var e,o,c;do{if((e=s.next()).done)return r||i===Xt?e:w(i,l++,i===Zt?void 0:e.value[1],e);var f=e.value;o=f[0],c=f[1],u&&(u=t.call(n,c,o,a))}while(u);return i===$t?e:w(i,o,c,e)})},i}function tt(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;return function e(u,l){var c=this;u.__iterate(function(i,u){return(!t||l0}function ot(e,n,r){var i=ct(e);return i.size=new L(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Xt,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),O(i?e.reverse():e)}),a=0,s=!1;return new E(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?{value:void 0,done:!0}:w(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function at(e,t){return P(e)?t:e.constructor(t)}function st(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ut(e){return oe(e.size),d(e)}function lt(e){return a(e)?n:s(e)?r:i}function ct(e){return Object.create((a(e)?D:s(e)?I:N).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):x.prototype.cacheResult.call(this)}function pt(e,t){return e>t?1:et?-1:0}function Rt(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+Bt(re(e),re(t))|0}:function(e,t){r=r+Bt(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0});return function(e,t){return t=ln(t,3432918353),t=ln(t<<15|t>>>-15,461845907),t=ln(t<<13|t>>>-13,5),t=ln((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ne((t=ln(t^t>>>13,3266489909))^t>>>16)}(i,r)}function Bt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Ft=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=i;var Kt="@@__IMMUTABLE_ITERABLE__@@",Ut="@@__IMMUTABLE_KEYED__@@",qt="@@__IMMUTABLE_INDEXED__@@",Yt="@@__IMMUTABLE_ORDERED__@@",Ht=5,Wt=1<r?{value:void 0,done:!0}:w(e,i,n[t?r-i++:i++])})},e(j,D),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new E(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:w(e,a,n[a])})},j.prototype[Yt]=!0,e(A,I),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),i=0;if(M(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!M(r))return new E(S);var i=0;return new E(function(){var t=r.next();return t.done?t:w(e,i++,t.value)})},e(z,I),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return w(e,i,r[i++])})},e(Q,I),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return V(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new Q(this._value,_(t,n)-g(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return V(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return V(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:w(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:G(this,e)},e(X,t),e($,X),e(ee,X),e(te,X),X.Keyed=$,X.Indexed=ee,X.Set=te;var un,ln="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},cn=Object.isExtensible,fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),pn="function"==typeof WeakMap;pn&&(un=new WeakMap);var hn=0,dn="__immutablehash__";"function"==typeof Symbol&&(dn=Symbol(dn));var vn=16,yn=255,mn=0,gn={};e(ae,$),ae.of=function(){var e=Ft.call(arguments,0);return me().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ae.prototype.toString=function(){return this.__toString("Map {","}")},ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ae.prototype.set=function(e,t){return ge(this,e,t)},ae.prototype.setIn=function(e,t){return this.updateIn(e,Gt,function(){return t})},ae.prototype.remove=function(e){return ge(this,e,Gt)},ae.prototype.deleteIn=function(e){return this.updateIn(e,function(){return Gt})},ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===Gt,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}J(o||t&&t.set,"invalid keyPath");var l=a.value,c=o?Gt:t.get(l,Gt),f=e(c,n,r,i);return f===c?t:f===Gt?t.remove(l):(o?me():t).set(l,f)}(this,ht(e),t,n);return r===Gt?void 0:r},ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):me()},ae.prototype.merge=function(){return we(this,void 0,arguments)},ae.prototype.mergeWith=function(e){var t=Ft.call(arguments,1);return we(this,e,t)},ae.prototype.mergeIn=function(e){var t=Ft.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ae.prototype.mergeDeep=function(){return we(this,Se,arguments)},ae.prototype.mergeDeepWith=function(e){var t=Ft.call(arguments,1);return we(this,ke(e),t)},ae.prototype.mergeDeepIn=function(e){var t=Ft.call(arguments,1);return this.updateIn(e,me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ae.prototype.sort=function(e){return Fe(nt(this,e))},ae.prototype.sortBy=function(e,t){return Fe(nt(this,t,e))},ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ae.prototype.asImmutable=function(){return this.__ensureOwner()},ae.prototype.wasAltered=function(){return this.__altered},ae.prototype.__iterator=function(e,t){return new he(this,e,t)},ae.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ae.isMap=se;var _n="@@__IMMUTABLE_MAP__@@",bn=ae.prototype;bn[_n]=!0,bn.delete=bn.remove,bn.removeIn=bn.deleteIn,ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=wn)return function(e,t,n,r){e||(e=new p);for(var i=new pe(e,re(n),[n,r]),o=0;o>>e)&Vt),o=this.bitmap;return 0==(o&i)?r:this.nodes[Oe(o&i-1)].get(e+Ht,t,n,r)},le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Vt,u=1<=Sn)return function(e,t,n,r,i){for(var o=0,a=new Array(Wt),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new ce(e,o+1,a)}(e,p,l,s,d);if(c&&!d&&2===p.length&&be(p[1^f]))return p[1^f];if(c&&d&&1===p.length&&be(d))return d;var v=e&&e===this.ownerID,y=c?d?l:l^u:l|u,m=c?d?Ce(p,f,d,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&Vt,o=this.nodes[i];return o?o.get(e+Ht,t,n,r):r},ce.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=re(r));var s=(0===t?n:n>>>t)&Vt,u=i===Gt,l=this.nodes,c=l[s];if(u&&!c)return this;var f=_e(c,e,t+Ht,n,r,i,o,a);if(f===c)return this;var p=this.count;if(c){if(!f&&--p=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?Pe(e,t).set(0,n):Pe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(Jt);return t>=Be(e._capacity)?r=je(r,e.__ownerID,0,t,n,o):i=je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ne(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},Te.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Te.prototype.insert=function(e,t){return this.splice(e,0,t)},Te.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ht,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Le()},Te.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Pe(n,0,t+e.length);for(var r=0;r>>t&Vt;if(r>=this.array.length)return new De([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-Ht,n))===a&&o)return this}if(o&&!i)return this;var s=Ae(this,e);if(!o)for(var u=0;u>>t&Vt;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-Ht,n))===o&&i===this.array.length-1)return this}var a=Ae(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Cn,Tn,xn={};e(Fe,ae),Fe.of=function(){return this(arguments)},Fe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Fe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qe()},Fe.prototype.set=function(e,t){return Ye(this,e,t)},Fe.prototype.remove=function(e){return Ye(this,e,Gt)},Fe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Fe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Fe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Fe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ue(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Fe.isOrderedMap=Ke,Fe.prototype[Yt]=!0,Fe.prototype.delete=Fe.prototype.remove,e(He,D),He.prototype.get=function(e,t){return this._iter.get(e,t)},He.prototype.has=function(e){return this._iter.has(e)},He.prototype.valueSeq=function(){return this._iter.valueSeq()},He.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},He.prototype.map=function(e,t){var n=this,r=Je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},He.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?ut(this):0,function(i){return e(i,t?--n:n++,r)}),t)},He.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Xt,t),r=t?ut(this):0;return new E(function(){var i=n.next();return i.done?i:w(e,t?--r:r++,i.value,i)})},He.prototype[Yt]=!0,e(We,I),We.prototype.includes=function(e){return this._iter.includes(e)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},We.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t),r=0;return new E(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(Ve,N),Ve.prototype.has=function(e){return this._iter.includes(e)},Ve.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Ve.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(Ge,D),Ge.prototype.entrySeq=function(){return this._iter.toSeq()},Ge.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){st(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Ge.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Xt,t);return new E(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){st(r);var i=o(r);return w(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},We.prototype.cacheResult=He.prototype.cacheResult=Ve.prototype.cacheResult=Ge.prototype.cacheResult=ft,e(dt,$),dt.prototype.toString=function(){return this.__toString(yt(this)+" {","}")},dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=vt(this,me()))},dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+yt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:vt(this,r)},dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:vt(this,t)},dt.prototype.wasAltered=function(){return this._map.wasAltered()},dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Dn=dt.prototype;Dn.delete=Dn.remove,Dn.deleteIn=Dn.removeIn=bn.removeIn,Dn.merge=bn.merge,Dn.mergeWith=bn.mergeWith,Dn.mergeIn=bn.mergeIn,Dn.mergeDeep=bn.mergeDeep,Dn.mergeDeepWith=bn.mergeDeepWith,Dn.mergeDeepIn=bn.mergeDeepIn,Dn.setIn=bn.setIn,Dn.update=bn.update,Dn.updateIn=bn.updateIn,Dn.withMutations=bn.withMutations,Dn.asMutable=bn.asMutable,Dn.asImmutable=bn.asImmutable,e(mt,te),mt.of=function(){return this(arguments)},mt.fromKeys=function(e){return this(n(e).keySeq())},mt.prototype.toString=function(){return this.__toString("Set {","}")},mt.prototype.has=function(e){return this._map.has(e)},mt.prototype.add=function(e){return _t(this,this._map.set(e,!0))},mt.prototype.remove=function(e){return _t(this,this._map.remove(e))},mt.prototype.clear=function(){return _t(this,this._map.clear())},mt.prototype.union=function(){var e=Ft.call(arguments,0);return 0===(e=e.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tt(e,t)},Ot.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;oe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tt(t,n)},Ot.prototype.pop=function(){return this.slice(1)},Ot.prototype.unshift=function(){return this.push.apply(this,arguments)},Ot.prototype.unshiftAll=function(e){return this.pushAll(e)},Ot.prototype.shift=function(){return this.pop.apply(this,arguments)},Ot.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):xt()},Ot.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=_(t,this.size);if(r!==this.size)return ee.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tt(i,o)},Ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ot.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Ot.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new E(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return{value:void 0,done:!0}})},Ot.isStack=Ct;var zn,Pn="@@__IMMUTABLE_STACK__@@",Rn=Ot.prototype;Rn[Pn]=!0,Rn.withMutations=bn.withMutations,Rn.asMutable=bn.asMutable,Rn.asImmutable=bn.asImmutable,Rn.wasAltered=bn.wasAltered,t.Iterator=E,Dt(t,{toArray:function(){oe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new We(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new He(this,!0)},toMap:function(){return ae(this.toKeyedSeq())},toObject:function(){oe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Fe(this.toKeyedSeq())},toOrderedSet:function(){return wt(a(this)?this.valueSeq():this)},toSet:function(){return mt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ve(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ot(a(this)?this.valueSeq():this)},toList:function(){return Te(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=Ft.call(arguments,0);return at(this,function(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):F(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new L(i);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}(this,e))},includes:function(e){return this.some(function(t){return V(t,e)})},entries:function(){return this.__iterator($t)},every:function(e,t){oe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return at(this,Xe(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return oe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){oe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(Zt)},map:function(e,t){return at(this,Je(this,e,t))},reduce:function(e,t,n){var r,i;return oe(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return at(this,Ze(this,!0))},slice:function(e,t){return at(this,$e(this,e,t,!0))},some:function(e,t){return!this.every(Lt(e),t)},sort:function(e){return at(this,nt(this,e))},values:function(){return this.__iterator(Xt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ae().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return G(this,e)},entrySeq:function(){var e=this;if(e._cache)return new L(e._cache);var t=e.toSeq().map(Nt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Lt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(y)},flatMap:function(e,t){return at(this,function(e,t,n){var r=lt(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return at(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ge(this)},get:function(e,t){return this.find(function(t,n){return V(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=ht(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Gt):Gt)===Gt)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=a(e),i=(l(e)?Fe():ae()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=lt(e);return i.map(function(t){return at(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,Gt)!==Gt},hasIn:function(e){return this.getIn(e,Gt)!==Gt},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:t(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return V(t,e)})},keySeq:function(){return this.toSeq().map(It).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?jt(e):Pt)},minBy:function(e,t){return rt(this,t?jt(t):Pt,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return at(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return at(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Lt(e),t)},sortBy:function(e,t){return at(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return at(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return at(this,function(e,t,n){var r=ct(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($t,i),s=!0;return new E(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===$t?e:w(r,u,l,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Lt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Rt(this))}});var Bn=t.prototype;Bn[Kt]=!0,Bn[nn]=Bn.values,Bn.__toJS=Bn.toArray,Bn.__toStringMapper=At,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,Dt(n,{flip:function(){return at(this,Qe(this))},mapEntries:function(e,t){var n=this,r=0;return at(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return at(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Fn=n.prototype;return Fn[Ut]=!0,Fn[nn]=Bn.entries,Fn.__toJS=Bn.toObject,Fn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+At(e)},Dt(r,{toKeyedSeq:function(){return new He(this,!1)},filter:function(e,t){return at(this,Xe(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return at(this,Ze(this,!1))},slice:function(e,t){return at(this,$e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return at(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return at(this,tt(this,e,!1))},get:function(e,t){return(e=v(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=v(this,e))>=0&&(void 0!==this.size?this.size===1/0||eh)||r===a&&nh||(f=!0)}})}),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=n(151),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","onToggle"])),r=t.toLowerCase();return s.default.createElement(u.default,i({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),t}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","iconName","label","children","isActive"]);return n=(0,l.default)(n,(i(e={},p.default.root,!0),i(e,p.default.isActive,h),e)),u.default.createElement(f.default,null,u.default.createElement(c.default,o({},d,{title:a,className:n}),u.default.createElement("span",{className:p.default["icon-"+r]})),s)}}]),t}();t.default=h},function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","isDisabled","focusOnClick","formSubmit"]);t=(0,u.default)(t,c.default.root);var l=!1===r?this._onMouseDownPreventDefault:e.onMouseDown,f=o?"submit":"button";return s.default.createElement("button",i({type:f},a,{onMouseDown:l,className:t,disabled:n}),e.children)}},{key:"_onMouseDownPreventDefault",value:function(e){e.preventDefault();var t=this.props.onMouseDown;null!=t&&t(e)}}]),t}();t.default=f},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){null==t&&(t=Object.getPrototypeOf(e));var r=Object.getOwnPropertyNames(t),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=t[s];"function"==typeof u&&!0!==n[s]&&(e[s]=t[s].bind(e))}};var n={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}",""]),t.locals={root:"Button__root___1gz0c"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var u=v++;n=d||(d=s(t)),r=l.bind(null,n,u,!1),i=l.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var c={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),d=null,v=0,y=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=p()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onTogglePopover","showPopover"]));return s.default.createElement(u.default,i({},n,{onClick:t}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?s.default.createElement(l.default,{onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var e;(e=this.props).onSubmit.apply(e,arguments)}},{key:"_hidePopover",value:function(){var e;this.props.showPopover&&(e=this.props).onTogglePopover.apply(e,arguments)}}]),t}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ndiv>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}",""]),t.locals={root:"ButtonGroup__root___3lEAn"}},function(e,t,n){var r=n(177);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}',""]),t.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["choices","selectedKey","className"]);r=(0,c.default)(r,f.default.root);var a=null==n?null:t.get(n),s=a&&a.label||"";return u.default.createElement("span",{className:r,title:s},u.default.createElement("select",o({},i,{value:n,onChange:this._onChange}),this._renderChoices()),u.default.createElement("span",{className:f.default.value},s))}},{key:"_onChange",value:function(e){var t=e.target.value;this.props.onChange(t)}},{key:"_renderChoices",value:function(){var e=this.props.choices;return Array.from(e.entries()).map(function(e){var t=i(e,2),n=t[0],r=t[1],o=r.label,a=r.className;return u.default.createElement("option",{key:n,value:n,className:a},o)})}}]),t}();t.default=p},function(e,t,n){var r=n(180);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,'.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}}',""]),t.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(n),i=t.getStartOffset();if(t.isCollapsed())return function(e,t){var n=e.getEntityAt(t);if(null==n)return null;for(var r=t;r>0&&e.getEntityAt(r-1)===n;)r-=1;for(var i=r,o=e.getLength();i=n&&t1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cache=n,this._editorState=t}return o(e,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(t){return this._editorState===t?this:new e(t)}},{key:"toString",value:function(e,t){var n=this._cache[e];return null!=n?n:this._cache[e]=function(e,t,n){var r=e.getCurrentContent();switch(t){case"html":return(0,s.stateToHTML)(r,n);case"markdown":return(0,l.stateToMarkdown)(r);case"raw":return JSON.stringify((0,a.convertToRaw)(r));default:throw new Error("Format not supported: "+t)}}(this.getEditorState(),e,t)}},{key:"setContentFromString",value:function(t,n,o){return new e(a.EditorState.push(this._editorState,i(t,n,o),"secondary-paste"),r({},n,t))}}],[{key:"createEmpty",value:function(t){return new e(a.EditorState.createEmpty(t))}},{key:"createFromState",value:function(t){return new e(t)}},{key:"createFromString",value:function(t,n,o,s){var u=i(t,n,s);return new e(a.EditorState.createWithContent(u,o),r({},n,t))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){switch(e){case m.BLOCK_TYPE.HEADER_ONE:return["h1"];case m.BLOCK_TYPE.HEADER_TWO:return["h2"];case m.BLOCK_TYPE.HEADER_THREE:return["h3"];case m.BLOCK_TYPE.HEADER_FOUR:return["h4"];case m.BLOCK_TYPE.HEADER_FIVE:return["h5"];case m.BLOCK_TYPE.HEADER_SIX:return["h6"];case m.BLOCK_TYPE.UNORDERED_LIST_ITEM:case m.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case m.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case m.BLOCK_TYPE.CODE:return["pre","code"];case m.BLOCK_TYPE.ATOMIC:return["figure"];default:return["p"]}}function a(e){if(null==e)return"";var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e[s];null!=u&&t.push(" "+s+'="'+(u+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")+'"')}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0});var s,u,l,c=Object.assign||function(e){for(var t=1;t",k=/^data-([a-z0-9-]+)$/,M=(i(s={},g,{element:"strong"}),i(s,_,{element:"code"}),i(s,b,{element:"em"}),i(s,E,{element:"del"}),i(s,w,{element:"ins"}),s),O=[g,b,w,E,_],C=(i(u={},m.ENTITY_TYPE.LINK,{url:"href",rel:"rel",target:"target",title:"title",className:"class"}),i(u,m.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),u),T=(i(l={},m.ENTITY_TYPE.LINK,function(e,t){var n=C.hasOwnProperty(e)?C[e]:{},r=t.getData(),i={},o=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(r)[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value,f=r[c];if(n.hasOwnProperty(c))i[n[c]]=f;else k.test(c)&&(i[c]=f)}}catch(e){a=!0,s=e}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}return i}),i(l,m.ENTITY_TYPE.IMAGE,function(e,t){var n=C.hasOwnProperty(e)?C[e]:{},r=t.getData(),i={},o=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(r)[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value,f=r[c];if(n.hasOwnProperty(c))i[n[c]]=f;else k.test(c)&&(i[c]=f)}}catch(e){a=!0,s=e}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}return i}),l),x=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,h.default)(n.inlineStyles,[M,O]),i=f(r,2),o=i[0],a=i[1];this.inlineStyles=o,this.styleOrder=a}return p(e,[{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")}}catch(e){f=!0,p=e}finally{try{!l&&y.return&&y.return()}finally{if(f)throw p}}}},{key:"writeEndTag",value:function(e){var t=o(e.getType());if(1===t.length)this.output.push("\n");else{var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var l=s.value;n.unshift("")}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return S;r=this.preserveWhitespace(r);var i=e.getCharacterList();return(0,m.getEntityRanges)(r,i).map(function(e){var r=f(e,2),i=r[0],o=r[1].map(function(e){var r=f(e,2),i=r[0],o=r[1],s=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(S+"\n")}(i),u=!0,l=!1,p=void 0;try{for(var h,y=t.styleOrder[Symbol.iterator]();!(u=(h=y.next()).done);u=!0){var g=h.value;if((g!==_||n!==m.BLOCK_TYPE.CODE)&&o.has(g)){var b=t.inlineStyles[g],E=b.element,w=b.attributes,k=b.style;if(null==E&&(E="span"),w=(0,d.default)(w),null!=k){var M=(0,v.default)(k);w=null==w?{style:M}:c({},w,{style:M})}s="<"+E+a(w)+">"+s+""}}}catch(e){l=!0,p=e}finally{try{!u&&y.return&&y.return()}finally{if(l)throw p}}return s}).join(""),s=i?y.Entity.get(i):null,u=null==s?null:s.getType().toUpperCase();return null!=u&&u===m.ENTITY_TYPE.LINK?""+o+"":null!=u&&u===m.ENTITY_TYPE.IMAGE?"":o}).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=t,this.blockStack=[],this.blockList=[],this.depth=0}return r(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach(function(e){var n=function(e){var t="",n=(0,u.Seq)();return e.forEach(function(e){t+=e.text,n=n.concat(e.characterMeta)}),{text:t,characterMeta:n}}(e.textFragments),r=n.text,i=n.characterMeta,o=!1;if(r===d&&(o=!0,r=""),"pre"===e.tagName){var l=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(r,i);r=l.text,i=l.characterMeta}else{var c=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t),r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e=n.text,t=n.characterMeta);e=r.text,t=r.characterMeta;for(var i=e.length;i--;)" "===e.charAt(i)&&" "===e.charAt(i-1)&&(e=e.slice(0,i)+e.slice(i+1),t=t.slice(0,i).concat(t.slice(i+1)));var o=(0,a.default)({text:e,characterMeta:t},d+" ",d);e=o.text,t=o.characterMeta;var s=(0,a.default)({text:e,characterMeta:t}," "+d,d);return{text:e=s.text,characterMeta:t=s.characterMeta}}(r,i);r=c.text,i=c.characterMeta}((r=r.split(d).join("\n")).length||o)&&t.push(new s.ContentBlock({key:(0,s.genKey)(),text:r,type:e.type,characterList:i.toList(),depth:e.depth}))}),t.length?t:[p]}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?l.BLOCK_TYPE.ORDERED_LIST_ITEM:l.BLOCK_TYPE.UNORDERED_LIST_ITEM;case"blockquote":return l.BLOCK_TYPE.BLOCKQUOTE;case"h1":return l.BLOCK_TYPE.HEADER_ONE;case"h2":return l.BLOCK_TYPE.HEADER_TWO;case"h3":return l.BLOCK_TYPE.HEADER_THREE;case"h4":return l.BLOCK_TYPE.HEADER_FOUR;case"h5":return l.BLOCK_TYPE.HEADER_FIVE;case"h6":return l.BLOCK_TYPE.HEADER_SIX;case"pre":return l.BLOCK_TYPE.CODE;case"figure":return l.BLOCK_TYPE.ATOMIC;default:return l.BLOCK_TYPE.UNSTYLED}}},{key:"processBlockElement",value:function(e){if(e){var t=e.nodeName.toLowerCase(),n=this.getBlockTypeFromTagName(t),r=function(e){switch(e){case l.BLOCK_TYPE.UNORDERED_LIST_ITEM:case l.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(n),i=!b.hasOwnProperty(t),o={tagName:t,textFragments:[],type:n,styleStack:[f],entityStack:[null],depth:r?this.depth:0};i&&(this.blockList.push(o),r&&(this.depth+=1)),this.blockStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),i&&r&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],i=n.entityStack.slice(-1)[0];r=function(e,t,n){switch(t){case"b":case"strong":return e.add(l.INLINE_STYLE.BOLD);case"i":case"em":return e.add(l.INLINE_STYLE.ITALIC);case"ins":return e.add(l.INLINE_STYLE.UNDERLINE);case"code":return e.add(l.INLINE_STYLE.CODE);case"del":return e.add(l.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),g.hasOwnProperty(t)&&(i=g[t](t,e)||i),n.styleStack.push(r),n.entityStack.push(i),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),E.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(d)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(h,"\n")).split("​").join(d),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],i=s.CharacterMetadata.create({style:n,entity:r}),o=(0,u.Repeat)(i,e.length);t.textFragments.push({text:e,characterMeta:o})}},{key:"processNode",value:function(e){if(e.nodeType===c.NODE_TYPE_ELEMENT){var t=e,n=t.nodeName.toLowerCase();_.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===c.NODE_TYPE_TEXT&&this.processTextNode(e)}}]),e}()},function(e,t){"use strict";function n(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var i=e.text,o=e.characterMeta,a=t.length,s=r.length,u=[],l=o.slice(0,0),c=0,f=i.indexOf(t);-1!==f;)u.push(i.slice(c,f)+r),l=l.concat(o.slice(c,f),n(o.slice(f,f+1),s)),c=f+a,f=i.indexOf(t,c);return u.push(i.slice(c)),l=l.concat(o.slice(c)),{text:u.join(""),characterMeta:l}}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t/g,">")}}]),t}(),t.ElementNode=function(e){function t(e,n,i){o(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));null==n&&(n=s);var l=!0===f[e];return a.nodeType=u,a.nodeName=e,a.attributes=n,a.attrMap=new Map(n.map(function(e){return[e.name,e]})),a.childNodes=[],a.isSelfClosing=l,!l&&i&&i.forEach(a.appendChild,a),a}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"getAttribute",value:function(e){var t=this.attrMap.get(e);if(t)return t.value}},{key:"toString",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.attributes[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=s.name,l=s.value;t.push(u+(l?'="'+l.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+'"':""))}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}var c=t.length?" "+t.join(" "):"";if(this.isSelfClosing)return"<"+this.nodeName+c+(e?"/>":">");var f=this.childNodes.map(function(t){return t.toString(e)}).join("");return"<"+this.nodeName+c+">"+f+""}}]),t}(),t.FragmentNode=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.nodeType=c,n.childNodes=[],e&&e.forEach(n.appendChild,n),n}return i(t,p),a(t,[{key:"appendChild",value:function(e){if(e.nodeType===c){if(null!=e.childNodes){var t,r=e.childNodes;(t=this.childNodes).push.apply(t,n(r))}}else this.childNodes.push(e)}},{key:"toString",value:function(e){return this.childNodes.map(function(t){return t.toString(e)}).join("")}}]),t}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;return"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,t.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200);Object.defineProperty(t,"stateToMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";function r(e){switch(e){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function i(e){return e.replace(/\)/g,"%29")}function o(e){return e.replace(/"/g,'\\"')}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n "+this.renderBlockContent(e)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(e)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(e)+"\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(e){for(var t=e.getType(),n=e.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()===t&&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(e){var t=e.getType(),n=e.getText();if(""===n)return"​";var r=e.getCharacterList();return(0,u.getEntityRanges)(n,r).map(function(e){var n=a(e,2),r=n[0],s=n[1].map(function(e){var n=a(e,2),r=n[0],i=n[1];if(!r)return"";var o=function(e){return e.replace(/[*_`]/g,"\\$&")}(r);return i.has(c)&&(o="**"+o+"**"),i.has(d)&&(o="++"+o+"++"),i.has(p)&&(o="_"+o+"_"),i.has(h)&&(o="~~"+o+"~~"),i.has(f)&&(o=t===u.BLOCK_TYPE.CODE?o:"`"+o+"`"),o}).join(""),v=r?l.Entity.get(r):null;if(null!=v&&v.getType()===u.ENTITY_TYPE.LINK){var y=v.getData(),m=y.url||"",g=y.title?' "'+o(y.title)+'"':"";return"["+s+"]("+i(m)+g+")"}if(null!=v&&v.getType()===u.ENTITY_TYPE.IMAGE){var _=v.getData(),b=_.src||"";return"!["+(_.alt?' "'+o(_.alt)+'"':"")+"]("+i(b)+")"}return s}).join("")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);Object.defineProperty(t,"stateFromMarkdown",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default.parse(e,{getAST:!0});return(0,a.stateFromElement)(t)};var r,i=n(203),o=(r=i)&&r.__esModule?r:{default:r},a=n(194)},function(e,t,n){"use strict";function r(e){this.tokens=[],this.tokens.links={},this.options=c({},e||p),this.rules=h.normal,this.options.gfm&&(this.rules=h.gfm)}function i(e,t){if(this.options=c({},t||p),this.links=e,this.rules=d.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=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function o(e){this.options=e||{}}function a(e){this.tokens=[],this.token=null,this.options=c({},e||p),this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(197),l=Object.prototype.hasOwnProperty,c=Object.assign||function(e){for(var t=1;t[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};h.item=s(h.item,"gm")(/bull/g,h.bullet)(),h.list=s(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=s(h.blockquote)("def",h.def)(),h.paragraph=s(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("def",h.def)(),h.normal=c({},h),h.gfm=c({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=s(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),r.rules=h,r.parse=function(e,t){return new r(t).parse(e)},r.prototype.parse=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t,n){var r,i,o,a,s,u,l,c,f;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,f=(o=o[0].match(this.rules.item)).length,c=0;c1&&s.length>1||(e=o.slice(c+1).join("\n")+e,c=f-1)),i=r||/\n\n(?!\s*$)/.test(u),c!==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&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.paragraph.exec(e)))e=e.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(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var d={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]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};d.link=s(d.link)("inside",d._inside)("href",d._href)(),d.reflink=s(d.reflink)("inside",d._inside)(),d.normal=c({},d),d.pedantic=c({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=c({},d.normal,{escape:s(d.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:s(d.text)("]|","~+]|")()}),d.breaks=c({},d.gfm,{br:s(d.br)("{2,}","*")(),text:s(d.gfm.text)("{2,}","*")()}),i.rules=d,i.parse=function(e,t,n){return new i(t,n).parse(e)},i.prototype.parse=function(e){for(var t,n,r=new u.FragmentNode;e;)if(n=this.rules.escape.exec(e))e=e.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(e))e=e.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(e))||(n=this.rules.nolink.exec(e))){if(e=e.substring(n[0].length),t=(n[2]||n[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r.appendChild(new u.TextNode(n[0].charAt(0))),e=n[0].substring(1)+e;continue}this.inLink=!0,r.appendChild(this.outputLink(n,t)),this.inLink=!1}else if(n=this.rules.strong.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(e))e=e.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return r},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.parse(e[1])):this.renderer.image(n,r,e[1])},o.prototype.code=function(e,t){var n=[];t&&n.push(["class",this.options.langPrefix+t]);var r=new u.ElementNode("code",n,[e]);return new u.ElementNode("pre",[],[r])},o.prototype.blockquote=function(e){return new u.ElementNode("blockquote",[],[e])},o.prototype.heading=function(e,t){return new u.ElementNode("h"+t,[],[e])},o.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},o.prototype.list=function(e,t){return new u.ElementNode(t?"ol":"ul",[],[e])},o.prototype.listitem=function(e){return new u.ElementNode("li",[],[e])},o.prototype.paragraph=function(e){return new u.ElementNode("p",[],[e])},o.prototype.strong=function(e){return new u.ElementNode("strong",[],[e])},o.prototype.em=function(e){return new u.ElementNode("em",[],[e])},o.prototype.codespan=function(e){return new u.ElementNode("code",[],[new u.TextNode(e)])},o.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},o.prototype.del=function(e){return new u.ElementNode("del",[],[e])},o.prototype.ins=function(e){return new u.ElementNode("ins",[],[e])},o.prototype.link=function(e,t,n){var r=[["href",e]];return t&&r.push(["title",t]),new u.ElementNode("a",r,[n])},o.prototype.image=function(e,t,n){var r=[["src",e]];return t&&r.push(["title",t]),n&&r.push(["alt",n]),new u.ElementNode("img",r,u.SELF_CLOSING)},o.prototype.text=function(e){return e},a.parse=function(e,t,n){return new a(t,n).parse(e)},a.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.slice().reverse();for(var t=new u.FragmentNode;this.next();)t.appendChild(this.tok());return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.parse(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();case"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 e=new u.FragmentNode;"blockquote_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.blockquote(e);case"list_start":for(var t=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.list(t,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(e,t){t=c({},p,t);try{var n=a.parse(r.parse(e,t),t)}catch(e){if(!t.silent)throw e;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(e.message)])])}return t.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r},a=n(2),s=n(147);t.default={strategy:function(e,t){e.findEntityRanges(function(e){var t=e.getEntity();return null!=t&&a.Entity.get(t).getType()===s.ENTITY_TYPE.LINK},t)},component:function(e){var t=a.Entity.get(e.entityKey).getData().url;return o.default.createElement("a",{href:t},e.children)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){if(t){var r=t(n);if(null!=r)return r}return e(n)}}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(o(n=this._events[e]))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:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(l=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t){e.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 counter 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(e,t,n){var r=n(210);"string"==typeof r&&(r=[[e.id,r,""]]),n(165)(r,{sourceMap:!0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(164)()).push([e.id,".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}.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}",""]),t.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"}}])},"h7v/":function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("NdNt"),u=n("t4LX"),l=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(e),this.maps.setZoom(t),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var e=this;return this.refs&&this.refs.mapContainer?i.a.Children.map(this.props.children,function(t){return t.type===s.a?i.a.cloneElement(t,{maps:e.maps,onCreate:function(t){e.markers.push(t),e.createCluster()},onDestroy:function(t){e.markers=e.markers.filter(function(e){return t!==e}),e.createCluster(),t.setMap(null)}}):t}):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:"render",value:function(){var e=this.props,t=(e.center,e.zoom,e.onBoundsChange,e.onLoad,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["center","zoom","onBoundsChange","onLoad"]));return i.a.createElement("div",l({ref:"mapContainer"},t),this.renderChildren())}}]),t}();t.a=f,f.propTypes={center:a.a.object,zoom:a.a.number,onBoundsChange:a.a.func,onLoad:a.a.func},f.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(e){},onLoad:function(){}}},iwoP:function(e,t,n){"use strict";var r=n("GiK3"),i=n.n(r),o=n("KSGD"),a=n.n(o),s=n("saAw"),u=n("OE/d"),l=function(){function e(e,t){for(var n=0;n0?" is-danger":"")},i.a.createElement("select",{value:this.state.reason,onChange:function(t){var n=t.target;return e.setState({reason:n.value})}},i.a.createElement("option",{value:"0",disabled:!0},"[Reason]"),this.reasons.map(function(e,t){return i.a.createElement("option",{value:e,key:t},e)}))),this.state.errors.reason.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("label",{className:"label"},"Additional Comments"),i.a.createElement("div",{className:"control"},i.a.createElement("textarea",{className:"card-textarea-sm textarea"+(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(t){var n=t.target;return e.setState({comments:n.value})}}),this.state.errors.comments.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))),i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("button",{type:"submit",className:"button is-primary"},"Flag Observation"))))}},{key:"renderUndoForm",value:function(){return i.a.createElement("div",null,i.a.createElement("div",{className:"notification is-success"},"Observation has been flagged and administrators will be notified shortly."),i.a.createElement("button",{className:"button",onClick:this.undo.bind(this)},"Undo"))}},{key:"render",value:function(){return u.a.authenticated()?i.a.createElement("div",null,this.state.flagged?this.renderUndoForm():this.renderFlagForm(),i.a.createElement(s.a,{visible:this.state.loading})):i.a.createElement("div",{className:"content"},i.a.createElement("p",null,"You must be logged in to flag this observation."),i.a.createElement("p",null,"Please ",i.a.createElement("a",{href:"/login"},"login")," or ",i.a.createElement("a",{href:"/register"},"create an account")," first."))}}]),t}();t.a=c,c.propTypes={observationId:a.a.number.isRequired,onSubmit:a.a.func,flagged:a.a.bool,onUndo:a.a.func,flagId:a.a.number},c.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},jVml:function(e,t,n){"use strict";var r=window.TreeSnap.metaLabels;t.a=r},"m/Dr":function(e,t,n){"use strict";var r=n("Fu8L"),i=n.n(r),o=n("HW6M"),a=n.n(o),s=n("KSGD"),u=n.n(s),l=n("GiK3"),c=n.n(l),f=n("O27J"),p=(n.n(f),function(e){var t=e.onMouseDown;return c.a.createElement("span",{className:"Select-arrow",onMouseDown:t})});p.propTypes={onMouseDown:u.a.func};var h=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],d=function(e){for(var t=0;t-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var i=e[r.valueKey],o=e[r.labelKey],a=v(i),s=v(o);if(!a&&!s)return!1;var u=a?String(i):null,l=s?String(o):null;return r.ignoreAccents&&(u&&"label"!==r.matchProp&&(u=d(u)),l&&"value"!==r.matchProp&&(l=d(l))),r.ignoreCase&&(u&&"label"!==r.matchProp&&(u=u.toLowerCase()),l&&"value"!==r.matchProp&&(l=l.toLowerCase())),"start"===r.matchPos?u&&"label"!==r.matchProp&&u.substr(0,t.length)===t||l&&"value"!==r.matchProp&&l.substr(0,t.length)===t:u&&"label"!==r.matchProp&&u.indexOf(t)>=0||l&&"value"!==r.matchProp&&l.indexOf(t)>=0})},m=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,i=e.instancePrefix,o=e.onFocus,s=e.onOptionRef,u=e.onSelect,l=e.optionClassName,f=e.optionComponent,p=e.optionRenderer,h=e.options,d=e.removeValue,v=e.selectValue,y=e.valueArray,m=e.valueKey,g=f;return h.map(function(e,f){var h=y&&y.some(function(t){return t[m]===e[m]}),_=e===t,b=a()(l,{"Select-option":!0,"is-selected":h,"is-focused":_,"is-disabled":e.disabled});return c.a.createElement(g,{className:b,focusOption:n,inputValue:r,instancePrefix:i,isDisabled:e.disabled,isFocused:_,isSelected:h,key:"option-"+f+"-"+e[m],onFocus:o,onSelect:u,option:e,optionIndex:f,ref:function(e){s(e,_)},removeValue:d,selectValue:v},p(e,f,r))})};m.propTypes={focusOption:u.a.func,focusedOption:u.a.object,inputValue:u.a.string,instancePrefix:u.a.string,onFocus:u.a.func,onOptionRef:u.a.func,onSelect:u.a.func,optionClassName:u.a.string,optionComponent:u.a.func,optionRenderer:u.a.func,options:u.a.array,removeValue:u.a.func,selectValue:u.a.func,valueArray:u.a.array,valueKey:u.a.string};var g=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b=(function(){function e(e){this.value=e}function t(t){var n,r;function i(n,r){try{var a=t[n](r),s=a.value;s instanceof e?Promise.resolve(s.value).then(function(e){i("next",e)},function(e){i("throw",e)}):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),E=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},O=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},C=function(e){function t(e){b(this,t);var n=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return k(t,e),E(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,i=a()(this.props.className,t.className);return t.disabled?c.a.createElement("div",{className:i,onMouseDown:g,onClick:g},this.props.children):c.a.createElement("div",{className:i,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(c.a.Component);C.propTypes={children:u.a.node,className:u.a.string,instancePrefix:u.a.string.isRequired,isDisabled:u.a.bool,isFocused:u.a.bool,isSelected:u.a.bool,onFocus:u.a.func,onSelect:u.a.func,onUnfocus:u.a.func,option:u.a.object.isRequired,optionIndex:u.a.number};var T=function(e){function t(e){b(this,t);var n=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return k(t,e),E(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return c.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?c.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):c.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return c.a.createElement("div",{className:a()("Select-value",this.props.value.disabled?"Select-value-disabled":"",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(c.a.Component);T.propTypes={children:u.a.node,disabled:u.a.bool,id:u.a.string,onClick:u.a.func,onRemove:u.a.func,value:u.a.object.isRequired};var x=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},D=u.a.oneOfType([u.a.string,u.a.node]),I=u.a.oneOfType([u.a.string,u.a.number]),N=1,L=function(e,t){var n=void 0===e?"undefined":_(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,i=t.valueKey;if(r)for(var o=0;oa||op.bottom?l.scrollTop=u.offsetTop+u.clientHeight-l.offsetHeight:c.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===(void 0===t?"undefined":_(t))?t:this.props;if(n.multi){if("string"==typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return L(e,n)}).filter(function(e){return e})}var r=L(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=j(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},function(){t.getValueArray(t.props.value).some(function(n){return n[t.props.valueKey]===e[t.props.valueKey]})?t.removeValue(e):t.addValue(e)}):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter(function(e){return!e.disabled}),r=n.indexOf(e);this.setValue(t.concat(e)),this.props.closeOnSelect&&(n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1]))}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter(function(n){return n[t.props.valueKey]!==e[t.props.valueKey]})),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,i=0;i0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var o=r-this.props.pageSize;r=o<0?0:o}else if("page_down"===e){var a=r+this.props.pageSize;r=a>t.length-1?t.length-1:a}-1===r&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return c.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},c.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,i=this.props.valueComponent;if(!e.length)return function(e,t,n){var r=e.inputValue,i=e.isPseudoFocused,o=e.isFocused,a=t.onSelectResetsInput;return!r||!a&&!n&&!i&&!o}(this.state,this.props,t)?c.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null;var o,a,s,u,l,f,p=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(t,o){return c.a.createElement(i,{disabled:n.props.disabled||!1===t.clearableValue,id:n._instancePrefix+"-value-"+o,instancePrefix:n._instancePrefix,key:"value-"+o+"-"+t[n.props.valueKey],onClick:p,onRemove:n.removeValue,placeholder:n.props.placeholder,value:t,values:e},r(t,o),c.a.createElement("span",{className:"Select-aria-only"}," "))}):(o=this.state,a=this.props,s=o.inputValue,u=o.isPseudoFocused,l=o.isFocused,f=a.onSelectResetsInput,s&&(f||!l&&u||l&&!u)?void 0:(t&&(p=null),c.a.createElement(i,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:p,placeholder:this.props.placeholder,value:e[0]},r(e[0]))))}},{key:"renderInput",value:function(e,t){var n,r=this,o=a()("Select-input",this.props.inputProps.className),s=this.state.isOpen,u=a()((w(n={},this._instancePrefix+"-list",s),w(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),l=this.state.inputValue;!l||this.props.onSelectResetsInput||this.state.isFocused||(l="");var f=S({},this.props.inputProps,{"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+s,"aria-haspopup":""+s,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":u,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:l});if(this.props.inputRenderer)return this.props.inputRenderer(f);if(this.props.disabled||!this.props.searchable){var p=M(this.props.inputProps,[]),h=a()(w({},this._instancePrefix+"-list",s));return c.a.createElement("div",S({},p,{"aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:o,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?c.a.createElement(i.a,S({id:this.props.id},f,{className:o,minWidth:"5"})):c.a.createElement("div",{className:o,key:"input-wrap",style:{display:"inline-block"}},c.a.createElement("input",S({id:this.props.id},f)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return c.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?c.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var r="function"==typeof this.props.filterOptions?this.props.filterOptions:y;return r(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?c.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return x(e[t.props.valueKey])}).join(this.props.delimiter);return c.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map(function(e,n){return c.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:x(e[t.props.valueKey])})})}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var i=-1;if(t.some(function(e,t){var o=e[n]===r[n];return o&&(i=t),o}),-1!==i)return i}for(var o=0;o0?" is-danger":""),value:this.state.from,onChange:function(t){var n=t.target;e.setState({from:n.value})}})),this.state.errors.from.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"To")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"}},this.state.to.name),this.state.errors.recipient.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"CC/BCC")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(t){var n=t.target;e.setState({cc:n.value})}}),this.state.errors.cc.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Subject")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("input",{type:"text",className:"input"+(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(t){var n=t.target;e.setState({subject:n.value})}})),this.state.errors.subject.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"}),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control"},i.a.createElement("label",{className:"checkbox"},i.a.createElement("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(t){var n=t.target;return e.setState({includeInfo:n.checked})}})," Include information about this observation?"))))),i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement(f.a,{value:this.state.rmessage,onChange:function(t){return e.setState({rmessage:t})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)})))))}},{key:"___tmpSaveTextArea",value:function(){var e=this;return i.a.createElement("div",{className:"field is-horizontal"},i.a.createElement("div",{className:"field-label"},i.a.createElement("label",{className:"label"},"Message")),i.a.createElement("div",{className:"field-body"},i.a.createElement("div",{className:"field"},i.a.createElement("div",{className:"control is-expanded"},i.a.createElement("textarea",{className:"textarea"+(this.state.errors.message.length>0?" is-danger":""),placeholder:"Message",onChange:function(t){var n=t.target;return e.setState({message:n.value})}})),this.state.errors.message.map(function(e,t){return i.a.createElement("p",{className:"help is-danger",key:t},e)}),i.a.createElement("p",{className:"help"},"You may use ",i.a.createElement("a",{href:"https://daringfireball.net/projects/markdown/syntax"},"Markdown")," syntax to style your email."))))}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var e=this.state.observation;if(void 0!==e.observation_category){var t=e.location.address;return i.a.createElement("div",{className:"column",style:{backgroundColor:"whitesmoke"}},i.a.createElement("h5",{className:"title is-5"},"Message Preview"),i.a.createElement("div",{className:"p-1",style:{backgroundColor:"#fff"}},""!==this.state.subject.trim()?i.a.createElement("h2",{className:"title is-5"},this.state.subject):null,this.renderPreview(),this.state.includeInfo?i.a.createElement("table",{className:"table"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Category"),i.a.createElement("td",null,e.observation_category,"Other"===e.observation_category?" ("+e.meta_data.otherLabel+")":null)),null!==t?i.a.createElement("tr",null,i.a.createElement("th",null,"Found Near"),i.a.createElement("td",null,t.formatted)):null,i.a.createElement("tr",null,i.a.createElement("th",null,"Date Collected"),i.a.createElement("td",null,u()(e.date.date).format("LL"))),i.a.createElement("tr",null,i.a.createElement("th",{colSpan:2},i.a.createElement("a",{href:"/observation/"+e.observation_id,target:"_blank"},"View full details of observation"))))):null))}}}},{key:"renderPreview",value:function(){var e=this.state.rmessage.toString("html");return""!==e.trim()||this.state.includeInfo||""!==this.state.subject.trim()?i.a.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:e}}):i.a.createElement("p",{className:"text-muted"},"Preview will be displayed here")}},{key:"renderSentColumn",value:function(){if(this.state.sent)return i.a.createElement("div",{className:"column"},i.a.createElement("div",{className:"notification is-success"},"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 e=this.state.to;return i.a.createElement("div",{className:"modal"+(this.state.visible?" is-active":"")},i.a.createElement("div",{className:"modal-background",onClick:this.close.bind(this)}),i.a.createElement("div",{className:"modal-card modal-card-lg"},i.a.createElement(l.a,{visible:this.state.loading}),i.a.createElement("header",{className:"modal-card-head"},i.a.createElement("p",{className:"modal-card-title"},"Contact ",e.name),i.a.createElement("button",{type:"button",className:"delete",onClick:this.close.bind(this)})),i.a.createElement("section",{className:"modal-card-body"},i.a.createElement("div",{className:"columns"},this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn())),i.a.createElement("footer",{className:"modal-card-foot"},this.state.sent?i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.close.bind(this)},"Done"):i.a.createElement("div",{className:"flexbox flex-space-between"},i.a.createElement("button",{type:"button",className:"button is-success",onClick:this.send.bind(this)},"Send"),i.a.createElement("button",{type:"button",className:"button",onClick:this.close.bind(this)},"Cancel")))))}}]),t}();t.a=h,h.propTypes={contact:a.a.object.isRequired,onCloseRequest:a.a.func.isRequired,observation:a.a.object.isRequired,visible:a.a.bool},h.defaultProps={visible:!1}},y1vT:function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=c||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,v=Math.min,y=function(){return p.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,u,l,c=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function _(t){var n=i,r=o;return i=o=void 0,c=t,s=e.apply(r,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=a}function E(){var e=y();if(b(e))return w(e);u=setTimeout(E,function(e){var n=t-(e-l);return p?v(n,a-(e-c)):n}(e))}function w(e){return u=void 0,h&&i?_(e):(i=o=void 0,s)}function S(){var e=y(),n=b(e);if(i=arguments,o=this,l=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(E,t),f?_(e):s}(l);if(p)return u=setTimeout(E,t),_(l)}return void 0===u&&(u=setTimeout(E,t)),s}return t=g(t)||0,m(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(g(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),S.cancel=function(){void 0!==u&&clearTimeout(u),c=0,i=l=o=u=void 0},S.flush=function(){return void 0===u?s:w(y())},S}}).call(t,n("DuR2"))},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(){return function e(t){if(!(this instanceof e))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 w(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var M=void 0!==i.ResizeObserver?i.ResizeObserver:k;t.default=M}.call(t,n("DuR2"))}}); \ No newline at end of file diff --git a/public/js/manifest.js b/public/js/manifest.js index 4229d4cc..e9dfaf4f 100644 --- a/public/js/manifest.js +++ b/public/js/manifest.js @@ -1 +1 @@ -!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,f){for(var o,d,b,u=0,i=[];u
-
- diff --git a/resources/assets/sass/_card.scss b/resources/assets/sass/_card.scss index 636873f2..c2fb2599 100644 --- a/resources/assets/sass/_card.scss +++ b/resources/assets/sass/_card.scss @@ -135,3 +135,14 @@ a.card-header-title { margin-top: auto; } } + +.img-bg-zoom { + transition: background-size 250ms linear; + &:hover { + background-size: 110%; + } +} + +.z-10 { + z-index: 10!important; +} diff --git a/resources/assets/sass/_layout.scss b/resources/assets/sass/_layout.scss index 22ba13fa..eeaecc77 100644 --- a/resources/assets/sass/_layout.scss +++ b/resources/assets/sass/_layout.scss @@ -321,3 +321,7 @@ a.box { .has-no-shadow { box-shadow: none !important; } + +.cursor-pointer { + cursor: pointer; +}