<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[8647] sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks: WordCamp Blocks: Adjust permalinks for full content and excerpts</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/8647">8647</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/8647","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>coreymckrill</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2019-04-16 23:31:01 +0000 (Tue, 16 Apr 2019)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>WordCamp Blocks: Adjust permalinks for full content and excerpts
* Removes the optional "Read more" link from excerpts on all blocks and the
related Inspector panel setting. This is in favor of most themes adding their
own "Read more" links already.
* Moves the "Visit [whatever] page" permalink further down, beneath a post's
meta information if it has any. E.g. for Speakers, the permalink is now
beneath the list of related sessions that comes after the full content.
* Adjusts sanitization of excerpts in the PHP templates.
* Adds a new shared component, `ItemPermalink`.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetsblocksminjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/blocks.min.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcorganizersblockcontentjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/organizers/block-content.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcorganizersinspectorcontrolsjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/organizers/inspector-controls.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsessionsblockcontentjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/block-content.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsessionsinspectorcontrolsjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/inspector-controls.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsharedblockcontentindexjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/shared/block-content/index.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcspeakersblockcontentjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/block-content.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcspeakersinspectorcontrolsjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/inspector-controls.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsponsorsblockcontentjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/block-content.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsponsorsinspectorcontrolsjs">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/inspector-controls.js</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksincludesorganizersphp">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/organizers.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksincludessessionsphp">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/sessions.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksincludesspeakersphp">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/speakers.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksincludessponsorsphp">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/sponsors.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksvieworganizersphp">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/organizers.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksviewsessionsphp">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/sessions.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksviewspeakersphp">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/speakers.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksviewsponsorsphp">sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/sponsors.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetsblocksminjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/blocks.min.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/blocks.min.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/blocks.min.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,4 +1,340 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?functio
n(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=55)}([function(e,t){e.exports=React},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(32),o=n(10);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(33);e.exports=function(e,t){if("function
"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){e.exports=lodash},function(e,t,n){var r;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function
(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./assets/src/blocks.js")}({"./assets/src/blocks.js":
+/*!******************************!*\
+ !*** ./assets/src/blocks.js ***!
+ \******************************/
+/*! no exports provided */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./organizers/ */"./assets/src/organizers/index.js"),o=n(/*! ./sessions/ */"./assets/src/sessions/index.js"),s=n(/*! ./speakers/ */"./assets/src/speakers/index.js"),a=n(/*! ./sponsors/ */"./assets/src/sponsors/index.js"),i=wp.blocks.registerBlockType;[r,o,s,a].forEach(function(e){var t=e.name,n=e.settings;i(t,n)})},"./assets/src/organizers/block-content.js":
+/*!************************************************!*\
+ !*** ./assets/src/organizers/block-content.js ***!
+ \************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! classnames */"./node_modules/classnames/index.js"),g=
n.n(b),v=n(/*! ../shared/avatar */"./assets/src/shared/avatar/index.js"),y=n(/*! ../shared/block-content */"./assets/src/shared/block-content/index.js"),E=n(/*! ../shared/grid-layout/block-content */"./assets/src/shared/grid-layout/block-content.js"),w=wp.element.Component,j=(wp.i18n.__,function(e){function t(){return a()(this,t),c()(this,p()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.organizerPosts,r=t.show_avatars,s=t.avatar_size,a=t.avatar_align,i=t.content;return Object(h.createElement)(E.default,o()({className:"wordcamp-organizers-block"},this.props),n.map(function(e){return Object(h.createElement)("div",{key:e.slug,className:g()("wordcamp-organizer","wordcamp-organizer-"+e.slug.trim())},Object(h.createElement)(y.ItemTitle,{className:"wordcamp-organizer-title",headingLevel:3,title:e.title.rendered.trim()}),r&&
Object(h.createElement)(v.AvatarImage,{className:g()("wordcamp-organizer-avatar-container","align-"+a),name:e.title.rendered.trim()||"",size:s,url:e.avatar_urls[24]}),"none"!==i&&Object(h.createElement)(y.ItemHTMLContent,{className:g()("wordcamp-organizer-content-"+i),content:"full"===i?e.content.rendered.trim():e.excerpt.rendered.trim()}))}))}}]),t}(w));t.default=j},"./assets/src/organizers/block-controls.js":
+/*!*************************************************!*\
+ !*** ./assets/src/organizers/block-controls.js ***!
+ \*************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! classnames */"./node_modules/classnames/index.js"),g=
n.n(b),v=n(/*! ../shared/block-controls */"./assets/src/shared/block-controls/index.js"),y=n(/*! ./block-content */"./assets/src/organizers/block-content.js"),E=n(/*! ./organizers-select */"./assets/src/organizers/organizers-select.js"),w=n(/*! ./index */"./assets/src/organizers/index.js"),j=wp.components,O=j.Button,_=j.Placeholder,C=wp.i18n.__,k=function(e){function t(){return a()(this,t),c()(this,p()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.attributes,s=t.setAttributes,a=t.organizerPosts,i=r.mode,l=Array.isArray(a)&&a.length;if(i&&!l)return Object(h.createElement)(v.PlaceholderNoContent,{icon:n,label:w.LABEL,loading:!Array.isArray(a)});switch(i){case"all":e=Object(h.createElement)(y.default,this.props);break;case"wcb_organizer":case"wcb_organizer_team":e=Object(h.createElement)(v.PlaceholderSpecificMode,{label:this.g
etModeLabel(i),icon:n,content:Object(h.createElement)(y.default,this.props),placeholderChildren:Object(h.createElement)(E.default,this.props)});break;default:e=Object(h.createElement)(_,{className:g()("wordcamp-block-edit-placeholder","wordcamp-block-edit-placeholder-no-mode"),icon:n,label:w.LABEL},Object(h.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(h.createElement)(O,{isDefault:!0,isLarge:!0,onClick:function(){s({mode:"all"})}},this.getModeLabel("all"))),Object(h.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(h.createElement)(E.default,o()({label:C("Choose specific organizers or teams","wordcamporg")},this.props))))}return e}}]),t}(v.BlockControls);t.default=k},"./assets/src/organizers/edit.js":
+/*!***************************************!*\
+ !*** ./assets/src/organizers/edit.js ***!
+ \***************************************/
+/*! exports provided: edit */function(e,t,n){"use strict";n.r(t),n.d(t,"edit",function(){return F});var r=n(/*! @babel/runtime/helpers/slicedToArray */"./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),f=n.n(m),h=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),b=n.n(h),g=n
(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),v=n(/*! lodash */"lodash"),y=n(/*! ./block-controls */"./assets/src/organizers/block-controls.js"),E=n(/*! ./inspector-controls */"./assets/src/organizers/inspector-controls.js"),w=n(/*! ./toolbar */"./assets/src/organizers/toolbar.js"),j=n(/*! ./index */"./assets/src/organizers/index.js"),O=wp.apiFetch,_=wp.data.withSelect,C=wp.element,k=C.Component,x=C.Fragment,S=wp.url.addQueryArgs,A=window.WordCampBlocks.organizers||{},P={orderby:"title",order:"asc",per_page:100},N={orderby:"name",order:"asc",per_page:100},D=function(e){function t(e){var n;return l()(this,t),(n=p()(this,f()(t).call(this,e))).state={allOrganizerPosts:null,allOrganizerTerms:null},n.fetchOrganizerDetails(),n}return b()(t,e),c()(t,[{key:"fetchOrganizerDetails",value:function(){var e=O({path:S("/wp/v2/organizers",P)
}),t=O({path:S("/wp/v2/organizer_team",N)});this.state={allOrganizerPosts:e,allOrganizerTerms:t}}},{key:"render",value:function(){var e=this.props.attributes.mode;return Object(g.createElement)(x,null,Object(g.createElement)(y.default,a()({icon:j.ICON},this.props,this.state)),""!==e&&Object(g.createElement)(x,null,Object(g.createElement)(E.default,this.props),Object(g.createElement)(w.default,this.props)))}}]),t}(k),F=_(function(e,t){var n=t.attributes,r=n.mode,s=n.item_ids,a=n.sort,i=e("core").getEntityRecords,l=Object(v.split)(a,"_",2),u=o()(l,2),c={orderby:u[0],order:u[1],per_page:100,context:"view"};if(Array.isArray(s))switch(r){case"wcb_organizer":c.include=s;break;case"wcb_organizer_team":c.organizer_team=s}var d=Object(v.pickBy)(c,function(e){return!Object(v.isUndefined)(e)});return{blockData:A,organizerPosts:i("postType","wcb_organizer",d)}})(D)},"./assets/src/org
anizers/index.js":
+/*!****************************************!*\
+ !*** ./assets/src/organizers/index.js ***!
+ \****************************************/
+/*! exports provided: name, LABEL, ICON, settings */function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return s}),n.d(t,"LABEL",function(){return a}),n.d(t,"ICON",function(){return i}),n.d(t,"settings",function(){return l});var r=n(/*! ./edit */"./assets/src/organizers/edit.js"),o=wp.i18n.__,s="wordcamp/organizers",a=o("Organizers","wordcamporg"),i="groups",l={title:o("Organizers","wordcamporg"),description:o("Add a list of organizers.","wordcamporg"),icon:i,category:"wordcamp",supports:{align:["wide","full"]},edit:r.edit,save:function(){return null}}},"./assets/src/organizers/inspector-controls.js":
+/*!*****************************************************!*\
+ !*** ./assets/src/organizers/inspector-controls.js ***!
+ \*****************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),f=n(/*! ../shared/avatar */"./assets/src/shared/avatar/index.js"),h=n(/*! ../shared/image-alignment */"./assets/src/shared/image-alignment/index.js"),b=n(/*! ../sh
ared/grid-layout/inspector-control */"./assets/src/shared/grid-layout/inspector-control.js"),g=wp.components,v=g.PanelBody,y=g.PanelRow,E=g.SelectControl,w=g.ToggleControl,j=wp.editor.InspectorControls,O=wp.element,_=O.Component,C=O.Fragment,k=wp.i18n.__,x={grid_columns:{default:2,minimum:2,maximum:4},avatar_size:{default:150,minimum:25,maximum:600}},S={align:{},content:{},sort:{}},A=function(e){function t(){return o()(this,t),l()(this,c()(t).apply(this,arguments))}return p()(t,e),a()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blockData,o=t.show_avatars,s=t.avatar_size,a=t.avatar_align,i=t.content,l=t.sort,u=r.schema,c=void 0===u?x:u,d=r.options,p=void 0===d?S:d;return Object(m.createElement)(j,null,Object(m.createElement)(b.default,this.props),Object(m.createElement)(v,{title:k("Avatar Settings","wordcamporg"),initialOpen:!0},Object(m.createElement)(y,null,Object(m.createElement)(w,{label:k("S
how avatars","wordcamporg"),checked:o,onChange:function(e){return n({show_avatars:e})}})),o&&Object(m.createElement)(C,null,Object(m.createElement)(y,null,Object(m.createElement)(f.AvatarSizeControl,{label:k("Size","wordcamporg"),value:Number(s),initialPosition:Number(c.avatar_size.default),onChange:function(e){return n({avatar_size:e})},rangeProps:{min:Number(c.avatar_size.minimum),max:Number(c.avatar_size.maximum)}})),Object(m.createElement)(y,null,Object(m.createElement)(h.default,{label:k("Alignment","wordcamporg"),value:a,onChange:function(e){return n({avatar_align:e})},alignOptions:p.align_image})))),Object(m.createElement)(v,{title:k("Content Settings","wordcamporg"),initialOpen:!1},Object(m.createElement)(y,null,Object(m.createElement)(E,{label:k("Biography Length","wordcamporg"),value:i,options:p.content,onChange:function(e){return n({content:e})}}))),Object(m.createElemen
t)(v,{title:k("Sorting & Filtering","wordcamporg"),initialOpen:!1},Object(m.createElement)(y,null,Object(m.createElement)(E,{label:k("Sort by","wordcamporg"),value:l,options:p.sort,onChange:function(e){return n({sort:e})}}))))}}]),t}(_);t.default=A},"./assets/src/organizers/organizers-select.js":
+/*!****************************************************!*\
+ !*** ./assets/src/organizers/organizers-select.js ***!
+ \****************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/assertThisInitialized */"./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! lodash */"lodash"),g=n(/*
! ../shared/avatar */"./assets/src/shared/avatar/index.js"),v=n(/*! ../shared/item-select */"./assets/src/shared/item-select/index.js"),y=n(/*! ./index */"./assets/src/organizers/index.js"),E=wp.components.Dashicon,w=wp.element.Component,j=wp.i18n.__,O=function(e){function t(e){var n;return o()(this,t),(n=l()(this,c()(t).call(this,e))).state={wcb_organizer:[],wcb_organizer_team:[],loading:!0},n.buildSelectOptions=n.buildSelectOptions.bind(f()(f()(n))),n.fetchSelectOptions(e),n}return p()(t,e),a()(t,[{key:"fetchSelectOptions",value:function(e){var t=this,n=e.allOrganizerPosts,r=e.allOrganizerTerms,o=n.then(function(e){var n=e.map(function(e){return{label:e.title.rendered.trim()||j("(Untitled)","wordcamporg"),value:e.id,type:"wcb_organizer",avatar:e.avatar_urls[24]}});t.setState({wcb_organizer:n})}),s=r.then(function(e){var n=e.map(function(e){return{label:e.name.trim()||j("(Untitled)","wordcamporg&qu
ot;),value:e.id,type:"wcb_organizer_team",count:e.count}});t.setState({wcb_organizer_team:n})});Promise.all([o,s]).then(function(){t.setState({loading:!1})})}},{key:"buildSelectOptions",value:function(e){var t=Object.getOwnPropertyDescriptors,n=[],r={wcb_organizer:j("Organizers","wordcamporg"),wcb_organizer_team:j("Teams","wordcamporg")};for(var o in t(this.state))this.state[o].length&&(e&&o!==e||n.push({label:r[o],options:this.state[o]}));return n}},{key:"render",value:function(){var e=this.props,t=e.label,n=e.attributes,r=e.setAttributes,o=n.mode,s=n.item_ids,a=this.buildSelectOptions(o),i=[];o&&s.length&&(i=Object(b.get)(a,"[0].options",[]).filter(function(e){return Object(b.includes)(s,e.value)}));return Object(h.createElement)(v.default,{className:"wordcamp-organizer-select",label:t,value:i,buildSelectOptions:this.buildSelectOptions,onChange:function(e){retu
rn r(e)},mode:o,selectProps:{isLoading:this.state.loading,formatGroupLabel:function(e){return Object(h.createElement)("span",{className:"wordcamp-item-select-option-group-label"},e.label)},formatOptionLabel:function(e){return Object(h.createElement)(_,e)}}})}}]),t}(w);function _(e){var t,n,r=e.type,o=e.label,s=void 0===o?"":o,a=e.avatar,i=void 0===a?"":a,l=e.count,u=void 0===l?0:l;switch(r){case"wcb_organizer":t=Object(h.createElement)(g.AvatarImage,{className:"wordcamp-item-select-option-avatar",name:s,size:24,url:i}),n=Object(h.createElement)("span",{className:"wordcamp-item-select-option-label"},s);break;case"wcb_organizer_team":t=Object(h.createElement)("div",{className:"wordcamp-item-select-option-icon-container"},Object(h.createElement)(E,{className:"wordcamp-item-select-option-icon",icon:y.ICON,size:16})),n=Object(h.createElement)("span",{className
:"wordcamp-item-select-option-label"},s,Object(h.createElement)("span",{className:"wordcamp-item-select-option-label-term-count"},u))}return Object(h.createElement)("div",{className:"wordcamp-item-select-option"},t,n)}t.default=O},"./assets/src/organizers/toolbar.js":
+/*!******************************************!*\
+ !*** ./assets/src/organizers/toolbar.js ***!
+ \******************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),f=wp.components.Toolbar,h=wp.editor.BlockControls,b=function(e){function t(){return o()(this,t),l()(this,c()(t).apply(this,arguments))}return p()(t,e),a()(t,[{key:"render",v
alue:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blockData,o=t.layout,s=r.options.layout,a=(void 0===s?{}:s).map(function(e){var t="".concat(e.value,"-view"),r=o===e.value;return{icon:t,title:e.label,isActive:r,onClick:function(){n({layout:e.value})}}});return Object(m.createElement)(h,null,Object(m.createElement)(f,{controls:a}))}}]),t}(wp.element.Component);t.default=b},"./assets/src/sessions/block-content.js":
+/*!**********************************************!*\
+ !*** ./assets/src/sessions/block-content.js ***!
+ \**********************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @babel/runtime/helpers/slicedToArray */"./node_modules/@babel/runtime/helpers/slicedToArray.js"),b=n.n(h),g=n(/*! @wordpress/element */"./node_mod
ules/@wordpress/element/build-module/index.js"),v=n(/*! lodash */"lodash"),y=n(/*! classnames */"./node_modules/classnames/index.js"),E=n.n(y),w=n(/*! ../shared/block-content */"./assets/src/shared/block-content/index.js"),j=n(/*! ../shared/i18n */"./assets/src/shared/i18n/index.js"),O=n(/*! ../shared/grid-layout/block-content */"./assets/src/shared/grid-layout/block-content.js"),_=n(/*! ../shared/featured-image */"./assets/src/shared/featured-image/index.js"),C=wp.element.Component,k=wp.i18n.__;function x(e){var t=e.session,n=Object(v.get)(t,"_embedded.speakers",[]);n=n.map(function(e){var t=e.link,n=void 0===t?"":t,r=e.title,o=void 0===r?{}:r;return o=o.rendered.trim()||k("Unnamed","wordcamporg"),n?Object(g.createElement)("a",{key:n,href:n},o):o});var r=Object(j.arrayTokenReplace)(Object(j.tokenSplit)(k("Presented by %s","wordcamporg")),[Object(j.l
istify)(n)]);return Object(g.createElement)("div",{className:"wordcamp-item-meta wordcamp-session-speakers"},r)}function S(e){var t,n=e.session,r=Object(v.get)(n,"_embedded['wp:term']",[]).flat();if(n.session_track.length){var o=r.filter(function(e){return"wcb_track"===e.taxonomy}),s=b()(o,1)[0];t=Object(j.arrayTokenReplace)(Object(j.tokenSplit)(k("%1$s at %2$s in %3$s","wordcamporg")),[n.session_date_time.date,n.session_date_time.time,Object(g.createElement)("span",{key:s.id,className:E()("wordcamp-session-track","wordcamp-session-track-"+s.slug.trim())},s.name.trim())])}else t=Object(j.arrayTokenReplace)(Object(j.tokenSplit)(k("%1$s at %2$s","wordcamporg")),[n.session_date_time.date,n.session_date_time.time]);return Object(g.createElement)("div",{className:"wordcamp-session-time-location"},t)}function A(e){var t,n=e.session,r=Object(v.get)(n,"_embe
dded['wp:term']",[]).flat();if(n.session_category.length){var o=k(", ","wordcamporg"),s=r.filter(function(e){return"wcb_session_category"===e.taxonomy}).map(function(e){return Object(g.createElement)("span",{key:e.slug,className:E()("wordcamp-session-category","wordcamp-session-category-"+e.slug)},e.name.trim())});t=Object(j.intersperse)(s,o)}return Object(g.createElement)("div",{className:"wordcamp-session-categories"},t)}var P=function(e){function t(){return a()(this,t),c()(this,p()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"hasSpeaker",value:function(e){return Object(v.get)(e,"_embedded.speakers",[]).length>0}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.sessionPosts,s=n.show_speaker,a=n.show_images,i=n.image_align,l=n.featured_image_width,u=n.content,c=n.show_meta,d=n.show_category;return Object(g.createElement)(O.default
,o()({className:"wordcamp-sessions-block"},this.props),r.map(function(t){return Object(g.createElement)("div",{key:t.slug,className:E()("wordcamp-block-post-list-item","wordcamp-session","wordcamp-session-"+t.slug,"wordcamp-clearfix")},Object(g.createElement)(w.ItemTitle,{className:"wordcamp-session-title",headingLevel:3,title:t.title.rendered.trim(),link:t.link}),s&&e.hasSpeaker(t)&&Object(g.createElement)(x,{session:t}),a&&Object(g.createElement)(_.default,{className:E()("wordcamp-session-image-container","align-"+i),wpMediaDetails:Object(v.get)(t,"_embedded.wp:featuredmedia[0].media_details.sizes",{}),alt:t.title.rendered.trim(),width:Number(l),imageLink:t.link}),"none"!==u&&Object(g.createElement)(w.ItemHTMLContent,{className:E()("wordcamp-session-content-"+u),content:"full"===u?t.content.rendered.trim():t.excerpt.rende
red.trim()}),(c||d)&&Object(g.createElement)("div",{className:"wordcamp-item-meta wordcamp-session-details"},c&&Object(g.createElement)(S,{session:t}),d&&Object(g.createElement)(A,{session:t})),"full"===u&&Object(g.createElement)(w.ItemPermalink,{link:t.link,linkText:k("Visit session page","wordcamporg")}))}))}}]),t}(C);t.default=P},"./assets/src/sessions/block-controls.js":
+/*!***********************************************!*\
+ !*** ./assets/src/sessions/block-controls.js ***!
+ \***********************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! classnames */"./node_modules/classnames/index.js"),g=
n.n(b),v=n(/*! ../shared/block-controls */"./assets/src/shared/block-controls/index.js"),y=n(/*! ./block-content */"./assets/src/sessions/block-content.js"),E=n(/*! ./sessions-select */"./assets/src/sessions/sessions-select.js"),w=n(/*! ./index */"./assets/src/sessions/index.js"),j=wp.components,O=j.Button,_=j.Placeholder,C=wp.i18n.__,k=function(e){function t(){return a()(this,t),c()(this,p()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.attributes,s=t.setAttributes,a=t.sessionPosts,i=r.mode,l=Array.isArray(a)&&a.length;if(i&&!l)return Object(h.createElement)(v.PlaceholderNoContent,{icon:n,label:w.LABEL,loading:!Array.isArray(a)});switch(i){case"all":e=Object(h.createElement)(y.default,this.props);break;case"wcb_session":case"wcb_track":case"wcb_session_category":e=Object(h.createElement)(v.PlaceholderSpecificMode
,{label:this.getModeLabel(i),icon:n,content:Object(h.createElement)(y.default,this.props),placeholderChildren:Object(h.createElement)(E.default,this.props)});break;default:e=Object(h.createElement)(_,{className:g()("wordcamp-block-edit-placeholder","wordcamp-block-edit-placeholder-no-mode"),icon:n,label:w.LABEL},Object(h.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(h.createElement)(O,{isDefault:!0,isLarge:!0,onClick:function(){s({mode:"all"})}},this.getModeLabel("all"))),Object(h.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(h.createElement)(E.default,o()({icon:n,label:C("Choose specific sessions, tracks, or categories","wordcamporg")},this.props))))}return e}}]),t}(v.BlockControls);t.default=k},"./assets/src/sessions/edit.js":
+/*!*************************************!*\
+ !*** ./assets/src/sessions/edit.js ***!
+ \*************************************/
+/*! exports provided: edit */function(e,t,n){"use strict";n.r(t),n.d(t,"edit",function(){return F});var r=n(/*! @babel/runtime/helpers/slicedToArray */"./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),f=n.n(m),h=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),b=n.n(h),g=n
(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),v=n(/*! lodash */"lodash"),y=n(/*! ./block-controls */"./assets/src/sessions/block-controls.js"),E=n(/*! ./inspector-controls */"./assets/src/sessions/inspector-controls.js"),w=n(/*! ../shared/grid-layout/toolbar */"./assets/src/shared/grid-layout/toolbar.js"),j=n(/*! ./index */"./assets/src/sessions/index.js"),O=wp.apiFetch,_=wp.data.withSelect,C=wp.element,k=C.Component,x=C.Fragment,S=wp.url.addQueryArgs,A=window.WordCampBlocks.sessions||{},P={orderby:"title",order:"asc",per_page:100,_embed:!0},N={orderby:"name",order:"asc",per_page:100},D=function(e){function t(e){var n;return l()(this,t),(n=p()(this,f()(t).call(this,e))).fetchSessionDetails(),n}return b()(t,e),c()(t,[{key:"fetchSessionDetails",value:function(){var e=O({path:S("/wp/v2/sessions",P)}),t=O({path:S("/wp/v2/sess
ion_track",N)}),n=O({path:S("/wp/v2/session_category",N)});this.state={allSessionPosts:e,allSessionTracks:t,allSessionCategories:n}}},{key:"render",value:function(){var e=this.props.attributes.mode;return Object(g.createElement)(x,null,Object(g.createElement)(y.default,a()({icon:j.ICON},this.props,this.state)),e&&Object(g.createElement)(x,null,Object(g.createElement)(E.default,this.props),Object(g.createElement)(w.default,this.props)))}}]),t}(k),F=_(function(e,t){var n=t.attributes,r=n.mode,s=n.item_ids,a=n.sort,i=e("core").getEntityRecords,l={per_page:100,_embed:!0,context:"view",_wcpt_session_type:"session"};if("session_time"!==a){var u=Object(v.split)(a,"_",2),c=o()(u,2),d=c[0],p=c[1];l.orderby=d,l.order=p}if(Array.isArray(s))switch(r){case"wcb_session":l.include=s;break;case"wcb_track":l.session_track=s;break;case"wcb_session_category":l.session_category=s}var m=i(&qu
ot;postType","wcb_session",Object(v.pickBy)(l,function(e){return!Object(v.isUndefined)(e)}));return Array.isArray(m)&&"session_time"===a&&m.sort(function(e,t){return Number(e.meta._wcpt_session_time)-Number(t.meta._wcpt_session_time)}),{blockData:A,sessionPosts:m}})(D)},"./assets/src/sessions/index.js":
+/*!**************************************!*\
+ !*** ./assets/src/sessions/index.js ***!
+ \**************************************/
+/*! exports provided: name, LABEL, ICON, settings */function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return s}),n.d(t,"LABEL",function(){return a}),n.d(t,"ICON",function(){return i}),n.d(t,"settings",function(){return l});var r=n(/*! ./edit.js */"./assets/src/sessions/edit.js"),o=wp.i18n.__,s="wordcamp/sessions",a=o("Sessions","wordcamporg"),i="list-view",l={title:o("Sessions","wordcamporg"),description:o("Add a list of sessions.","wordcamporg"),icon:i,category:"wordcamp",supports:{align:["wide","full"]},edit:r.edit,save:function(){return null}}},"./assets/src/sessions/inspector-controls.js":
+/*!***************************************************!*\
+ !*** ./assets/src/sessions/inspector-controls.js ***!
+ \***************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! ../shared/grid-layout/inspector-control */"./assets/src/sh
ared/grid-layout/inspector-control.js"),g=n(/*! ../shared/featured-image/inspector-control */"./assets/src/shared/featured-image/inspector-control.js"),v=wp.components,y=v.PanelBody,E=v.PanelRow,w=v.SelectControl,j=v.ToggleControl,O=wp.editor.InspectorControls,_=wp.element.Component,C=wp.i18n.__,k=function(e){function t(){return a()(this,t),c()(this,p()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blockData,s=t.show_speaker,a=t.content,i=t.show_meta,l=t.show_category,u=t.sort,c=r.options;return Object(h.createElement)(O,null,Object(h.createElement)(b.default,this.props),Object(h.createElement)(y,{title:C("Content Settings","wordcamporg"),initialOpen:!0},Object(h.createElement)(E,null,Object(h.createElement)(w,{label:C("Description","wordcamporg"),value:a||"full",options:c.content,onChange:function(e){return n({content:e})
}})),Object(h.createElement)(E,null,Object(h.createElement)(j,{label:C("Details","wordcamporg"),help:C("Show date, time, and track.","wordcamporg"),checked:void 0!==i&&i,onChange:function(e){return n({show_meta:e})}})),Object(h.createElement)(E,null,Object(h.createElement)(j,{label:C("Categories","wordcamporg"),help:C("Show session categories.","wordcamporg"),checked:void 0!==l&&l,onChange:function(e){return n({show_category:e})}})),Object(h.createElement)(E,null,Object(h.createElement)(j,{label:C("Speakers","wordcamporg"),help:C("Show session speakers.","wordcamporg"),checked:void 0!==s&&s,onChange:function(e){return n({show_speaker:e})}}))),Object(h.createElement)(g.default,o()({title:C("Image size","wordcamporg"),help:C("Specify image height and width, or select a predefined size.","wordcamporg"),se
lectLabel:C("Size","wordcamporg")},this.props)),Object(h.createElement)(y,{title:C("Sorting","wordcamporg")},Object(h.createElement)(E,null,Object(h.createElement)(w,{label:C("Sort by","wordcamporg"),value:u,options:c.sort||"session_time",onChange:function(e){return n({sort:e})}}))))}}]),t}(_);t.default=k},"./assets/src/sessions/sessions-select.js":
+/*!************************************************!*\
+ !*** ./assets/src/sessions/sessions-select.js ***!
+ \************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/slicedToArray */"./node_modules/@babel/runtime/helpers/slicedToArray.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),f=n.n(m),h=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),b=n.n(h),g=n(/*! @babel/runtime/helpers/in
herits */"./node_modules/@babel/runtime/helpers/inherits.js"),v=n.n(g),y=n(/*! @babel/runtime/helpers/assertThisInitialized */"./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),E=n.n(y),w=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),j=n(/*! lodash */"lodash"),O=n(/*! ../shared/item-select */"./assets/src/shared/item-select/index.js"),_=wp.components.Dashicon,C=wp.element.Component,k=wp.i18n.__,x=function(e){function t(e){var n;return c()(this,t),(n=f()(this,b()(t).call(this,e))).state={wcb_session:[],wcb_track:[],wcb_session_category:[],loading:!0},n.buildSelectOptions=n.buildSelectOptions.bind(E()(E()(n))),n.fetchSelectOptions(e),n}return v()(t,e),p()(t,[{key:"fetchSelectOptions",value:function(e){var t=this,n=e.allSessionPosts,r=e.allSessionTracks,o=e.allSessionCategories,s=[];s.push(n.then(function(e){var n=e.map(function(e){var t=Object(j.get)(e,"_embedded['wp
:featuredmedia'].media_details.sizes.thumbnail.source_url","");return{label:e.title.rendered.trim()||k("(Untitled)","wordcamporg"),value:e.id,type:"wcb_session",image:t}});t.setState({wcb_session:n})}).catch()),[r,o].forEach(function(e){s.push(e.then(function(e){var n=e.map(function(e){return{label:e.name.trim()||k("(Untitled)","wordcamporg"),value:e.id,type:e.taxonomy,count:e.count||0}}),r=l()(n,1)[0];t.setState(a()({},r.type,n))}).catch())}),Promise.all(s).then(function(){t.setState({loading:!1})})}},{key:"buildSelectOptions",value:function(e){var t=Object.getOwnPropertyDescriptors,n=[],r={wcb_session:k("Sessions","wordcamporg"),wcb_track:k("Tracks","wordcamporg"),wcb_session_category:k("Session Categories","wordcamporg")};for(var o in t(this.state))e&&o!==e||!this.state[o].length||n.push({label:r[o],options:this.state[o]});return n}},{key:
"render",value:function(){var e=this.props,t=e.icon,n=e.label,r=e.attributes,s=e.setAttributes,a=r.mode,i=r.item_ids,l=this.buildSelectOptions(a),u=[];a&&i.length&&(u=Object(j.get)(l,"[0].options",[]).filter(function(e){return Object(j.includes)(i,e.value)}));return Object(w.createElement)(O.default,{className:"wordcamp-sessions-select",label:n,value:u,buildSelectOptions:this.buildSelectOptions,onChange:function(e){return s(e)},mode:a,selectProps:{isLoading:this.state.loading,formatGroupLabel:function(e){return Object(w.createElement)("span",{className:"wordcamp-item-select-option-group-label"},e.label)},formatOptionLabel:function(e){return Object(w.createElement)(S,o()({icon:t},e))}}})}}]),t}(C);function S(e){var t,n,r=e.type,o=e.icon,s=e.label,a=void 0===s?"":s,i=e.image,l=void 0===i?"":i,u=e.count,c=void 0===u?0:u;switch(r){case"wcb_session":t=l?Object(w.createElement)("img",
{className:"wordcamp-item-select-option-image",src:l,alt:a,width:24,height:24}):Object(w.createElement)("div",{className:"wordcamp-item-select-option-icon-container"},Object(w.createElement)(_,{className:"wordcamp-item-select-option-icon",icon:o,size:16})),n=Object(w.createElement)("span",{className:"wordcamp-item-select-option-label"},a);break;case"wcb_track":case"wcb_session_category":t=Object(w.createElement)("div",{className:"wordcamp-item-select-option-icon-container"},Object(w.createElement)(_,{className:"wordcamp-item-select-option-icon",icon:o,size:16})),n=Object(w.createElement)("span",{className:"wordcamp-item-select-option-label"},a,Object(w.createElement)("span",{className:"wordcamp-item-select-option-label-term-count"},c))}return Object(w.createElement)("div",{className:"wordcamp-item-select-option"},t,
n)}t.default=x},"./assets/src/shared/avatar/index.js":
+/*!*******************************************!*\
+ !*** ./assets/src/shared/avatar/index.js ***!
+ \*******************************************/
+/*! exports provided: AvatarImage, AvatarSizeControl */function(e,t,n){"use strict";n.r(t),n.d(t,"AvatarImage",function(){return f});var r=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),o=n(/*! classnames */"./node_modules/classnames/index.js"),s=n.n(o),a=(n(/*! ./style.scss */"./assets/src/shared/avatar/style.scss"),n(/*! ./inspector-controls */"./assets/src/shared/avatar/inspector-controls.js"));n.d(t,"AvatarSizeControl",function(){return a.AvatarSizeControl});var i=wp.components.Disabled,l=wp.i18n,u=l.__,c=l.sprintf,d=wp.url,p=d.addQueryArgs,m=d.isURL;function f(e){var t=e.className,n=e.name,o=e.size,a=e.url,l=e.imageLink,d=function(e,t){return p(e,{s:t})},f=Object(r.createElement)("img",{className:s()("avatar","avatar-"+o,"photo"),src:d(a,o),srcSet:d(a,2*o)+" 2x",alt:n?c(u("Avatar of %s","wordcamporg"),
n):"",width:o,height:o});return m(l)&&(f=Object(r.createElement)(i,null,Object(r.createElement)("a",{href:l,className:s()("wordcamp-image-link","wordcamp-avatar-link")},f))),f=Object(r.createElement)("div",{className:s()("wordcamp-image-container","wordcamp-avatar-container",t)},f)}},"./assets/src/shared/avatar/inspector-controls.js":
+/*!********************************************************!*\
+ !*** ./assets/src/shared/avatar/inspector-controls.js ***!
+ \********************************************************/
+/*! exports provided: AvatarSizeControl */function(e,t,n){"use strict";n.r(t),n.d(t,"AvatarSizeControl",function(){return N});var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @babel/runtime/helpers/assertThisInitialized */"./node_modules/@babel/runtime/helpers/as
sertThisInitialized.js"),b=n.n(h),g=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),v=n(/*! classnames */"./node_modules/classnames/index.js"),y=n.n(v),E=n(/*! lodash */"lodash"),w=(n(/*! ./inspector-controls.scss */"./assets/src/shared/avatar/inspector-controls.scss"),wp.element.Component),j=wp.components,O=j.BaseControl,_=j.Button,C=j.ButtonGroup,k=j.RangeControl,x=wp.i18n,S=x.__,A=x._x,P=[{name:S("Small","wordcamporg"),shortName:A("S","size small","wordcamporg"),size:90,slug:"small"},{name:S("Regular","wordcamporg"),shortName:A("M","size medium","wordcamporg"),size:150,slug:"regular"},{name:S("Large","wordcamporg"),shortName:A("L","size large","wordcamporg"),size:300,slug:"large"},{name:S("Larger","wordcamp
org"),shortName:A("XL","size extra large","wordcamporg"),size:500,slug:"larger"}],N=function(e){function t(e){var n;return a()(this,t),(n=c()(this,p()(t).call(this,e))).state={value:e.value,onChange:Object(E.debounce)(e.onChange,10)},n.onChange=n.onChange.bind(b()(b()(n))),n}return f()(t,e),l()(t,[{key:"onChange",value:function(e){this.setState({value:e}),this.state.onChange(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.label,s=t.help,a=t.initialPosition,i=t.rangeProps,l=this.state.value;return Object(g.createElement)(O,{className:y()("wordcamp-components-avatar-size",n),label:r,help:s},Object(g.createElement)("div",{className:"wordcamp-components-avatar-size-buttons"},Object(g.createElement)(C,{"aria-label":r},P.map(function(t){var n=t.name,r=t.shortName,o=t.size,s=t.slug,a=l===o;return Object(g.createElement)(_,{key:s,isLarge:!0,isPrimary:a,"
;aria-label":n,"aria-pressed":a,onClick:function(){return e.onChange(Number(o))}},r||n)})),Object(g.createElement)(_,{className:"wordcamp-components-avatar-size-button-reset",isLarge:!0,isDefault:!0,onClick:function(){return e.onChange(Number(a))}},S("Reset","wordcamporg"))),Object(g.createElement)(k,o()({className:"wordcamp-components-avatar-size-range",value:l,initialPosition:a,onChange:this.onChange,beforeIcon:"format-image",afterIcon:"format-image","aria-label":r},i)))}}]),t}(w)},"./assets/src/shared/avatar/inspector-controls.scss":
+/*!**********************************************************!*\
+ !*** ./assets/src/shared/avatar/inspector-controls.scss ***!
+ \**********************************************************/
+/*! no static exports found */function(e,t,n){},"./assets/src/shared/avatar/style.scss":
+/*!*********************************************!*\
+ !*** ./assets/src/shared/avatar/style.scss ***!
+ \*********************************************/
+/*! no static exports found */function(e,t,n){},"./assets/src/shared/block-content/index.js":
+/*!**************************************************!*\
+ !*** ./assets/src/shared/block-content/index.js ***!
+ \**************************************************/
+/*! exports provided: ItemTitle, ItemHTMLContent, ItemPermalink */function(e,t,n){"use strict";n.r(t),n.d(t,"ItemTitle",function(){return d}),n.d(t,"ItemHTMLContent",function(){return p}),n.d(t,"ItemPermalink",function(){return m});var r=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),o=n(/*! classnames */"./node_modules/classnames/index.js"),s=n.n(o),a=(n(/*! ./style.scss */"./assets/src/shared/block-content/style.scss"),wp.components.Disabled),i=wp.element,l=i.Fragment,u=i.RawHTML,c=wp.i18n.__;function d(e){var t=e.headingLevel,n=e.className,o=e.title,i=e.link,u="h3";[1,2,3,4,5,6].includes(t)&&(u="h"+t);var d=["wordcamp-item-title",n],p=o||c("(Untitled)","wordcamporg");return Object(r.createElement)(u,{className:s()(d)},i&&Object(r.createElement)(a,null,Object(r.createElement)("a",{href:i},p)),!i&
;&Object(r.createElement)(l,null,p))}function p(e){var t=e.className,n=e.content,o=e.link,i=e.linkText,l=["wordcamp-item-content",t];return Object(r.createElement)("div",{className:s()(l)},Object(r.createElement)(a,null,Object(r.createElement)(u,{children:n}),o&&Object(r.createElement)(m,{link:o,linkText:i})))}function m(e){var t=e.className,n=e.link,o=e.linkText,a=["wordcamp-item-permalink",t];return Object(r.createElement)("p",{className:s()(a)},Object(r.createElement)("a",{href:n},o||c("Read more","wordcamporg")))}},"./assets/src/shared/block-content/style.scss":
+/*!****************************************************!*\
+ !*** ./assets/src/shared/block-content/style.scss ***!
+ \****************************************************/
+/*! no static exports found */function(e,t,n){},"./assets/src/shared/block-controls/index.js":
+/*!***************************************************!*\
+ !*** ./assets/src/shared/block-controls/index.js ***!
+ \***************************************************/
+/*! exports provided: BlockControls, PlaceholderNoContent, PlaceholderSpecificMode */function(e,t,n){"use strict";n.r(t),n.d(t,"BlockControls",function(){return C}),n.d(t,"PlaceholderNoContent",function(){return k}),n.d(t,"PlaceholderSpecificMode",function(){return x});var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/assertThisInitiali
zed */"./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! classnames */"./node_modules/classnames/index.js"),g=n.n(b),v=(n(/*! ./style.scss */"./assets/src/shared/block-controls/style.scss"),wp.components),y=v.Placeholder,E=v.Spinner,w=wp.element,j=w.Component,O=w.Fragment,_=wp.i18n.__,C=function(e){function t(e){var n;return o()(this,t),(n=l()(this,c()(t).call(this,e))).getModeLabel=n.getModeLabel.bind(f()(f()(n))),n}return p()(t,e),a()(t,[{key:"getModeLabel",value:function(e){return this.props.blockData.options.mode.find(function(t){return e===t.value}).label}}]),t}(j);function k(e){var t=e.className,n=e.icon,r=e.label,o=e.loading,s=["wordcamp-block-edit-placeholder","wordcamp-block-edit-placeholder-no-content",t];return Object(h.createElement)(y,{className:g()(s),icon:n,label:r},o?Object(h.crea
teElement)(E,null):_("No content found.","wordcamporg"))}function x(e){var t=e.className,n=e.label,r=e.icon,o=e.content,s=e.placeholderChildren,a=["wordcamp-block-edit-placeholder","wordcamp-block-edit-placeholder-specific-mode",t];return Object(h.createElement)(O,null,o,Object(h.createElement)(y,{className:g()(a),label:n,icon:r},s))}},"./assets/src/shared/block-controls/style.scss":
+/*!*****************************************************!*\
+ !*** ./assets/src/shared/block-controls/style.scss ***!
+ \*****************************************************/
+/*! no static exports found */function(e,t,n){},"./assets/src/shared/featured-image/index.js":
+/*!***************************************************!*\
+ !*** ./assets/src/shared/featured-image/index.js ***!
+ \***************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return y});var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),f=n(/*! classnames */"./node_modules/classnames/index.js"),h=n.n(f),b=wp.components.Disabled,g=wp.element.Component,v=wp.url.
isURL,y=function(e){function t(e){var n;return o()(this,t),(n=l()(this,c()(t).call(this,e))).state={},n}return p()(t,e),a()(t,[{key:"getFullImage",value:function(){var e=Object.getOwnPropertyDescriptors,t=this.props.wpMediaDetails,n=this.state.selectedImage;if(n&&n.hasOwnProperty("source_url"))return n;if(t.hasOwnProperty("full")&&t.full.hasOwnProperty("source_url"))return this.setState({selectedImage:t.full}),t.full;var r={source_url:""};for(var o in e(t))t[o].width>(r.width||0)&&t[o].hasOwnProperty("source_url")&&(r=t[o]);return this.setState({selectedImage:r}),r}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.alt,r=e.width,o=void 0===r?150:r,s=e.imageLink,a=this.getFullImage(),i=Object(m.createElement)("img",{className:h()("wordcamp-featured-image",t),src:a.source_url,alt:n,width:o+"px"});return v(s)&&(i=Object(m.create
Element)(b,null,Object(m.createElement)("a",{href:s,className:h()("wordcamp-image-link","wordcamp-featured-image-link")},i))),i=Object(m.createElement)("div",{className:h()("wordcamp-image-container","wordcamp-featured-image-container",t)},i)}}]),t}(g)},"./assets/src/shared/featured-image/inspector-control.js":
+/*!***************************************************************!*\
+ !*** ./assets/src/shared/featured-image/inspector-control.js ***!
+ \***************************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),f=(n(/*! ./style.scss */"./assets/src/shared/featured-image/style.scss"),n(/*! ../avatar */"./assets/src/shared/avatar/index.js")),h=wp.element.Component,b=wp.comp
onents.PanelBody,g=function(e){function t(){return o()(this,t),l()(this,c()(t).apply(this,arguments))}return p()(t,e),a()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.title,o=e.help,s=e.selectLabel,a=t.featured_image_width;return Object(m.createElement)(b,{title:r,initialopen:!1},Object(m.createElement)(f.AvatarSizeControl,{onChange:function(e){return n({featured_image_width:Number(e)})},label:s,initialPosition:a,help:o,rangeProps:{min:25,max:1024}}))}}]),t}(h);t.default=g},"./assets/src/shared/featured-image/style.scss":
+/*!*****************************************************!*\
+ !*** ./assets/src/shared/featured-image/style.scss ***!
+ \*****************************************************/
+/*! no static exports found */function(e,t,n){},"./assets/src/shared/grid-layout/block-content.js":
+/*!********************************************************!*\
+ !*** ./assets/src/shared/grid-layout/block-content.js ***!
+ \********************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),f=n(/*! classnames */"./node_modules/classnames/index.js"),h=n.n(f),b=(n(/*! ./style.scss */"./assets/src/shared/grid-layout/style.scss"),function(e){function t(){
return o()(this,t),l()(this,c()(t).apply(this,arguments))}return p()(t,e),a()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.children,o=t.grid_columns,s=t.layout,a=t.align,i=["wordcamp-block","wordcamp-block-post-list","layout-"+s,n];return"grid"===s&&i.push("grid-columns-"+Number(o)),a&&i.push("align"+a),Object(m.createElement)("ul",{className:h()(i)},(r||[]).map(function(e){return Object(m.createElement)("li",{key:e.key,className:h()("wordcamp-grid-layout-item","wordcamp-block-post-list-item","wordcamp-clearfix")},e)}))}}]),t}(wp.element.Component));t.default=b},"./assets/src/shared/grid-layout/inspector-control.js":
+/*!************************************************************!*\
+ !*** ./assets/src/shared/grid-layout/inspector-control.js ***!
+ \************************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),f=wp.element.Component,h=wp.components,b=h.PanelBody,g=h.PanelRow,v=h.RangeControl,y=wp.i18n.__,E={grid_columns:{default:2,minimum:2,maximum:4}},w=function(e){function t(){return o()(
this,t),l()(this,c()(t).apply(this,arguments))}return p()(t,e),a()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.layout,o=t.grid_columns;if("grid"!==r)return null;var s=E;return Object(m.createElement)(b,null,Object(m.createElement)(b,{title:y("Layout","wordcamporg"),initialOpen:!0},Object(m.createElement)(g,null,Object(m.createElement)(v,{label:y("Grid Columns","wordcamporg"),value:Number(o),min:s.grid_columns.minimum,max:s.grid_columns.maximum,initialPosition:s.grid_columns.default,onChange:function(e){return n({grid_columns:e})}}))))}}]),t}(f);t.default=w},"./assets/src/shared/grid-layout/style.scss":
+/*!**************************************************!*\
+ !*** ./assets/src/shared/grid-layout/style.scss ***!
+ \**************************************************/
+/*! no static exports found */function(e,t,n){},"./assets/src/shared/grid-layout/toolbar.js":
+/*!**************************************************!*\
+ !*** ./assets/src/shared/grid-layout/toolbar.js ***!
+ \**************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),f=wp.components.Toolbar,h=wp.editor.BlockControls,b=wp.i18n.__,g=function(e){function t(){return o()(this,t),l()(this,c()(t).apply(this,arguments))}return p()(t,e),a()(t,[{key:"r
ender",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.layout,o=[{value:"grid",label:b("Grid","wordcamporg"),isActive:"grid"===r},{value:"list",label:b("List","wordcamporg"),isActive:"grid"===r}];return Object(m.createElement)(h,null,Object(m.createElement)(f,{controls:o.map(function(e){var t="".concat(e.value,"-view"),o=r===e.value;return{icon:t,title:e.label,isActive:o,onClick:function(){n({layout:e.value,grid_columns:"grid"===e.value?2:1})}}})}))}}]),t}(wp.element.Component);t.default=g},"./assets/src/shared/i18n/index.js":
+/*!*****************************************!*\
+ !*** ./assets/src/shared/i18n/index.js ***!
+ \*****************************************/
+/*! exports provided: tokenSplit, arrayTokenReplace, intersperse, listify */function(e,t,n){"use strict";n.r(t),n.d(t,"tokenSplit",function(){return l}),n.d(t,"arrayTokenReplace",function(){return u}),n.d(t,"intersperse",function(){return c}),n.d(t,"listify",function(){return d});var r=n(/*! @babel/runtime/helpers/toConsumableArray */"./node_modules/@babel/runtime/helpers/toConsumableArray.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/toArray */"./node_modules/@babel/runtime/helpers/toArray.js"),a=n.n(s),i=wp.i18n.__;function l(e){return e.split(/(%[1-9]?\$?s)/)}function u(e,t){var n,r=0;return e.flatMap(function(e){var o=e.match(/^%([1-9])?\$?s$/);return Array.isArray(o)&&(o.length>1&&void 0!==o[1]?(n=Number(o[1])-1,void 0!==t[n]&&(e=t[n])):(e=t[r],r++)),e})}function c(e,t){return e.length?e.slice(1).reduce(function(e,n,r){var o="function"==typeof t?o(r):t;return e.concat([o,n]
)},[e[0]]):[]}function d(e){var t=[],n=i(", ","wordcamporg"),r=i(" and ","wordcamporg");if(!Array.isArray(e))return t;switch(e.length){case 0:break;case 1:t=e;break;case 2:t=c(e,r);break;default:var s=o()(e).reverse(),l=a()(s),u=l[0];t=c(l.slice(1),n).concat([n,r,u])}return t}},"./assets/src/shared/image-alignment/index.js":
+/*!****************************************************!*\
+ !*** ./assets/src/shared/image-alignment/index.js ***!
+ \****************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),o=n(/*! classnames */"./node_modules/classnames/index.js"),s=n.n(o),a=wp.components,i=a.BaseControl,l=a.Toolbar;t.default=function(e){var t=e.className,n=e.label,o=e.help,a=e.value,u=e.onChange,c=e.alignOptions;return Object(r.createElement)(i,{className:s()("wordcamp-components-image-alignment",t),label:n,help:o},Object(r.createElement)(l,{controls:c.map(function(e){var t=a===e.value,n="align-".concat(e.value);return{title:e.label,icon:n,isActive:t,onClick:function(){u(e.value)}}})}))}},"./assets/src/shared/item-select/index.js":
+/*!************************************************!*\
+ !*** ./assets/src/shared/item-select/index.js ***!
+ \************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/objectSpread */"./node_modules/@babel/runtime/helpers/objectSpread.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),f=n.n(m),h=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),b=n.n(h),g=n(/*! @babel/runtime/helpers/assertThisInitia
lized */"./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),v=n.n(g),y=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),E=n(/*! react-select */"./node_modules/react-select/dist/react-select.esm.js"),w=n(/*! classnames */"./node_modules/classnames/index.js"),j=n.n(w),O=(n(/*! ./style.scss */"./assets/src/shared/item-select/style.scss"),wp.components),_=O.BaseControl,C=O.Button,k=wp.compose.withInstanceId,x=wp.element.Component,S=wp.i18n.__,A=function(e){function t(e){var n;return l()(this,t),(n=p()(this,f()(t).call(this,e))).state={selectedOptions:null},n.isOptionDisabled=n.isOptionDisabled.bind(v()(v()(n))),n.getNewAttributes=n.getNewAttributes.bind(v()(v()(n))),n}return b()(t,e),c()(t,[{key:"isOptionDisabled",value:function(e,t){var n,r=this.props.mode;return"loading"===e.type||(Array.isArray(t)&&t.length&&(n=t[0].type),!(!r||r===e.type)||n&&a
mp;n!==e.type)}},{key:"getNewAttributes",value:function(){var e={},t=this.state.selectedOptions;if(null===t)return e;var n=t.map(function(e){return e.value})||[];n.length?e={mode:t[0].type,item_ids:n}:e={mode:"",item_ids:[]};return e}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.className,s=t.label,i=t.help,l=t.submitLabel,u=t.buildSelectOptions,c=t.onChange,d=t.selectProps,p=this.state.selectedOptions||this.props.value,m="wordcamp-item-select-control-".concat(n),f=a()({options:u(),isMulti:!0,isOptionDisabled:this.isOptionDisabled},d);return Object(y.createElement)(_,{id:m,className:j()("wordcamp-item-select",r),label:s,help:i},Object(y.createElement)("div",{className:"wordcaselectedOptionsmp-item-select-inner"},Object(y.createElement)(E.default,o()({id:m,className:"wordcamp-item-select-select",value:p,"aria-label":s,onChange:function(t){e.setState({selectedOptions
:t})}},f)),Object(y.createElement)(C,{className:"wordcamp-item-select-button",isLarge:!0,isDefault:!0,onClick:function(){return c(e.getNewAttributes())}},l||S("Select","wordcamporg"))))}}]),t}(x);t.default=k(A)},"./assets/src/shared/item-select/style.scss":
+/*!**************************************************!*\
+ !*** ./assets/src/shared/item-select/style.scss ***!
+ \**************************************************/
+/*! no static exports found */function(e,t,n){},"./assets/src/speakers/block-content.js":
+/*!**********************************************!*\
+ !*** ./assets/src/speakers/block-content.js ***!
+ \**********************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @babel/runtime/helpers/slicedToArray */"./node_modules/@babel/runtime/helpers/slicedToArray.js"),b=n.n(h),g=n(/*! @wordpress/element */"./node_mod
ules/@wordpress/element/build-module/index.js"),v=n(/*! lodash */"lodash"),y=n(/*! classnames */"./node_modules/classnames/index.js"),E=n.n(y),w=n(/*! ../shared/avatar */"./assets/src/shared/avatar/index.js"),j=n(/*! ../shared/block-content */"./assets/src/shared/block-content/index.js"),O=n(/*! ../shared/i18n */"./assets/src/shared/i18n/index.js"),_=n(/*! ../shared/grid-layout/block-content */"./assets/src/shared/grid-layout/block-content.js"),C=(n(/*! ./block-content.scss */"./assets/src/speakers/block-content.scss"),wp.components.Disabled),k=wp.element,x=k.Component,S=k.Fragment,A=wp.i18n,P=A.__,N=A._n,D=wp.escapeHtml.escapeAttribute;function F(e){var t=e.speaker,n=e.tracks,r=Object(v.get)(t,"_embedded.sessions",[]),o=Object(g.createElement)(S,null,null);return r.length&&(o=Object(g.createElement)("div",{className:E()("wordcamp-item-meta","wordcamp-speaker-session
s")},Object(g.createElement)("h4",{className:"wordcamp-speaker-sessions-heading"},N("Session","Sessions",r.length,"wordcamporg")),Object(g.createElement)("ul",{className:"wordcamp-speaker-sessions-list"},r.map(function(e){return Object(g.createElement)("li",{key:D(e.slug),className:"wordcamp-speaker-session-content"},Object(g.createElement)(C,null,Object(g.createElement)("a",{className:"wordcamp-speaker-session-link",href:e.link},e.title.rendered.trim()||P("(Untitled)","wordcamporg")),Object(g.createElement)("span",{className:"wordcamp-speaker-session-info"},e.session_track.length&&Array.isArray(n)&&Object(O.arrayTokenReplace)(Object(O.tokenSplit)(P("%1$s at %2$s in %3$s","wordcamporg")),[e.session_date_time.date,e.session_date_time.time,Object(v.get)(n.find(function(t){var n=b()(e.session_track
,1)[0];return parseInt(t.id)===n}),"name")]),(!e.session_track.length||!Array.isArray(n))&&Object(O.arrayTokenReplace)(Object(O.tokenSplit)(P("%1$s at %2$s","wordcamporg")),[e.session_date_time.date,e.session_date_time.time]))))})))),o}var T=function(e){function t(){return a()(this,t),c()(this,p()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.speakerPosts,r=e.tracks,s=t.show_avatars,a=t.avatar_size,i=t.avatar_align,l=t.content,u=t.show_session;return Object(g.createElement)(_.default,o()({className:"wordcamp-speakers-block"},this.props),n.map(function(e){return Object(g.createElement)("div",{key:e.slug,className:E()("wordcamp-speaker","wordcamp-speaker-"+e.slug)},Object(g.createElement)(j.ItemTitle,{className:"wordcamp-speaker-title",headingLevel:3,title:e.title.rendered.trim(),link:e.link}),s&&Object(g.create
Element)(w.AvatarImage,{className:E()("wordcamp-speaker-avatar-container","align-"+i),name:e.title.rendered.trim()||"",size:a,url:e.avatar_urls[24],imageLink:e.link}),"none"!==l&&Object(g.createElement)(j.ItemHTMLContent,{className:E()("wordcamp-speaker-content-"+l),content:"full"===l?e.content.rendered.trim():e.excerpt.rendered.trim()}),!0===u&&Object(g.createElement)(F,{speaker:e,tracks:r}),"full"===l&&Object(g.createElement)(j.ItemPermalink,{link:e.link,linkText:P("Visit speaker page","wordcamporg")}))}))}}]),t}(x);t.default=T},"./assets/src/speakers/block-content.scss":
+/*!************************************************!*\
+ !*** ./assets/src/speakers/block-content.scss ***!
+ \************************************************/
+/*! no static exports found */function(e,t,n){},"./assets/src/speakers/block-controls.js":
+/*!***********************************************!*\
+ !*** ./assets/src/speakers/block-controls.js ***!
+ \***********************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! classnames */"./node_modules/classnames/index.js"),g=
n.n(b),v=n(/*! ../shared/block-controls */"./assets/src/shared/block-controls/index.js"),y=n(/*! ./block-content */"./assets/src/speakers/block-content.js"),E=n(/*! ./speakers-select */"./assets/src/speakers/speakers-select.js"),w=n(/*! ./index */"./assets/src/speakers/index.js"),j=wp.components,O=j.Button,_=j.Placeholder,C=wp.i18n.__,k=function(e){function t(){return a()(this,t),c()(this,p()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.attributes,s=t.setAttributes,a=t.speakerPosts,i=r.mode,l=Array.isArray(a)&&a.length;if(i&&!l)return Object(h.createElement)(v.PlaceholderNoContent,{icon:n,label:w.LABEL,loading:!Array.isArray(a)});switch(i){case"all":e=Object(h.createElement)(y.default,this.props);break;case"wcb_speaker":case"wcb_speaker_group":e=Object(h.createElement)(v.PlaceholderSpecificMode,{label:this.getModeLabel(i),
icon:n,content:Object(h.createElement)(y.default,this.props),placeholderChildren:Object(h.createElement)(E.default,this.props)});break;default:e=Object(h.createElement)(_,{className:g()("wordcamp-block-edit-placeholder","wordcamp-block-edit-placeholder-no-mode"),icon:n,label:w.LABEL},Object(h.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(h.createElement)(O,{isDefault:!0,isLarge:!0,onClick:function(){s({mode:"all"})}},this.getModeLabel("all"))),Object(h.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(h.createElement)(E.default,o()({icon:n,label:C("Choose specific speakers or groups","wordcamporg")},this.props))))}return e}}]),t}(v.BlockControls);t.default=k},"./assets/src/speakers/edit.js":
+/*!*************************************!*\
+ !*** ./assets/src/speakers/edit.js ***!
+ \*************************************/
+/*! exports provided: edit */function(e,t,n){"use strict";n.r(t),n.d(t,"edit",function(){return F});var r=n(/*! @babel/runtime/helpers/slicedToArray */"./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),f=n.n(m),h=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),b=n.n(h),g=n
(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),v=n(/*! lodash */"lodash"),y=n(/*! ./block-controls */"./assets/src/speakers/block-controls.js"),E=n(/*! ./inspector-controls */"./assets/src/speakers/inspector-controls.js"),w=n(/*! ./toolbar */"./assets/src/speakers/toolbar.js"),j=n(/*! ./index */"./assets/src/speakers/index.js"),O=wp.apiFetch,_=wp.data.withSelect,C=wp.element,k=C.Component,x=C.Fragment,S=wp.url.addQueryArgs,A=window.WordCampBlocks.speakers||{},P={orderby:"title",order:"asc",per_page:100,_embed:!0},N={orderby:"name",order:"asc",per_page:100},D=function(e){function t(e){var n;return l()(this,t),(n=p()(this,f()(t).call(this,e))).fetchSpeakers(),n}return b()(t,e),c()(t,[{key:"fetchSpeakers",value:function(){var e=O({path:S("/wp/v2/speakers",P)}),t=O({path:S("/wp/v2/speaker_group",N)});this.state={allSpeake
rPosts:e,allSpeakerTerms:t}}},{key:"render",value:function(){var e=this.props.attributes.mode;return Object(g.createElement)(x,null,Object(g.createElement)(y.default,a()({icon:j.ICON},this.props,this.state)),e&&Object(g.createElement)(x,null,Object(g.createElement)(E.default,this.props),Object(g.createElement)(w.default,this.props)))}}]),t}(k),F=_(function(e,t){var n=t.attributes,r=n.mode,s=n.item_ids,a=n.sort,i=e("core").getEntityRecords,l=Object(v.split)(a,"_",2),u=o()(l,2),c={orderby:u[0],order:u[1],per_page:100,_embed:!0,context:"view"};if(Array.isArray(s))switch(r){case"wcb_speaker":c.include=s;break;case"wcb_speaker_group":c.speaker_group=s}var d=Object(v.pickBy)(c,function(e){return!Object(v.isUndefined)(e)});return{blockData:A,speakerPosts:i("postType","wcb_speaker",d),tracks:i("taxonomy","wcb_track",{per_page:100})}})(D)},"./assets/src/speakers/index.js":
+/*!**************************************!*\
+ !*** ./assets/src/speakers/index.js ***!
+ \**************************************/
+/*! exports provided: name, LABEL, ICON, settings */function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return s}),n.d(t,"LABEL",function(){return a}),n.d(t,"ICON",function(){return i}),n.d(t,"settings",function(){return l});var r=n(/*! ./edit.js */"./assets/src/speakers/edit.js"),o=wp.i18n.__,s="wordcamp/speakers",a=o("Speakers","wordcamporg"),i="megaphone",l={title:o("Speakers","wordcamporg"),description:o("Add a list of speakers.","wordcamporg"),icon:i,category:"wordcamp",supports:{align:["wide","full"]},edit:r.edit,save:function(){return null}}},"./assets/src/speakers/inspector-controls.js":
+/*!***************************************************!*\
+ !*** ./assets/src/speakers/inspector-controls.js ***!
+ \***************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),f=n(/*! ../shared/avatar */"./assets/src/shared/avatar/index.js"),h=n(/*! ../shared/image-alignment */"./assets/src/shared/image-alignment/index.js"),b=n(/*! ../sh
ared/grid-layout/inspector-control */"./assets/src/shared/grid-layout/inspector-control.js"),g=wp.components,v=g.PanelBody,y=g.PanelRow,E=g.SelectControl,w=g.ToggleControl,j=wp.editor.InspectorControls,O=wp.element,_=O.Component,C=O.Fragment,k=wp.i18n.__,x={grid_columns:{default:2,minimum:2,maximum:4},avatar_size:{default:150,minimum:25,maximum:600}},S={align_image:{},content:{},sort:{}},A=function(e){function t(){return o()(this,t),l()(this,c()(t).apply(this,arguments))}return p()(t,e),a()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blockData,o=t.show_avatars,s=t.avatar_size,a=t.avatar_align,i=t.content,l=t.show_session,u=t.sort,c=r.schema,d=void 0===c?x:c,p=r.options,g=void 0===p?S:p;return Object(m.createElement)(j,null,Object(m.createElement)(b.default,this.props),Object(m.createElement)(v,{title:k("Avatar Settings","wordcamporg"),initialOpen:!0},Object(m.createElement)(y,null,Object(m.createElem
ent)(w,{label:k("Show avatars","wordcamporg"),checked:o,onChange:function(e){return n({show_avatars:e})}})),o&&Object(m.createElement)(C,null,Object(m.createElement)(y,null,Object(m.createElement)(f.AvatarSizeControl,{label:k("Size","wordcamporg"),value:Number(s),initialPosition:Number(d.avatar_size.default),onChange:function(e){return n({avatar_size:e})},rangeProps:{min:Number(d.avatar_size.minimum),max:Number(d.avatar_size.maximum)}})),Object(m.createElement)(y,null,Object(m.createElement)(h.default,{label:k("Alignment","wordcamporg"),value:a,onChange:function(e){return n({avatar_align:e})},alignOptions:g.align_image})))),Object(m.createElement)(v,{title:k("Content Settings","wordcamporg"),initialOpen:!1},Object(m.createElement)(y,null,Object(m.createElement)(E,{label:k("Biography Length","wordcamporg"),value:i,options:g.content,onChange:function(e){return n({content:e})}}))
,Object(m.createElement)(y,null,Object(m.createElement)(w,{label:k("Session Information","wordcamporg"),help:k("Show speaker's session name, time, and track","wordcamporg"),checked:l,onChange:function(e){return n({show_session:e})}}))),Object(m.createElement)(v,{title:k("Sorting & Filtering","wordcamporg"),initialOpen:!1},Object(m.createElement)(y,null,Object(m.createElement)(E,{label:k("Sort by","wordcamporg"),value:u,options:g.sort,onChange:function(e){return n({sort:e})}}))))}}]),t}(_);t.default=A},"./assets/src/speakers/speakers-select.js":
+/*!************************************************!*\
+ !*** ./assets/src/speakers/speakers-select.js ***!
+ \************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @babel/runtime/helpers/assertThisInitialized */"./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),b=n.n(h),g=n(/*! @wordpress/element */
"./node_modules/@wordpress/element/build-module/index.js"),v=n(/*! lodash */"lodash"),y=n(/*! ../shared/avatar */"./assets/src/shared/avatar/index.js"),E=n(/*! ../shared/item-select */"./assets/src/shared/item-select/index.js"),w=wp.components.Dashicon,j=wp.element.Component,O=wp.i18n.__,_=function(e){function t(e){var n;return a()(this,t),(n=c()(this,p()(t).call(this,e))).state={wcb_speaker:[],wcb_speaker_group:[],loading:!0},n.buildSelectOptions=n.buildSelectOptions.bind(b()(b()(n))),n.fetchSelectOptions(e),n}return f()(t,e),l()(t,[{key:"fetchSelectOptions",value:function(e){var t=this,n=e.allSpeakerPosts,r=e.allSpeakerTerms,o=n.then(function(e){var n=e.map(function(e){return{label:e.title.rendered.trim()||O("(Untitled)","wordcamporg"),value:e.id,type:"wcb_speaker",avatar:e.avatar_urls[24]}});t.setState({wcb_speaker:n})}),s=r.then(function(e){var n=e.map(function(e){return{label:e.name||O("(Untitl
ed)","wordcamporg"),value:e.id,type:"wcb_speaker_group",count:e.count}});t.setState({wcb_speaker_group:n})});Promise.all([o,s]).then(function(){t.setState({loading:!1})})}},{key:"buildSelectOptions",value:function(e){var t=Object.getOwnPropertyDescriptors,n=[],r={wcb_speaker:O("Speakers","wordcamporg"),wcb_speaker_group:O("Groups","wordcamporg")};for(var o in t(this.state))e&&o!==e||!this.state[o].length||n.push({label:r[o],options:this.state[o]});return n}},{key:"render",value:function(){var e=this.props,t=e.label,n=e.icon,r=e.attributes,s=e.setAttributes,a=r.mode,i=r.item_ids,l=this.buildSelectOptions(a),u=[];a&&i.length&&(u=Object(v.get)(l,"[0].options",[]).filter(function(e){return Object(v.includes)(i,e.value)}));return Object(g.createElement)(E.default,{className:"wordcamp-speakers-select",label:t,value:u,buildSelectOptions:this.buildSelectOptions,on
Change:function(e){return s(e)},mode:a,selectProps:{isLoading:this.state.loading,formatGroupLabel:function(e){return Object(g.createElement)("span",{className:"wordcamp-item-select-option-group-label"},e.label)},formatOptionLabel:function(e){return Object(g.createElement)(C,o()({icon:n},e))}}})}}]),t}(j);function C(e){var t,n,r=e.type,o=e.icon,s=e.label,a=void 0===s?"":s,i=e.avatar,l=void 0===i?"":i,u=e.count,c=void 0===u?0:u;switch(r){case"wcb_speaker":t=Object(g.createElement)(y.AvatarImage,{className:"wordcamp-item-select-option-avatar",name:a,size:24,url:l}),n=Object(g.createElement)("span",{className:"wordcamp-item-select-option-label"},a);break;case"wcb_speaker_group":t=Object(g.createElement)("div",{className:"wordcamp-item-select-option-icon-container"},Object(g.createElement)(w,{className:"wordcamp-item-select-option-icon",icon:o,size:16})),n=Object(g.crea
teElement)("span",{className:"wordcamp-item-select-option-label"},a,Object(g.createElement)("span",{className:"wordcamp-item-select-option-label-term-count"},c))}return Object(g.createElement)("div",{className:"wordcamp-item-select-option"},t,n)}t.default=_},"./assets/src/speakers/toolbar.js":
+/*!****************************************!*\
+ !*** ./assets/src/speakers/toolbar.js ***!
+ \****************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(d),m=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),f=wp.components.Toolbar,h=wp.editor.BlockControls,b=function(e){function t(){return o()(this,t),l()(this,c()(t).apply(this,arguments))}return p()(t,e),a()(t,[{key:"render",v
alue:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blockData,o=t.layout,s=r.options.layout,a=(void 0===s?{}:s).map(function(e){var t="".concat(e.value,"-view"),r=o===e.value;return{icon:t,title:e.label,isActive:r,onClick:function(){n({layout:e.value})}}});return Object(m.createElement)(h,null,Object(m.createElement)(f,{controls:a}))}}]),t}(wp.element.Component);t.default=b},"./assets/src/sponsors/block-content.js":
+/*!**********************************************!*\
+ !*** ./assets/src/sponsors/block-content.js ***!
+ \**********************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! lodash */"lodash"),g=n(/*! classnames */"./node_
modules/classnames/index.js"),v=n.n(g),y=n(/*! ../shared/featured-image */"./assets/src/shared/featured-image/index.js"),E=n(/*! ../shared/grid-layout/block-content */"./assets/src/shared/grid-layout/block-content.js"),w=n(/*! ../shared/block-content */"./assets/src/shared/block-content/index.js"),j=wp.element.Component,O=wp.escapeHtml.escapeAttribute,_=wp.i18n.__;function C(e){var t=e.sponsorPost,n=e.attributes,r=n.show_name,o=n.show_logo,s=n.content,a=n.featured_image_width,i=Object(b.get)(t,"_embedded.wp:featuredmedia[0].media_details.sizes",{}),l="full"===s?t.content.rendered.trim():t.excerpt.rendered.trim();return Object(h.createElement)("div",{className:"wordcamp-sponsor-details wordcamp-sponsor-details-"+O(t.slug)},(r||void 0===r)&&Object(h.createElement)(w.ItemTitle,{className:"wordcamp-sponsor-title",headingLevel:3,title:t.title.rendered.trim(),link:t.link}),(o||void 0===o)&&
;Object(h.createElement)(y.default,{className:"wordcamp-sponsor-featured-image wordcamp-sponsor-logo",wpMediaDetails:i,alt:t.title.rendered,width:a,imageLink:t.link}),"none"!==s&&Object(h.createElement)(w.ItemHTMLContent,{className:v()("wordcamp-sponsor-content"),content:l}),"full"===s&&Object(h.createElement)(w.ItemPermalink,{link:t.link,linkText:_("Visit sponsor page","wordcamporg")}))}var k=function(e){function t(e){var n;return a()(this,t),(n=c()(this,p()(t).call(this,e))).state={selectedPosts:[],sortBy:"name_asc"},n}return f()(t,e),l()(t,[{key:"setFeaturedImageURL",value:function(e,t){var n=this.sponsorImageUrl||{};n[e]=t,this.sponsorImageUrl=n;var r=this.props.setAttributes,o=this.sponsorImageUrl;r({sponsor_image_urls:encodeURIComponent(JSON.stringify(o))})}},{key:"componentWillReceiveProps",value:function(e){var t=e.selectedPosts,n=e.attributes,r=e.sponsorTermOrder,o=n.so
rt_by,s=t.map(function(e){return e.id}).sort(),a=this.state,i=a.selectedPosts,l=a.sortBy,u=i.map(function(e){return e.id}).sort();if(l!==o||t.length!==i.length||0!==Object(b.difference)(u,s).length){var c;switch(o){case"sponsor_level":if(!Array.isArray(r)||0===r.length)break;c=t.sort(function(e,t){return r.indexOf((e.sponsor_level||[])[0])-r.indexOf((t.sponsor_level||[])[0])});break;case"name_desc":c=t.sort(function(e,t){return e.title.rendered.trim()>t.title.rendered.trim()?-1:1});break;case"name_asc":default:c=t.sort(function(e,t){return e.title.rendered.trim()<t.title.rendered.trim()?-1:1})}this.setState({selectedPosts:c,sortBy:o})}}},{key:"render",value:function(){var e=this.props.attributes,t=this.state.selectedPosts;return Object(h.createElement)(E.default,o()({className:"wordcamp-sponsors-block"},this.props),t.map(function(t){return Object(h.createElement)(C,{key:t.id,sponsorPost:t,attributes:e})}))}}]),t}(j);t.default=k
},"./assets/src/sponsors/block-controls.js":
+/*!***********************************************!*\
+ !*** ./assets/src/sponsors/block-controls.js ***!
+ \***********************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! lodash */"lodash"),g=n(/*! ../shared/block-controls *
/"./assets/src/shared/block-controls/index.js"),v=n(/*! ./block-content */"./assets/src/sponsors/block-content.js"),y=n(/*! ../shared/item-select */"./assets/src/shared/item-select/index.js"),E=n(/*! ./index */"./assets/src/sponsors/index.js"),w=wp.i18n.__,j=wp.components,O=j.Button,_=j.Placeholder;function C(e){return"post"===e.type?function(e){return Object(h.createElement)("span",null,e.label)}(e):function(e){return Object(h.createElement)("span",{className:"wordcamp-item-select-option-label"},e.label,Object(h.createElement)("span",{className:"wordcamp-item-select-option-label-term-count"},e.count))}(e)}var k=function(e){function t(e){var n;return a()(this,t),(n=c()(this,p()(t).call(this,e))).state={posts:[],terms:[],loading:!0,selectedPosts:[],sponsorTermOrder:[]},n.fetchSelectOptions(e),n}return f()(t,e),l()(t,[{key:"setSelectedPosts",value:function(){var e=this.state.f
etchedPosts,t=this.props.attributes,n=t.post_ids,r=t.term_ids,o=t.mode,s=[];if(e&&e.length){var a=!0,i=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;if(d.hasOwnProperty("id"))switch(o){case"all":s.push(d);break;case"specific_posts":-1!==n.indexOf(d.id)&&s.push(d);break;case"specific_terms":Object(b.intersection)(r,d.sponsor_level||[]).length&&s.push(d)}}}catch(e){i=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw l}}this.setState({selectedPosts:s})}}},{key:"fetchSelectOptions",value:function(e){var t=this,n=e.sponsorPosts,r=e.sponsorLevels,o=e.siteSettings,s=n.then(function(e){var n=e.map(function(e){return{label:e.title.rendered.trim()||w("(Untitled)","wordcamporg"),value:e.id,type:"post",featuredImageData:Object(b.get)(e,"_embedded.wp:featuredmedia[0].media_details","")}});t.setState({fetchedPos
ts:e}),t.setState({posts:n})}).catch(function(e){console.error("Error fetching data",e)}),a=r.then(function(e){var n=e.map(function(e){return{label:e.name.trim()||w("(Untitled)","wordcamporg"),value:e.id,type:"term",count:e.count}});t.setState({fetchedTerms:e}),t.setState({terms:n})}).catch(function(e){console.error("Error fetching data",e)}),i=o.then(function(e){var n=e.wcb_sponsor_level_order;t.setState({sponsorTermOrder:n})});Promise.all([s,a,i]).then(function(){t.setState({loading:!1}),setTimeout(function(){return t.setSelectedPosts()})})}},{key:"onChange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.setAttributes,r=t.item_ids,o=t.mode;if(r&&o)switch(o){case"post":n({mode:"specific_posts",post_ids:r});break;case"term":n({mode:"specific_terms",term_ids:r})}else n({mode:"",post_ids:[],term_ids:[]});
setTimeout(function(){return e.setSelectedPosts()})}},{key:"buildSelectOptions",value:function(){var e=this.state,t=e.posts,n=e.terms,r=[];return r.push({label:w("Sponsor Levels","wordcamporg"),options:n}),r.push({label:w("Sponsors","wordcamporg"),options:t}),r}},{key:"render",value:function(){var e=this,t=this.props,n=t.icon,r=t.attributes,s=t.setAttributes,a=t.sponsorPosts,i=r.mode,l=r.post_ids,u=r.term_ids,c=this.state,d=c.fetchedPosts,p=c.posts,m=c.terms,f=c.selectedPosts,j=c.sponsorTermOrder,k=Array.isArray(d)&&d.length;if(i&&!k)return Object(h.createElement)(g.PlaceholderNoContent,{label:E.LABEL,loading:function(){return!Array.isArray(a)}});var x=[];switch(i){case"all":break;case"specific_posts":x=p.filter(function(e){return Object(b.includes)(l,e.value)});break;case"specific_terms":x=m.filter(function(e){return Object(b.includes)(u,e.value)})}return Object(h.createElement
)("div",null,Object(h.createElement)(v.default,o()({selectedPosts:f,sponsorTermOrder:j},this.props)),"all"!==i&&Object(h.createElement)(_,{icon:n,label:w("Sponsors","wordcamporg")},Object(h.createElement)("div",{className:""},Object(h.createElement)(O,{isDefault:!0,isLarge:!0,onClick:function(){s({mode:"all"}),setTimeout(function(){return e.setSelectedPosts()})}},w("List all sponsors","wordcamporg"))),Object(h.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(h.createElement)(y.default,o()({buildSelectOptions:function(){return e.buildSelectOptions()},isLoading:this.state.loading,onChange:function(t){return e.onChange(t)},selectProps:{formatOptionLabel:function(e){return Object(h.createElement)(C,e)}},label:w("Or, choose specific sponsors or levels","wordcamporg"),value:x},this.props)))))}}]),t}(g.BlockControls);t.default=k}
,"./assets/src/sponsors/edit.js":
+/*!*************************************!*\
+ !*** ./assets/src/sponsors/edit.js ***!
+ \*************************************/
+/*! exports provided: edit */function(e,t,n){"use strict";n.r(t),n.d(t,"edit",function(){return C});var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! ./inspector-controls
*/"./assets/src/sponsors/inspector-controls.js"),g=n(/*! ./block-controls */"./assets/src/sponsors/block-controls.js"),v=n(/*! ../shared/grid-layout/toolbar */"./assets/src/shared/grid-layout/toolbar.js"),y=n(/*! ./index */"./assets/src/sponsors/index.js"),E=wp.element,w=E.Component,j=E.Fragment,O=wp.apiFetch,_=wp.url.addQueryArgs,C=function(e){function t(e){var n;return a()(this,t),(n=c()(this,p()(t).call(this,e))).fetchSponsors(),n}return f()(t,e),l()(t,[{key:"fetchSponsors",value:function(){var e={orderby:"title",order:"asc",per_page:100,_embed:!0},t={orderby:"id",order:"asc",per_page:100,_embed:!0};this.state={sponsorPosts:O({path:_("/wp/v2/sponsors",e)}),sponsorLevels:O({path:_("/wp/v2/sponsor_level",t)}),siteSettings:O({path:_("/wp/v2/settings",{})})}}},{key:"render",value:function(){var e=this.state,t=e.sponsorPosts,n=e.sponsorLevels,r=e.siteSettin
gs,s=this.props.attributes.mode;return Object(h.createElement)(j,null,Object(h.createElement)(g.default,o()({icon:y.ICON,sponsorPosts:t,sponsorLevels:n,siteSettings:r},this.props)),Object(h.createElement)(j,null,Object(h.createElement)(b.default,o()({sponsorPosts:t,sponsorLevels:n},this.props)),s&&Object(h.createElement)(v.default,this.props)))}}]),t}(w)},"./assets/src/sponsors/index.js":
+/*!**************************************!*\
+ !*** ./assets/src/sponsors/index.js ***!
+ \**************************************/
+/*! exports provided: name, LABEL, ICON, settings */function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return s}),n.d(t,"LABEL",function(){return a}),n.d(t,"ICON",function(){return i}),n.d(t,"settings",function(){return l});var r=n(/*! ./edit.js */"./assets/src/sponsors/edit.js"),o=wp.i18n.__,s="wordcamp/sponsors",a=o("Sponsors","wordcamporg"),i="heart",l={title:o("Sponsors","wordcamporg"),description:o("We wouldn't have WordCamp without their support.","wordcamporg"),icon:i,category:"wordcamp",supports:{align:["wide","full"]},edit:r.edit,save:function(){return null}}},"./assets/src/sponsors/inspector-controls.js":
+/*!***************************************************!*\
+ !*** ./assets/src/sponsors/inspector-controls.js ***!
+ \***************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @babel/runtime/helpers/extends */"./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),s=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=n.n(s),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),u=n(/*! @babel/runtime/helpers/possibleConstructorReturn */"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),c=n.n(u),d=n(/*! @babel/runtime/helpers/getPrototypeOf */"./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(d),m=n(/*! @babel/runtime/helpers/inherits */"./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(m),h=n(/*! @wordpress/element */"./node_modules/@wordpress/element/build-module/index.js"),b=n(/*! ../shared/grid-layout/inspector-control */"./assets/src/sh
ared/grid-layout/inspector-control.js"),g=n(/*! ../shared/featured-image/inspector-control */"./assets/src/shared/featured-image/inspector-control.js"),v=wp.element.Component,y=wp.editor.InspectorControls,E=wp.components,w=E.PanelBody,j=E.PanelRow,O=E.ToggleControl,_=E.SelectControl,C=wp.i18n.__,k=function(e){function t(){return a()(this,t),c()(this,p()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e=[{label:C("Name (A to Z)","wordcamporg"),value:"name_asc"},{label:C("Name (Z to A)","wordcamporg"),value:"name_desc"},{label:C("Sponsor Level","wordcamporg"),value:"sponsor_level"}],t=[{label:C("Full","wordcamporg"),value:"full"},{label:C("Excerpt","wordcamporg"),value:"excerpt"},{label:C("None","wordcamporg"),value:"none"}],n=this.props,r=n.attrib
utes,s=n.setAttributes,a=r.show_name,i=r.show_logo,l=r.sort_by,u=r.content;return Object(h.createElement)(y,null,Object(h.createElement)(b.default,this.props),Object(h.createElement)(w,{title:C("Content Settings","wordcamporg"),initialOpen:!0},Object(h.createElement)(j,null,Object(h.createElement)(O,{label:C("Name","wordcamporg"),help:C("Show or hide sponsor name","wordcamporg"),checked:void 0===a||a,onChange:function(e){return s({show_name:e})}})),Object(h.createElement)(j,null,Object(h.createElement)(O,{label:C("Logo","wordcamporg"),help:C("Show or hide sponsor logo","wordcamporg"),checked:void 0===i||i,onChange:function(e){return s({show_logo:e})}})),Object(h.createElement)(j,null,Object(h.createElement)(_,{label:C("Description","wordcamporg"),value:u,options:t,help:C("Length of sponsor description","wordcamporg"),onChange:function(e){return
s({content:e})}})),Object(h.createElement)(j,null,Object(h.createElement)(_,{label:C("Sort by","wordcamporg"),options:e,value:l||"name_asc",onChange:function(e){return s({sort_by:e})},help:C("Configure sponsor levels from the Sponsor -> Order Sponsor Levels page.","wordcamporg")}))),Object(h.createElement)(g.default,o()({title:C("Logo size","wordcamporg"),help:C("Specify logo width, or select a predefined size.","wordcamporg"),selectLabel:C("Size","wordcamporg")},this.props)))}}]),t}(v);t.default=k},"./node_modules/@babel/runtime/helpers/arrayWithHoles.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
+ \***************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
+ \******************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},"./node_modules/@babel/runtime/helpers/assertThisInitialized.js":
+/*!**********************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
+ \**********************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},"./node_modules/@babel/runtime/helpers/classCallCheck.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
+ \***************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},"./node_modules/@babel/runtime/helpers/createClass.js":
+/*!************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
+ \************************************************************/
+/*! no static exports found */function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},"./node_modules/@babel/runtime/helpers/defineProperty.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
+ \***************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
+/*!*******************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
+ \*******************************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",function(){return r})},"./node_modules/@babel/runtime/helpers/esm/objectSpread.js":
+/*!*****************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread.js ***!
+ \*****************************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return o});var r=n(/*! ./defineProperty */"./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){Object(r.default)(e,t,n[t])})}return e}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js":
+/*!****************************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js ***!
+ \****************************************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return o});var r=n(/*! ./objectWithoutPropertiesLoose */"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");function o(e,t){if(null==e)return{};var n,o,s=Object(r.default)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
+/*!*********************************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
+ \*********************************************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.r(t),n.d(t,"default",function(){return r})},"./node_modules/@babel/runtime/helpers/esm/typeof.js":
+/*!***********************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
+ \***********************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.r(t),n.d(t,"default",function(){return o})},"./node_modules/@babel/runtime/helpers/extends.js":
+/*!********************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/extends.js ***!
+ \********************************************************/
+/*! no static exports found */function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},"./node_modules/@babel/runtime/helpers/getPrototypeOf.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
+ \***************************************************************/
+/*! no static exports found */function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},"./node_modules/@babel/runtime/helpers/inherits.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
+ \*********************************************************/
+/*! no static exports found */function(e,t,n){var r=n(/*! ./setPrototypeOf */"./node_modules/@babel/runtime/helpers/setPrototypeOf.js");e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
+/*!**********************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
+ \**********************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},"./node_modules/@babel/runtime/helpers/iterableToArray.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
+ \****************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
+/*!*********************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
+ \*********************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,s=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw s}}return n}},"./node_modules/@babel/runtime/helpers/nonIterableRest.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
+ \****************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
+ \******************************************************************/
+/*! no static exports found */function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},"./node_modules/@babel/runtime/helpers/objectSpread.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/objectSpread.js ***!
+ \*************************************************************/
+/*! no static exports found */function(e,t,n){var r=n(/*! ./defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js");e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}},"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
+/*!**************************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
+ \**************************************************************************/
+/*! no static exports found */function(e,t,n){var r=n(/*! ../helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),o=n(/*! ./assertThisInitialized */"./node_modules/@babel/runtime/helpers/assertThisInitialized.js");e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
+ \***************************************************************/
+/*! no static exports found */function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},"./node_modules/@babel/runtime/helpers/slicedToArray.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
+ \**************************************************************/
+/*! no static exports found */function(e,t,n){var r=n(/*! ./arrayWithHoles */"./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=n(/*! ./iterableToArrayLimit */"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),s=n(/*! ./nonIterableRest */"./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return r(e)||o(e,t)||s()}},"./node_modules/@babel/runtime/helpers/toArray.js":
+/*!********************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
+ \********************************************************/
+/*! no static exports found */function(e,t,n){var r=n(/*! ./arrayWithHoles */"./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=n(/*! ./iterableToArray */"./node_modules/@babel/runtime/helpers/iterableToArray.js"),s=n(/*! ./nonIterableRest */"./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e){return r(e)||o(e)||s()}},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
+ \******************************************************************/
+/*! no static exports found */function(e,t,n){var r=n(/*! ./arrayWithoutHoles */"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),o=n(/*! ./iterableToArray */"./node_modules/@babel/runtime/helpers/iterableToArray.js"),s=n(/*! ./nonIterableSpread */"./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return r(e)||o(e)||s()}},"./node_modules/@babel/runtime/helpers/typeof.js":
+/*!*******************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
+ \*******************************************************/
+/*! no static exports found */function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},"./node_modules/@emotion/hash/dist/hash.esm.js":
+/*!*****************************************************!*\
+ !*** ./node_modules/@emotion/hash/dist/hash.esm.js ***!
+ \*****************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}},"./node_modules/@emotion/memoize/dist/memoize.esm.js":
+/*!***********************************************************!*\
+ !*** ./node_modules/@emotion/memoize/dist/memoize.esm.js ***!
+ \***********************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},"./node_modules/@emotion/stylis/dist/stylis.esm.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/@emotion/stylis/dist/stylis.esm.js ***!
+ \*********************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){function t(e,t,r){var o=t.trim().split(f);t=o;var s=o.length,a=e.length;switch(a){case 0:case 1:var i=0;for(e=0===a?"":e[0]+" ";i<s;++i)t[i]=n(e,t[i],r).trim();break;default:var l=i=0;for(t=[];i<s;++i)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",o[i],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,s){var a=e+";",i=2*t+3*n+4*s;if(944===i){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===A||2===A&&o(l,1)?"-webkit-&qu
ot;+l+l:l}if(0===A||2===A&&!o(a,1))return a;switch(i){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;
case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(y,"tb");break;case 232:l=a.replace(y,"tb-rl");break;case 220:l=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,i=(l=(3
3===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<i?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return"-webkit-"+a+"-webkit-box-"+(l=a.replace("-items",""))+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(j,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(j,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4
))break;case 931:case 953:if(!0===_.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,s).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+s&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),F(2!==t?r:r.replace(O,"$1"),n,t)}function s(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}
function a(e,t,n,r,o,s,a,i,u,c){for(var d,p=0,m=t;p<D;++p)switch(d=N[p].call(l,e,m,n,r,o,s,a,i,u,c)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function i(e){return void 0!==(e=e.prefix)&&(F=null,e?"function"!=typeof e?A=1:(A=2,F=e):A=0),i}function l(e,n){var i=e;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<D){var l=a(-1,n,i,i,x,k,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,i,l,d,p){for(var m,f,h,y,w,j=0,O=0,_=0,C=0,N=0,F=0,I=h=m=0,L=0,M=0,R=0,z=0,V=l.length,B=V-1,U="",W="",H="",G="";L<V;){if(f=l.charCodeAt(L),L===B&&0!==O+C+_+j&&(0!==O&&(f=47===O?10:47),C=_=j=0,V++,B++),0===O+C+_+j){if(L===B&&(0<M&&(U=U.replace(c,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=l.charAt(L)}f=59}switch(f){case 123:for(m=(U=U.trim()).charCodeAt(0),h=1,z
=++L;L<V;){switch(f=l.charCodeAt(L)){case 123:h++;break;case 125:h--;break;case 47:switch(f=l.charCodeAt(L+1)){case 42:case 47:e:{for(I=L+1;I<B;++I)switch(l.charCodeAt(I)){case 47:if(42===f&&42===l.charCodeAt(I-1)&&L+2!==I){L=I+1;break e}break;case 10:if(47===f){L=I+1;break e}}L=I}}break;case 91:f++;case 40:f++;case 34:case 39:for(;L++<B&&l.charCodeAt(L)!==f;);}if(0===h)break;L++}switch(h=l.substring(z,L),0===m&&(m=(U=U.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<M&&(U=U.replace(c,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:M=i;break;default:M=P}if(z=(h=e(i,M,h,f,p+1)).length,0<D&&(w=a(3,h,M=t(P,U,R),i,x,k,z,f,p,d),U=M.join(""),void 0!==w&&0===(z=(h=w.trim()).length)&&(f=0,h="")),0<z)switch(f){case 115:U=U.replace(E,s);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(b,"$1 $2"))+"
{"+h+"}",h=1===A||2===A&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===d&&(W+=h,h="")}else h="";break;default:h=e(i,t(i,U,R),h,d,p+1)}H+=h,h=R=M=I=m=0,U="",f=l.charCodeAt(++L);break;case 125:case 59:if(1<(z=(U=(0<M?U.replace(c,""):U).trim()).length))switch(0===I&&(m=U.charCodeAt(0),45===m||96<m&&123>m)&&(z=(U=U.replace(" ",":")).length),0<D&&void 0!==(w=a(1,U,i,n,x,k,W.length,d,p,d))&&0===(z=(U=w.trim()).length)&&(U="\0\0"),m=U.charCodeAt(0),f=U.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){G+=U+l.charAt(L);break}default:58!==U.charCodeAt(z-1)&&(W+=r(U,m,f,U.charCodeAt(2)))}R=M=I=m=0,U="",f=l.charCodeAt(++L)}}switch(f){case 13:case 10:47===O?O=0:0===1+m&&107!==d&&0<U.length&&(M=1,U+="\0"),0<D*T&am
p;&a(0,U,i,n,x,k,W.length,d,p,d),k=1,x++;break;case 59:case 125:if(0===O+C+_+j){k++;break}default:switch(k++,y=l.charAt(L),f){case 9:case 32:if(0===C+j+O)switch(N){case 44:case 58:case 9:case 32:y="";break;default:32!==f&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===C+O+j&&(M=R=1,y="\f"+y);break;case 108:if(0===C+O+j+S&&0<I)switch(L-I){case 2:112===N&&58===l.charCodeAt(L-3)&&(S=N);case 8:111===F&&(S=F)}break;case 58:0===C+O+j&&(I=L);break;case 44:0===O+_+C+j&&(M=1,y+="\r");break;case 34:case 39:0===O&&(C=C===f?0:0===C?f:C);break;case 91:0===C+O+_&&j++;break;case 93:0===C+O+_&&j--;break;case 41:0===C+O+j&&_--;break;case 40:if(0===C+O+j){if(0===m)switch(2*N+3*F){case 533:break;default:m=1}_++}break;case 64:0===O+_+C+j+I+h&&(h=1);break;case 42:case 47:if(!(0<C
+j+_))switch(O){case 0:switch(2*f+3*l.charCodeAt(L+1)){case 235:O=47;break;case 220:z=L,O=42}break;case 42:47===f&&42===N&&z+2!==L&&(33===l.charCodeAt(z+2)&&(W+=l.substring(z,L+1)),y="",O=0)}}0===O&&(U+=y)}F=N,N=f,L++}if(0<(z=W.length)){if(M=i,0<D&&void 0!==(w=a(2,W,M,n,x,k,z,d,p,d))&&0===(W=w).length)return G+W+H;if(W=M.join(",")+"{"+W+"}",0!=A*S){switch(2!==A||o(W,2)||(S=0),S){case 111:W=W.replace(v,":-moz-$1")+W;break;case 112:W=W.replace(g,"::-webkit-input-$1")+W.replace(g,"::-moz-$1")+W.replace(g,":-ms-input-$1")+W}S=0}}return G+W+H}(P,i,n,0,0);return 0<D&&void 0!==(l=a(-2,d,i,i,x,k,d.length,0,0,0))&&(d=l),S=0,k=x=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,m=/([,: ])(transform)/g,f=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\
)/g,w=/([\s\S]*?);/g,j=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,k=1,x=1,S=0,A=1,P=[],N=[],D=0,F=null,T=0;return l.use=function e(t){switch(t){case void 0:case null:D=N.length=0;break;default:switch(t.constructor){case Array:for(var n=0,r=t.length;n<r;++n)e(t[n]);break;case Function:N[D++]=t;break;case Boolean:T=0|!!t}}return e},l.set=i,void 0!==e&&i(e),l}},"./node_modules/@emotion/unitless/dist/unitless.esm.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/@emotion/unitless/dist/unitless.esm.js ***!
+ \*************************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);t.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},"./node_modules/@wordpress/element/build-module/index.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/@wordpress/element/build-module/index.js ***!
+ \***************************************************************/
+/*! exports provided: renderToString, RawHTML, Children, cloneElement, Component, createContext, createElement, createRef, forwardRef, Fragment, isValidElement, StrictMode, concatChildren, switchChildrenNodeName, createPortal, findDOMNode, render, unmountComponentAtNode, isEmptyElement */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./react */"./node_modules/@wordpress/element/build-module/react.js");n.d(t,"Children",function(){return r.Children}),n.d(t,"cloneElement",function(){return r.cloneElement}),n.d(t,"Component",function(){return r.Component}),n.d(t,"createContext",function(){return r.createContext}),n.d(t,"createElement",function(){return r.createElement}),n.d(t,"createRef",function(){return r.createRef}),n.d(t,"forwardRef",function(){return r.forwardRef}),n.d(t,"Fragment",function(){return r.Fragment}),n.d(t,"isValidElement",function(){return r.isValidElement}),n
.d(t,"StrictMode",function(){return r.StrictMode}),n.d(t,"concatChildren",function(){return r.concatChildren}),n.d(t,"switchChildrenNodeName",function(){return r.switchChildrenNodeName});var o=n(/*! ./react-platform */"./node_modules/@wordpress/element/build-module/react-platform.js");n.d(t,"createPortal",function(){return o.createPortal}),n.d(t,"findDOMNode",function(){return o.findDOMNode}),n.d(t,"render",function(){return o.render}),n.d(t,"unmountComponentAtNode",function(){return o.unmountComponentAtNode});var s=n(/*! ./utils */"./node_modules/@wordpress/element/build-module/utils.js");n.d(t,"isEmptyElement",function(){return s.isEmptyElement});var a=n(/*! ./serialize */"./node_modules/@wordpress/element/build-module/serialize.js");n.d(t,"renderToString",function(){return a.default});var i=n(/*! ./raw-html */"./node_modules/@wordpress/element/build-module/
raw-html.js");n.d(t,"RawHTML",function(){return i.default})},"./node_modules/@wordpress/element/build-module/raw-html.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/@wordpress/element/build-module/raw-html.js ***!
+ \******************************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return a});var r=n(/*! @babel/runtime/helpers/esm/objectSpread */"./node_modules/@babel/runtime/helpers/esm/objectSpread.js"),o=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n(/*! ./react */"./node_modules/@wordpress/element/build-module/react.js");function a(e){var t=e.children,n=Object(o.default)(e,["children"]);return Object(s.createElement)("div",Object(r.default)({dangerouslySetInnerHTML:{__html:t}},n))}},"./node_modules/@wordpress/element/build-module/react-platform.js":
+/*!************************************************************************!*\
+ !*** ./node_modules/@wordpress/element/build-module/react-platform.js ***!
+ \************************************************************************/
+/*! exports provided: createPortal, findDOMNode, render, unmountComponentAtNode */function(e,t,n){"use strict";n.r(t);var r=n(/*! react-dom */"react-dom");n.d(t,"createPortal",function(){return r.createPortal}),n.d(t,"findDOMNode",function(){return r.findDOMNode}),n.d(t,"render",function(){return r.render}),n.d(t,"unmountComponentAtNode",function(){return r.unmountComponentAtNode})},"./node_modules/@wordpress/element/build-module/react.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/@wordpress/element/build-module/react.js ***!
+ \***************************************************************/
+/*! exports provided: Children, cloneElement, Component, createContext, createElement, createRef, forwardRef, Fragment, isValidElement, StrictMode, concatChildren, switchChildrenNodeName */function(e,t,n){"use strict";n.r(t),n.d(t,"concatChildren",function(){return i}),n.d(t,"switchChildrenNodeName",function(){return l});var r=n(/*! @babel/runtime/helpers/esm/objectSpread */"./node_modules/@babel/runtime/helpers/esm/objectSpread.js"),o=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n(/*! react */"react");n.d(t,"Children",function(){return s.Children}),n.d(t,"cloneElement",function(){return s.cloneElement}),n.d(t,"Component",function(){return s.Component}),n.d(t,"createContext",function(){return s.createContext}),n.d(t,"createElement",function(){return s.createElement}),n.d(t,"createRef
",function(){return s.createRef}),n.d(t,"forwardRef",function(){return s.forwardRef}),n.d(t,"Fragment",function(){return s.Fragment}),n.d(t,"isValidElement",function(){return s.isValidElement}),n.d(t,"StrictMode",function(){return s.StrictMode});var a=n(/*! lodash */"lodash");function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t,n){return s.Children.forEach(t,function(t,r){t&&"string"!=typeof t&&(t=Object(s.cloneElement)(t,{key:[n,r].join()})),e.push(t)}),e},[])}function l(e,t){return e&&s.Children.map(e,function(e,n){if(Object(a.isString)(e))return Object(s.createElement)(t,{key:n},e);var i=e.props,l=i.children,u=Object(o.default)(i,["children"]);return Object(s.createElement)(t,Object(r.default)({key:n},u),l)})}},"./node_modules/@wordpress/element/build-module/serialize.js":
+/*!*******************************************************************!*\
+ !*** ./node_modules/@wordpress/element/build-module/serialize.js ***!
+ \*******************************************************************/
+/*! exports provided: hasPrefix, renderElement, renderNativeComponent, renderComponent, renderAttributes, renderStyle, default */function(e,t,n){"use strict";n.r(t),n.d(t,"hasPrefix",function(){return v}),n.d(t,"renderElement",function(){return _}),n.d(t,"renderNativeComponent",function(){return C}),n.d(t,"renderComponent",function(){return k}),n.d(t,"renderAttributes",function(){return S}),n.d(t,"renderStyle",function(){return A});var r=n(/*! @babel/runtime/helpers/esm/objectSpread */"./node_modules/@babel/runtime/helpers/esm/objectSpread.js"),o=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n(/*! @babel/runtime/helpers/esm/typeof */"./node_modules/@babel/runtime/helpers/esm/typeof.js"),a=n(/*! lodash */"lodash"),i=n(/*! @wordpress/escape-html */"./node_modules/@wordpress/escape-html/
build-module/index.js"),l=n(/*! ./react */"./node_modules/@wordpress/element/build-module/react.js"),u=n(/*! ./raw-html */"./node_modules/@wordpress/element/build-module/raw-html.js"),c=Object(l.createContext)(),d=c.Provider,p=c.Consumer,m=new Set(["string","boolean","number"]),f=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),h=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","itemscope","loop","multip
le","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),b=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),g=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexSh
rink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function v(e,t){return t.some(function(t){return 0===e.indexOf(t)})}function y(e){return"key"===e||"children"===e}function E(e,t){switch(e){case"style":return A(t)}return t}function w(e){switch(e){case"htmlFor":return"for";case"className":return"class"}return e.toLowerCase()}function j(e){return Object(a.startsWith)(e,"--")?e:v(e,[&
quot;ms","O","Moz","Webkit"])?"-"+Object(a.kebabCase)(e):Object(a.kebabCase)(e)}function O(e,t){return"number"!=typeof t||0===t||g.has(e)?t:t+"px"}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null===e||void 0===e||!1===e)return"";if(Array.isArray(e))return x(e,t,n);switch(Object(s.default)(e)){case"string":return Object(i.escapeHTML)(e);case"number":return e.toString()}var c=e.type,m=e.props;switch(c){case l.StrictMode:case l.Fragment:return x(m.children,t,n);case u.default:var f=m.children,h=Object(o.default)(m,["children"]);return C(Object(a.isEmpty)(h)?null:"div",Object(r.default)({},h,{dangerouslySetInnerHTML:{__html:f}}),t,n)}switch(Object(s.default)(c)){case"string":return C(c,m,t,n);case"function":return c.prototype&&"function"==typeof c.prototype.render?k(c,m,t,n):_(c(m,n),t,n
)}switch(c&&c.$$typeof){case d.$$typeof:return x(m.children,m.value,n);case p.$$typeof:return _(m.children(t||c._currentValue),t,n)}return""}function C(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=x(t.value,n,r),t=Object(a.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=x(t.children,n,r)),!e)return o;var s=S(t);return f.has(e)?"<"+e+s+"/>":"<"+e+s+">"+o+"</"+e+">"}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,r);return"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext()),_(o.render(),n,r)}function x(e,t){var n=arguments.length>
;2&&void 0!==arguments[2]?arguments[2]:{},r="";e=Object(a.castArray)(e);for(var o=0;o<e.length;o++){r+=_(e[o],t,n)}return r}function S(e){var t="";for(var n in e){var r=w(n);if(Object(i.isValidAttributeName)(r)){var o=E(n,e[n]);if(m.has(Object(s.default)(o))&&!y(n)){var a=h.has(r);if(!a||!1!==o){var l=a||v(n,["data-","aria-"])||b.has(r);("boolean"!=typeof o||l)&&(t+=" "+r,a||("string"==typeof o&&(o=Object(i.escapeAttribute)(o)),t+='="'+o+'"'))}}}}return t}function A(e){if(!Object(a.isPlainObject)(e))return e;var t;for(var n in e){var r=e[n];if(null!==r&&void 0!==r)t?t+=";":t="",t+=j(n)+":"+O(n,r)}return t}t.default=_},"./node_modules/@wordpress/element/build-module/utils.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/@wordpress/element/build-module/utils.js ***!
+ \***************************************************************/
+/*! exports provided: isEmptyElement */function(e,t,n){"use strict";n.r(t),n.d(t,"isEmptyElement",function(){return o});var r=n(/*! lodash */"lodash"),o=function(e){return!Object(r.isNumber)(e)&&(Object(r.isString)(e)||Object(r.isArray)(e)?!e.length:!e)}},"./node_modules/@wordpress/escape-html/build-module/index.js":
+/*!*******************************************************************!*\
+ !*** ./node_modules/@wordpress/escape-html/build-module/index.js ***!
+ \*******************************************************************/
+/*! exports provided: escapeAmpersand, escapeQuotationMark, escapeLessThan, escapeAttribute, escapeHTML, isValidAttributeName */function(e,t,n){"use strict";n.r(t),n.d(t,"escapeAmpersand",function(){return o}),n.d(t,"escapeQuotationMark",function(){return s}),n.d(t,"escapeLessThan",function(){return a}),n.d(t,"escapeAttribute",function(){return i}),n.d(t,"escapeHTML",function(){return l}),n.d(t,"isValidAttributeName",function(){return u});var r=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function o(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function s(e){return e.replace(/"/g,""")}function a(e){return e.replace(/</g,"<")}function i(e){return s(o(e))}function l(e){return a(o(e))}function u(e){return!r.test(e)}},"./node_modules/classnames/index.js":
+/*!******************************************!*\
+ !*** ./node_modules/classnames/index.js ***!
+ \******************************************/
+/*! no static exports found */function(e,t,n){var r;
</ins><span class="cx" style="display: block; padding: 0 10px"> /*!
</span><span class="cx" style="display: block; padding: 0 10px"> Copyright (c) 2017 Jed Watson.
</span><span class="cx" style="display: block; padding: 0 10px"> Licensed under the MIT License (MIT), see
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9,4 +345,125 @@
</span><span class="cx" style="display: block; padding: 0 10px"> Licensed under the MIT License (MIT), see
</span><span class="cx" style="display: block; padding: 0 10px"> http://jedwatson.github.io/classnames
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return i}),n.d(t,"a",funct
ion(){return s});var r=n(30),o=void 0!==e?e:{},a=Object(r.a)(o),i=(a.flush,a.hydrate,a.cx,a.merge,a.getRegisteredStyles,a.injectGlobal),s=(a.keyframes,a.css);a.sheet,a.caches}).call(this,n(18))},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(16),o=n(31),a=n(17);e.exports=function(e,t){return r(e)||o(e,t)||a()}},function(e,t){e.exports=ReactDOM},function(e,t,n){e.exports=n(40)()},function(e,t,n){"use strict";var r=s(n(44)),o=s(n(49)),a=s(n(22)),i=s(n(19));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:a.default,ReplaceTransition:o.default,CSSTransition:r.default}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t
){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(13)),o=s(n(0)),a=s(n(12)),i=n(20);n(21);function s(e){return e&&e.__esModule?e:{default:e}}var u="unmounted";t.UNMOUNTED=u;var c="exited";t.EXITED=c;var l="entering";t.ENTERING=l;var p="entered";t.
ENTERED=p;t.EXITING="exiting";var d=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=c,r.appearStatus=l):o=p:o=t.unmountOnExit||t.mountOnEnter?u:c,r.state={status:o},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:c}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==p&&(t=l):n!==l&&n!==p||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=
t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.default.findDOMNode(this);t===l?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts(),i=o?a.appear:a.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:l},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,i,function(){n.safeSetState({status:p},function(){n.props.onEntered(e,o)})})})):this.safeSetState({status:p},function(){n.props.onEntered(e)})},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},fun
ction(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:c},function(){t.props.onExited(e)})})})):this.safeSetState({status:c},function(){t.props.onExited(e)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};va
r n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=o.default.Children.only(n);return o.default.cloneElement(a,r)},t}(o.default.Component);function m(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var f=(0,i.polyfill)(d);t.default=f},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this
.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps
":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var u=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if(&q
uot;function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;!function(e){e&&e.__esModule}(n(13));t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(13)),o=s(n(0)
),a=n(20),i=n(50);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},p=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(c(c(r)));return r.state={handleExited:o,firstRender:!0},r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},n.componentDidMount=function(){this.appeared=!0,this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFr
omProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,i.getInitialChildMapping)(e,r):(0,i.getNextChildMapping)(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=(0,i.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=u({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),a=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a:o.default.createElement(t,r,a)},t}(o.default.Component);p.childContextTypes={transitionGroup:r.default.object.isRequired},p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};var d=(0
,a.polyfill)(p);t.default=d,e.exports=t.default},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t,n){var r=n(15);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}},function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,a,i,s,u,c,l,p){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===
p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},function(e,t,n){(function(t){for(var r=n(42),o="undefined"==typeof window?t:window,a=["moz","webkit"],i="AnimationFrame",s=o["request"+i],u=o["cancel"+i]||o["cancelRequest"+i],c=0;!s&&c<a.length;c++)s=o[a[c]+"Request"+i],u=o[a[c]+"Cancel"+i]||o[a[c]+"CancelRequest"+i];if(!s||!u){var l=0,p=0,d=[];s=function(e){if(0===d.length){var t=r(),n=Math.max(0,1e3/60-(t-l));l=n+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return d.push({handle:++p,callback:e,cancelled:!1}),p},u=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return s.call(o,e)},e.exports.cancel=function(){u.apply(o,arguments)},e.exports.p
olyfill=function(e){e||(e=o),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}}).call(this,n(18))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=u(a),s=u(n(13));function u(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},l=["extraWidth","injectStyles","inputClassName","inputRef","inp
utStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),m=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.p
rops.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||m()},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,a.Component),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||m()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onA
utosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput&q
uot;,value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!==e&&void 0!==e?e:t}),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return functio
n(e){l.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},o,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}();f.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.a
ny},f.defaultProps={minWidth:1,injectStyles:!0},t.default=f},function(e,t,n){var r=n(51),o=n(23),a=n(52);e.exports=function(e){return r(e)||o(e)||a()}},function(e,t,n){var r=n(16),o=n(23),a=n(17);e.exports=function(e){return r(e)||o(e)||a()}},function(e,t,n){"use strict";var r=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var a=function(e){for(var t,n=e.length,r
=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)};var i=function(e){function t(e,t,r){var o=t.trim().split(f);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=n(e,t[s],r).t
rim();break;default:var u=s=0;for(t=[];s<a;++s)for(var c=0;c<i;++c)t[u++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",s=2*t+3*n+4*a;if(944===s){e=i.indexOf(":",9)+1;var u=i.substring(e,i.length-1).trim();return u=i.substring(0,e).trim()+u+";",1===j||2===j&&o(u,1)?"-webkit-"+u+u:u}if(0===j||2===j&&!o(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==
i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"
;-webkit-box-pack"+(u=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+u+i;case 1005:return d.test(i)?i.replace(p,":-webkit-")+i.replace(p,":-moz-")+i:i;case 1e3:switch(t=(u=i.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=i.replace(E,"tb");break;case 232:u=i.replace(E,"tb-rl");break;case 220:u=i.replace(E,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+u+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(u=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webki
t-"+(102<s?"inline-":"")+"box")+";"+i.replace(u,"-webkit-"+u)+";"+i.replace(u,"-ms-"+u+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return"-webkit-"+i+"-webkit-box-"+(u=i.replace("-items",""))+"-ms-flex-"+u+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(O,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(O,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(u,"-webkit-"+u)+i
.replace(u,"-moz-"+u.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,s,c,l){for(var p,d=0,m=t;d<P;++d)switch(p=F[d].call(u,e,m,n,r,o,a,i,s,c,l)){case void 0:case!1:case!0:case null:break;default:m=p}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?j=1:(j=2
,N=e):j=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<P){var u=i(-1,n,s,s,_,x,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var p=function e(n,s,u,p,d){for(var m,f,h,E,w,O=0,C=0,k=0,S=0,F=0,N=0,I=h=m=0,M=0,T=0,R=0,V=0,B=u.length,z=B-1,U="",W="",H="",G="";M<B;){if(f=u.charCodeAt(M),M===z&&0!==C+S+k+O&&(0!==C&&(f=47===C?10:47),S=k=O=0,B++,z++),0===C+S+k+O){if(M===z&&(0<T&&(U=U.replace(l,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(M)}f=59}switch(f){case 123:for(m=(U=U.trim()).charCodeAt(0),h=1,V=++M;M<B;){switch(f=u.charCodeAt(M)){case 123:h++;break;case 125:h--;break;case 47:switch(f=u.charCodeAt(M+1)){case 42:case 47:e:{for(I=M+1;I<z;++I)switch(u.charCodeAt(I)){case 47:if(42===f&&42===u.charCodeAt(I-1)&&M+2!==I){M=I+1;break e}break;case 10:if(
47===f){M=I+1;break e}}M=I}}break;case 91:f++;case 40:f++;case 34:case 39:for(;M++<z&&u.charCodeAt(M)!==f;);}if(0===h)break;M++}switch(h=u.substring(V,M),0===m&&(m=(U=U.replace(c,"").trim()).charCodeAt(0)),m){case 64:switch(0<T&&(U=U.replace(l,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:T=s;break;default:T=D}if(V=(h=e(s,T,h,f,d+1)).length,0<P&&(w=i(3,h,T=t(D,U,R),s,_,x,V,f,d,p),U=T.join(""),void 0!==w&&0===(V=(h=w.trim()).length)&&(f=0,h="")),0<V)switch(f){case 115:U=U.replace(y,a);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(g,"$1 $2"))+"{"+h+"}",h=1===j||2===j&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===p&&(W+=h,h="")}else h="";break;default:h=e(s,t(s,U,R),h,p,d+1)}H+=h,h=R=T=I=m=0,U="",f=u
.charCodeAt(++M);break;case 125:case 59:if(1<(V=(U=(0<T?U.replace(l,""):U).trim()).length))switch(0===I&&(m=U.charCodeAt(0),45===m||96<m&&123>m)&&(V=(U=U.replace(" ",":")).length),0<P&&void 0!==(w=i(1,U,s,n,_,x,W.length,p,d,p))&&0===(V=(U=w.trim()).length)&&(U="\0\0"),m=U.charCodeAt(0),f=U.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){G+=U+u.charAt(M);break}default:58!==U.charCodeAt(V-1)&&(W+=r(U,m,f,U.charCodeAt(2)))}R=T=I=m=0,U="",f=u.charCodeAt(++M)}}switch(f){case 13:case 10:47===C?C=0:0===1+m&&107!==p&&0<U.length&&(T=1,U+="\0"),0<P*L&&i(0,U,s,n,_,x,W.length,p,d,p),x=1,_++;break;case 59:case 125:if(0===C+S+k+O){x++;break}default:switch(x++,E=u.charAt(M),f){case 9:case 32:if(0===S+O+C)switch(F){case 44:case 58:case 9:case 32:E="";break;default:32!==f&&(E=" ")}break;case 0:E=
"\\0";break;case 12:E="\\f";break;case 11:E="\\v";break;case 38:0===S+C+O&&(T=R=1,E="\f"+E);break;case 108:if(0===S+C+O+A&&0<I)switch(M-I){case 2:112===F&&58===u.charCodeAt(M-3)&&(A=F);case 8:111===N&&(A=N)}break;case 58:0===S+C+O&&(I=M);break;case 44:0===C+k+S+O&&(T=1,E+="\r");break;case 34:case 39:0===C&&(S=S===f?0:0===S?f:S);break;case 91:0===S+C+k&&O++;break;case 93:0===S+C+k&&O--;break;case 41:0===S+C+O&&k--;break;case 40:if(0===S+C+O){if(0===m)switch(2*F+3*N){case 533:break;default:m=1}k++}break;case 64:0===C+k+S+O+I+h&&(h=1);break;case 42:case 47:if(!(0<S+O+k))switch(C){case 0:switch(2*f+3*u.charCodeAt(M+1)){case 235:C=47;break;case 220:V=M,C=42}break;case 42:47===f&&42===F&&V+2!==M&&(33===u.charCodeAt(V+2)&&(W+=u.substring(V,M+1)),E="",C=0)}}0===C&&(U+=E)}N=F,F=f,M++}if(0<(
V=W.length)){if(T=s,0<P&&void 0!==(w=i(2,W,T,n,_,x,V,p,d,p))&&0===(W=w).length)return G+W+H;if(W=T.join(",")+"{"+W+"}",0!=j*A){switch(2!==j||o(W,2)||(A=0),A){case 111:W=W.replace(v,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}A=0}}return G+W+H}(D,s,n,0,0);return 0<P&&void 0!==(u=i(-2,p,s,s,_,x,p.length,0,0,0))&&(p=u),A=0,x=_=1,p}var c=/^\0+/g,l=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,m=/([,: ])(transform)/g,f=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,v=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,O=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,x=1,_=1,A=0,j=1,D=[],F=[],P=0,N=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:P=F.length=0;break;default:switch(t.constructo
r){case Array:for(var n=0,r=t.length;n<r;++n)e(t[n]);break;case Function:F[P++]=t;break;case Boolean:L=0|!!t}}return e},u.set=s,void 0!==e&&s(e),u},s=n(25),u=n.n(s),c=/[A-Z]|^ms/g,l=r(function(e){return e.replace(c,"-$&").toLowerCase()}),p=function(e,t){return null==t||"boolean"==typeof t?"":1===o[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},d=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"function":0,i=e([a()]);break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o},m="undefined"!=typeof document;function f(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),voi
d 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}var h=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=f(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else{var r=f(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(f(this.opts))},t.flush=f
unction(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,this.injected=!1},e}();t.a=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r,o=t.key||"css",s=u()(function(e){n+=e,m&&f.insert(e,b)});void 0!==t.prefix&&(r={prefix:t.prefix});var c={registered:{},inserted:{},nonce:t.nonce,key:o},f=new h(t);m&&f.inject();var g=new i(r);g.use(t.stylisPlugins)(s);var b="";function v(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return v.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return function(e){if(w.has(e))return w.get(e);var t="";return Array.isArray(e)?e.forEach(function(e){t+=v.call(this,e,!1)},this):Object.keys(e).forEach(function(n){"object"!=typeof
e[n]?void 0!==c.registered[e[n]]?t+=n+"{"+c.registered[e[n]]+"}":t+=l(n)+":"+p(n,e[n])+";":Array.isArray(e[n])&&"string"==typeof e[n][0]&&void 0===c.registered[e[n][0]]?e[n].forEach(function(e){t+=l(n)+":"+p(n,e)+";"}):t+=n+"{"+v.call(this,e[n],!1)+"}"},this),w.set(e,t),t}.call(this,e);default:var r=c.registered[e];return!1===t&&void 0!==r?r:e}}var E,y,w=new WeakMap,O=/label:\s*([^\s;\n{]+)\s*;/g,C=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=v.call(this,e,!1)):n+=e[0];for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return i.forEach(function(r,o){n+=v.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[o+1]&&(n+=e[o+1])},this),y=n,n=n.replace(O,function(e,t){return r+="-"+t,""}),E=function(e,t){return a(e+t)+t}(n,r),n};function k(e,t){void 0===c.i
nserted[E]&&(n="",g(e,t),c.inserted[E]=n)}var S=function(){var e=C.apply(this,arguments),t=o+"-"+E;return void 0===c.registered[t]&&(c.registered[t]=y),k("."+t,e),t};function x(e,t){var n="";return t.split(" ").forEach(function(t){void 0!==c.registered[t]?e.push(t):n+=t+" "}),n}function _(e,t){var n=[],r=x(n,e);return n.length<2?e:r+S(n,t)}function A(e){c.inserted[e]=!0}if(m){var j=document.querySelectorAll("[data-emotion-"+o+"]");Array.prototype.forEach.call(j,function(e){f.tags[0].parentNode.insertBefore(e,f.tags[0]),e.getAttribute("data-emotion-"+o).split(" ").forEach(A)})}var D={flush:function(){m&&(f.flush(),f.inject()),c.inserted={},c.registered={}},hydrate:function(e){e.forEach(A)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _(d(t))},merge:_,getRegisteredStyles:x,injectGlobal:function(){k(""
;,C.apply(this,arguments))},keyframes:function(){var e=C.apply(this,arguments),t="animation-"+E;return k("","@keyframes "+t+"{"+e+"}"),t},css:S,sheet:f,caches:c};return e.__SECRET_EMOTION__=D,D}},function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){
return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(41);function o(){}e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.Pro
pTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){(function(){var n,r,o,a,i,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-i)/1e6},r=t.hrtime,a=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),i=a-s):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,n(43))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e
,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var u,c=[],l=!1,p=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):p=-1,c.length&&m())}function m(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++p<t;)u&&u[p].run();p=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||l||s(m)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.
title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(13));var r=s(n(45)),o=s(n(48)),a=s(n(0)),i=s(n(19));n(21);function s(e){return e&&e.__esModule?e:{default:e}}func
tion u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,r.default)(e,t)})},l=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,o.default)(e,t)})},p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),c(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){v
ar r=t.getClassNames("enter").doneClassName;t.removeClasses(e,n?"appear":"enter"),c(e,r),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),c(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),c(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"!=typeof n?n[e]:n+"-"+e;return{className:r,activeClassName:"string"!=typeof n?n[e+"Active"]:r+"-active",doneClassName:"string"!=typeof n?n[e+"Done"]:r+"-done"}},t}!fun
ction(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var n=t.prototype;return n.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,a=n.doneClassName;r&&l(e,r),o&&l(e,o),a&&l(e,a)},n.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,c(e,t))},n.render=function(){var e=u({},this.props);return delete e.classNames,a.default.createElement(i.default,u({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(a.default.Component);p.propTypes={};var d=p;t.default=d,e.exports=t.default},function(e,t,n){"use strict";var r=n(46);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal|
|"")+" "+t))};var o=r(n(47));e.exports=t.default},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;i(n(13));var r=i(n(0)),o=n(12),a=i(n(22));function i(e){retur
n e&&e.__esModule?e:{default:e}}var s=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e
=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var a,i=this.props.children,s=r.default.Children.toArray(i)[t];s.props[e]&&(a=s.props)[e].apply(a,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children","in"]),i=r.default.Children.toArray(t),s=i[0],u=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(a.default,o,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onE
ntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(r.default.Component);s.propTypes={};var u=s;t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=a,t.getInitialChildMapping=function(e,t){return o(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var s=o(e.children),u=a(t,s);return Object.keys(u).forEach(function(o){var a=u[o];if((0,r.isValidElement)(a)){var c=o in t,l=o in s,p=t[o],d=(0,r.isValidElement)(p)&&!p.props.in;!l||c&&!d?l||!c||d?l&&c&&(0,r.isValidElement)(p)&&(u[o]=(0,r.cloneElement)(a,{onExited:n.bind(null,a),in:p.props.in,exit:i(a,"exit",e),enter:i(a,"enter",
e)})):u[o]=(0,r.cloneElement)(a,{in:!1}):u[o]=(0,r.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:i(a,"exit",e),enter:i(a,"enter",e)})}}),u};var r=n(0);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function a(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}
},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"name",function(){return gr}),n.d(r,"LABEL",function(){return br}),n.d(r,"ICON",function(){return vr}),n.d(r,"settings",function(){return Er});var o={};n.r(o),n.d(o,"name",function(){return So}),n.d(o,"LABEL",function(){return xo}),n.d(o,"ICON",function(){return _o}),n.d(o,"settings",function(){return Ao});var a={};n.r(a),n.d(a,"name",function(){return Ca}),n.d(a,"LABEL",function(){return ka}),n.d(a,"ICON",function(){return Sa}),n.d(a,"settings",function(){return xa});var i={};n.r(i),n.d(i,"name",function(){return ei}),n.d(i,"LABEL",function(){return ti}),n.d(i,"ICON",function(){return ni}),n.d(i,"settings",function(){return ri});var s=n(11),u=n.n(s),c=n(8),l=n.n(c),p=n(1),d=n.n(p),m=n(2),f=n.n(m),h=n(3),g=n.n(h),b=n(4),v
=n.n(b),E=n(5),y=n.n(E);var w=n(0),O=n.n(w),C=n(6);var k=n(12);var S=Object(w.createContext)();S.Provider,S.Consumer,new Set(["string","boolean","number"]),new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required"
;,"reversed","selected","typemustmatch"]),new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart&q
uot;,"lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);var x=n(7),_=n.n(x),A=n(10),j=n.n(A),D=(n(34),wp.components),F=D.Placeholder,P=D.Spinner,N=wp.element,L=N.Component,I=N.Fragment,M=wp.i18n.__,T=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).getModeLabel=n.getModeLabel.bind(j()(j()(n))),n}return y()(t,e),f()(t,[{key:"getModeLabel",value:function(e){return this.props.blockData.options.mode.find(function(t){return e===t.value}).label}}]),t}(L);function R(e){var t=e.className,n=e.icon,r=e.label,o=e.loading,a=["wordcamp-block-edit-placeholder","wordcamp-bl
ock-edit-placeholder-no-content",t];return Object(w.createElement)(F,{className:_()(a),icon:n,label:r},o?Object(w.createElement)(P,null):M("No content found.","wordcamporg"))}function V(e){var t=e.className,n=e.label,r=e.icon,o=e.content,a=e.placeholderChildren,i=["wordcamp-block-edit-placeholder","wordcamp-block-edit-placeholder-specific-mode",t];return Object(w.createElement)(I,null,o,Object(w.createElement)(F,{className:_()(i),label:n,icon:r},a))}n(35),n(36);var B=wp.element.Component,z=wp.components,U=z.BaseControl,W=z.Button,H=z.ButtonGroup,G=z.RangeControl,$=wp.i18n,q=$.__,Y=$._x,X=[{name:q("Small","wordcamporg"),shortName:Y("S","size small","wordcamporg"),size:90,slug:"small"},{name:q("Regular","wordcamporg"),shortName:Y("M","size medium","wordcamporg"),size:150,slug:"regular"},{name:q("Large","word
camporg"),shortName:Y("L","size large","wordcamporg"),size:300,slug:"large"},{name:q("Larger","wordcamporg"),shortName:Y("XL","size extra large","wordcamporg"),size:500,slug:"larger"}],K=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).state={value:e.value,onChange:Object(C.debounce)(e.onChange,10)},n.onChange=n.onChange.bind(j()(j()(n))),n}return y()(t,e),f()(t,[{key:"onChange",value:function(e){this.setState({value:e}),this.state.onChange(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.label,o=t.help,a=t.initialPosition,i=t.rangeProps,s=this.state.value;return Object(w.createElement)(U,{className:_()("wordcamp-components-avatar-size",n),label:r,help:o},Object(w.createElement)("div",{className:"wordcamp-components-avatar-size-buttons"},Object(w.createElement)(H,{&q
uot;aria-label":r},X.map(function(t){var n=t.name,r=t.shortName,o=t.size,a=t.slug,i=s===o;return Object(w.createElement)(W,{key:a,isLarge:!0,isPrimary:i,"aria-label":n,"aria-pressed":i,onClick:function(){return e.onChange(Number(o))}},r||n)})),Object(w.createElement)(W,{className:"wordcamp-components-avatar-size-button-reset",isLarge:!0,isDefault:!0,onClick:function(){return e.onChange(Number(a))}},q("Reset","wordcamporg"))),Object(w.createElement)(G,l()({className:"wordcamp-components-avatar-size-range",value:s,initialPosition:a,onChange:this.onChange,beforeIcon:"format-image",afterIcon:"format-image","aria-label":r},i)))}}]),t}(B),Q=wp.components.Disabled,Z=wp.i18n,J=Z.__,ee=Z.sprintf,te=wp.url,ne=te.addQueryArgs,re=te.isURL;function oe(e){var t=e.className,n=e.name,r=e.size,o=e.url,a=e.imageLink,i=function(e,t){return ne(e,{s:t})},s=Object(w.createElement)("img",{className:_()
("avatar","avatar-"+r,"photo"),src:i(o,r),srcSet:i(o,2*r)+" 2x",alt:n?ee(J("Avatar of %s","wordcamporg"),n):"",width:r,height:r});return re(a)&&(s=Object(w.createElement)(Q,null,Object(w.createElement)("a",{href:a,className:_()("wordcamp-image-link","wordcamp-avatar-link")},s))),s=Object(w.createElement)("div",{className:_()("wordcamp-image-container","wordcamp-avatar-container",t)},s)}n(37);var ae=wp.components.Disabled,ie=wp.element,se=ie.Fragment,ue=ie.RawHTML,ce=wp.i18n.__;function le(e){var t=e.headingLevel,n=e.className,r=e.title,o=e.link,a="h3";[1,2,3,4,5,6].includes(t)&&(a="h"+t);var i=["wordcamp-item-title",n],s=r||ce("(Untitled)","wordcamporg");return Object(w.createElement)(a,{className:_()(i)},o&&Object(w.createElement)(ae,null,Object(w.createElement)("a",{href
:o},s)),!o&&Object(w.createElement)(se,null,s))}function pe(e){var t=e.className,n=e.content,r=e.link,o=e.linkText,a=["wordcamp-item-content",t];return Object(w.createElement)("div",{className:_()(a)},Object(w.createElement)(ae,null,Object(w.createElement)(ue,{children:n}),r&&Object(w.createElement)("p",{className:"wordcamp-item-permalink"},Object(w.createElement)("a",{href:r},o||ce("Read more","wordcamporg")))))}n(38);var de=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.children,o=t.grid_columns,a=t.layout,i=t.align,s=["wordcamp-block","wordcamp-block-post-list","layout-"+a,n];return"grid"===a&&s.push("grid-columns-"+Number(o)),i&&s.push("align"+i),Object(w.createElement)(&q
uot;ul",{className:_()(s)},(r||[]).map(function(e){return Object(w.createElement)("li",{key:e.key,className:_()("wordcamp-grid-layout-item","wordcamp-block-post-list-item","wordcamp-clearfix")},e)}))}}]),t}(wp.element.Component),me=wp.element.Component,fe=wp.i18n.__,he=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.organizerPosts,r=t.show_avatars,o=t.avatar_size,a=t.avatar_align,i=t.content,s=t.excerpt_more;return Object(w.createElement)(de,l()({className:"wordcamp-organizers-block"},this.props),n.map(function(e){return Object(w.createElement)("div",{key:e.slug,className:_()("wordcamp-organizer","wordcamp-organizer-"+e.slug.trim())},Object(w.createElement)(le,{className:"wordcamp-organizer-title",headingLevel:3,title:e.title.rendered.trim(),link:e.link}),r
&&Object(w.createElement)(oe,{className:_()("wordcamp-organizer-avatar-container","align-"+a),name:e.title.rendered.trim()||"",size:o,url:e.avatar_urls[24],imageLink:e.link}),"none"!==i&&Object(w.createElement)(pe,{className:_()("wordcamp-organizer-content-"+i),content:"full"===i?e.content.rendered.trim():e.excerpt.rendered.trim(),link:"full"===i||s?e.link:null,linkText:fe("full"===i?"Visit organizer page":"Read more","wordcamporg")}))}))}}]),t}(me),ge=n(24),be=n.n(ge),ve=function(e,t){return e.length===t.length&&e.every(function(e,n){return function(e,t){return e===t}(e,t[n])})};var Ee=function(e,t){var n;void 0===t&&(t=ve);var r,o=[],a=!1;return function(){for(var i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];return a&&n===this&&t(s,o)?r:(r=e.apply(this,s),a=!0,n=this,o=s,r)}},ye=n(9),we=n(13),Oe=n.n(we),
Ce=n(26),ke=n.n(Ce),Se=n(27),xe=n.n(Se),_e=n(14);function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fe(e,t,n){return t&&De(e.prototype,t),n&&De(e,n),e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(){return(Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty
.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Pe(e,t,n[t])})}return e}function Ie(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Te(e,t)}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Te(e,t){return(Te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n
,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?Ve(e):t}function ze(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ue=function(){};function We(e,t){return t?"-"===t[0]?e+t:e+"__"
+t:e}var He=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ae(e)&&null!==e?[e]:[]};function Ge(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function $e(e){return Ge(e)?window.pageYOffset:e.scrollTop}function qe(e,t){Ge(e)?window.scrollTo(0,t):e.scrollTop=t}function Ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ue,o=$e(e),a=t-o,i=10,s=0;!function t(){var u=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(s+=i,o,a,n);qe(e,u),s<n?ke()(t):r(e)}()}function Xe(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Ke(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)ret
urn o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,m=p.height,f=p.top,h=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,b=$e(u),v=parseInt(getComputedStyle(n).marginBottom,10),E=parseInt(getComputedStyle(n).marginTop,10),y=h-E,w=g-f,O=y+b,C=l-b-f,k=d-g+b+v,S=b+f-E;switch(o){case"auto":case"bottom":if(w>=m)return{placement:"bottom",maxHeight:t};if(C>=m&&!i)return a&&Ye(u,k,160),{placement:"bottom",maxHeight:t};if(!i&&C>=r||i&&w>=r)return a&&Ye(u,k,160),{placement:"bottom",maxHeight:i?w-v:C-v};if("auto"===o||i){var x=t,_=i?y:O;return _>=r&&(x=Math.min(_-v-s.controlHeight,t)),
{placement:"top",maxHeight:x}}if("bottom"===o)return qe(u,k),{placement:"bottom",maxHeight:t};break;case"top":if(y>=m)return{placement:"top",maxHeight:t};if(O>=m&&!i)return a&&Ye(u,S,160),{placement:"top",maxHeight:t};if(!i&&O>=r||i&&y>=r){var A=t;return(!i&&O>=r||i&&y>=r)&&(A=i?y-E:O-E),a&&Ye(u,S,160),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Qe=function(e){return"auto"===e?"bottom":e},Ze=function(e){function t(){var e,n;je(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Pe(Ve(Ve(n=Be(this,(e=Me(t)).call.apply(e,[this].concat(o))))),"state",{maxHeight:n.props.maxMenuHeight,placement:null}),Pe(Ve(Ve(n)),"getPlacement",functi
on(e){var t=n.props,r=t.minMenuHeight,o=t.maxMenuHeight,a=t.menuPlacement,i=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,c=n.context.getPortalPlacement;if(e){var l="fixed"===i,p=Ke({maxHeight:o,menuEl:e,minHeight:r,placement:a,shouldScroll:s&&!l,isFixedPosition:l,theme:u});c&&c(p),n.setState(p)}}),Pe(Ve(Ve(n)),"getUpdatedProps",function(){var e=n.props.menuPlacement,t=n.state.placement||Qe(e);return Le({},n.props,{placement:t,maxHeight:n.state.maxHeight})}),n}return Ie(t,w["Component"]),Fe(t,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),t}();Pe(Ze,"contextTypes",{getPortalPlacement:Oe.a.func});var Je=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},et=Je,tt=Je,nt=function(e){var t=e.children,n=e.
className,r=e.cx,o=e.getStyles,a=e.innerProps;return O.a.createElement("div",Ne({className:r(Object(ye.a)(o("noOptionsMessage",e)),{"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};nt.defaultProps={children:"No options"};var rt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return O.a.createElement("div",Ne({className:r(Object(ye.a)(o("loadingMessage",e)),{"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};rt.defaultProps={children:"Loading..."};var ot=function(e){function t(){var e,n;je(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Pe(Ve(Ve(n=Be(this,(e=Me(t)).call.apply(e,[this].concat(o))))),"state",{placement:null}),Pe(Ve(Ve(n)),"getPortalPlacement",function(e){var t=e.placement;t!==Qe(n.props.menuPlacement)&&n.setState({placement:t})}),n}return Ie(t,w["Compone
nt"]),Fe(t,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,a=e.menuPosition,i=e.getStyles,s="fixed"===a;if(!t&&!s||!r)return null;var u=this.state.placement||Qe(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),l=s?0:window.pageYOffset,p={offset:c[u]+l,position:a,rect:c},d=O.a.createElement("div",{className:Object(ye.a)(i("menuPortal",p))},n);return t?Object(k.createPortal)(d,t):d}}]),t}();Pe(ot,"childContextTypes",{getPortalPlacement:Oe.a.func});var at=Array.isArray,it=Object.keys,st=Object.prototype.hasOwnProperty;function ut(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==Ae(t)&&"object"==Ae(n)){var
r,o,a,i=at(t),s=at(n);if(i&&s){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=s)return!1;var u=t instanceof Date,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==n.getTime();var l=t instanceof RegExp,p=n instanceof RegExp;if(l!=p)return!1;if(l&&p)return t.toString()==n.toString();var d=it(t);if((o=d.length)!==it(n).length)return!1;for(r=o;0!=r--;)if(!st.call(n,d[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(a=d[r])&&t.$$typeof||e(t[a],n[a])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}var ct=[{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\u1
EA0\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\u0
191\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\u1
EA7\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\u
1E19\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\u1E4
3\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\u
0240\u2C6C\uA763]/g}],lt=function(e){for(var t=0;t<ct.length;t++)e=e.replace(ct[t].letters,ct[t].base);return e},pt=function(e){return e.replace(/^\s+|\s+$/g,"")},dt=function(e){return"".concat(e.label," ").concat(e.value)},mt=function(e){return O.a.createElement("span",Ne({className:Object(ye.a)({zIndex:9999,border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},e))},ft=function(e){function t(){return je(this,t),Be(this,Me(t).apply(this,arguments))}return Ie(t,w["Component"]),Fe(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,Re(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]))
;return O.a.createElement("input",Ne({ref:t},n,{className:Object(ye.a)({background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),t}(),ht=function(e){function t(){return je(this,t),Be(this,Me(t).apply(this,arguments))}return Ie(t,w["Component"]),Fe(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(k.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(),gt=["boxSizing","height","overflow","paddingRight","position"],bt={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function vt(e){e.preventDefault()}function Et(e){e.stopPropagation()}function yt(){var e
=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function wt(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ot=!("undefined"==typeof window||!window.document||!window.document.createElement),Ct=0,kt=function(e){function t(){var e,n;je(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Pe(Ve(Ve(n=Be(this,(e=Me(t)).call.apply(e,[this].concat(o))))),"originalStyles",{}),Pe(Ve(Ve(n)),"listenerOptions",{capture:!1,passive:!1}),n}return Ie(t,w["Component"]),Fe(t,[{key:"componentDidMount",value:function(){var e=this;if(Ot){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&>.forEach(function(t){var n=a&&a[t];e.originalStyles[t]=n}),n&&Ct<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clie
ntWidth:0,u=window.innerWidth-s+i||0;Object.keys(bt).forEach(function(e){var t=bt[e];a&&(a[e]=t)}),a&&(a.paddingRight="".concat(u,"px"))}o&&wt()&&(o.addEventListener("touchmove",vt,this.listenerOptions),r&&(r.addEventListener("touchstart",yt,this.listenerOptions),r.addEventListener("touchmove",Et,this.listenerOptions))),Ct+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Ot){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;Ct=Math.max(Ct-1,0),n&&Ct<1&>.forEach(function(t){var n=e.originalStyles[t];a&&(a[t]=n)}),o&&wt()&&(o.removeEventListener("touchmove",vt,this.listenerOptions),r&&(r.removeEventListener("touchstart",yt,this.listenerOptions),r.removeEventListener("touchmove",Et,this.listenerOptions)))}}},{key:"render",value:fu
nction(){return null}}]),t}();Pe(kt,"defaultProps",{accountForScrollbars:!0});var St=function(e){function t(){var e,n;je(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Pe(Ve(Ve(n=Be(this,(e=Me(t)).call.apply(e,[this].concat(o))))),"state",{touchScrollTarget:null}),Pe(Ve(Ve(n)),"getScrollTarget",function(e){e!==n.state.touchScrollTarget&&n.setState({touchScrollTarget:e})}),Pe(Ve(Ve(n)),"blurSelectInput",function(){document.activeElement&&document.activeElement.blur()}),n}return Ie(t,w["PureComponent"]),Fe(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?O.a.createElement("div",null,O.a.createElement("div",{onClick:this.blurSelectInput,className:Object(ye.a)({position:"fixed",left:0,bottom:0,right:0,top:0})}),O.a.createElement(ht,{innerRef:this.getScrollTarget},t),r?O.a.
createElement(kt,{touchScrollTarget:r}):null):t}}]),t}(),xt=function(e){function t(){var e,n;je(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Pe(Ve(Ve(n=Be(this,(e=Me(t)).call.apply(e,[this].concat(o))))),"isBottom",!1),Pe(Ve(Ve(n)),"isTop",!1),Pe(Ve(Ve(n)),"scrollTarget",void 0),Pe(Ve(Ve(n)),"touchStart",void 0),Pe(Ve(Ve(n)),"cancelScroll",function(e){e.preventDefault(),e.stopPropagation()}),Pe(Ve(Ve(n)),"handleEventDelta",function(e,t){var r=n.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,u=n.scrollTarget,c=u.scrollTop,l=u.scrollHeight,p=u.clientHeight,d=n.scrollTarget,m=t>0,f=l-p-c,h=!1;f>t&&n.isBottom&&(a&&a(e),n.isBottom=!1),m&&n.isTop&&(s&&s(e),n.isTop=!1),m&&t>f?(o&&!n.isBottom&&o(e),d.scrollTop=l,h=!0,n.isBottom=!0):!m&&-t>c&&(i&&!n.isTop&
amp;&i(e),d.scrollTop=0,h=!0,n.isTop=!0),h&&n.cancelScroll(e)}),Pe(Ve(Ve(n)),"onWheel",function(e){n.handleEventDelta(e,e.deltaY)}),Pe(Ve(Ve(n)),"onTouchStart",function(e){n.touchStart=e.changedTouches[0].clientY}),Pe(Ve(Ve(n)),"onTouchMove",function(e){var t=n.touchStart-e.changedTouches[0].clientY;n.handleEventDelta(e,t)}),Pe(Ve(Ve(n)),"getScrollTarget",function(e){n.scrollTarget=e}),n}return Ie(t,w["Component"]),Fe(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&(e.scrollHeight<=e.clientHeight||("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchSt
art,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1)))}},{key:"stopListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return O.a.createElement(ht,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(),_t=function(e){function t(){return je(this,t),Be(this,Me(t).apply(this,arguments))}return Ie(t,w["Component"]),Fe(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=Re(e,["isEnabled"]);return t?O.a.createElement(xt,n):this.props.chi
ldren}}]),t}();Pe(_t,"defaultProps",{isEnabled:!0});var At=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},jt=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"p
op-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},Dt=function(e){return!!e.isDisabled},Ft=function(e){function t(){return je(this,t),Be(this,Me(t).apply(this,arguments))}return Ie(t,w["Component"]),Fe(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return O.a.createElement("div",{className:r(Object(ye.a)(a("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}}]),t}(),Pt=function(e){var t=e.size,n=Re(e,["size"]);return O.a.createElement("svg",Ne({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false"
;,className:Object(ye.a)({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},Nt=function(e){return O.a.createElement(Pt,Ne({size:20},e),O.a.createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Lt=function(e){return O.a.createElement(Pt,Ne({size:20},e),O.a.createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z&
quot;}))},It=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Mt=It,Tt=It,Rt=!1,Vt=function(e){var t=e.color,n=e.delay,r=e.offset;return O.a.createElement("span",{className:Object(ye.a)({animationDuration:"1s",animationDelay:"".concat(n,"ms"),animationIterationCount:"infinite",animationName:"react-select-loading-indicator",animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},Bt=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isFocused,i=e.isRtl,s=e.theme.colors,u=a?s.neutral80:s.neutral20;return Rt||(Object(ye.b)("@keyframes &
quot;,"react-select-loading-indicator","{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),Rt=!0),O.a.createElement("div",Ne({},o,{className:n(Object(ye.a)(r("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),O.a.createElement(Vt,{color:u,delay:0,offset:i}),O.a.createElement(Vt,{color:u,delay:160,offset:!0}),O.a.createElement(Vt,{color:u,delay:320,offset:!i}))};Bt.defaultProps={size:4};var zt=function(e){var t=e.children,n=e.innerProps;return O.a.createElement("div",n,t)},Ut=zt,Wt=zt,Ht=function(e){function t(){return je(this,t),Be(this,Me(t).apply(this,arguments))}return Ie(t,w["Component"]),Fe(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return O.a.createElement("div",n,t||O.a.createElement(Nt,{size:14}))}}]),t}(),Gt=function(e){function t(){return je(this,t),Be(this,Me(t).apply(this,arguments))}return Ie(t,w["Component"]),Fe(t,[{key:"r
ender",value:function(){var e=this.props,t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,s=e.innerProps,u=e.isDisabled,c=e.removeProps,l=e.selectProps,p=r.Container,d=r.Label,m=r.Remove,f=Le({className:o(Object(ye.a)(i("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":u},n)},s),h={className:o(Object(ye.a)(i("multiValueLabel",this.props)),{"multi-value__label":!0},n)},g=Le({className:o(Object(ye.a)(i("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},c);return O.a.createElement(p,{data:a,innerProps:f,selectProps:l},O.a.createElement(d,{data:a,innerProps:h,selectProps:l},t),O.a.createElement(m,{data:a,innerProps:g,selectProps:l}))}}]),t}();Pe(Gt,"defaultProps",{cropWithEllipsis:!0});var $t={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return O.a.createElement("div",Ne({},a,{className:r(O
bject(ye.a)(o("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||O.a.createElement(Nt,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,s=e.innerRef,u=e.innerProps,c=e.menuIsOpen;return O.a.createElement("div",Ne({ref:s,className:n(Object(ye.a)(r("control",e)),{control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":c},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return O.a.createElement("div",Ne({},a,{className:r(Object(ye.a)(o("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||O.a.createElement(Lt,null))},DownChevron:Lt,CrossIcon:Nt,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,s=e.label,u=e.theme,c=e.selectProps;return O.a.createElement("div&qu
ot;,{className:r(Object(ye.a)(o("group",e)),{group:!0},n)},O.a.createElement(a,Ne({},i,{selectProps:c,theme:u,getStyles:o,cx:r}),s),O.a.createElement("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,Re(e,["className","cx","getStyles","theme","selectProps"]));return O.a.createElement("div",Ne({className:n(Object(ye.a)(r("groupHeading",Le({theme:o},a))),{"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return O.a.createElement("div",{className:r(Object(ye.a)(o("indicatorsContainer",e)),{indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return O.a.createElement("span",Ne({},o,{className:n(Object(ye.a)(r("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},
Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,s=e.theme,u=(e.selectProps,Re(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return O.a.createElement("div",{className:Object(ye.a)(r("input",Le({theme:s},u)))},O.a.createElement(xe.a,Ne({className:n(null,{input:!0},t),inputRef:o,inputStyle:function(e){return{background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}}(a),disabled:i},u)))},LoadingIndicator:Bt,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps,s=r(Object(ye.a)(o("menu",e)),{menu:!0},n);return O.a.createElement("div",Ne({className:s},i,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,i=e.innerRef;return O.a.createEl
ement("div",{className:r(Object(ye.a)(o("menuList",e)),{"menu-list":!0,"menu-list--is-multi":a},n),ref:i},t)},MenuPortal:ot,LoadingMessage:rt,NoOptionsMessage:nt,MultiValue:Gt,MultiValueContainer:Ut,MultiValueLabel:Wt,MultiValueRemove:Ht,Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,s=e.isSelected,u=e.innerRef,c=e.innerProps;return O.a.createElement("div",Ne({ref:u,className:r(Object(ye.a)(o("option",e)),{option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":s},n)},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return O.a.createElement("div",Ne({className:r(Object(ye.a)(o("placeholder",e)),{placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,s=e.isRtl;return O.a.c
reateElement("div",Ne({className:r(Object(ye.a)(o("container",e)),{"--is-disabled":i,"--is-rtl":s},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return O.a.createElement("div",Ne({className:r(Object(ye.a)(o("singleValue",e)),{"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:Ft},qt=function(e){return Le({},$t,e.components)},Yt={clearIndicator:Tt,container:function(e){var t=e.isDisabled;return{direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px
".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Mt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{
alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:tt,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return Pe(t={},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Pe(t,"backgroundColor",i.neutral0),Pe(t,"borderRadius",o),Pe(t,"bo
xShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Pe(t,"marginBottom",a.menuGutter),Pe(t,"marginTop",a.menuGutter),Pe(t,"position","absolute"),Pe(t,"width","100%"),Pe(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden&quo
t;,padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:et,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:r?i.pr
imary:i.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"
;}}};var Xt={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Kt={backspaceRemovesValue:!0,blurInputOnSelect:Xe(),captureMenuScroll:!Xe(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){var r=Le({ignoreCase:!0,ignoreAccents:!0,stringify:dt,trim:!0,matchFrom:"any"
},e),o=r.ignoreCase,a=r.ignoreAccents,i=r.stringify,s=r.trim,u=r.matchFrom,c=s?pt(n):n,l=s?pt(i(t)):i(t);return o&&(c=c.toLowerCase(),l=l.toLowerCase()),a&&(c=lt(c),l=lt(l)),"start"===u?l.substr(0,c.length)===c:l.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Dt,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderS
tatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},Qt=1,Zt=function(e){function t(e){var n;je(this,t),Pe(Ve(Ve(n=Be(this,Me(t).call(this,e)))),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,isComposing:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),Pe(Ve(Ve(n)),"blockOptionHover",!1),Pe(Ve(Ve(n)),"clearFocusValueOnUpdate",!1),Pe(Ve(Ve(n)),"commonProps",void 0),Pe(Ve(Ve(n)),"components",void 0),Pe(Ve(Ve(n)),"hasGroups",!1),Pe(Ve(Ve(n)),"initialTouchX",0),Pe(Ve(Ve(n)),"initialTouchY",0),Pe(Ve(Ve(n)),"inputIsHiddenAfterUpdate",void 0),Pe(Ve(Ve(n)),"instancePrefix",""),Pe(Ve(Ve(n)),"openAfterFocus",!1),Pe(Ve(Ve(n)),"scrol
lToFocusedOptionOnUpdate",!1),Pe(Ve(Ve(n)),"userIsDragging",void 0),Pe(Ve(Ve(n)),"controlRef",null),Pe(Ve(Ve(n)),"getControlRef",function(e){n.controlRef=e}),Pe(Ve(Ve(n)),"focusedOptionRef",null),Pe(Ve(Ve(n)),"getFocusedOptionRef",function(e){n.focusedOptionRef=e}),Pe(Ve(Ve(n)),"menuListRef",null),Pe(Ve(Ve(n)),"getMenuListRef",function(e){n.menuListRef=e}),Pe(Ve(Ve(n)),"inputRef",null),Pe(Ve(Ve(n)),"getInputRef",function(e){n.inputRef=e}),Pe(Ve(Ve(n)),"cacheComponents",function(e){n.components=qt({components:e})}),Pe(Ve(Ve(n)),"focus",n.focusInput),Pe(Ve(Ve(n)),"blur",n.blurInput),Pe(Ve(Ve(n)),"onChange",function(e,t){var r=n.props;(0,r.onChange)(e,Le({},t,{name:r.name}))}),Pe(Ve(Ve(n)),"setValue",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:vo
id 0,o=n.props,a=o.closeMenuOnSelect,i=o.isMulti;n.onInputChange("",{action:"set-value"}),a&&(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})}),Pe(Ve(Ve(n)),"selectOption",function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,a=n.state.selectValue;if(o)if(n.isOptionSelected(e,a)){var i=n.getOptionValue(e);n.setValue(a.filter(function(e){return n.getOptionValue(e)!==i}),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(ze(a),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option
",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()}),Pe(Ve(Ve(n)),"removeValue",function(e){var t=n.state.selectValue,r=n.getOptionValue(e);n.onChange(t.filter(function(e){return n.getOptionValue(e)!==r}),{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()}),Pe(Ve(Ve(n)),"clearValue",function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})}),Pe(Ve(Ve(n)),"popValue",function(){var e=n.state.selectValue,t=e[e.length-1];n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(e.slice(0,e.length-1),{action:"pop-value",removedValue:t})}),Pe(Ve(Ve(n)),"getOptionL
abel",function(e){return n.props.getOptionLabel(e)}),Pe(Ve(Ve(n)),"getOptionValue",function(e){return n.props.getOptionValue(e)}),Pe(Ve(Ve(n)),"getStyles",function(e,t){var r=Yt[e](t);r.boxSizing="border-box";var o=n.props.styles[e];return o?o(r,t):r}),Pe(Ve(Ve(n)),"getElementId",function(e){return"".concat(n.instancePrefix,"-").concat(e)}),Pe(Ve(Ve(n)),"getActiveDescendentId",function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,o=t.focusedOption;if(o&&e){var a=r.focusable.indexOf(o),i=r.render[a];return i&&i.key}}),Pe(Ve(Ve(n)),"announceAriaLiveSelection",function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:jt(t,r)})}),Pe(Ve(Ve(n)),"announceAriaLiveContext",function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:At(t,Le({},r,{label:n.props["aria-label"]}))})}),Pe(Ve(Ve(n)),"onMenuMouseDown",function(e){0===e.button&
&(e.stopPropagation(),e.preventDefault(),n.focusInput())}),Pe(Ve(Ve(n)),"onMenuMouseMove",function(e){n.blockOptionHover=!1}),Pe(Ve(Ve(n)),"onControlMouseDown",function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()}),Pe(Ve(Ve(n)),"onDropdownIndicatorMouseDown",function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}}),Pe(Ve(Ve(n)),"onClearIndicatorMouseDown",function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocu
s=!1,setTimeout(function(){return n.focusInput()}))}),Pe(Ve(Ve(n)),"onScroll",function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ge(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()}),Pe(Ve(Ve(n)),"onCompositionStart",function(){n.setState({isComposing:!0})}),Pe(Ve(Ve(n)),"onCompositionEnd",function(){n.setState({isComposing:!1})}),Pe(Ve(Ve(n)),"onTouchStart",function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)}),Pe(Ve(Ve(n)),"onTouchMove",function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||o>5}}),Pe(Ve(Ve(n)),"onTouchEnd",function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.cont
ains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)}),Pe(Ve(Ve(n)),"onControlTouchEnd",function(e){n.userIsDragging||n.onControlMouseDown(e)}),Pe(Ve(Ve(n)),"onClearIndicatorTouchEnd",function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)}),Pe(Ve(Ve(n)),"onDropdownIndicatorTouchEnd",function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)}),Pe(Ve(Ve(n)),"handleInputChange",function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()}),Pe(Ve(Ve(n)),"onInputFocus",function(e){var t=n.props,r=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.ope
nMenu("first"),n.openAfterFocus=!1}),Pe(Ve(Ve(n)),"onInputBlur",function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))}),Pe(Ve(Ve(n)),"onOptionHover",function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})}),Pe(Ve(Ve(n)),"shouldHideSelectedOptions",function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t}),Pe(Ve(Ve(n)),"onKeyDown",function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,u=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,m=n.state,f=m.isComposing,h=m.focusedOption,g=m.focusedValue,b=m.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultP
revented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(g)n.removeValue(g);else{if(!o)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(f)return;if(e.shiftKey||!c||!p||!h||d&&n.isOptionSelected(h,b))return;n.selectOption(h);break;case"Enter":if(c){if(!h)return;if(f)return;n.selectOption(h);break}return;case"Escape":c?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&a&&n.clearValue();break;case" ":if(i)return;if(!c){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("do
wn"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}});var r=e.value;n.cacheComponents=Ee(n.cacheComponents,ut).bind(Ve(Ve(n))),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Qt);var o=He(r),a=n.buildMenuOptions(e,o);return n.state.menuOptions=a,n.state.selectValue=o,n}return Ie(t,w["Component"]),Fe(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.f
ocusInput()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.inputValue!==o){var a=He(e.value),i=this.buildMenuOptions(e,a),s=this.getNextFocusedValue(a),u=this.getNextFocusedOption(i.focusable);this.setState({menuOptions:i,selectValue:a,focusedOption:u,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?
qe(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&qe(e,Math.max(t.offsetTop-o,0))}(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRe
f.blur()}},{key:"openMenu",value:function(e){var t=this.state,n=t.menuOptions,r=t.selectValue,o=t.isFocused,a=this.props.isMulti,i="first"===e?0:n.focusable.length-1;if(!a){var s=n.focusable.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[i]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var s=a.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=a.length-1,c=-1;if(a.length){switch(e){case"previous":c=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s<u&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSear
chable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var a=0,i=o.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=i>0?i-1:o.length-1:"down"===e?a=(i+1)%o.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>o.length-1&&(a=o.length-1):"last"===e&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Dt(o[a])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Xt):Le({},Xt,this.props.theme):Xt}},{key:
"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,a=o.classNamePrefix,i=o.isMulti,s=o.isRtl,u=o.options,c=this.state.selectValue,l=this.hasValue();return{cx:function(e,t,n,r){var o=[t,r];if(n&&e)for(var a in n)n.hasOwnProperty(a)&&n[a]&&o.push("".concat(We(e,a)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}.bind(null,a),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:l,isMulti:i,isRtl:s,options:u,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=thi
s.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===r})}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props
.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value
:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(e,t){var n=this,r=e.inputValue,o=void 0===r?"":r,a=function(e,r){var a=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),s=n.getOptionLabel(e),u=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:s,value:u,data:e},o))){var c=a?void 0:function(){return n.onOptionHover(e)},l=a?void 0:function(){return
n.selectOption(e)},p="".concat(n.getElementId("option"),"-").concat(r);return{innerProps:{id:p,onClick:l,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:p,label:s,type:"option",value:u}}};return e.options.reduce(function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map(function(t,n){var o=a(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o}).filter(Boolean);if(o.length){var i="".concat(n.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:i,data:t,options:o})}}else{var s=a(t,"".concat(r));s&&(e.render.push(s),e.focusable.push(t))}return e},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,s=a.menuIsOpen,u=a.inputValue,c=a.screenRead
erStatus,l=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:c({count:this.countOptions()})});return"".concat(l," ").concat(p," ").concat(d," ").concat(t)}},{key:"render
Input",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=this.components.Input,s=this.state.inputIsHidden,u=r||this.getElementId("input");if(!n)return O.a.createElement(ft,{id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ue,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,value:""});var c={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},l=this.commonProps,p=l.cx,d=l.theme,m=l.selectProps;return O.a.createElement(i,Ne({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:a,theme:d,type:"text"
,value:o},c))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,u=this.commonProps,c=this.props,l=c.controlShouldRenderValue,p=c.isDisabled,d=c.isMulti,m=c.inputValue,f=c.placeholder,h=this.state,g=h.selectValue,b=h.focusedValue,v=h.isFocused;if(!this.hasValue()||!l)return m?null:O.a.createElement(s,Ne({},u,{key:"placeholder",isDisabled:p,isFocused:v}),f);if(d)return g.map(function(t){var i=t===b;return O.a.createElement(n,Ne({},u,{components:{Container:r,Label:o,Remove:a},isFocused:i,isDisabled:p,key:e.getOptionValue(t),removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var E=g[0];return O.a.createElement(i,Ne({},u,{data:E,isDisabled:p}),
this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return O.a.createElement(e,Ne({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return O.a.createElement(e,Ne({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisa
bled,a=this.state.isFocused;return O.a.createElement(n,Ne({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return O.a.createElement(e,Ne({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,l=this.commonProps,p=this.state,d=p.focusedOption,m=p.menuOptions,f=this.props,h=f.captureMenuScroll,g=f.inputValue,b=f.isLoading,v=f.loadingMessage,E=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,C=f.menuPlacement,k=f.menuPosition,S=f.menuPortalTarget,x=f.menuShouldBlockScroll,_=f.menuShouldScrollIntoView,A=f
.noOptionsMessage,j=f.onMenuScrollToTop,D=f.onMenuScrollToBottom;if(!w)return null;var F,P=function(t){var n=d===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,O.a.createElement(c,Ne({},l,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())F=m.render.map(function(t){if("group"===t.type){t.type;var o=Re(t,["type"]),a="".concat(t.key,"-heading");return O.a.createElement(n,Ne({},l,o,{Heading:r,headingProps:{id:a},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return P(e)}))}if("option"===t.type)return P(t)});else if(b){var N=v({inputValue:g});if(null===N)return null;F=O.a.createElement(s,l,N)}else{var L=A({inputValue:g});if(null===L)return null;F=O.a.createElement(u,l,L)}var I={minMenuHeight:E,maxMenuHeight:y,menuPlacement:C,menuPosition:k,menuShouldScrollIntoView:_},M=O.a.createElement(Ze,Ne({},l,I),function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return O.a.cre
ateElement(o,Ne({},l,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:i}),O.a.createElement(_t,{isEnabled:h,onTopArrive:j,onBottomArrive:D},O.a.createElement(St,{isEnabled:x},O.a.createElement(a,Ne({},l,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:s}),F))))});return S||"fixed"===k?O.a.createElement(i,Ne({},l,{appendTo:S,controlElement:this.controlRef,menuPlacement:C,menuPosition:k}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=this.state.selectValue;if(a&&!r){if(o){if(n){var s=i.map(function(t){return e.getOptionValue(t)}).join(n);return O.a.createElement("input",{name:a,type:"hidden",value:s})}var u=i.length>0?i.map(function(t,n){return O.a.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):O.a.createElement("input&q
uot;,{name:a,type:"hidden"});return O.a.createElement("div",null,u)}var c=i[0]?this.getOptionValue(i[0]):"";return O.a.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?O.a.createElement(mt,{"aria-live":"assertive"},O.a.createElement("p",{id:"aria-selection-event"},"Â ",this.state.ariaLiveSelection),O.a.createElement("p",{id:"aria-context"},"Â ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,s=a.id,u=a.isDisabled,c=a.menuIsOpen,l=this.state.isFocused,p=this.commonProps=this.getCommonProps();return O.a.createElement(r,Ne({},p,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.ren
derLiveRegion(),O.a.createElement(t,Ne({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:c}),O.a.createElement(o,Ne({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),O.a.createElement(n,Ne({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}();Pe(Zt,"defaultProps",Kt);var Jt={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},en=function(e){var t,n;return n=t=function(t){function n(){var e,t;je(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Pe(Ve(Ve(t=Be(this,(e=Me(n)).call.apply(e,[this].concat(o))))),"select",void 0),Pe(Ve(Ve(t)),"state",{inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsO
pen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue}),Pe(Ve(Ve(t)),"onChange",function(e,n){t.callProp("onChange",e,n),t.setState({value:e})}),Pe(Ve(Ve(t)),"onInputChange",function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})}),Pe(Ve(Ve(t)),"onMenuOpen",function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})}),Pe(Ve(Ve(t)),"onMenuClose",function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})}),t}return Ie(n,w["Component"]),Fe(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=ar
guments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,Re(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return O.a.createElement(e,Ne({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(),Pe(t,"defaultProps",Jt),n},tn={cacheOptions:!1,defaultOptions:!1,filterOption:null},nn=function(e){var t,n;return n=t=function(t){function n(e){var t;return je(this,n),Pe(Ve(Ve(t=Be(this,Me(n).call(this)))),"select",void 0),Pe(Ve(Ve(t)),"lastRequest",void 0),Pe(Ve(Ve(t)),"mounted",!1),Pe(Ve(Ve(t)),"
;optionsCache",{}),Pe(Ve(Ve(t)),"handleInputChange",function(e,n){var r=t.props,o=r.cacheOptions,a=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,n,r.onInputChange);if(!a)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&t.optionsCache[a])t.setState({inputValue:a,loadedInputValue:a,loadedOptions:t.optionsCache[a],isLoading:!1,passEmptyOptions:!1});else{var i=t.lastRequest={};t.setState({inputValue:a,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},function(){t.loadOptions(a,function(e){t.mounted&&(e&&(t.optionsCache[a]=e),i===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:a,loadedOptions:e||[],passEmptyOptions:!1})))})})}return a}),t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputVa
lue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return Ie(n,w["Component"]),Fe(n,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}})}},{key:"componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&&q
uot;function"==typeof r.then&&r.then(t,function(){return t()})}},{key:"render",value:function(){var t=this,n=this.props,r=(n.loadOptions,Re(n,["loadOptions"])),o=this.state,a=o.defaultOptions,i=o.inputValue,s=o.isLoading,u=o.loadedInputValue,c=o.loadedOptions,l=o.passEmptyOptions?[]:i&&u?c:a||[];return O.a.createElement(e,Ne({},r,{ref:function(e){t.select=e},options:l,isLoading:s,onInputChange:this.handleInputChange}))}}]),n}(),Pe(t,"defaultProps",tn),n},rn=(nn(en(Zt)),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=String(e).toLowerCase(),r=String(t.value).toLowerCase(),o=String(t.label).toLowerCase();return r===n||o===n}),on=Le({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n){return!(!e||t.some(function(t){return rn(
e,t)})||n.some(function(t){return rn(e,t)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),an=function(e){var t,n;return n=t=function(t){function n(e){var t;je(this,n),Pe(Ve(Ve(t=Be(this,Me(n).call(this,e)))),"select",void 0),Pe(Ve(Ve(t)),"onChange",function(e,n){var r=t.props,o=r.getNewOptionData,a=r.inputValue,i=r.isMulti,s=r.onChange,u=r.onCreateOption,c=r.value;if("select-option"!==n.action)return s(e,n);var l=t.state.newOption,p=Array.isArray(e)?e:[e];if(p[p.length-1]!==l)s(e,n);else if(u)u(a);else{var d=o(a,a),m={action:"create-option"};s(i?[].concat(ze(He(c)),[d]):d,m)}});var r=e.options||[];return t.state={newOption:void 0,options:r},t}return Ie(n,w["Component"]),Fe(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,r=e.formatCreateLabel,o=e.getNewOptionData,a=e.inputValue,i=e.isLoading,s=e.isValidNewOption,u=e.value,c=e.options||[
],l=this.state.newOption;l=s(a,He(u),c)?o(a,r(a)):void 0,this.setState({newOption:l,options:!t&&i||!l?c:"first"===n?[l].concat(ze(c)):[].concat(ze(c),[l])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,n=Ne({},this.props),r=this.state.options;return O.a.createElement(e,Ne({},n,{ref:function(e){t.select=e},options:r,onChange:this.onChange}))}}]),n}(),Pe(t,"defaultProps",on),n},sn=(en(an(Zt)),nn(en(an(Zt))),function(e){var t=e.component,n=e.duration,r=void 0===n?1:n,o=e.in,a=(e.onExited,Re(e,["component","duration","in","onExited"])),i={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(r,"ms")},exiting:{opacity:0},exited:{opacity:0}};return O.a.createElement(_e.Transition,{mountOnEnter:!0,unmountOnExit:!0,in:o,timeout:r},function(e){var n={style:Le({}
,i[e])};return O.a.createElement(t,Ne({innerProps:n},a))})}),un=260,cn=function(e){function t(){var e,n;je(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Pe(Ve(Ve(n=Be(this,(e=Me(t)).call.apply(e,[this].concat(o))))),"duration",un),Pe(Ve(Ve(n)),"rafID",void 0),Pe(Ve(Ve(n)),"state",{width:"auto"}),Pe(Ve(Ve(n)),"transition",{exiting:{width:0,transition:"width ".concat(n.duration,"ms ease-out")},exited:{width:0}}),Pe(Ve(Ve(n)),"getWidth",function(e){e&&isNaN(n.state.width)&&(n.rafID=window.requestAnimationFrame(function(){var t=e.getBoundingClientRect().width;n.setState({width:t})}))}),Pe(Ve(Ve(n)),"getStyle",function(e){return{overflow:"hidden",whiteSpace:"nowrap",width:e}}),Pe(Ve(Ve(n)),"getTransition",function(e){return n.transition[e]}),n}return Ie(t,w["Component"]),Fe(t,[{key:"componentWill
Unmount",value:function(){this.rafID&&window.cancelAnimationFrame(this.rafID)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.in,o=this.state.width;return O.a.createElement(_e.Transition,{enter:!1,mountOnEnter:!0,unmountOnExit:!0,in:r,timeout:this.duration},function(t){var r=Le({},e.getStyle(o),e.getTransition(t));return O.a.createElement("div",{ref:e.getWidth,style:r},n)})}}]),t}(),ln=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=qt({components:e}),n=t.Input,r=t.MultiValue,o=t.Placeholder,a=t.SingleValue,i=t.ValueContainer,s=Re(t,["Input","MultiValue","Placeholder","SingleValue","ValueContainer"]);return Le({Input:function(e){return function(t){t.in,t.onExited,t.appear,t.enter,t.exit;var n=Re(t,["in","onExited","appear","enter","exit"]);return O.a.createElement(e,n)}}(n),MultiValue:fu
nction(e){return function(t){var n=t.in,r=t.onExited,o=Re(t,["in","onExited"]);return O.a.createElement(cn,{in:n,onExited:r},O.a.createElement(e,Ne({cropWithEllipsis:n},o)))}}(r),Placeholder:function(e){return function(t){return O.a.createElement(sn,Ne({component:e,duration:t.isMulti?un:1},t))}}(o),SingleValue:function(e){return function(t){return O.a.createElement(sn,Ne({component:e},t))}}(a),ValueContainer:function(e){return function(t){return O.a.createElement(_e.TransitionGroup,Ne({component:e},t))}}(i)},s)},pn=ln(),dn=(pn.Input,pn.MultiValue,pn.Placeholder,pn.SingleValue,pn.ValueContainer,Ee(ln,ut),en(Zt)),mn=(n(39),wp.components),fn=mn.BaseControl,hn=mn.Button,gn=wp.compose.withInstanceId,bn=wp.element.Component,vn=wp.i18n.__,En=gn(function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).state={selectedOptions:null},n.isOptionDisabled=n.isOptionDisabled.bind(j()(j()(n))),n.getNewAttributes=n.getNewAttributes.bind(j()(j()(n))),n}r
eturn y()(t,e),f()(t,[{key:"isOptionDisabled",value:function(e,t){var n,r=this.props.mode;return"loading"===e.type||(Array.isArray(t)&&t.length&&(n=t[0].type),!(!r||r===e.type)||n&&n!==e.type)}},{key:"getNewAttributes",value:function(){var e={},t=this.state.selectedOptions;if(null===t)return e;var n=t.map(function(e){return e.value})||[];n.length?e={mode:t[0].type,item_ids:n}:e={mode:"",item_ids:[]};return e}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.className,o=t.label,a=t.help,i=t.submitLabel,s=t.buildSelectOptions,u=t.onChange,c=t.selectProps,p=this.state.selectedOptions||this.props.value,d="wordcamp-item-select-control-".concat(n),m=be()({options:s(),isMulti:!0,isOptionDisabled:this.isOptionDisabled},c);return Object(w.createElement)(fn,{id:d,className:_()("wordcamp-item-select",r),label:o,help:a},Object(w.createElement)("div",{className:"
wordcaselectedOptionsmp-item-select-inner"},Object(w.createElement)(dn,l()({id:d,className:"wordcamp-item-select-select",value:p,"aria-label":o,onChange:function(t){e.setState({selectedOptions:t})}},m)),Object(w.createElement)(hn,{className:"wordcamp-item-select-button",isLarge:!0,isDefault:!0,onClick:function(){return u(e.getNewAttributes())}},i||vn("Select","wordcamporg"))))}}]),t}(bn)),yn=wp.components.Dashicon,wn=wp.element.Component,On=wp.i18n.__;function Cn(e){var t,n,r=e.type,o=e.label,a=void 0===o?"":o,i=e.avatar,s=void 0===i?"":i,u=e.count,c=void 0===u?0:u;switch(r){case"wcb_organizer":t=Object(w.createElement)(oe,{className:"wordcamp-item-select-option-avatar",name:a,size:24,url:s}),n=Object(w.createElement)("span",{className:"wordcamp-item-select-option-label"},a);break;case"wcb_organizer_team":t=Object(w.createElement)("div",{className:&q
uot;wordcamp-item-select-option-icon-container"},Object(w.createElement)(yn,{className:"wordcamp-item-select-option-icon",icon:vr,size:16})),n=Object(w.createElement)("span",{className:"wordcamp-item-select-option-label"},a,Object(w.createElement)("span",{className:"wordcamp-item-select-option-label-term-count"},c))}return Object(w.createElement)("div",{className:"wordcamp-item-select-option"},t,n)}var kn=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).state={wcb_organizer:[],wcb_organizer_team:[],loading:!0},n.buildSelectOptions=n.buildSelectOptions.bind(j()(j()(n))),n.fetchSelectOptions(e),n}return y()(t,e),f()(t,[{key:"fetchSelectOptions",value:function(e){var t=this,n=e.allOrganizerPosts,r=e.allOrganizerTerms,o=n.then(function(e){var n=e.map(function(e){return{label:e.title.rendered.trim()||On("(Untitled)","wordcamporg"),value:e.id,type:&q
uot;wcb_organizer",avatar:e.avatar_urls[24]}});t.setState({wcb_organizer:n})}),a=r.then(function(e){var n=e.map(function(e){return{label:e.name.trim()||On("(Untitled)","wordcamporg"),value:e.id,type:"wcb_organizer_team",count:e.count}});t.setState({wcb_organizer_team:n})});Promise.all([o,a]).then(function(){t.setState({loading:!1})})}},{key:"buildSelectOptions",value:function(e){var t=Object.getOwnPropertyDescriptors,n=[],r={wcb_organizer:On("Organizers","wordcamporg"),wcb_organizer_team:On("Teams","wordcamporg")};for(var o in t(this.state))this.state[o].length&&(e&&o!==e||n.push({label:r[o],options:this.state[o]}));return n}},{key:"render",value:function(){var e=this.props,t=e.label,n=e.attributes,r=e.setAttributes,o=n.mode,a=n.item_ids,i=this.buildSelectOptions(o),s=[];o&&a.length&&(s=Object(C.get)(i,"[0].options",[]).filter(function(e){return Ob
ject(C.includes)(a,e.value)}));return Object(w.createElement)(En,{className:"wordcamp-organizer-select",label:t,value:s,buildSelectOptions:this.buildSelectOptions,onChange:function(e){return r(e)},mode:o,selectProps:{isLoading:this.state.loading,formatGroupLabel:function(e){return Object(w.createElement)("span",{className:"wordcamp-item-select-option-group-label"},e.label)},formatOptionLabel:function(e){return Object(w.createElement)(Cn,e)}}})}}]),t}(wn),Sn=wp.components,xn=Sn.Button,_n=Sn.Placeholder,An=wp.i18n.__,jn=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.attributes,o=t.setAttributes,a=t.organizerPosts,i=r.mode,s=Array.isArray(a)&&a.length;if(i&&!s)return Object(w.createElement)(R,{icon:n,label:br,loading:!Array.isArray(a)});switch(i){case"all":e=Object(w.createElement)(he,this.props);brea
k;case"wcb_organizer":case"wcb_organizer_team":e=Object(w.createElement)(V,{label:this.getModeLabel(i),icon:n,content:Object(w.createElement)(he,this.props),placeholderChildren:Object(w.createElement)(kn,this.props)});break;default:e=Object(w.createElement)(_n,{className:_()("wordcamp-block-edit-placeholder","wordcamp-block-edit-placeholder-no-mode"),icon:n,label:br},Object(w.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(w.createElement)(xn,{isDefault:!0,isLarge:!0,onClick:function(){o({mode:"all"})}},this.getModeLabel("all"))),Object(w.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(w.createElement)(kn,l()({label:An("Choose specific organizers or teams","wordcamporg")},this.props))))}return e}}]),t}(T),Dn=wp.components,Fn=Dn.BaseControl,Pn=Dn.Toolbar;var Nn=function(e){var t=e.className,n=e.label,r=e.help,o=e.v
alue,a=e.onChange,i=e.alignOptions;return Object(w.createElement)(Fn,{className:_()("wordcamp-components-image-alignment",t),label:n,help:r},Object(w.createElement)(Pn,{controls:i.map(function(e){var t=o===e.value,n="align-".concat(e.value);return{title:e.label,icon:n,isActive:t,onClick:function(){a(e.value)}}})}))},Ln=wp.element.Component,In=wp.components,Mn=In.PanelBody,Tn=In.PanelRow,Rn=In.RangeControl,Vn=wp.i18n.__,Bn={grid_columns:{default:2,minimum:2,maximum:4}},zn=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.layout,o=t.grid_columns;if("grid"!==r)return null;var a=Bn;return Object(w.createElement)(Mn,null,Object(w.createElement)(Mn,{title:Vn("Layout","wordcamporg"),initialOpen:!0},Object(w.createElement)(Tn,null,Object(w.createElement)(Rn,{label:Vn("Grid Columns",&
quot;wordcamporg"),value:Number(o),min:a.grid_columns.minimum,max:a.grid_columns.maximum,initialPosition:a.grid_columns.default,onChange:function(e){return n({grid_columns:e})}}))))}}]),t}(Ln),Un=wp.components,Wn=Un.PanelBody,Hn=Un.PanelRow,Gn=Un.SelectControl,$n=Un.ToggleControl,qn=wp.editor.InspectorControls,Yn=wp.element,Xn=Yn.Component,Kn=Yn.Fragment,Qn=wp.i18n.__,Zn={grid_columns:{default:2,minimum:2,maximum:4},avatar_size:{default:150,minimum:25,maximum:600}},Jn={align:{},content:{},sort:{}},er=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blockData,o=t.show_avatars,a=t.avatar_size,i=t.avatar_align,s=t.content,u=t.excerpt_more,c=t.sort,l=r.schema,p=void 0===l?Zn:l,d=r.options,m=void 0===d?Jn:d;return Object(w.createElement)(qn,null,Object(w.createElement)(zn,this.props),Object(w.createElement)(Wn,{title:Qn("Avatar
Settings","wordcamporg"),initialOpen:!0},Object(w.createElement)(Hn,null,Object(w.createElement)($n,{label:Qn("Show avatars","wordcamporg"),checked:o,onChange:function(e){return n({show_avatars:e})}})),o&&Object(w.createElement)(Kn,null,Object(w.createElement)(Hn,null,Object(w.createElement)(K,{label:Qn("Size","wordcamporg"),value:Number(a),initialPosition:Number(p.avatar_size.default),onChange:function(e){return n({avatar_size:e})},rangeProps:{min:Number(p.avatar_size.minimum),max:Number(p.avatar_size.maximum)}})),Object(w.createElement)(Hn,null,Object(w.createElement)(Nn,{label:Qn("Alignment","wordcamporg"),value:i,onChange:function(e){return n({avatar_align:e})},alignOptions:m.align_image})))),Object(w.createElement)(Wn,{title:Qn("Content Settings","wordcamporg"),initialOpen:!1},Object(w.createElement)(Hn,null,Object(w.createElement)(Gn,{label:Qn("Biography Length",&qu
ot;wordcamporg"),value:s,options:m.content,onChange:function(e){return n({content:e})}})),"excerpt"===s&&Object(w.createElement)(Hn,null,Object(w.createElement)($n,{label:Qn("Read More Link","wordcamporg"),help:Qn("Show a link at the end of the excerpt (some themes already include this)","wordcamporg"),checked:u,onChange:function(e){return n({excerpt_more:e})}}))),Object(w.createElement)(Wn,{title:Qn("Sorting & Filtering","wordcamporg"),initialOpen:!1},Object(w.createElement)(Hn,null,Object(w.createElement)(Gn,{label:Qn("Sort by","wordcamporg"),value:c,options:m.sort,onChange:function(e){return n({sort:e})}}))))}}]),t}(Xn),tr=wp.components.Toolbar,nr=wp.editor.BlockControls,rr=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blo
ckData,o=t.layout,a=r.options.layout,i=(void 0===a?{}:a).map(function(e){var t="".concat(e.value,"-view"),r=o===e.value;return{icon:t,title:e.label,isActive:r,onClick:function(){n({layout:e.value})}}});return Object(w.createElement)(nr,null,Object(w.createElement)(tr,{controls:i}))}}]),t}(wp.element.Component),or=wp.apiFetch,ar=wp.data.withSelect,ir=wp.element,sr=ir.Component,ur=ir.Fragment,cr=wp.url.addQueryArgs,lr=window.WordCampBlocks.organizers||{},pr={orderby:"title",order:"asc",per_page:100},dr={orderby:"name",order:"asc",per_page:100},mr=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).state={allOrganizerPosts:null,allOrganizerTerms:null},n.fetchOrganizerDetails(),n}return y()(t,e),f()(t,[{key:"fetchOrganizerDetails",value:function(){var e=or({path:cr("/wp/v2/organizers",pr)}),t=or({path:cr("/wp/v2/organizer_team",dr)});this.state={allOrganizerPosts:e,
allOrganizerTerms:t}}},{key:"render",value:function(){var e=this.props.attributes.mode;return Object(w.createElement)(ur,null,Object(w.createElement)(jn,l()({icon:vr},this.props,this.state)),""!==e&&Object(w.createElement)(ur,null,Object(w.createElement)(er,this.props),Object(w.createElement)(rr,this.props)))}}]),t}(sr),fr=ar(function(e,t){var n=t.attributes,r=n.mode,o=n.item_ids,a=n.sort,i=e("core").getEntityRecords,s=Object(C.split)(a,"_",2),c=u()(s,2),l={orderby:c[0],order:c[1],per_page:100,context:"view"};if(Array.isArray(o))switch(r){case"wcb_organizer":l.include=o;break;case"wcb_organizer_team":l.organizer_team=o}var p=Object(C.pickBy)(l,function(e){return!Object(C.isUndefined)(e)});return{blockData:lr,organizerPosts:i("postType","wcb_organizer",p)}})(mr),hr=wp.i18n.__,gr="wordcamp/organizers",br=hr("Organizers","wordcamporg"),vr="groups",Er
={title:hr("Organizers","wordcamporg"),description:hr("Add a list of organizers.","wordcamporg"),icon:vr,category:"wordcamp",supports:{align:["wide","full"]},edit:fr,save:function(){return null}},yr=n(28),wr=n.n(yr),Or=n(29),Cr=n.n(Or),kr=wp.i18n.__;function Sr(e){return e.split(/(%[1-9]?\$?s)/)}function xr(e,t){var n,r=0;return e.flatMap(function(e){var o=e.match(/^%([1-9])?\$?s$/);return Array.isArray(o)&&(o.length>1&&void 0!==o[1]?(n=Number(o[1])-1,void 0!==t[n]&&(e=t[n])):(e=t[r],r++)),e})}function _r(e,t){return e.length?e.slice(1).reduce(function(e,n,r){var o="function"==typeof t?o(r):t;return e.concat([o,n])},[e[0]]):[]}var Ar=wp.components.Disabled,jr=wp.element.Component,Dr=wp.url.isURL,Fr=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).state={},n}return y()(t,e),f()(t,[{key:"getFullImage",value:function(){var e=Object.get
OwnPropertyDescriptors,t=this.props.wpMediaDetails,n=this.state.selectedImage;if(n&&n.hasOwnProperty("source_url"))return n;if(t.hasOwnProperty("full")&&t.full.hasOwnProperty("source_url"))return this.setState({selectedImage:t.full}),t.full;var r={source_url:""};for(var o in e(t))t[o].width>(r.width||0)&&t[o].hasOwnProperty("source_url")&&(r=t[o]);return this.setState({selectedImage:r}),r}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.alt,r=e.width,o=void 0===r?150:r,a=e.imageLink,i=this.getFullImage(),s=Object(w.createElement)("img",{className:_()("wordcamp-featured-image",t),src:i.source_url,alt:n,width:o+"px"});return Dr(a)&&(s=Object(w.createElement)(Ar,null,Object(w.createElement)("a",{href:a,className:_()("wordcamp-image-link","wordcamp-featured-image-link")},s))),s=Object(w.createElement)("
div",{className:_()("wordcamp-image-container","wordcamp-featured-image-container",t)},s)}}]),t}(jr),Pr=wp.element.Component,Nr=wp.i18n.__;function Lr(e){var t=e.session,n=Object(C.get)(t,"_embedded.speakers",[]);n=n.map(function(e){var t=e.link,n=void 0===t?"":t,r=e.title,o=void 0===r?{}:r;return o=o.rendered.trim()||Nr("Unnamed","wordcamporg"),n?Object(w.createElement)("a",{key:n,href:n},o):o});var r=xr(Sr(Nr("Presented by %s","wordcamporg")),[function(e){var t=[],n=kr(", ","wordcamporg"),r=kr(" and ","wordcamporg");if(!Array.isArray(e))return t;switch(e.length){case 0:break;case 1:t=e;break;case 2:t=_r(e,r);break;default:var o=wr()(e).reverse(),a=Cr()(o),i=a[0];t=_r(a.slice(1),n).concat([n,r,i])}return t}(n)]);return Object(w.createElement)("div",{className:"wordcamp-item-meta wordcamp-session-speakers"},r)}function Ir(e){var t
,n=e.session,r=Object(C.get)(n,"_embedded['wp:term']",[]).flat();if(n.session_track.length){var o=r.filter(function(e){return"wcb_track"===e.taxonomy}),a=u()(o,1)[0];t=xr(Sr(Nr("%1$s at %2$s in %3$s","wordcamporg")),[n.session_date_time.date,n.session_date_time.time,Object(w.createElement)("span",{key:a.id,className:_()("wordcamp-session-track","wordcamp-session-track-"+a.slug.trim())},a.name.trim())])}else t=xr(Sr(Nr("%1$s at %2$s","wordcamporg")),[n.session_date_time.date,n.session_date_time.time]);return Object(w.createElement)("div",{className:"wordcamp-session-time-location"},t)}function Mr(e){var t,n=e.session,r=Object(C.get)(n,"_embedded['wp:term']",[]).flat();if(n.session_category.length){var o=Nr(", ","wordcamporg");t=_r(r.filter(function(e){return"wcb_session_category"===e.taxonomy}).map(function(e){return Object(w.createElem
ent)("span",{key:e.slug,className:_()("wordcamp-session-category","wordcamp-session-category-"+e.slug)},e.name.trim())}),o)}return Object(w.createElement)("div",{className:"wordcamp-session-categories"},t)}var Tr=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"hasSpeaker",value:function(e){return Object(C.get)(e,"_embedded.speakers",[]).length>0}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.sessionPosts,o=n.show_speaker,a=n.show_images,i=n.image_align,s=n.featured_image_width,u=n.content,c=n.excerpt_more,p=n.show_meta,d=n.show_category;return Object(w.createElement)(de,l()({className:"wordcamp-sessions-block"},this.props),r.map(function(t){return Object(w.createElement)("div",{key:t.slug,className:_()("wordcamp-block-post-list-item","wordcamp-session","wordcamp-ses
sion-"+t.slug,"wordcamp-clearfix")},Object(w.createElement)(le,{className:"wordcamp-session-title",headingLevel:3,title:t.title.rendered.trim(),link:t.link}),o&&e.hasSpeaker(t)&&Object(w.createElement)(Lr,{session:t}),a&&Object(w.createElement)(Fr,{className:_()("wordcamp-session-image-container","align-"+i),wpMediaDetails:Object(C.get)(t,"_embedded.wp:featuredmedia[0].media_details.sizes",{}),alt:t.title.rendered.trim(),width:Number(s),imageLink:t.link}),"none"!==u&&Object(w.createElement)(pe,{className:_()("wordcamp-session-content-"+u),content:"full"===u?t.content.rendered.trim():t.excerpt.rendered.trim(),link:"full"===u||c?t.link:null,linkText:Nr("full"===u?"Visit session page":"Read more","wordcamporg")}),(p||d)&&Object(w.createElement)("div",{className:"wordcamp-item-meta wordcamp-session-d
etails"},p&&Object(w.createElement)(Ir,{session:t}),d&&Object(w.createElement)(Mr,{session:t})))}))}}]),t}(Pr),Rr=n(15),Vr=n.n(Rr),Br=wp.components.Dashicon,zr=wp.element.Component,Ur=wp.i18n.__;function Wr(e){var t,n,r=e.type,o=e.icon,a=e.label,i=void 0===a?"":a,s=e.image,u=void 0===s?"":s,c=e.count,l=void 0===c?0:c;switch(r){case"wcb_session":t=u?Object(w.createElement)("img",{className:"wordcamp-item-select-option-image",src:u,alt:i,width:24,height:24}):Object(w.createElement)("div",{className:"wordcamp-item-select-option-icon-container"},Object(w.createElement)(Br,{className:"wordcamp-item-select-option-icon",icon:o,size:16})),n=Object(w.createElement)("span",{className:"wordcamp-item-select-option-label"},i);break;case"wcb_track":case"wcb_session_category":t=Object(w.createElement)("div",{className:"wordcamp-item-select-opti
on-icon-container"},Object(w.createElement)(Br,{className:"wordcamp-item-select-option-icon",icon:o,size:16})),n=Object(w.createElement)("span",{className:"wordcamp-item-select-option-label"},i,Object(w.createElement)("span",{className:"wordcamp-item-select-option-label-term-count"},l))}return Object(w.createElement)("div",{className:"wordcamp-item-select-option"},t,n)}var Hr=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).state={wcb_session:[],wcb_track:[],wcb_session_category:[],loading:!0},n.buildSelectOptions=n.buildSelectOptions.bind(j()(j()(n))),n.fetchSelectOptions(e),n}return y()(t,e),f()(t,[{key:"fetchSelectOptions",value:function(e){var t=this,n=e.allSessionPosts,r=e.allSessionTracks,o=e.allSessionCategories,a=[];a.push(n.then(function(e){var n=e.map(function(e){var t=Object(C.get)(e,"_embedded['wp:featuredmedia'].media_details.sizes.thumbnail.sour
ce_url","");return{label:e.title.rendered.trim()||Ur("(Untitled)","wordcamporg"),value:e.id,type:"wcb_session",image:t}});t.setState({wcb_session:n})}).catch()),[r,o].forEach(function(e){a.push(e.then(function(e){var n=e.map(function(e){return{label:e.name.trim()||Ur("(Untitled)","wordcamporg"),value:e.id,type:e.taxonomy,count:e.count||0}}),r=u()(n,1)[0];t.setState(Vr()({},r.type,n))}).catch())}),Promise.all(a).then(function(){t.setState({loading:!1})})}},{key:"buildSelectOptions",value:function(e){var t=Object.getOwnPropertyDescriptors,n=[],r={wcb_session:Ur("Sessions","wordcamporg"),wcb_track:Ur("Tracks","wordcamporg"),wcb_session_category:Ur("Session Categories","wordcamporg")};for(var o in t(this.state))e&&o!==e||!this.state[o].length||n.push({label:r[o],options:this.state[o]});return n}},{key:"render",value:function(){var e=thi
s.props,t=e.icon,n=e.label,r=e.attributes,o=e.setAttributes,a=r.mode,i=r.item_ids,s=this.buildSelectOptions(a),u=[];a&&i.length&&(u=Object(C.get)(s,"[0].options",[]).filter(function(e){return Object(C.includes)(i,e.value)}));return Object(w.createElement)(En,{className:"wordcamp-sessions-select",label:n,value:u,buildSelectOptions:this.buildSelectOptions,onChange:function(e){return o(e)},mode:a,selectProps:{isLoading:this.state.loading,formatGroupLabel:function(e){return Object(w.createElement)("span",{className:"wordcamp-item-select-option-group-label"},e.label)},formatOptionLabel:function(e){return Object(w.createElement)(Wr,l()({icon:t},e))}}})}}]),t}(zr),Gr=wp.components,$r=Gr.Button,qr=Gr.Placeholder,Yr=wp.i18n.__,Xr=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.attributes,o=t.setAttributes,a=
t.sessionPosts,i=r.mode,s=Array.isArray(a)&&a.length;if(i&&!s)return Object(w.createElement)(R,{icon:n,label:xo,loading:!Array.isArray(a)});switch(i){case"all":e=Object(w.createElement)(Tr,this.props);break;case"wcb_session":case"wcb_track":case"wcb_session_category":e=Object(w.createElement)(V,{label:this.getModeLabel(i),icon:n,content:Object(w.createElement)(Tr,this.props),placeholderChildren:Object(w.createElement)(Hr,this.props)});break;default:e=Object(w.createElement)(qr,{className:_()("wordcamp-block-edit-placeholder","wordcamp-block-edit-placeholder-no-mode"),icon:n,label:xo},Object(w.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(w.createElement)($r,{isDefault:!0,isLarge:!0,onClick:function(){o({mode:"all"})}},this.getModeLabel("all"))),Object(w.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Ob
ject(w.createElement)(Hr,l()({icon:n,label:Yr("Choose specific sessions, tracks, or categories","wordcamporg")},this.props))))}return e}}]),t}(T),Kr=(n(53),wp.element.Component),Qr=wp.components.PanelBody,Zr=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.title,o=e.help,a=e.selectLabel,i=t.featured_image_width;return Object(w.createElement)(Qr,{title:r,initialopen:!1},Object(w.createElement)(K,{onChange:function(e){return n({featured_image_width:Number(e)})},label:a,initialPosition:i,help:o,rangeProps:{min:25,max:1024}}))}}]),t}(Kr),Jr=wp.components,eo=Jr.PanelBody,to=Jr.PanelRow,no=Jr.SelectControl,ro=Jr.ToggleControl,oo=wp.editor.InspectorControls,ao=wp.element.Component,io=wp.i18n.__,so=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render&q
uot;,value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blockData,o=t.show_speaker,a=t.content,i=t.excerpt_more,s=t.show_meta,u=t.show_category,c=t.sort,p=r.options;return Object(w.createElement)(oo,null,Object(w.createElement)(zn,this.props),Object(w.createElement)(eo,{title:io("Content Settings","wordcamporg"),initialOpen:!0},Object(w.createElement)(to,null,Object(w.createElement)(no,{label:io("Description","wordcamporg"),value:a||"full",options:p.content,onChange:function(e){return n({content:e})}})),"excerpt"===a&&Object(w.createElement)(to,null,Object(w.createElement)(ro,{label:io("Read More Link","wordcamporg"),help:io("Show a link at the end of the excerpt (some themes already include this)","wordcamporg"),checked:void 0!==i&&i,onChange:function(e){return n({excerpt_more:e})}})),Object(w.createElement)(to,null,Object(w.createElement)(ro,{labe
l:io("Details","wordcamporg"),help:io("Show date, time, and track.","wordcamporg"),checked:void 0!==s&&s,onChange:function(e){return n({show_meta:e})}})),Object(w.createElement)(to,null,Object(w.createElement)(ro,{label:io("Categories","wordcamporg"),help:io("Show session categories.","wordcamporg"),checked:void 0!==u&&u,onChange:function(e){return n({show_category:e})}})),Object(w.createElement)(to,null,Object(w.createElement)(ro,{label:io("Speakers","wordcamporg"),help:io("Show session speakers.","wordcamporg"),checked:void 0!==o&&o,onChange:function(e){return n({show_speaker:e})}}))),Object(w.createElement)(Zr,l()({title:io("Image size","wordcamporg"),help:io("Specify image height and width, or select a predefined size.","wordcamporg"),selectLabel:io("Size","wordcamporg")},this.p
rops)),Object(w.createElement)(eo,{title:io("Sorting","wordcamporg")},Object(w.createElement)(to,null,Object(w.createElement)(no,{label:io("Sort by","wordcamporg"),value:c,options:p.sort||"session_time",onChange:function(e){return n({sort:e})}}))))}}]),t}(ao),uo=wp.components.Toolbar,co=wp.editor.BlockControls,lo=wp.i18n.__,po=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.layout,o=[{value:"grid",label:lo("Grid","wordcamporg"),isActive:"grid"===r},{value:"list",label:lo("List","wordcamporg"),isActive:"grid"===r}];return Object(w.createElement)(co,null,Object(w.createElement)(uo,{controls:o.map(function(e){var t="".concat(e.value,"-view"),o=r===e.value;return{icon:t,title:e.label,isAct
ive:o,onClick:function(){n({layout:e.value,grid_columns:"grid"===e.value?2:1})}}})}))}}]),t}(wp.element.Component),mo=wp.apiFetch,fo=wp.data.withSelect,ho=wp.element,go=ho.Component,bo=ho.Fragment,vo=wp.url.addQueryArgs,Eo=window.WordCampBlocks.sessions||{},yo={orderby:"title",order:"asc",per_page:100,_embed:!0},wo={orderby:"name",order:"asc",per_page:100},Oo=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).fetchSessionDetails(),n}return y()(t,e),f()(t,[{key:"fetchSessionDetails",value:function(){var e=mo({path:vo("/wp/v2/sessions",yo)}),t=mo({path:vo("/wp/v2/session_track",wo)}),n=mo({path:vo("/wp/v2/session_category",wo)});this.state={allSessionPosts:e,allSessionTracks:t,allSessionCategories:n}}},{key:"render",value:function(){var e=this.props.attributes.mode;return Object(w.createElement)(bo,null,Object(w.createElement)(Xr,l()({icon:_o},this.prop
s,this.state)),e&&Object(w.createElement)(bo,null,Object(w.createElement)(so,this.props),Object(w.createElement)(po,this.props)))}}]),t}(go),Co=fo(function(e,t){var n=t.attributes,r=n.mode,o=n.item_ids,a=n.sort,i=e("core").getEntityRecords,s={per_page:100,_embed:!0,context:"view",_wcpt_session_type:"session"};if("session_time"!==a){var c=Object(C.split)(a,"_",2),l=u()(c,2),p=l[0],d=l[1];s.orderby=p,s.order=d}if(Array.isArray(o))switch(r){case"wcb_session":s.include=o;break;case"wcb_track":s.session_track=o;break;case"wcb_session_category":s.session_category=o}var m=i("postType","wcb_session",Object(C.pickBy)(s,function(e){return!Object(C.isUndefined)(e)}));return Array.isArray(m)&&"session_time"===a&&m.sort(function(e,t){return Number(e.meta._wcpt_session_time)-Number(t.meta._wcpt_session_time)}),{blockData:Eo,sessionPosts:m}})(Oo),ko=wp.i18n.__,So=&q
uot;wordcamp/sessions",xo=ko("Sessions","wordcamporg"),_o="list-view",Ao={title:ko("Sessions","wordcamporg"),description:ko("Add a list of sessions.","wordcamporg"),icon:_o,category:"wordcamp",supports:{align:["wide","full"]},edit:Co,save:function(){return null}},jo=(n(54),wp.components.Disabled),Do=wp.element,Fo=Do.Component,Po=Do.Fragment,No=wp.i18n,Lo=No.__,Io=No._n,Mo=wp.escapeHtml.escapeAttribute;function To(e){var t=e.speaker,n=e.tracks,r=Object(C.get)(t,"_embedded.sessions",[]),o=Object(w.createElement)(Po,null,null);return r.length&&(o=Object(w.createElement)("div",{className:_()("wordcamp-item-meta","wordcamp-speaker-sessions")},Object(w.createElement)("h4",{className:"wordcamp-speaker-sessions-heading"},Io("Session","Sessions",r.length,"wordcamporg")),Object(w.createElement
)("ul",{className:"wordcamp-speaker-sessions-list"},r.map(function(e){return Object(w.createElement)("li",{key:Mo(e.slug),className:"wordcamp-speaker-session-content"},Object(w.createElement)(jo,null,Object(w.createElement)("a",{className:"wordcamp-speaker-session-link",href:e.link},e.title.rendered.trim()||Lo("(Untitled)","wordcamporg")),Object(w.createElement)("span",{className:"wordcamp-speaker-session-info"},e.session_track.length&&Array.isArray(n)&&xr(Sr(Lo("%1$s at %2$s in %3$s","wordcamporg")),[e.session_date_time.date,e.session_date_time.time,Object(C.get)(n.find(function(t){var n=u()(e.session_track,1)[0];return parseInt(t.id)===n}),"name")]),(!e.session_track.length||!Array.isArray(n))&&xr(Sr(Lo("%1$s at %2$s","wordcamporg")),[e.session_date_time.date,e.session_date_time.time]))))})))),o}var Ro=functio
n(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.speakerPosts,r=e.tracks,o=t.show_avatars,a=t.avatar_size,i=t.avatar_align,s=t.content,u=t.excerpt_more,c=t.show_session;return Object(w.createElement)(de,l()({className:"wordcamp-speakers-block"},this.props),n.map(function(e){return Object(w.createElement)("div",{key:e.slug,className:_()("wordcamp-speaker","wordcamp-speaker-"+e.slug)},Object(w.createElement)(le,{className:"wordcamp-speaker-title",headingLevel:3,title:e.title.rendered.trim(),link:e.link}),o&&Object(w.createElement)(oe,{className:_()("wordcamp-speaker-avatar-container","align-"+i),name:e.title.rendered.trim()||"",size:a,url:e.avatar_urls[24],imageLink:e.link}),"none"!==s&&Object(w.createElement)(pe,{className:_()("wordcamp-speaker-conte
nt-"+s),content:"full"===s?e.content.rendered.trim():e.excerpt.rendered.trim(),link:"full"===s||u?e.link:null,linkText:Lo("full"===s?"Visit session page":"Read more","wordcamporg")}),!0===c&&Object(w.createElement)(To,{speaker:e,tracks:r}))}))}}]),t}(Fo),Vo=wp.components.Dashicon,Bo=wp.element.Component,zo=wp.i18n.__;function Uo(e){var t,n,r=e.type,o=e.icon,a=e.label,i=void 0===a?"":a,s=e.avatar,u=void 0===s?"":s,c=e.count,l=void 0===c?0:c;switch(r){case"wcb_speaker":t=Object(w.createElement)(oe,{className:"wordcamp-item-select-option-avatar",name:i,size:24,url:u}),n=Object(w.createElement)("span",{className:"wordcamp-item-select-option-label"},i);break;case"wcb_speaker_group":t=Object(w.createElement)("div",{className:"wordcamp-item-select-option-icon-container"},Object(w.createElement)(Vo,{className:"wordcamp-item-s
elect-option-icon",icon:o,size:16})),n=Object(w.createElement)("span",{className:"wordcamp-item-select-option-label"},i,Object(w.createElement)("span",{className:"wordcamp-item-select-option-label-term-count"},l))}return Object(w.createElement)("div",{className:"wordcamp-item-select-option"},t,n)}var Wo=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).state={wcb_speaker:[],wcb_speaker_group:[],loading:!0},n.buildSelectOptions=n.buildSelectOptions.bind(j()(j()(n))),n.fetchSelectOptions(e),n}return y()(t,e),f()(t,[{key:"fetchSelectOptions",value:function(e){var t=this,n=e.allSpeakerPosts,r=e.allSpeakerTerms,o=n.then(function(e){var n=e.map(function(e){return{label:e.title.rendered.trim()||zo("(Untitled)","wordcamporg"),value:e.id,type:"wcb_speaker",avatar:e.avatar_urls[24]}});t.setState({wcb_speaker:n})}),a=r.then(function(e){var n=e.map(function
(e){return{label:e.name||zo("(Untitled)","wordcamporg"),value:e.id,type:"wcb_speaker_group",count:e.count}});t.setState({wcb_speaker_group:n})});Promise.all([o,a]).then(function(){t.setState({loading:!1})})}},{key:"buildSelectOptions",value:function(e){var t=Object.getOwnPropertyDescriptors,n=[],r={wcb_speaker:zo("Speakers","wordcamporg"),wcb_speaker_group:zo("Groups","wordcamporg")};for(var o in t(this.state))e&&o!==e||!this.state[o].length||n.push({label:r[o],options:this.state[o]});return n}},{key:"render",value:function(){var e=this.props,t=e.label,n=e.icon,r=e.attributes,o=e.setAttributes,a=r.mode,i=r.item_ids,s=this.buildSelectOptions(a),u=[];a&&i.length&&(u=Object(C.get)(s,"[0].options",[]).filter(function(e){return Object(C.includes)(i,e.value)}));return Object(w.createElement)(En,{className:"wordcamp-speakers-select",label:t,value:u,buildSele
ctOptions:this.buildSelectOptions,onChange:function(e){return o(e)},mode:a,selectProps:{isLoading:this.state.loading,formatGroupLabel:function(e){return Object(w.createElement)("span",{className:"wordcamp-item-select-option-group-label"},e.label)},formatOptionLabel:function(e){return Object(w.createElement)(Uo,l()({icon:n},e))}}})}}]),t}(Bo),Ho=wp.components,Go=Ho.Button,$o=Ho.Placeholder,qo=wp.i18n.__,Yo=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.attributes,o=t.setAttributes,a=t.speakerPosts,i=r.mode,s=Array.isArray(a)&&a.length;if(i&&!s)return Object(w.createElement)(R,{icon:n,label:ka,loading:!Array.isArray(a)});switch(i){case"all":e=Object(w.createElement)(Ro,this.props);break;case"wcb_speaker":case"wcb_speaker_group":e=Object(w.createElement)(V,{label:this.getModeLabel(i),icon:n,
content:Object(w.createElement)(Ro,this.props),placeholderChildren:Object(w.createElement)(Wo,this.props)});break;default:e=Object(w.createElement)($o,{className:_()("wordcamp-block-edit-placeholder","wordcamp-block-edit-placeholder-no-mode"),icon:n,label:ka},Object(w.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(w.createElement)(Go,{isDefault:!0,isLarge:!0,onClick:function(){o({mode:"all"})}},this.getModeLabel("all"))),Object(w.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(w.createElement)(Wo,l()({icon:n,label:qo("Choose specific speakers or groups","wordcamporg")},this.props))))}return e}}]),t}(T),Xo=wp.components,Ko=Xo.PanelBody,Qo=Xo.PanelRow,Zo=Xo.SelectControl,Jo=Xo.ToggleControl,ea=wp.editor.InspectorControls,ta=wp.element,na=ta.Component,ra=ta.Fragment,oa=wp.i18n.__,aa={grid_columns:{default:2,minimum:2,maximum:4},avatar_
size:{default:150,minimum:25,maximum:600}},ia={align_image:{},content:{},sort:{}},sa=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blockData,o=t.show_avatars,a=t.avatar_size,i=t.avatar_align,s=t.content,u=t.excerpt_more,c=t.show_session,l=t.sort,p=r.schema,d=void 0===p?aa:p,m=r.options,f=void 0===m?ia:m;return Object(w.createElement)(ea,null,Object(w.createElement)(zn,this.props),Object(w.createElement)(Ko,{title:oa("Avatar Settings","wordcamporg"),initialOpen:!0},Object(w.createElement)(Qo,null,Object(w.createElement)(Jo,{label:oa("Show avatars","wordcamporg"),checked:o,onChange:function(e){return n({show_avatars:e})}})),o&&Object(w.createElement)(ra,null,Object(w.createElement)(Qo,null,Object(w.createElement)(K,{label:oa("Size","wordcamporg"),value:Number(a),ini
tialPosition:Number(d.avatar_size.default),onChange:function(e){return n({avatar_size:e})},rangeProps:{min:Number(d.avatar_size.minimum),max:Number(d.avatar_size.maximum)}})),Object(w.createElement)(Qo,null,Object(w.createElement)(Nn,{label:oa("Alignment","wordcamporg"),value:i,onChange:function(e){return n({avatar_align:e})},alignOptions:f.align_image})))),Object(w.createElement)(Ko,{title:oa("Content Settings","wordcamporg"),initialOpen:!1},Object(w.createElement)(Qo,null,Object(w.createElement)(Zo,{label:oa("Biography Length","wordcamporg"),value:s,options:f.content,onChange:function(e){return n({content:e})}})),"excerpt"===s&&Object(w.createElement)(Qo,null,Object(w.createElement)(Jo,{label:oa("Read More Link","wordcamporg"),help:oa("Show a link at the end of the excerpt (some themes already include this)","wordcamporg"),checked:u,onChange:function(e){return n({e
xcerpt_more:e})}})),Object(w.createElement)(Qo,null,Object(w.createElement)(Jo,{label:oa("Session Information","wordcamporg"),help:oa("Show speaker's session name, time, and track","wordcamporg"),checked:c,onChange:function(e){return n({show_session:e})}}))),Object(w.createElement)(Ko,{title:oa("Sorting & Filtering","wordcamporg"),initialOpen:!1},Object(w.createElement)(Qo,null,Object(w.createElement)(Zo,{label:oa("Sort by","wordcamporg"),value:l,options:f.sort,onChange:function(e){return n({sort:e})}}))))}}]),t}(na),ua=wp.components.Toolbar,ca=wp.editor.BlockControls,la=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.blockData,o=t.layout,a=r.options.layout,i=(void 0===a?{}:a).map(function(e){var t="".concat(e.value,"-view"),r=o==
=e.value;return{icon:t,title:e.label,isActive:r,onClick:function(){n({layout:e.value})}}});return Object(w.createElement)(ca,null,Object(w.createElement)(ua,{controls:i}))}}]),t}(wp.element.Component),pa=wp.apiFetch,da=wp.data.withSelect,ma=wp.element,fa=ma.Component,ha=ma.Fragment,ga=wp.url.addQueryArgs,ba=window.WordCampBlocks.speakers||{},va={orderby:"title",order:"asc",per_page:100,_embed:!0},Ea={orderby:"name",order:"asc",per_page:100},ya=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).fetchSpeakers(),n}return y()(t,e),f()(t,[{key:"fetchSpeakers",value:function(){var e=pa({path:ga("/wp/v2/speakers",va)}),t=pa({path:ga("/wp/v2/speaker_group",Ea)});this.state={allSpeakerPosts:e,allSpeakerTerms:t}}},{key:"render",value:function(){var e=this.props.attributes.mode;return Object(w.createElement)(ha,null,Object(w.createElement)(Yo,l()({icon:Sa},this.props,this.state)),e
&&Object(w.createElement)(ha,null,Object(w.createElement)(sa,this.props),Object(w.createElement)(la,this.props)))}}]),t}(fa),wa=da(function(e,t){var n=t.attributes,r=n.mode,o=n.item_ids,a=n.sort,i=e("core").getEntityRecords,s=Object(C.split)(a,"_",2),c=u()(s,2),l={orderby:c[0],order:c[1],per_page:100,_embed:!0,context:"view"};if(Array.isArray(o))switch(r){case"wcb_speaker":l.include=o;break;case"wcb_speaker_group":l.speaker_group=o}var p=Object(C.pickBy)(l,function(e){return!Object(C.isUndefined)(e)});return{blockData:ba,speakerPosts:i("postType","wcb_speaker",p),tracks:i("taxonomy","wcb_track",{per_page:100})}})(ya),Oa=wp.i18n.__,Ca="wordcamp/speakers",ka=Oa("Speakers","wordcamporg"),Sa="megaphone",xa={title:Oa("Speakers","wordcamporg"),description:Oa("Add a list of speakers.","wordcamporg"),icon:Sa,categor
y:"wordcamp",supports:{align:["wide","full"]},edit:wa,save:function(){return null}},_a=wp.element.Component,Aa=wp.editor.InspectorControls,ja=wp.components,Da=ja.PanelBody,Fa=ja.PanelRow,Pa=ja.ToggleControl,Na=ja.SelectControl,La=wp.i18n.__,Ia=function(e){function t(){return d()(this,t),g()(this,v()(t).apply(this,arguments))}return y()(t,e),f()(t,[{key:"render",value:function(){var e=[{label:La("Name (A to Z)","wordcamporg"),value:"name_asc"},{label:La("Name (Z to A)","wordcamporg"),value:"name_desc"},{label:La("Sponsor Level","wordcamporg"),value:"sponsor_level"}],t=[{label:La("Full","wordcamporg"),value:"full"},{label:La("Excerpt","wordcamporg"),value:"excerpt"},{label:La("None","wordcamporg"),value:"none"}],n=this.props,r=n.attributes,o=n.setAttributes,a=r.show_na
me,i=r.show_logo,s=r.sort_by,u=r.excerpt_more,c=r.content;return Object(w.createElement)(Aa,null,Object(w.createElement)(zn,this.props),Object(w.createElement)(Da,{title:La("Content Settings","wordcamporg"),initialOpen:!0},Object(w.createElement)(Fa,null,Object(w.createElement)(Pa,{label:La("Name","wordcamporg"),help:La("Show or hide sponsor name","wordcamporg"),checked:void 0===a||a,onChange:function(e){return o({show_name:e})}})),Object(w.createElement)(Fa,null,Object(w.createElement)(Pa,{label:La("Logo","wordcamporg"),help:La("Show or hide sponsor logo","wordcamporg"),checked:void 0===i||i,onChange:function(e){return o({show_logo:e})}})),Object(w.createElement)(Fa,null,Object(w.createElement)(Na,{label:La("Description","wordcamporg"),value:c,options:t,help:La("Length of sponsor description","wordcamporg"),onChange:function(e){return o({conten
t:e})}})),"excerpt"===c&&Object(w.createElement)(Fa,null,Object(w.createElement)(Pa,{label:La("Read More Link","wordcamporg"),help:La("Show a link at the end of the excerpt (some themes already include this)","wordcamporg"),checked:u,onChange:function(e){return o({excerpt_more:e})}})),Object(w.createElement)(Fa,null,Object(w.createElement)(Na,{label:La("Sort by","wordcamporg"),options:e,value:s||"name_asc",onChange:function(e){return o({sort_by:e})},help:La("Configure sponsor levels from the Sponsor -> Order Sponsor Levels page.","wordcamporg")}))),Object(w.createElement)(Zr,l()({title:La("Logo size","wordcamporg"),help:La("Specify logo width, or select a predefined size.","wordcamporg"),selectLabel:La("Size","wordcamporg")},this.props)))}}]),t}(_a),Ma=wp.element.Component,Ta=wp.escapeHtml.escapeAttribute,Ra=wp.i18
n.__;function Va(e){var t=e.sponsorPost,n=e.attributes,r=n.show_name,o=n.show_logo,a=n.content,i=n.excerpt_more,s=n.featured_image_width,u=Object(C.get)(t,"_embedded.wp:featuredmedia[0].media_details.sizes",{}),c="full"===a?t.content.rendered.trim():t.excerpt.rendered.trim();return Object(w.createElement)("div",{className:"wordcamp-sponsor-details wordcamp-sponsor-details-"+Ta(t.slug)},(r||void 0===r)&&Object(w.createElement)(le,{className:"wordcamp-sponsor-title",headingLevel:3,title:t.title.rendered.trim(),link:t.link}),(o||void 0===o)&&Object(w.createElement)(Fr,{className:"wordcamp-sponsor-featured-image wordcamp-sponsor-logo",wpMediaDetails:u,alt:t.title.rendered,width:s,imageLink:t.link}),"none"!==a&&Object(w.createElement)(pe,{className:_()("wordcamp-sponsor-content"),content:c,link:"full"===a||i?t.link:null,linkText:Ra("full"===a?"Visit sponsor pag
e":"Read more","wordcamporg")}))}var Ba=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).state={selectedPosts:[],sortBy:"name_asc"},n}return y()(t,e),f()(t,[{key:"setFeaturedImageURL",value:function(e,t){var n=this.sponsorImageUrl||{};n[e]=t,this.sponsorImageUrl=n;var r=this.props.setAttributes,o=this.sponsorImageUrl;r({sponsor_image_urls:encodeURIComponent(JSON.stringify(o))})}},{key:"componentWillReceiveProps",value:function(e){var t=e.selectedPosts,n=e.attributes,r=e.sponsorTermOrder,o=n.sort_by,a=t.map(function(e){return e.id}).sort(),i=this.state,s=i.selectedPosts,u=i.sortBy,c=s.map(function(e){return e.id}).sort();if(u!==o||t.length!==s.length||0!==Object(C.difference)(c,a).length){var l;switch(o){case"sponsor_level":if(!Array.isArray(r)||0===r.length)break;l=t.sort(function(e,t){return r.indexOf((e.sponsor_level||[])[0])-r.indexOf((t.sponsor_level||[])[0])});break;case"na
me_desc":l=t.sort(function(e,t){return e.title.rendered.trim()>t.title.rendered.trim()?-1:1});break;case"name_asc":default:l=t.sort(function(e,t){return e.title.rendered.trim()<t.title.rendered.trim()?-1:1})}this.setState({selectedPosts:l,sortBy:o})}}},{key:"render",value:function(){var e=this.props.attributes,t=this.state.selectedPosts;return Object(w.createElement)(de,l()({className:"wordcamp-sponsors-block"},this.props),t.map(function(t){return Object(w.createElement)(Va,{key:t.id,sponsorPost:t,attributes:e})}))}}]),t}(Ma),za=wp.i18n.__,Ua=wp.components,Wa=Ua.Button,Ha=Ua.Placeholder;function Ga(e){return"post"===e.type?function(e){return Object(w.createElement)("span",null,e.label)}(e):function(e){return Object(w.createElement)("span",{className:"wordcamp-item-select-option-label"},e.label,Object(w.createElement)("span",{className:"wordcamp-item-select-option-label-term-count"},e
.count))}(e)}var $a=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).state={posts:[],terms:[],loading:!0,selectedPosts:[],sponsorTermOrder:[]},n.fetchSelectOptions(e),n}return y()(t,e),f()(t,[{key:"setSelectedPosts",value:function(){var e=this.state.fetchedPosts,t=this.props.attributes,n=t.post_ids,r=t.term_ids,o=t.mode,a=[];if(e&&e.length){var i=!0,s=!1,u=void 0;try{for(var c,l=e[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var p=c.value;if(p.hasOwnProperty("id"))switch(o){case"all":a.push(p);break;case"specific_posts":-1!==n.indexOf(p.id)&&a.push(p);break;case"specific_terms":Object(C.intersection)(r,p.sponsor_level||[]).length&&a.push(p)}}}catch(e){s=!0,u=e}finally{try{i||null==l.return||l.return()}finally{if(s)throw u}}this.setState({selectedPosts:a})}}},{key:"fetchSelectOptions",value:function(e){var t=this,n=e.sponsorPosts,r=e.sponsorLevels,o=e.siteSetting
s,a=n.then(function(e){var n=e.map(function(e){return{label:e.title.rendered.trim()||za("(Untitled)","wordcamporg"),value:e.id,type:"post",featuredImageData:Object(C.get)(e,"_embedded.wp:featuredmedia[0].media_details","")}});t.setState({fetchedPosts:e}),t.setState({posts:n})}).catch(function(e){console.error("Error fetching data",e)}),i=r.then(function(e){var n=e.map(function(e){return{label:e.name.trim()||za("(Untitled)","wordcamporg"),value:e.id,type:"term",count:e.count}});t.setState({fetchedTerms:e}),t.setState({terms:n})}).catch(function(e){console.error("Error fetching data",e)}),s=o.then(function(e){var n=e.wcb_sponsor_level_order;t.setState({sponsorTermOrder:n})});Promise.all([a,i,s]).then(function(){t.setState({loading:!1}),setTimeout(function(){return t.setSelectedPosts()})})}},{key:"onChange",value:function(){var e=this,t=arguments.length>0&&void 0!==a
rguments[0]?arguments[0]:{},n=this.props.setAttributes,r=t.item_ids,o=t.mode;if(r&&o)switch(o){case"post":n({mode:"specific_posts",post_ids:r});break;case"term":n({mode:"specific_terms",term_ids:r})}else n({mode:"",post_ids:[],term_ids:[]});setTimeout(function(){return e.setSelectedPosts()})}},{key:"buildSelectOptions",value:function(){var e=this.state,t=e.posts,n=e.terms,r=[];return r.push({label:za("Sponsor Levels","wordcamporg"),options:n}),r.push({label:za("Sponsors","wordcamporg"),options:t}),r}},{key:"render",value:function(){var e=this,t=this.props,n=t.icon,r=t.attributes,o=t.setAttributes,a=t.sponsorPosts,i=r.mode,s=r.post_ids,u=r.term_ids,c=this.state,p=c.fetchedPosts,d=c.posts,m=c.terms,f=c.selectedPosts,h=c.sponsorTermOrder,g=Array.isArray(p)&&p.length;if(i&&!g)return Object(w.createElement)(R,{label:ti,loading:function(){return!Array.isArr
ay(a)}});var b=[];switch(i){case"all":break;case"specific_posts":b=d.filter(function(e){return Object(C.includes)(s,e.value)});break;case"specific_terms":b=m.filter(function(e){return Object(C.includes)(u,e.value)})}return Object(w.createElement)("div",null,Object(w.createElement)(Ba,l()({selectedPosts:f,sponsorTermOrder:h},this.props)),"all"!==i&&Object(w.createElement)(Ha,{icon:n,label:za("Sponsors","wordcamporg")},Object(w.createElement)("div",{className:""},Object(w.createElement)(Wa,{isDefault:!0,isLarge:!0,onClick:function(){o({mode:"all"}),setTimeout(function(){return e.setSelectedPosts()})}},za("List all sponsors","wordcamporg"))),Object(w.createElement)("div",{className:"wordcamp-block-edit-mode-option"},Object(w.createElement)(En,l()({buildSelectOptions:function(){return e.buildSelectOptions()},isLoading:this.state.loading,onCh
ange:function(t){return e.onChange(t)},selectProps:{formatOptionLabel:function(e){return Object(w.createElement)(Ga,e)}},label:za("Or, choose specific sponsors or levels","wordcamporg"),value:b},this.props)))))}}]),t}(T),qa=wp.element,Ya=qa.Component,Xa=qa.Fragment,Ka=wp.apiFetch,Qa=wp.url.addQueryArgs,Za=function(e){function t(e){var n;return d()(this,t),(n=g()(this,v()(t).call(this,e))).fetchSponsors(),n}return y()(t,e),f()(t,[{key:"fetchSponsors",value:function(){var e={orderby:"title",order:"asc",per_page:100,_embed:!0},t={orderby:"id",order:"asc",per_page:100,_embed:!0};this.state={sponsorPosts:Ka({path:Qa("/wp/v2/sponsors",e)}),sponsorLevels:Ka({path:Qa("/wp/v2/sponsor_level",t)}),siteSettings:Ka({path:Qa("/wp/v2/settings",{})})}}},{key:"render",value:function(){var e=this.state,t=e.sponsorPosts,n=e.sponsorLevels,r=e.siteSettings,o=this.props.attributes.mode;return Obj
ect(w.createElement)(Xa,null,Object(w.createElement)($a,l()({icon:ni,sponsorPosts:t,sponsorLevels:n,siteSettings:r},this.props)),Object(w.createElement)(Xa,null,Object(w.createElement)(Ia,l()({sponsorPosts:t,sponsorLevels:n},this.props)),o&&Object(w.createElement)(po,this.props)))}}]),t}(Ya),Ja=wp.i18n.__,ei="wordcamp/sponsors",ti=Ja("Sponsors","wordcamporg"),ni="heart",ri={title:Ja("Sponsors","wordcamporg"),description:Ja("We wouldn't have WordCamp without their support.","wordcamporg"),icon:ni,category:"wordcamp",supports:{align:["wide","full"]},edit:Za,save:function(){return null}},oi=wp.blocks.registerBlockType;[r,o,a,i].forEach(function(e){var t=e.name,n=e.settings;oi(t,n)})}]);
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===s)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},"./node_modules/create-emotion/dist/index.esm.js":
+/*!*******************************************************!*\
+ !*** ./node_modules/create-emotion/dist/index.esm.js ***!
+ \*******************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! @emotion/memoize */"./node_modules/@emotion/memoize/dist/memoize.esm.js"),o=n(/*! @emotion/unitless */"./node_modules/@emotion/unitless/dist/unitless.esm.js"),s=n(/*! @emotion/hash */"./node_modules/@emotion/hash/dist/hash.esm.js"),a=n(/*! @emotion/stylis */"./node_modules/@emotion/stylis/dist/stylis.esm.js"),i=n(/*! stylis-rule-sheet */"./node_modules/stylis-rule-sheet/index.js"),l=n.n(i),u=/[A-Z]|^ms/g,c=Object(r.default)(function(e){return e.replace(u,"-$&").toLowerCase()}),d=function(e,t){return null==t||"boolean"==typeof t?"":1===o.default[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},p=/(attr|calc|counters?|url)\(/,m=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial"
,"inherit","unset"],f=d;d=function(e,t){return"content"===e&&("string"!=typeof t||-1===m.indexOf(t)&&!p.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`"),f(e,t)};var h=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var s=t[r];if(null!=s){var a=void 0;switch(typeof s){case"boolean":break;case"function":console.error("Passing functions to cx is deprecated and will be removed in the next major version of Emotion.\nPlease call the function before passing it to cx."),a=e([s()]);break;case"object":if(Array.isArray(s))a=e(s);else for(var i in a="",s)s[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=s}a&&(o&&
amp;(o+=" "),o+=a)}}return o},b="undefined"!=typeof document;function g(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}var v=function(){function e(e){this.isSpeedy=!1,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=g(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{n.insertRu
le(e,n.cssRules.length)}catch(t){console.warn("illegal rule",e)}}else{var r=g(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(g(this.opts))},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,this.injected=!1},e}();t.default=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r=t.key||"css";if(/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o,i=l()(function(e){n+=e,b&&p.insert(e,f)});void 0!==t.prefix&&(o={prefix:t.prefix});var u={registered:{},inserted:{},nonce:t.nonce,key:r},p=new v(t);b&&p.inject();var m=new a.default(o);m.use(t.stylisPlugins)(i);var f="";function g(e,t){if(null==e)return"";switch(typeof e){case"
boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();if("NO_COMPONENT_SELECTOR"===n)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return n}return void 0===this&&console.error("Interpolating functions in css calls is deprecated and will be removed in the next major version of Emotion.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"),g.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return function(e){if(w.has(e))return w.get(e);var t="";return Array.isArray(e)?e.forEach(function(e){t+=g.call(this,e,!1)},this):Object.keys(e).forEach(function(n){if(&qu
ot;object"!=typeof e[n])void 0!==u.registered[e[n]]?t+=n+"{"+u.registered[e[n]]+"}":t+=c(n)+":"+d(n,e[n])+";";else{if("NO_COMPONENT_SELECTOR"===n)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");Array.isArray(e[n])&&"string"==typeof e[n][0]&&void 0===u.registered[e[n][0]]?e[n].forEach(function(e){t+=c(n)+":"+d(n,e)+";"}):t+=n+"{"+g.call(this,e[n],!1)+"}"}},this),w.set(e,t),t}.call(this,e);default:var r=u.registered[e];return!1===t&&void 0!==r?r:e}}var y,E,w=new WeakMap,j=/label:\s*([^\s;\n{]+)\s*;/g,O=function(e,t){return Object(s.default)(e+t)+t},_=O,C=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;O=function(e,t){return _(e.replace(C,function(e){return f=e,""}),t)};var k=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=g.call(this,e,!1)):
n+=e[0];for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return s.forEach(function(r,o){n+=g.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[o+1]&&(n+=e[o+1])},this),E=n,n=n.replace(j,function(e,t){return r+="-"+t,""}),y=O(n,r),n},x=m;function S(e,t){void 0===u.inserted[y]&&(n="",m(e,t),u.inserted[y]=n)}m=function(e,t){x(e,t),f=""};var A=function(){var e=k.apply(this,arguments),t=r+"-"+y;return void 0===u.registered[t]&&(u.registered[t]=E),S("."+t,e),t};function P(e,t){var n="";return t.split(" ").forEach(function(t){void 0!==u.registered[t]?e.push(t):n+=t+" "}),n}function N(e,t){var n=[],r=P(n,e);return n.length<2?e:r+A(n,t)}function D(e){u.inserted[e]=!0}if(b){var F=document.querySelectorAll("[data-emotion-"+r+"]");Array.prototype.forEach.call(F,function(e){p.tags[0].parentNode.insertBe
fore(e,p.tags[0]),e.getAttribute("data-emotion-"+r).split(" ").forEach(D)})}var T={flush:function(){b&&(p.flush(),p.inject()),u.inserted={},u.registered={}},hydrate:function(e){e.forEach(D)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return N(h(t))},merge:N,getRegisteredStyles:P,injectGlobal:function(){S("",k.apply(this,arguments))},keyframes:function(){var e=k.apply(this,arguments),t="animation-"+y;return S("","@keyframes "+t+"{"+e+"}"),t},css:A,sheet:p,caches:u};return e.__SECRET_EMOTION__=T,T}},"./node_modules/dom-helpers/class/addClass.js":
+/*!****************************************************!*\
+ !*** ./node_modules/dom-helpers/class/addClass.js ***!
+ \****************************************************/
+/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(/*! ./hasClass */"./node_modules/dom-helpers/class/hasClass.js"));e.exports=t.default},"./node_modules/dom-helpers/class/hasClass.js":
+/*!****************************************************!*\
+ !*** ./node_modules/dom-helpers/class/hasClass.js ***!
+ \****************************************************/
+/*! no static exports found */function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},"./node_modules/dom-helpers/class/removeClass.js":
+/*!*******************************************************!*\
+ !*** ./node_modules/dom-helpers/class/removeClass.js ***!
+ \*******************************************************/
+/*! no static exports found */function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},"./node_modules/emotion/dist/index.esm.js":
+/*!************************************************!*\
+ !*** ./node_modules/emotion/dist/index.esm.js ***!
+ \************************************************/
+/*! exports provided: flush, hydrate, cx, merge, getRegisteredStyles, injectGlobal, keyframes, css, sheet, caches */function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"flush",function(){return a}),n.d(t,"hydrate",function(){return i}),n.d(t,"cx",function(){return l}),n.d(t,"merge",function(){return u}),n.d(t,"getRegisteredStyles",function(){return c}),n.d(t,"injectGlobal",function(){return d}),n.d(t,"keyframes",function(){return p}),n.d(t,"css",function(){return m}),n.d(t,"sheet",function(){return f}),n.d(t,"caches",function(){return h});var r=n(/*! create-emotion */"./node_modules/create-emotion/dist/index.esm.js"),o=void 0!==e?e:{},s=Object(r.default)(o),a=s.flush,i=s.hydrate,l=s.cx,u=s.merge,c=s.getRegisteredStyles,d=s.injectGlobal,p=s.keyframes,m=s.css,f=s.sheet,h=s.caches}.call(this,n(/*! ./../../webpack/buildin/global.js */"./node_modules/webpack/buil
din/global.js"))},"./node_modules/memoize-one/dist/memoize-one.esm.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/memoize-one/dist/memoize-one.esm.js ***!
+ \**********************************************************/
+/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=function(e,t){return e.length===t.length&&e.every(function(e,n){return function(e,t){return e===t}(e,t[n])})};t.default=function(e,t){var n;void 0===t&&(t=r);var o,s=[],a=!1;return function(){for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return a&&n===this&&t(i,s)?o:(o=e.apply(this,i),a=!0,n=this,s=i,o)}}},"./node_modules/object-assign/index.js":
+/*!*********************************************!*\
+ !*** ./node_modules/object-assign/index.js ***!
+ \*********************************************/
+/*! no static exports found */function(e,t,n){"use strict";
+/*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,i=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))o.call(n,u)&&(i[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c
++)s.call(n,a[c])&&(i[a[c]]=n[a[c]])}}return i}},"./node_modules/performance-now/lib/performance-now.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/performance-now/lib/performance-now.js ***!
+ \*************************************************************/
+/*! no static exports found */function(e,t,n){(function(t){(function(){var n,r,o,s,a,i;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,s=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),i=1e9*t.uptime(),a=s-i):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,n(/*! ./../../process/browser.js */"./node_modules/process/browser.js"))},"./node_modules/process/browser.js":
+/*!*****************************************!*\
+ !*** ./node_modules/process/browser.js ***!
+ \*****************************************/
+/*! no static exports found */function(e,t){var n,r,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,d=-1;function p(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&m())}function m(){if(!c){var e=i(p);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{ret
urn r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||c||i(m)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"./node_modules/prop-types/checkPropTypes.js":
+/*!***************************************************!*\
+ !*** ./node_modules/prop-types/checkPropTypes.js ***!
+ \***************************************************/
+/*! no static exports found */function(e,t,n){"use strict";var r=function(){},o=n(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),s={};r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=function(e,t,n,a,i){for(var l in e)if(e.hasOwnProperty(l)){var u;try{if("function"!=typeof e[l]){var c=Error((a||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.");throw c.name="Invariant Violation",c}u=e[l](t,l,a,n,null,o)}catch(e){u=e}if(!u||u instanceof Error||r((a||"React class")+": type specification of "+n+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have f
orgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in s)){s[u.message]=!0;var d=i?i():"";r("Failed "+n+" type: "+u.message+(null!=d?d:""))}}}},"./node_modules/prop-types/factoryWithTypeCheckers.js":
+/*!************************************************************!*\
+ !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
+ \************************************************************/
+/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! object-assign */"./node_modules/object-assign/index.js"),o=n(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),s=n(/*! ./checkPropTypes */"./node_modules/prop-types/checkPropTypes.js"),a=function(){};function i(){return null}a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,l="@@iterator";var u="<<anonymous>>",c={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:m(i),arrayOf:function(e){return m(function(t,n,r,s,a){if("function"!=typeof e)return new p("Prop
erty `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var i=t[n];if(!Array.isArray(i)){var l=b(i);return new p("Invalid "+s+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected an array.")}for(var u=0;u<i.length;u++){var c=e(i,u,r,s,a+"["+u+"]",o);if(c instanceof Error)return c}return null})},element:function(){return m(function(t,n,r,o,s){var a=t[n];if(!e(a)){var i=b(a);return new p("Invalid "+o+" `"+s+"` of type `"+i+"` supplied to `"+r+"`, expected a single ReactElement.")}return null})}(),instanceOf:function(e){return m(function(t,n,r,o,s){if(!(t[n]instanceof e)){var a=e.name||u,i=function(e){if(!e.constructor||!e.constructor.name)return u;return e.constructor.name}(t[n]);return new p("Invalid "+o+" `"+s+"` of type `"+i+"` supplied to `"+r+"`, expected instan
ce of `"+a+"`.")}return null})},node:function(){return m(function(e,t,n,r,o){if(!h(e[t]))return new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.");return null})}(),objectOf:function(e){return m(function(t,n,r,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var i=t[n],l=b(i);if("object"!==l)return new p("Invalid "+s+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in i)if(i.hasOwnProperty(u)){var c=e(i,u,r,s,a+"."+u,o);if(c instanceof Error)return c}return null})},oneOf:function(e){if(!Array.isArray(e))return a("Invalid argument supplied to oneOf, expected an instance of array."),i;return m(function(t,n,r,o,s){for(var a=t[n],i=0;i<e.length;i++)if(d(a,e[i]))return null;var l=JS
ON.stringify(e);return new p("Invalid "+o+" `"+s+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(n)+" at index "+t+"."),i}return m(function(t,n,r,s,a){for(var i=0;i<e.length;i++){var l=e[i];if(null==l(t,n,r,s,a,o))return null}return new p("Invalid "+s+" `"+a+"` supplied to `"+r+"`.")})},shape:function(e){return m(function(t,n,r,s,a){var i=t[n],l=b(i);if("object"!==l)return new p("Invalid "+s+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");f
or(var u in e){var c=e[u];if(c){var d=c(i,u,r,s,a+"."+u,o);if(d)return d}}return null})},exact:function(e){return m(function(t,n,s,a,i){var l=t[n],u=b(l);if("object"!==u)return new p("Invalid "+a+" `"+i+"` of type `"+u+"` supplied to `"+s+"`, expected `object`.");var c=r({},t[n],e);for(var d in c){var m=e[d];if(!m)return new p("Invalid "+a+" `"+i+"` key `"+d+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=m(l,d,s,a,i+"."+d,o);if(f)return f}return null})}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){this.message=e,this.stack=""}function m(e){var n={},r=0;function s(s,i,l,c,d,m,f){if(c=c||u,m=m||l,f!==o){if(t){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-
types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("undefined"!=typeof console){var b=c+":"+l;!n[b]&&r<3&&(a("You are manually calling a React.PropTypes validation function for the `"+m+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[b]=!0,r++)}}return null==i[l]?s?null===i[l]?new p("The "+d+" `"+m+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+d+" `"+m+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,l,c,d,m)}var i=s.bind(null,!1);return i.isRequired=s.bind(null,!0),i}function f(e)
{return m(function(t,n,r,o,s,a){var i=t[n];return b(i)!==e?new p("Invalid "+o+" `"+s+"` of type `"+g(i)+"` supplied to `"+r+"`, expected `"+e+"`."):null})}function h(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e[l]);if("function"==typeof t)return t}(t);if(!r)return!1;var o,s=r.call(t);if(r!==t.entries){for(;!(o=s.next()).done;)if(!h(o.value))return!1}else for(;!(o=s.next()).done;){var a=o.value;if(a&&!h(a[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbo
l&&t instanceof Symbol}(t,e)?"symbol":t}function g(e){if(void 0===e||null===e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=g(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,c.checkPropTypes=s,c.PropTypes=c,c}},"./node_modules/prop-types/index.js":
+/*!******************************************!*\
+ !*** ./node_modules/prop-types/index.js ***!
+ \******************************************/
+/*! no static exports found */function(e,t,n){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(/*! ./factoryWithTypeCheckers */"./node_modules/prop-types/factoryWithTypeCheckers.js")(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
+ \*************************************************************/
+/*! no static exports found */function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/raf/index.js":
+/*!***********************************!*\
+ !*** ./node_modules/raf/index.js ***!
+ \***********************************/
+/*! no static exports found */function(e,t,n){(function(t){for(var r=n(/*! performance-now */"./node_modules/performance-now/lib/performance-now.js"),o="undefined"==typeof window?t:window,s=["moz","webkit"],a="AnimationFrame",i=o["request"+a],l=o["cancel"+a]||o["cancelRequest"+a],u=0;!i&&u<s.length;u++)i=o[s[u]+"Request"+a],l=o[s[u]+"Cancel"+a]||o[s[u]+"CancelRequest"+a];if(!i||!l){var c=0,d=0,p=[];i=function(e){if(0===p.length){var t=r(),n=Math.max(0,1e3/60-(t-c));c=n+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return p.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return i.call(o,e)},e.exports.cancel=function(){l.app
ly(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=i,e.cancelAnimationFrame=l}}).call(this,n(/*! ./../webpack/buildin/global.js */"./node_modules/webpack/buildin/global.js"))},"./node_modules/react-input-autosize/lib/AutosizeInput.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/react-input-autosize/lib/AutosizeInput.js ***!
+ \****************************************************************/
+/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(/*! react */"react"),a=l(s),i=l(n(/*! prop-types */"./node_modules/prop-types/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputR
ef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),m=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function
"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||m()},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,s.Component),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||m()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&
amp;this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{ke
y:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!==e&&void 0!==e?e:t}),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,
[]);return function(e){c.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}();f.propTypes={className:i.default.string,defaultValue:i.default.any,extraWidth:i.default.oneOfType([i.default.number,i.default.string]),id:i.default.string,injectStyles:i.default.bool,inputClassName:i.default.string,inputRef:i.default.func,inputStyle:i.default.object,minWidth:i.default.oneOfType([i.default.number,i.default.string]),onAutosize:i.default.func,onChange:i.default.func,placeholder:i.default.string,placeholderIsMinWidth:i.default.bool,style:i.default.object
,value:i.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.default=f},"./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js":
+/*!****************************************************************************!*\
+ !*** ./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js ***!
+ \****************************************************************************/
+/*! exports provided: polyfill */function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function s(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&
&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==i){var l=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==i?"\n "+i:"")+"\n\nThe
above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=s;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0},"./node_modules/react-select/dist/react-select.esm.js":
+/*!************************************************************!*\
+ !*** ./node_modules/react-select/dist/react-select.esm.js ***!
+ \************************************************************/
+/*! exports provided: default, SelectBase, Async, makeAsyncSelect, AsyncCreatable, Creatable, makeCreatableSelect, createFilter, makeAnimated, components, mergeStyles, defaultTheme */function(e,t,n){"use strict";n.r(t),n.d(t,"SelectBase",function(){return Be}),n.d(t,"Async",function(){return qe}),n.d(t,"makeAsyncSelect",function(){return Ge}),n.d(t,"AsyncCreatable",function(){return Ze}),n.d(t,"Creatable",function(){return Qe}),n.d(t,"makeCreatableSelect",function(){return Je}),n.d(t,"createFilter",function(){return ee}),n.d(t,"makeAnimated",function(){return st}),n.d(t,"components",function(){return Te}),n.d(t,"mergeStyles",function(){return Me}),n.d(t,"defaultTheme",function(){return Re});var r=n(/*! react */"react"),o=n.n(r),s=n(/*! memoize-one */"./node_modules/memoize-one/dist/memoize-one.esm.js"),a=n(/*! emotion */"./node_modules/emot
ion/dist/index.esm.js"),i=n(/*! react-dom */"react-dom"),l=n(/*! prop-types */"./node_modules/prop-types/index.js"),u=n.n(l),c=n(/*! raf */"./node_modules/raf/index.js"),d=n.n(c),p=n(/*! react-input-autosize */"./node_modules/react-input-autosize/lib/AutosizeInput.js"),m=n.n(p),f=n(/*! react-transition-group */"./node_modules/react-transition-group/index.js");function h(e){return(h="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 b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(
e,r.key,r)}}function v(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){y(e,t,n[t])})}return e}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writab
le:!0,configurable:!0}}),t&&_(e,t)}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?k(e):t}function S(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)
n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var A=function(){};function P(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}var N=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===h(e)&&null!==e?[e]:[]};function D(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function F(e){return D(e)?window.pageYOffset:e.scrollTop}function T(e,t){D(e)?window.scrollTo(0,t):e.scrollTop=t}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A,o=F(e),s=t-o,a=10,i=0;!function t(){var l=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=a,o,s,n);T(e,l),i<n?d()(t):r(e)}()}function L(){try{return document.createEvent(&
quot;TouchEvent"),!0}catch(e){return!1}}function M(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,s=e.shouldScroll,a=e.isFixedPosition,i=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var s=e;s=s.parentElement;)if(t=getComputedStyle(s),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return s;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,m=d.height,f=d.top,h=n.offsetParent.getBoundingClientRect().top,b=window.innerHeight,g=F(l),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),E=h-y,w=b-f,j=E+g,O=c-g-f,_=p-b+g+v,C=g+f-y;switch(o){case"auto":case"bottom":if(w>=m)return{placement:"bottom",maxHeight
:t};if(O>=m&&!a)return s&&I(l,_,160),{placement:"bottom",maxHeight:t};if(!a&&O>=r||a&&w>=r)return s&&I(l,_,160),{placement:"bottom",maxHeight:a?w-v:O-v};if("auto"===o||a){var k=t,x=a?E:j;return x>=r&&(k=Math.min(x-v-i.controlHeight,t)),{placement:"top",maxHeight:k}}if("bottom"===o)return T(l,_),{placement:"bottom",maxHeight:t};break;case"top":if(E>=m)return{placement:"top",maxHeight:t};if(j>=m&&!a)return s&&I(l,C,160),{placement:"top",maxHeight:t};if(!a&&j>=r||a&&E>=r){var S=t;return(!a&&j>=r||a&&E>=r)&&(S=a?E-y:j-y),s&&I(l,C,160),{placement:"top",maxHeight:S}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var R=function(e){return"auto"===e?&quo
t;bottom":e},z=function(e){function t(){var e,n;b(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return y(k(k(n=x(this,(e=O(t)).call.apply(e,[this].concat(o))))),"state",{maxHeight:n.props.maxMenuHeight,placement:null}),y(k(k(n)),"getPlacement",function(e){var t=n.props,r=t.minMenuHeight,o=t.maxMenuHeight,s=t.menuPlacement,a=t.menuPosition,i=t.menuShouldScrollIntoView,l=t.theme,u=n.context.getPortalPlacement;if(e){var c="fixed"===a,d=M({maxHeight:o,menuEl:e,minHeight:r,placement:s,shouldScroll:i&&!c,isFixedPosition:c,theme:l});u&&u(d),n.setState(d)}}),y(k(k(n)),"getUpdatedProps",function(){var e=n.props.menuPlacement,t=n.state.placement||R(e);return w({},n.props,{placement:t,maxHeight:n.state.maxHeight})}),n}return j(t,r["Component"]),v(t,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),t}();
y(z,"contextTypes",{getPortalPlacement:u.a.func});var V=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},B=V,U=V,W=function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.innerProps;return o.a.createElement("div",E({className:r(Object(a.css)(s("noOptionsMessage",e)),{"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};W.defaultProps={children:"No options"};var H=function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.innerProps;return o.a.createElement("div",E({className:r(Object(a.css)(s("loadingMessage",e)),{"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};H.defaultProps={children:"Loading..."};var G=function(e){function t(){var e,n;b(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]
=arguments[s];return y(k(k(n=x(this,(e=O(t)).call.apply(e,[this].concat(o))))),"state",{placement:null}),y(k(k(n)),"getPortalPlacement",function(e){var t=e.placement;t!==R(n.props.menuPlacement)&&n.setState({placement:t})}),n}return j(t,r["Component"]),v(t,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,s=e.menuPlacement,l=e.menuPosition,u=e.getStyles,c="fixed"===l;if(!t&&!c||!r)return null;var d=this.state.placement||R(s),p=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),m=c?0:window.pageYOffset,f={offset:p[d]+m,position:l,rect:p},h=o.a.createElement("div",{className:Object(a.css)(u("menuPortal",f))},n);return t?Object(i.createPortal)(h,t):h}}]),t}();y(G,"ch
ildContextTypes",{getPortalPlacement:u.a.func});var $=Array.isArray,q=Object.keys,Y=Object.prototype.hasOwnProperty;function X(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==h(t)&&"object"==h(n)){var r,o,s,a=$(t),i=$(n);if(a&&i){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=i)return!1;var l=t instanceof Date,u=n instanceof Date;if(l!=u)return!1;if(l&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var p=q(t);if((o=p.length)!==q(n).length)return!1;for(r=o;0!=r--;)if(!Y.call(n,p[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(s=p[r])&&t.$$typeof||e(t[s],n[s])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not ha
ndle circular references.",e.name,e.message),!1;throw e}}var J=[{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:&q
uot;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\uA7
80]/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",let
ters:/[\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\uA
7A3]/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",le
tters:/[\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}],Q=function(e){for(var t=0;t<J.length;t++)e=e.replace(J[t].letters,J[t].base);return e},K=function(e){return e.replace(/^\s+|\s+$/g,"")},Z=function(e){return"".concat(e.label," ").concat(e.value)},ee=function(e){return function(t,n){var r=w({ignoreCase:!0,ignoreAccents:!0,stringify:Z,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,s=r.ignoreAccents,a=r.stringify,i=r.trim,l=r.matchFrom,u=i?K(n):n,c=i?K(a(t)):a(t);return o&&(u=u.toLowerCase(),c=c.toLowerCase()),s&&(u=Q(u),c=Q(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1}},te=function(e){return o.a.createElement("span",E({className:Object(a.css)({zIndex:9999,border:0,c
lip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},e))},ne=function(e){function t(){return b(this,t),x(this,O(t).apply(this,arguments))}return j(t,r["Component"]),v(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,C(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return o.a.createElement("input",E({ref:t},n,{className:Object(a.css)({background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),t}(),re=function(e){function t(){return b(this,t),x(this,O(t).apply(this,arguments))}retu
rn j(t,r["Component"]),v(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(i.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(),oe=["boxSizing","height","overflow","paddingRight","position"],se={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ae(e){e.preventDefault()}function ie(e){e.stopPropagation()}function le(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ue(){return"ontouchstart"in window||navigator.maxTouchPoints}var ce=!("undefined"==typeof window||!window.document||!window.document.createElement),de=0,pe=function(e){function t(){var e,n;b(this,t);for(var r=arguments.length,o=n
ew Array(r),s=0;s<r;s++)o[s]=arguments[s];return y(k(k(n=x(this,(e=O(t)).call.apply(e,[this].concat(o))))),"originalStyles",{}),y(k(k(n)),"listenerOptions",{capture:!1,passive:!1}),n}return j(t,r["Component"]),v(t,[{key:"componentDidMount",value:function(){var e=this;if(ce){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,s=o&&o.style;if(n&&oe.forEach(function(t){var n=s&&s[t];e.originalStyles[t]=n}),n&&de<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,l=window.innerWidth-i+a||0;Object.keys(se).forEach(function(e){var t=se[e];s&&(s[e]=t)}),s&&(s.paddingRight="".concat(l,"px"))}o&&ue()&&(o.addEventListener("touchmove",ae,this.listenerOptions),r&&(r.addEventListener("touchstart",le,this.listenerOptions),r.addEventListener("touchmove",i
e,this.listenerOptions))),de+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(ce){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,s=o&&o.style;de=Math.max(de-1,0),n&&de<1&&oe.forEach(function(t){var n=e.originalStyles[t];s&&(s[t]=n)}),o&&ue()&&(o.removeEventListener("touchmove",ae,this.listenerOptions),r&&(r.removeEventListener("touchstart",le,this.listenerOptions),r.removeEventListener("touchmove",ie,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),t}();y(pe,"defaultProps",{accountForScrollbars:!0});var me=function(e){function t(){var e,n;b(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return y(k(k(n=x(this,(e=O(t)).call.apply(e,[this].concat(o))))),"state",{touchScrollTarget:null}),y(k(k(n)),"getScrollTarget",function(e){e!==n.state.tou
chScrollTarget&&n.setState({touchScrollTarget:e})}),y(k(k(n)),"blurSelectInput",function(){document.activeElement&&document.activeElement.blur()}),n}return j(t,r["PureComponent"]),v(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?o.a.createElement("div",null,o.a.createElement("div",{onClick:this.blurSelectInput,className:Object(a.css)({position:"fixed",left:0,bottom:0,right:0,top:0})}),o.a.createElement(re,{innerRef:this.getScrollTarget},t),r?o.a.createElement(pe,{touchScrollTarget:r}):null):t}}]),t}(),fe=function(e){function t(){var e,n;b(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return y(k(k(n=x(this,(e=O(t)).call.apply(e,[this].concat(o))))),"isBottom",!1),y(k(k(n)),"isTop",!1),y(k(k(n)),"scrollTarget",void 0),y(k(k(n)),"touchStart",void 0),y(k(k(n)),"
cancelScroll",function(e){e.preventDefault(),e.stopPropagation()}),y(k(k(n)),"handleEventDelta",function(e,t){var r=n.props,o=r.onBottomArrive,s=r.onBottomLeave,a=r.onTopArrive,i=r.onTopLeave,l=n.scrollTarget,u=l.scrollTop,c=l.scrollHeight,d=l.clientHeight,p=n.scrollTarget,m=t>0,f=c-d-u,h=!1;f>t&&n.isBottom&&(s&&s(e),n.isBottom=!1),m&&n.isTop&&(i&&i(e),n.isTop=!1),m&&t>f?(o&&!n.isBottom&&o(e),p.scrollTop=c,h=!0,n.isBottom=!0):!m&&-t>u&&(a&&!n.isTop&&a(e),p.scrollTop=0,h=!0,n.isTop=!0),h&&n.cancelScroll(e)}),y(k(k(n)),"onWheel",function(e){n.handleEventDelta(e,e.deltaY)}),y(k(k(n)),"onTouchStart",function(e){n.touchStart=e.changedTouches[0].clientY}),y(k(k(n)),"onTouchMove",function(e){var t=n.touchStart-e.changedTouches[0].clientY;n.handleEventDelta(e,t)}),y(k(k(n)),"getScrollTarget",function(e){n.scrollTar
get=e}),n}return j(t,r["Component"]),v(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&(e.scrollHeight<=e.clientHeight||("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1)))}},{key:"stopListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart&quo
t;,this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return o.a.createElement(re,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(),he=function(e){function t(){return b(this,t),x(this,O(t).apply(this,arguments))}return j(t,r["Component"]),v(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=C(e,["isEnabled"]);return t?o.a.createElement(fe,n):this.props.children}}]),t}();y(he,"defaultProps",{isEnabled:!0});var be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,s=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(s?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the
option and exit the menu.");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},ge=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},ve=function(e){return!!e.isDisabled},ye=function(e){function t(){return b(this,t),x(this,O(t).apply(this,arguments))}return j(t,r["Component"]),v(t,[{key:"render",value:func
tion(){var e=this.props,t=e.children,n=e.className,r=e.cx,s=e.isMulti,i=e.getStyles,l=e.hasValue;return o.a.createElement("div",{className:r(Object(a.css)(i("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":l},n)},t)}}]),t}(),Ee=function(e){var t=e.size,n=C(e,["size"]);return o.a.createElement("svg",E({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:Object(a.css)({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},we=function(e){return o.a.createElement(Ee,E({size:20},e),o.a.createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1
.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},je=function(e){return o.a.createElement(Ee,E({size:20},e),o.a.createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Oe=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},_e=Oe,Ce=Oe,ke=!1,xe=function(e){var t=e.color,n=e.delay,r=e.offset;return o.a.createElement("span",{className:Object(a.css)({animationDuration:"1s",animationDelay:"".c
oncat(n,"ms"),animationIterationCount:"infinite",animationName:"react-select-loading-indicator",animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},Se=function(e){var t=e.className,n=e.cx,r=e.getStyles,s=e.innerProps,i=e.isFocused,l=e.isRtl,u=e.theme.colors,c=i?u.neutral80:u.neutral20;return ke||(Object(a.injectGlobal)("@keyframes ","react-select-loading-indicator","{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),ke=!0),o.a.createElement("div",E({},s,{className:n(Object(a.css)(r("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),o.a.createElement(xe,{color:c,delay:0,offset:l}),o.a.createElement(xe,{color:c,delay:160,offset:!0}),o.a.createElement(xe,{color:c,delay:320,offset:!l}))};Se.defaultProps=
{size:4};var Ae=function(e){var t=e.children,n=e.innerProps;return o.a.createElement("div",n,t)},Pe=Ae,Ne=Ae,De=function(e){function t(){return b(this,t),x(this,O(t).apply(this,arguments))}return j(t,r["Component"]),v(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return o.a.createElement("div",n,t||o.a.createElement(we,{size:14}))}}]),t}(),Fe=function(e){function t(){return b(this,t),x(this,O(t).apply(this,arguments))}return j(t,r["Component"]),v(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.components,s=e.cx,i=e.data,l=e.getStyles,u=e.innerProps,c=e.isDisabled,d=e.removeProps,p=e.selectProps,m=r.Container,f=r.Label,h=r.Remove,b=w({className:s(Object(a.css)(l("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":c},n)},u),g={className:s(Object(a.css)(l("multiValueLabel",this.props)),{"multi-valu
e__label":!0},n)},v=w({className:s(Object(a.css)(l("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},d);return o.a.createElement(m,{data:i,innerProps:b,selectProps:p},o.a.createElement(f,{data:i,innerProps:g,selectProps:p},t),o.a.createElement(h,{data:i,innerProps:v,selectProps:p}))}}]),t}();y(Fe,"defaultProps",{cropWithEllipsis:!0});var Te={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.innerProps;return o.a.createElement("div",E({},i,{className:r(Object(a.css)(s("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||o.a.createElement(we,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,s=e.className,i=e.isDisabled,l=e.isFocused,u=e.innerRef,c=e.innerProps,d=e.menuIsOpen;return o.a.createElement("div",E({ref:u,className:n(Object(a.css)(r("control",e)),{control:!0,"control--is-disabled":i,"control--is-focused&q
uot;:l,"control--menu-is-open":d},s)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.innerProps;return o.a.createElement("div",E({},i,{className:r(Object(a.css)(s("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||o.a.createElement(je,null))},DownChevron:je,CrossIcon:we,Group:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.Heading,l=e.headingProps,u=e.label,c=e.theme,d=e.selectProps;return o.a.createElement("div",{className:r(Object(a.css)(s("group",e)),{group:!0},n)},o.a.createElement(i,E({},l,{selectProps:d,theme:c,getStyles:s,cx:r}),u),o.a.createElement("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,s=e.theme,i=(e.selectProps,C(e,["className","cx","getStyles","theme","selectProps"]));return o.a.createElement("div",E({className:n(Object
(a.css)(r("groupHeading",w({theme:s},i))),{"group-heading":!0},t)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles;return o.a.createElement("div",{className:r(Object(a.css)(s("indicatorsContainer",e)),{indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,s=e.innerProps;return o.a.createElement("span",E({},s,{className:n(Object(a.css)(r("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,s=e.innerRef,i=e.isHidden,l=e.isDisabled,u=e.theme,c=(e.selectProps,C(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return o.a.createElement("div",{className:Object(a.css)(r("input",w({theme:u},c)))},o.a.createElement(m.a,E({className:n(null,{inp
ut:!0},t),inputRef:s,inputStyle:function(e){return{background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}}(i),disabled:l},c)))},LoadingIndicator:Se,Menu:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.innerRef,l=e.innerProps,u=r(Object(a.css)(s("menu",e)),{menu:!0},n);return o.a.createElement("div",E({className:u},l,{ref:i}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.isMulti,l=e.innerRef;return o.a.createElement("div",{className:r(Object(a.css)(s("menuList",e)),{"menu-list":!0,"menu-list--is-multi":i},n),ref:l},t)},MenuPortal:G,LoadingMessage:H,NoOptionsMessage:W,MultiValue:Fe,MultiValueContainer:Pe,MultiValueLabel:Ne,MultiValueRemove:De,Option:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.isDisabled,l=e.isFocused,u=e.isSelected,c=e.innerRef,d=e.innerProps;return o.a.createElement("di
v",E({ref:c,className:r(Object(a.css)(s("option",e)),{option:!0,"option--is-disabled":i,"option--is-focused":l,"option--is-selected":u},n)},d),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.innerProps;return o.a.createElement("div",E({className:r(Object(a.css)(s("placeholder",e)),{placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.innerProps,l=e.isDisabled,u=e.isRtl;return o.a.createElement("div",E({className:r(Object(a.css)(s("container",e)),{"--is-disabled":l,"--is-rtl":u},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,s=e.getStyles,i=e.isDisabled,l=e.innerProps;return o.a.createElement("div",E({className:r(Object(a.css)(s("singleValue",e)),{"single-value":!0,"single-value--is-disabled":i},n)},l),t)},ValueContainer:ye
},Ie=function(e){return w({},Te,e.components)},Le={clearIndicator:Ce,container:function(e){var t=e.isDisabled;return{direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,s=r.borderRadius,a=r.spacing;return{alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:_e,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}
},groupHeading:function(e){var t=e.theme.spacing;return{color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,s=r.spacing.baseUnit;return{color:t?o.neutral
60:o.neutral20,display:"flex",padding:2*s,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:U,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,s=r.spacing,a=r.colors;return y(t={},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),y(t,"backgroundColor",a.neutral0),y(t,"borderRadius",o),y(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),y(t,"marginBottom",s.menuGutter),y(t,"marginTop",s.menuGutter),y(t,"position","absolute"),y(t,"width","100%"),y(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative"
,WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:B,option:function(e)
{var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,s=o.spacing,a=o.colors;return{backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"
;px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=w({},e);return Object.keys(t).forEach(function(r){e[r]?n[r]=function(n,o){return t[r](e[r](n,o),o)}:n[r]=t[r]}),n}var Re={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:
"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ze={backspaceRemovesValue:!0,blurInputOnSelect:L(),captureMenuScroll:!L(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ee(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ve,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absol
ute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},Ve=1,Be=function(e){function t(e){var n;b(this,t),y(k(k(n=x(this,O(t).call(this,e)))),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,isComposing:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),y(k(k(n)),"blockOptionHover",!1),y(k(k(n)),"clearFocusValueOnUpdate",!1),y(k(k(n)),"commonProps",void 0),y(
k(k(n)),"components",void 0),y(k(k(n)),"hasGroups",!1),y(k(k(n)),"initialTouchX",0),y(k(k(n)),"initialTouchY",0),y(k(k(n)),"inputIsHiddenAfterUpdate",void 0),y(k(k(n)),"instancePrefix",""),y(k(k(n)),"openAfterFocus",!1),y(k(k(n)),"scrollToFocusedOptionOnUpdate",!1),y(k(k(n)),"userIsDragging",void 0),y(k(k(n)),"controlRef",null),y(k(k(n)),"getControlRef",function(e){n.controlRef=e}),y(k(k(n)),"focusedOptionRef",null),y(k(k(n)),"getFocusedOptionRef",function(e){n.focusedOptionRef=e}),y(k(k(n)),"menuListRef",null),y(k(k(n)),"getMenuListRef",function(e){n.menuListRef=e}),y(k(k(n)),"inputRef",null),y(k(k(n)),"getInputRef",function(e){n.inputRef=e}),y(k(k(n)),"cacheComponents",function(e){n.components=Ie({components:e})}),y(k(k(n)),"focus",n.focusInput),y(k(k(n)),"blur",n.blurInput)
,y(k(k(n)),"onChange",function(e,t){var r=n.props;(0,r.onChange)(e,w({},t,{name:r.name}))}),y(k(k(n)),"setValue",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,o=n.props,s=o.closeMenuOnSelect,a=o.isMulti;n.onInputChange("",{action:"set-value"}),s&&(n.inputIsHiddenAfterUpdate=!a,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})}),y(k(k(n)),"selectOption",function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,s=n.state.selectValue;if(o)if(n.isOptionSelected(e,s)){var a=n.getOptionValue(e);n.setValue(s.filter(function(e){return n.getOptionValue(e)!==a}),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,s)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOp
tionLabel(e),isDisabled:!0}}):(n.setValue([].concat(S(s),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,s)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()}),y(k(k(n)),"removeValue",function(e){var t=n.state.selectValue,r=n.getOptionValue(e);n.onChange(t.filter(function(e){return n.getOptionValue(e)!==r}),{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()}),y(k(k(n)),"clearValue",function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})}),y(k(k(n)),"popValue",function(
){var e=n.state.selectValue,t=e[e.length-1];n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(e.slice(0,e.length-1),{action:"pop-value",removedValue:t})}),y(k(k(n)),"getOptionLabel",function(e){return n.props.getOptionLabel(e)}),y(k(k(n)),"getOptionValue",function(e){return n.props.getOptionValue(e)}),y(k(k(n)),"getStyles",function(e,t){var r=Le[e](t);r.boxSizing="border-box";var o=n.props.styles[e];return o?o(r,t):r}),y(k(k(n)),"getElementId",function(e){return"".concat(n.instancePrefix,"-").concat(e)}),y(k(k(n)),"getActiveDescendentId",function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,o=t.focusedOption;if(o&&e){var s=r.focusable.indexOf(o),a=r.render[s];return a&&a.key}}),y(k(k(n)),"announceAriaLiveSelection",function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:ge(t,r)})
}),y(k(k(n)),"announceAriaLiveContext",function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:be(t,w({},r,{label:n.props["aria-label"]}))})}),y(k(k(n)),"onMenuMouseDown",function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())}),y(k(k(n)),"onMenuMouseMove",function(e){n.blockOptionHover=!1}),y(k(k(n)),"onControlMouseDown",function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()}),y(k(k(n)),"onDropdownIndicatorMouseDown",function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("fir
st"),e.preventDefault(),e.stopPropagation()}}),y(k(k(n)),"onClearIndicatorMouseDown",function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,setTimeout(function(){return n.focusInput()}))}),y(k(k(n)),"onScroll",function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&D(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()}),y(k(k(n)),"onCompositionStart",function(){n.setState({isComposing:!0})}),y(k(k(n)),"onCompositionEnd",function(){n.setState({isComposing:!1})}),y(k(k(n)),"onTouchStart",function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)}),y(k(k(n)),"onTouchMove",function(e){var t=e.touches.item(0);if(t){var r=Math
.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||o>5}}),y(k(k(n)),"onTouchEnd",function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)}),y(k(k(n)),"onControlTouchEnd",function(e){n.userIsDragging||n.onControlMouseDown(e)}),y(k(k(n)),"onClearIndicatorTouchEnd",function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)}),y(k(k(n)),"onDropdownIndicatorTouchEnd",function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)}),y(k(k(n)),"handleInputChange",function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()}),y(k(k(n)),"onInputFocus",function(e){var t=n.props,r=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIs
HiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1}),y(k(k(n)),"onInputBlur",function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))}),y(k(k(n)),"onOptionHover",function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})}),y(k(k(n)),"shouldHideSelectedOptions",function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t}),y(k(k(n)),"onKeyDown",function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,s=t.escapeClearsValue,a=t.inputValue,i=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown
,d=t.tabSelectsValue,p=t.openMenuOnFocus,m=n.state,f=m.isComposing,h=m.focusedOption,b=m.focusedValue,g=m.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;n.focusValue("previous");break;case"ArrowRight":if(!r||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(b)n.removeValue(b);else{if(!o)return;r?n.popValue():i&&n.clearValue()}break;case"Tab":if(f)return;if(e.shiftKey||!u||!d||!h||p&&n.isOptionSelected(h,g))return;n.selectOption(h);break;case"Enter":if(u){if(!h)return;if(f)return;n.selectOption(h);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):i&&s&&n.clearValue();break;case" ":if(a)return;if(!u){n.openMenu("first");br
eak}if(!h)return;n.selectOption(h);break;case"ArrowUp":u?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":u?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!u)return;n.focusOption("pageup");break;case"PageDown":if(!u)return;n.focusOption("pagedown");break;case"Home":if(!u)return;n.focusOption("first");break;case"End":if(!u)return;n.focusOption("last");break;default:return}e.preventDefault()}});var r=e.value;n.cacheComponents=Object(s.default)(n.cacheComponents,X).bind(k(k(n))),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Ve);var o=N(r),a=n.buildMenuOptions(e,o);return n.state.menuOptions=a,n.state.selectValue=o,n}return j(t,r["Component"]),v(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch()
,this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.inputValue!==o){var s=N(e.value),a=this.buildMenuOptions(e,s),i=this.getNextFocusedValue(s),l=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:s,focusedOption:l,focusedValue:i})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&t
his.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?T(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&T(e,Math.max(t.offsetTop-o,0))}(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onIn
putChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this.state,n=t.menuOptions,r=t.selectValue,o=t.isFocused,s=this.props.isMulti,a="first"===e?0:n.focusable.length-1;if(!s){var i=n.focusable.indexOf(r[0]);i>-1&&(a=i)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[a]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,s=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var i=s.indexOf(a);a||(i=-1,this.announceAriaLiveContext({event:"value"}));var l=s.length-1,u=-1;if(s.length){switch(e){case"pre
vious":u=0===i?0:-1===i?l:i-1;break;case"next":i>-1&&i<l&&(u=i+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:s[u]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var s=0,a=o.indexOf(r);r||(a=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?s=a>0?a-1:o.length-1:"down"===e?s=(a+1)%o.length:"pageup"===e?(s=a-t)<0&&(s=0):"pagedown"===e?(s=a+t)>o.length-1&&(s=o.length-1):"last"===e&&(s=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[s],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisable
d:ve(o[s])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Re):w({},Re,this.props.theme):Re}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,s=o.classNamePrefix,a=o.isMulti,i=o.isRtl,l=o.options,u=this.state.selectValue,c=this.hasValue();return{cx:function(e,t,n,r){var o=[t,r];if(n&&e)for(var s in n)n.hasOwnProperty(s)&&n[s]&&o.push("".concat(P(e,s)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}.bind(null,s),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:c,isMulti:a,isRtl:i,options:l,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focus
edValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e
,t);var r=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===r})}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventLis
tener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(e,t){var n=this,r=e.inputValue,o=void 0===r?"":r,s=function(e,r){var s=n.isOptionDisabled(e,t),a=n.isOptionSelected(e,t),i=n.getOptionLabel(e),l=n.getOpti
onValue(e);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:i,value:l,data:e},o))){var u=s?void 0:function(){return n.onOptionHover(e)},c=s?void 0:function(){return n.selectOption(e)},d="".concat(n.getElementId("option"),"-").concat(r);return{innerProps:{id:d,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:s,isSelected:a,key:d,label:i,type:"option",value:l}}};return e.options.reduce(function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map(function(t,n){var o=s(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o}).filter(Boolean);if(o.length){var a="".concat(n.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:a,data:t,options:o})}}else{var i=s(t,"".concat(r));i&&(e.render.push(i),e.focusable.push(t))}return e},{render:[],focusable:[]})}},{key:"constructAriaLiveMe
ssage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,s=this.props,a=s.options,i=s.menuIsOpen,l=s.inputValue,u=s.screenReaderStatus,c=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",d=o&&i?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",p=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({
inputValue:l,screenReaderMessage:u({count:this.countOptions()})});return"".concat(c," ").concat(d," ").concat(p," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,s=e.inputValue,a=e.tabIndex,i=this.components.Input,l=this.state.inputIsHidden,u=r||this.getElementId("input");if(!n)return o.a.createElement(ne,{id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:A,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,value:""});var c={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},d=this.commonProps,p=d.cx,m=d.theme,f=d.selectProps;return o.a.createElement(i,E({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDis
abled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:f,spellCheck:"false",tabIndex:a,theme:m,type:"text",value:s},c))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,s=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,m=c.isMulti,f=c.inputValue,h=c.placeholder,b=this.state,g=b.selectValue,v=b.focusedValue,y=b.isFocused;if(!this.hasValue()||!d)return f?null:o.a.createElement(l,E({},u,{key:"placeholder",isDisabled:p,isFocused:y}),h);if(m)return g.map(function(t){var i=t===v;return o.a.createElement(n,E({},u,{components:{Container:r,Label:s,Remove:a},isFocused:i,isDisabled:p,key:e.getOptionValue(t),removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e
){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(f)return null;var w=g[0];return o.a.createElement(i,E({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,s=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||s)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,E({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,s=n.isLoading,a=this.state.isFocused;if(!e||!s)return null;return o.a.createElement(e,E({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"
renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,s=this.props.isDisabled,a=this.state.isFocused;return o.a.createElement(n,E({},r,{isDisabled:s,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,E({},t,{innerProps:s,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,s=t.Menu,a=t.MenuList,i=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state,m=p.focusedOption,f=p.menuOptions,h=this.props,b=h.captureMenuScroll,g=h.inputValue,v=h.isLoading,y=h.loa
dingMessage,w=h.minMenuHeight,j=h.maxMenuHeight,O=h.menuIsOpen,_=h.menuPlacement,k=h.menuPosition,x=h.menuPortalTarget,S=h.menuShouldBlockScroll,A=h.menuShouldScrollIntoView,P=h.noOptionsMessage,N=h.onMenuScrollToTop,D=h.onMenuScrollToBottom;if(!O)return null;var F,T=function(t){var n=m===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,o.a.createElement(c,E({},d,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())F=f.render.map(function(t){if("group"===t.type){t.type;var s=C(t,["type"]),a="".concat(t.key,"-heading");return o.a.createElement(n,E({},d,s,{Heading:r,headingProps:{id:a},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return T(e)}))}if("option"===t.type)return T(t)});else if(v){var I=y({inputValue:g});if(null===I)return null;F=o.a.createElement(l,d,I)}else{var L=P({inputValue:g});if(null===L)return null;F=o.a.createElement(u,d,L)}var M={minMenuHeight:w,maxMenuHeight:j,m
enuPlacement:_,menuPosition:k,menuShouldScrollIntoView:A},R=o.a.createElement(z,E({},d,M),function(t){var n=t.ref,r=t.placerProps,i=r.placement,l=r.maxHeight;return o.a.createElement(s,E({},d,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:i}),o.a.createElement(he,{isEnabled:b,onTopArrive:N,onBottomArrive:D},o.a.createElement(me,{isEnabled:S},o.a.createElement(a,E({},d,{innerRef:e.getMenuListRef,isLoading:v,maxHeight:l}),F))))});return x||"fixed"===k?o.a.createElement(i,E({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:_,menuPosition:k}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,s=t.isMulti,a=t.name,i=this.state.selectValue;if(a&&!r){if(s){if(n){var l=i.map(function(t){return e.getOptionValue(t)}).join(n);return o.a.createElement("input",{name:a,type:"hidden",value:l})}var u=i.length>0?i.map(function(t
,n){return o.a.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):o.a.createElement("input",{name:a,type:"hidden"});return o.a.createElement("div",null,u)}var c=i[0]?this.getOptionValue(i[0]):"";return o.a.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?o.a.createElement(te,{"aria-live":"assertive"},o.a.createElement("p",{id:"aria-selection-event"},"Â ",this.state.ariaLiveSelection),o.a.createElement("p",{id:"aria-context"},"Â ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,s=e.ValueContainer,a=this.props,i=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocuse
d,p=this.commonProps=this.getCommonProps();return o.a.createElement(r,E({},p,{className:i,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),o.a.createElement(t,E({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),o.a.createElement(s,E({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),o.a.createElement(n,E({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}();y(Be,"defaultProps",ze);var Ue={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},We=function(e){var t,n;return n=t=function(t){function n(){var e,t;b(this,n);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return y(k(k(t=x(this,(e=O(n)).call.apply(e,[this].concat
(o))))),"select",void 0),y(k(k(t)),"state",{inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue}),y(k(k(t)),"onChange",function(e,n){t.callProp("onChange",e,n),t.setState({value:e})}),y(k(k(t)),"onInputChange",function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})}),y(k(k(t)),"onMenuOpen",function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})}),y(k(k(t)),"onMenuClose",function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})}),t}return j(n,r["Component"]),v(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.pro
ps[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,C(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return o.a.createElement(e,E({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(),y(t,"defaultProps",Ue),n},He={cacheOptions:!1,defaultOptions:!1,filterOption:null},Ge=function(e){var t,n;return n=t=function(t){function n(e){var t;return b(this,n),y(k(k(t=x(this,O(n).call(this
)))),"select",void 0),y(k(k(t)),"lastRequest",void 0),y(k(k(t)),"mounted",!1),y(k(k(t)),"optionsCache",{}),y(k(k(t)),"handleInputChange",function(e,n){var r=t.props,o=r.cacheOptions,s=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,n,r.onInputChange);if(!s)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&t.optionsCache[s])t.setState({inputValue:s,loadedInputValue:s,loadedOptions:t.optionsCache[s],isLoading:!1,passEmptyOptions:!1});else{var a=t.lastRequest={};t.setState({inputValue:s,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},function(){t.loadOptions(s,function(e){t.mounted&&(e&&(t.optionsCache[s]=e),a===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:s,loadedOptions:e||[],passEmptyOptions:!1})))})})}return s}),t.
state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return j(n,r["Component"]),v(n,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}})}},{key:"componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{ke
y:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,function(){return t()})}},{key:"render",value:function(){var t=this,n=this.props,r=(n.loadOptions,C(n,["loadOptions"])),s=this.state,a=s.defaultOptions,i=s.inputValue,l=s.isLoading,u=s.loadedInputValue,c=s.loadedOptions,d=s.passEmptyOptions?[]:i&&u?c:a||[];return o.a.createElement(e,E({},r,{ref:function(e){t.select=e},options:d,isLoading:l,onInputChange:this.handleInputChange}))}}]),n}(),y(t,"defaultProps",He),n},$e=We(Be),qe=Ge($e),Ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=String(e).toLowerCase(),r=String(t.value).toLowerCase(),o=String(t.label).toLowerCase();return r===n||o===n},Xe=w({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:functio
n(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n){return!(!e||t.some(function(t){return Ye(e,t)})||n.some(function(t){return Ye(e,t)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),Je=function(e){var t,n;return n=t=function(t){function n(e){var t;b(this,n),y(k(k(t=x(this,O(n).call(this,e)))),"select",void 0),y(k(k(t)),"onChange",function(e,n){var r=t.props,o=r.getNewOptionData,s=r.inputValue,a=r.isMulti,i=r.onChange,l=r.onCreateOption,u=r.value;if("select-option"!==n.action)return i(e,n);var c=t.state.newOption,d=Array.isArray(e)?e:[e];if(d[d.length-1]!==c)i(e,n);else if(l)l(s);else{var p=o(s,s),m={action:"create-option"};i(a?[].concat(S(N(u)),[p]):p,m)}});var r=e.options||[];return t.state={newOption:void 0,options:r},t}return j(n,r["Component"]),v(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,r=e.forma
tCreateLabel,o=e.getNewOptionData,s=e.inputValue,a=e.isLoading,i=e.isValidNewOption,l=e.value,u=e.options||[],c=this.state.newOption;c=i(s,N(l),u)?o(s,r(s)):void 0,this.setState({newOption:c,options:!t&&a||!c?u:"first"===n?[c].concat(S(u)):[].concat(S(u),[c])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,n=E({},this.props),r=this.state.options;return o.a.createElement(e,E({},n,{ref:function(e){t.select=e},options:r,onChange:this.onChange}))}}]),n}(),y(t,"defaultProps",Xe),n},Qe=We(Je(Be)),Ke=We(Je(Be)),Ze=Ge(Ke),et=function(e){var t=e.component,n=e.duration,r=void 0===n?1:n,s=e.in,a=(e.onExited,C(e,["component","duration","in","onExited"])),i={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(r,"ms")},exiting:{opacity:0},exited:{opacity:0}};return
o.a.createElement(f.Transition,{mountOnEnter:!0,unmountOnExit:!0,in:s,timeout:r},function(e){var n={style:w({},i[e])};return o.a.createElement(t,E({innerProps:n},a))})},tt=260,nt=function(e){function t(){var e,n;b(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return y(k(k(n=x(this,(e=O(t)).call.apply(e,[this].concat(o))))),"duration",tt),y(k(k(n)),"rafID",void 0),y(k(k(n)),"state",{width:"auto"}),y(k(k(n)),"transition",{exiting:{width:0,transition:"width ".concat(n.duration,"ms ease-out")},exited:{width:0}}),y(k(k(n)),"getWidth",function(e){e&&isNaN(n.state.width)&&(n.rafID=window.requestAnimationFrame(function(){var t=e.getBoundingClientRect().width;n.setState({width:t})}))}),y(k(k(n)),"getStyle",function(e){return{overflow:"hidden",whiteSpace:"nowrap",width:e}}),y(k(k(n)),"getTransition",function(e){return n.tr
ansition[e]}),n}return j(t,r["Component"]),v(t,[{key:"componentWillUnmount",value:function(){this.rafID&&window.cancelAnimationFrame(this.rafID)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.in,s=this.state.width;return o.a.createElement(f.Transition,{enter:!1,mountOnEnter:!0,unmountOnExit:!0,in:r,timeout:this.duration},function(t){var r=w({},e.getStyle(s),e.getTransition(t));return o.a.createElement("div",{ref:e.getWidth,style:r},n)})}}]),t}(),rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ie({components:e}),n=t.Input,r=t.MultiValue,s=t.Placeholder,a=t.SingleValue,i=t.ValueContainer,l=C(t,["Input","MultiValue","Placeholder","SingleValue","ValueContainer"]);return w({Input:function(e){return function(t){t.in,t.onExited,t.appear,t.enter,t.exit;var n=C(t,["in","onExited","appear","en
ter","exit"]);return o.a.createElement(e,n)}}(n),MultiValue:function(e){return function(t){var n=t.in,r=t.onExited,s=C(t,["in","onExited"]);return o.a.createElement(nt,{in:n,onExited:r},o.a.createElement(e,E({cropWithEllipsis:n},s)))}}(r),Placeholder:function(e){return function(t){return o.a.createElement(et,E({component:e,duration:t.isMulti?tt:1},t))}}(s),SingleValue:function(e){return function(t){return o.a.createElement(et,E({component:e},t))}}(a),ValueContainer:function(e){return function(t){return o.a.createElement(f.TransitionGroup,E({component:e},t))}}(i)},l)},ot=rt(),st=(ot.Input,ot.MultiValue,ot.Placeholder,ot.SingleValue,ot.ValueContainer,Object(s.default)(rt,X)),at=We(Be);t.default=at},"./node_modules/react-transition-group/CSSTransition.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/react-transition-group/CSSTransition.js ***!
+ \**************************************************************/
+/*! no static exports found */function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(/*! prop-types */"./node_modules/prop-types/index.js")),o=u(n(/*! dom-helpers/class/addClass */"./node_modules/dom-helpers/class/addClass.js")),s=u(n(/*! dom-helpers/class/removeClass */"./node_modules/dom-helpers/class/removeClass.js")),a=u(n(/*! react */"react")),i=u(n(/*! ./Transition */"./node_modules/react-transition-group/Transition.js")),l=n(/*! ./utils/PropTypes */"./node_modules/react-transition-group/utils/PropTypes.js");function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c
=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,o.default)(e,t)})},p=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,s.default)(e,t)})},m=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),d(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNa
mes("enter").doneClassName;t.removeClasses(e,n?"appear":"enter"),d(e,r),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),d(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),d(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"!=typeof n?n[e]:n+"-"+e;return{className:r,activeClassName:"string"!=typeof n?n[e+"Active"]:r+"-active",doneClassName:"string"!=typeof n?n[e+"Done"]:r+"-done"}},t}!function(e,t){e.prot
otype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var n=t.prototype;return n.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,s=n.doneClassName;r&&p(e,r),o&&p(e,o),s&&p(e,s)},n.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,d(e,t))},n.render=function(){var e=c({},this.props);return delete e.classNames,a.default.createElement(i.default,c({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(a.default.Component);m.propTypes=c({},i.default.propTypes,{classNames:l.classNamesShape,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func});var f=m;t.default=f,e.exports=t.default},"./node_modules/react-transition-group/ReplaceTransition.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/react-transition-group/ReplaceTransition.js ***!
+ \******************************************************************/
+/*! no static exports found */function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=i(n(/*! prop-types */"./node_modules/prop-types/index.js")),o=i(n(/*! react */"react")),s=n(/*! react-dom */"react-dom"),a=i(n(/*! ./TransitionGroup */"./node_modules/react-transition-group/TransitionGroup.js"));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.hand
leLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,a=this.props.children,i=o.default.Children.toArray(a)[t];i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]&&this.props[e]((0,s.findDOMNode)(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,r=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n
)>=0||(o[n]=e[n]);return o}(e,["children","in"]),s=o.default.Children.toArray(t),i=s[0],l=s[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.default.createElement(a.default,r,n?o.default.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.default.Component);l.propTypes={in:r.default.bool.isRequired,children:function(e,t){return 2!==o.default.Children.count(e[t])?new Error('"'+t+'" must be exactly two transition components.'):null}};var u=l;t.default=u,e.exports=t.default},"./node_modules/react-transition-group/Transition.js":
+/*!***********************************************************!*\
+ !*** ./node_modules/react-transition-group/Transition.js ***!
+ \***********************************************************/
+/*! no static exports found */function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(/*! prop-types */"./node_modules/prop-types/index.js")),o=l(n(/*! react */"react")),s=l(n(/*! react-dom */"react-dom")),a=n(/*! react-lifecycles-compat */"./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js"),i=n(/*! ./utils/PropTypes */"./node_modules/react-transition-group/utils/PropTypes.js");function l(e){return e&&e.__esModule?e:{default:e}}var u="unmounted";t.UNMOUNTED=u;var c="exited";t.EXITED=c;var d="entering&q
uot;;t.ENTERING=d;var p="entered";t.ENTERED=p;t.EXITING="exiting";var m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,s=n.transitionGroup,a=s&&!s.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=c,r.appearStatus=d):o=p:o=t.unmountOnExit||t.mountOnEnter?u:c,r.state={status:o},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:c}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==p&&(t=d):n!==d&&n!==p||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=funct
ion(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=s.default.findDOMNode(this);t===d?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,s=this.getTimeouts(),a=o?s.appear:s.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:d},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,function(){n.safeSetState({status:p},function(){n.props.onEntered(e,o)})})})):this.safeSetState({status:p},function(){n.props.onEntered(e)})},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this
.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:c},function(){t.props.onExited(e)})})})):this.safeSetState({status:c},function(){t.props.onExited(e)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.c
hildren,r=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var s=o.default.Children.only(n);return o.default.cloneElement(s,r)},t}(o.default.Component);function f(){}m.contextTypes={transitionGroup:r.object},m.childContextTypes={transitionGroup:function(){}},m.propTypes={children:r.oneOfType([r.func.isRequired,r.element.isRequired]).isRequired,in:r.bool,mountOnEnter:r.bool,unmountOnExit:r.bool,appear:r.bool,enter:r.bool,exit:r.bool,timeout:function(e){var t=i.timeoutsShape;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)
r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:r.func,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},m.UNMOUNTED=0,m.EXITED=1,m.ENTERING=2,m.ENTERED=3,m.EXITING=4;var h=(0,a.polyfill)(m);t.default=h},"./node_modules/react-transition-group/TransitionGroup.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/react-transition-group/TransitionGroup.js ***!
+ \****************************************************************/
+/*! no static exports found */function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=i(n(/*! prop-types */"./node_modules/prop-types/index.js")),o=i(n(/*! react */"react")),s=n(/*! react-lifecycles-compat */"./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js"),a=n(/*! ./utils/ChildMapping */"./node_modules/react-transition-group/utils/ChildMapping.js");function i(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).
handleExited.bind(u(u(r)));return r.state={handleExited:o,firstRender:!0},r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},n.componentDidMount=function(){this.appeared=!0,this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=l({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n
=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),s=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?s:o.default.createElement(t,r,s)},t}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={component:r.default.any,children:r.default.node,appear:r.default.bool,enter:r.default.bool,exit:r.default.bool,childFactory:r.default.func},d.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,s.polyfill)(d);t.default=p,e.exports=t.default},"./node_modules/react-transition-group/index.js":
+/*!******************************************************!*\
+ !*** ./node_modules/react-transition-group/index.js ***!
+ \******************************************************/
+/*! no static exports found */function(e,t,n){"use strict";var r=i(n(/*! ./CSSTransition */"./node_modules/react-transition-group/CSSTransition.js")),o=i(n(/*! ./ReplaceTransition */"./node_modules/react-transition-group/ReplaceTransition.js")),s=i(n(/*! ./TransitionGroup */"./node_modules/react-transition-group/TransitionGroup.js")),a=i(n(/*! ./Transition */"./node_modules/react-transition-group/Transition.js"));function i(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:s.default,ReplaceTransition:o.default,CSSTransition:r.default}},"./node_modules/react-transition-group/utils/ChildMapping.js":
+/*!*******************************************************************!*\
+ !*** ./node_modules/react-transition-group/utils/ChildMapping.js ***!
+ \*******************************************************************/
+/*! no static exports found */function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=s,t.getInitialChildMapping=function(e,t){return o(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var i=o(e.children),l=s(t,i);return Object.keys(l).forEach(function(o){var s=l[o];if((0,r.isValidElement)(s)){var u=o in t,c=o in i,d=t[o],p=(0,r.isValidElement)(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:d.props.in,exit:a(s,"exit",e),enter:a(s,"enter",e)})):l[o]=(0,r.cloneElement)(s,{in:!1}):l[o]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:a(s,"exit",e),enter:a(s,"enter",e)})}}),l};var r=n(/*! react */"react");function
o(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function s(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),s=[];for(var a in e)a in t?s.length&&(o[a]=s,s=[]):s.push(a);var i={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];i[o[l][r]]=n(u)}i[l]=n(l)}for(r=0;r<s.length;r++)i[s[r]]=n(s[r]);return i}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},"./node_modules/react-transition-group/utils/PropTypes.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/react-transition-group/utils/PropTypes.js ***!
+ \****************************************************************/
+/*! no static exports found */function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(/*! prop-types */"./node_modules/prop-types/index.js"));var o=r.default.oneOfType([r.default.number,r.default.shape({enter:r.default.number,exit:r.default.number,appear:r.default.number}).isRequired]);t.timeoutsShape=o;var s=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,exit:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterDone:r.default.string,enterActive:r.default.string,exit:r.default.string,exitDone:r.default.string,exitActive:r.default.string})]);t.classNamesShape=s},"./node_modules/stylis-rule-sheet/index.js":
+/*!*************************************************!*\
+ !*** ./node_modules/stylis-rule-sheet/index.js ***!
+ \*************************************************/
+/*! no static exports found */function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,s,a,i,l,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},"./node_modules/webpack/buildin/global.js":
+/*!***********************************!*\
+ !*** (webpack)/buildin/global.js ***!
+ \***********************************/
+/*! no static exports found */function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},lodash:
+/*!*************************!*\
+ !*** external "lodash" ***!
+ \*************************/
+/*! no static exports found */function(e,t){e.exports=lodash},react:
+/*!************************!*\
+ !*** external "React" ***!
+ \************************/
+/*! no static exports found */function(e,t){e.exports=React},"react-dom":
+/*!***************************!*\
+ !*** external "ReactDOM" ***!
+ \***************************/
+/*! no static exports found */function(e,t){e.exports=ReactDOM}});
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcorganizersblockcontentjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/organizers/block-content.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/organizers/block-content.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/organizers/block-content.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,13 +13,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Internal dependencies
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> import { AvatarImage } from '../shared/avatar';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { ItemTitle, ItemHTMLContent } from '../shared/block-content';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import {ItemTitle, ItemHTMLContent, ItemPermalink} from '../shared/block-content';
</ins><span class="cx" style="display: block; padding: 0 10px"> import GridContentLayout from '../shared/grid-layout/block-content';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> class OrganizersBlockContent extends Component {
</span><span class="cx" style="display: block; padding: 0 10px"> render() {
</span><span class="cx" style="display: block; padding: 0 10px"> const { attributes, organizerPosts } = this.props;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const { show_avatars, avatar_size, avatar_align, content, excerpt_more } = attributes;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const { show_avatars, avatar_size, avatar_align, content } = attributes;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return (
</span><span class="cx" style="display: block; padding: 0 10px"> <GridContentLayout
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,7 +26,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> className="wordcamp-organizers-block"
</span><span class="cx" style="display: block; padding: 0 10px"> { ...this.props }
</span><span class="cx" style="display: block; padding: 0 10px"> >
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- { organizerPosts.map( ( post ) =>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ { organizerPosts.map( ( post ) => /* Note that organizer posts are not 'public', so there are no permalinks. */
</ins><span class="cx" style="display: block; padding: 0 10px"> <div
</span><span class="cx" style="display: block; padding: 0 10px"> key={ post.slug }
</span><span class="cx" style="display: block; padding: 0 10px"> className={ classnames(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -38,7 +38,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> className="wordcamp-organizer-title"
</span><span class="cx" style="display: block; padding: 0 10px"> headingLevel={ 3 }
</span><span class="cx" style="display: block; padding: 0 10px"> title={ post.title.rendered.trim() }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- link={ post.link }
</del><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> { show_avatars &&
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -47,7 +46,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> name={ post.title.rendered.trim() || '' }
</span><span class="cx" style="display: block; padding: 0 10px"> size={ avatar_size }
</span><span class="cx" style="display: block; padding: 0 10px"> url={ post.avatar_urls[ '24' ] }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- imageLink={ post.link }
</del><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -55,8 +53,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <ItemHTMLContent
</span><span class="cx" style="display: block; padding: 0 10px"> className={ classnames( 'wordcamp-organizer-content-' + content ) }
</span><span class="cx" style="display: block; padding: 0 10px"> content={ 'full' === content ? post.content.rendered.trim() : post.excerpt.rendered.trim() }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- link={ ( 'full' === content || excerpt_more ) ? post.link : null }
- linkText={ 'full' === content ? __( 'Visit organizer page', 'wordcamporg' ) : __( 'Read more', 'wordcamporg' ) }
</del><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> </div>,
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcorganizersinspectorcontrolsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/organizers/inspector-controls.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/organizers/inspector-controls.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/organizers/inspector-controls.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -36,7 +36,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> class OrganizerInspectorControls extends Component {
</span><span class="cx" style="display: block; padding: 0 10px"> render() {
</span><span class="cx" style="display: block; padding: 0 10px"> const { attributes, setAttributes, blockData } = this.props;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const { show_avatars, avatar_size, avatar_align, content, excerpt_more, sort } = attributes;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const { show_avatars, avatar_size, avatar_align, content, sort } = attributes;
</ins><span class="cx" style="display: block; padding: 0 10px"> const { schema = DEFAULT_SCHEMA, options = DEFAULT_OPTIONS } = blockData;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return (
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -90,17 +90,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> onChange={ ( value ) => setAttributes( { content: value } ) }
</span><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> </PanelRow>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
- { 'excerpt' === content &&
- <PanelRow>
- <ToggleControl
- label={ __( 'Read More Link', 'wordcamporg' ) }
- help={ __( 'Show a link at the end of the excerpt (some themes already include this)', 'wordcamporg' ) }
- checked={ excerpt_more }
- onChange={ ( value ) => setAttributes( { excerpt_more: value } ) }
- />
- </PanelRow>
- }
</del><span class="cx" style="display: block; padding: 0 10px"> </PanelBody>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <PanelBody title={ __( 'Sorting & Filtering', 'wordcamporg' ) } initialOpen={ false }>
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsessionsblockcontentjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/block-content.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/block-content.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/block-content.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,7 +13,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Internal dependencies
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { ItemTitle, ItemHTMLContent } from '../shared/block-content';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import {ItemTitle, ItemHTMLContent, ItemPermalink} from '../shared/block-content';
</ins><span class="cx" style="display: block; padding: 0 10px"> import { tokenSplit, arrayTokenReplace, intersperse, listify } from '../shared/i18n';
</span><span class="cx" style="display: block; padding: 0 10px"> import GridContentLayout from '../shared/grid-layout/block-content';
</span><span class="cx" style="display: block; padding: 0 10px"> import FeaturedImage from '../shared/featured-image';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -136,7 +136,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> render() {
</span><span class="cx" style="display: block; padding: 0 10px"> const { attributes, sessionPosts } = this.props;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const { show_speaker, show_images, image_align, featured_image_width, content, excerpt_more, show_meta, show_category } = attributes;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const { show_speaker, show_images, image_align, featured_image_width, content, show_meta, show_category } = attributes;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return (
</span><span class="cx" style="display: block; padding: 0 10px"> <GridContentLayout
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -178,8 +178,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <ItemHTMLContent
</span><span class="cx" style="display: block; padding: 0 10px"> className={ classnames( 'wordcamp-session-content-' + content ) }
</span><span class="cx" style="display: block; padding: 0 10px"> content={ 'full' === content ? post.content.rendered.trim() : post.excerpt.rendered.trim() }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- link={ ( 'full' === content || excerpt_more ) ? post.link : null }
- linkText={ 'full' === content ? __( 'Visit session page', 'wordcamporg' ) : __( 'Read more', 'wordcamporg' ) }
</del><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -193,6 +191,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ { ( 'full' === content ) &&
+ <ItemPermalink
+ link={ post.link }
+ linkText={ __( 'Visit session page', 'wordcamporg' ) }
+ />
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> ) }
</span><span class="cx" style="display: block; padding: 0 10px"> </GridContentLayout>
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsessionsinspectorcontrolsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/inspector-controls.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/inspector-controls.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/inspector-controls.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,7 +15,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> class SessionsInspectorControls extends Component {
</span><span class="cx" style="display: block; padding: 0 10px"> render() {
</span><span class="cx" style="display: block; padding: 0 10px"> const { attributes, setAttributes, blockData } = this.props;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const { show_speaker, content, excerpt_more, show_meta, show_category, sort } = attributes;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const { show_speaker, content, show_meta, show_category, sort } = attributes;
</ins><span class="cx" style="display: block; padding: 0 10px"> const { options } = blockData;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return (
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -30,16 +30,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> onChange={ ( value ) => setAttributes( { content: value } ) }
</span><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> </PanelRow>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- { 'excerpt' === content &&
- <PanelRow>
- <ToggleControl
- label={ __( 'Read More Link', 'wordcamporg' ) }
- help={ __( 'Show a link at the end of the excerpt (some themes already include this)', 'wordcamporg' ) }
- checked={ excerpt_more === undefined ? false : excerpt_more }
- onChange={ ( value ) => setAttributes( { excerpt_more: value } ) }
- />
- </PanelRow>
- }
</del><span class="cx" style="display: block; padding: 0 10px"> <PanelRow>
</span><span class="cx" style="display: block; padding: 0 10px"> <ToggleControl
</span><span class="cx" style="display: block; padding: 0 10px"> label={ __( 'Details', 'wordcamporg' ) }
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsharedblockcontentindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/shared/block-content/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/shared/block-content/index.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/shared/block-content/index.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,13 +60,27 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <Disabled>
</span><span class="cx" style="display: block; padding: 0 10px"> <RawHTML children={ content } />
</span><span class="cx" style="display: block; padding: 0 10px"> { link &&
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <p className="wordcamp-item-permalink">
- <a href={ link }>
- { linkText || __( 'Read more', 'wordcamporg' ) }
- </a>
- </p>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <ItemPermalink
+ link={ link }
+ linkText={ linkText }
+ />
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> </Disabled>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+export function ItemPermalink( { className, link, linkText } ) {
+ const classes = [
+ 'wordcamp-item-permalink',
+ className,
+ ];
+
+ return (
+ <p className={ classnames( classes ) }>
+ <a href={ link }>
+ { linkText || __( 'Read more', 'wordcamporg' ) }
+ </a>
+ </p>
+ );
+}
</ins></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcspeakersblockcontentjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/block-content.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/block-content.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/block-content.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,7 +16,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Internal dependencies
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> import { AvatarImage } from '../shared/avatar';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { ItemTitle, ItemHTMLContent } from '../shared/block-content';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import { ItemTitle, ItemHTMLContent, ItemPermalink } from '../shared/block-content';
</ins><span class="cx" style="display: block; padding: 0 10px"> import { tokenSplit, arrayTokenReplace } from '../shared/i18n';
</span><span class="cx" style="display: block; padding: 0 10px"> import GridContentLayout from '../shared/grid-layout/block-content';
</span><span class="cx" style="display: block; padding: 0 10px"> import './block-content.scss';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -88,7 +88,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> const { attributes, speakerPosts, tracks } = this.props;
</span><span class="cx" style="display: block; padding: 0 10px"> const {
</span><span class="cx" style="display: block; padding: 0 10px"> show_avatars, avatar_size, avatar_align,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- content, excerpt_more, show_session,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ content, show_session,
</ins><span class="cx" style="display: block; padding: 0 10px"> } = attributes;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return (
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -125,8 +125,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <ItemHTMLContent
</span><span class="cx" style="display: block; padding: 0 10px"> className={ classnames( 'wordcamp-speaker-content-' + content ) }
</span><span class="cx" style="display: block; padding: 0 10px"> content={ 'full' === content ? post.content.rendered.trim() : post.excerpt.rendered.trim() }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- link={ ( 'full' === content || excerpt_more ) ? post.link : null }
- linkText={ 'full' === content ? __( 'Visit session page', 'wordcamporg' ) : __( 'Read more', 'wordcamporg' ) }
</del><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -136,6 +134,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> tracks={ tracks }
</span><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ { ( 'full' === content ) &&
+ <ItemPermalink
+ link={ post.link }
+ linkText={ __( 'Visit speaker page', 'wordcamporg' ) }
+ />
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>,
</span><span class="cx" style="display: block; padding: 0 10px"> ) }
</span><span class="cx" style="display: block; padding: 0 10px"> </GridContentLayout>
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcspeakersinspectorcontrolsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/inspector-controls.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/inspector-controls.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/inspector-controls.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,7 +35,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> class SpeakerInspectorControls extends Component {
</span><span class="cx" style="display: block; padding: 0 10px"> render() {
</span><span class="cx" style="display: block; padding: 0 10px"> const { attributes, setAttributes, blockData } = this.props;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const { show_avatars, avatar_size, avatar_align, content, excerpt_more, show_session, sort } = attributes;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const { show_avatars, avatar_size, avatar_align, content, show_session, sort } = attributes;
</ins><span class="cx" style="display: block; padding: 0 10px"> const { schema = DEFAULT_SCHEMA, options = DEFAULT_OPTIONS } = blockData;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return (
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -86,16 +86,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> onChange={ ( value ) => setAttributes( { content: value } ) }
</span><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> </PanelRow>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- { 'excerpt' === content &&
- <PanelRow>
- <ToggleControl
- label={ __( 'Read More Link', 'wordcamporg' ) }
- help={ __( 'Show a link at the end of the excerpt (some themes already include this)', 'wordcamporg' ) }
- checked={ excerpt_more }
- onChange={ ( value ) => setAttributes( { excerpt_more: value } ) }
- />
- </PanelRow>
- }
</del><span class="cx" style="display: block; padding: 0 10px"> <PanelRow>
</span><span class="cx" style="display: block; padding: 0 10px"> <ToggleControl
</span><span class="cx" style="display: block; padding: 0 10px"> label={ __( 'Session Information', 'wordcamporg' ) }
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsponsorsblockcontentjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/block-content.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/block-content.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/block-content.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,7 +16,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> import FeaturedImage from '../shared/featured-image';
</span><span class="cx" style="display: block; padding: 0 10px"> import GridContentLayout from '../shared/grid-layout/block-content';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { ItemTitle, ItemHTMLContent } from '../shared/block-content';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import {ItemTitle, ItemHTMLContent, ItemPermalink} from '../shared/block-content';
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Renders individual sponsor post inside editor.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -27,7 +27,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {Element}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function SponsorDetail( { sponsorPost, attributes } ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const { show_name, show_logo, content, excerpt_more, featured_image_width } = attributes;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const { show_name, show_logo, content, featured_image_width } = attributes;
</ins><span class="cx" style="display: block; padding: 0 10px"> const featuredImageSizes = get( sponsorPost, '_embedded.wp:featuredmedia[0].media_details.sizes', {} );
</span><span class="cx" style="display: block; padding: 0 10px"> const displayContent = 'full' === content ? sponsorPost.content.rendered.trim() : sponsorPost.excerpt.rendered.trim();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,10 +57,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <ItemHTMLContent
</span><span class="cx" style="display: block; padding: 0 10px"> className={ classnames( 'wordcamp-sponsor-content' ) }
</span><span class="cx" style="display: block; padding: 0 10px"> content={ displayContent }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- link={ ( 'full' === content || excerpt_more ) ? sponsorPost.link : null }
- linkText={ 'full' === content ? __( 'Visit sponsor page', 'wordcamporg' ) : __( 'Read more', 'wordcamporg' ) }
</del><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ { ( 'full' === content ) &&
+ <ItemPermalink
+ link={ sponsorPost.link }
+ linkText={ __( 'Visit sponsor page', 'wordcamporg' ) }
+ />
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksassetssrcsponsorsinspectorcontrolsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/inspector-controls.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/inspector-controls.js 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/inspector-controls.js 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,7 +35,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ];
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> const { attributes, setAttributes } = this.props;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const { show_name, show_logo, sort_by, excerpt_more, content } = attributes;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const { show_name, show_logo, sort_by, content } = attributes;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return (
</span><span class="cx" style="display: block; padding: 0 10px"> <InspectorControls>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -75,17 +75,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> />
</span><span class="cx" style="display: block; padding: 0 10px"> </PanelRow>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- { 'excerpt' === content &&
- <PanelRow>
- <ToggleControl
- label={ __( 'Read More Link', 'wordcamporg' ) }
- help={ __( 'Show a link at the end of the excerpt (some themes already include this)', 'wordcamporg' ) }
- checked={ excerpt_more }
- onChange={ ( value ) => setAttributes( { excerpt_more: value } ) }
- />
- </PanelRow>
- }
-
</del><span class="cx" style="display: block; padding: 0 10px"> <PanelRow>
</span><span class="cx" style="display: block; padding: 0 10px"> <SelectControl
</span><span class="cx" style="display: block; padding: 0 10px"> label={ __( 'Sort by', 'wordcamporg' ) }
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksincludesorganizersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/organizers.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/organizers.php 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/organizers.php 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -148,7 +148,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'default' => 150,
</span><span class="cx" style="display: block; padding: 0 10px"> ],
</span><span class="cx" style="display: block; padding: 0 10px"> 'className' => get_shared_definition( 'string_empty', 'attribute' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'excerpt_more' => get_shared_definition( 'boolean_false', 'attribute' ),
</del><span class="cx" style="display: block; padding: 0 10px"> 'mode' => [
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'string',
</span><span class="cx" style="display: block; padding: 0 10px"> 'enum' => wp_list_pluck( get_options( 'mode' ), 'value' ),
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksincludessessionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/sessions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/sessions.php 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/sessions.php 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -112,7 +112,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> [
</span><span class="cx" style="display: block; padding: 0 10px"> 'className' => get_shared_definition( 'string_empty', 'attribute' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'excerpt_more' => get_shared_definition( 'boolean_false', 'attribute' ),
</del><span class="cx" style="display: block; padding: 0 10px"> 'featured_image_width' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'integer',
</span><span class="cx" style="display: block; padding: 0 10px"> 'default' => 150,
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksincludesspeakersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/speakers.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/speakers.php 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/speakers.php 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -191,7 +191,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'default' => 150,
</span><span class="cx" style="display: block; padding: 0 10px"> ],
</span><span class="cx" style="display: block; padding: 0 10px"> 'className' => get_shared_definition( 'string_empty', 'attribute' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'excerpt_more' => get_shared_definition( 'boolean_false', 'attribute' ),
</del><span class="cx" style="display: block; padding: 0 10px"> 'mode' => [
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'string',
</span><span class="cx" style="display: block; padding: 0 10px"> 'enum' => wp_list_pluck( get_options( 'mode' ), 'value' ),
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksincludessponsorsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/sponsors.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/sponsors.php 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/includes/sponsors.php 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -191,10 +191,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'string',
</span><span class="cx" style="display: block; padding: 0 10px"> 'default' => 'full',
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'excerpt_more' => array(
- 'type' => 'bool',
- 'default' => true,
- ),
</del><span class="cx" style="display: block; padding: 0 10px"> 'grid_columns' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'integer',
</span><span class="cx" style="display: block; padding: 0 10px"> 'minimum' => 1,
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksvieworganizersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/organizers.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/organizers.php 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/organizers.php 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,6 +15,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+// Note that organizer posts are not 'public', so there are no permalinks.
</ins><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <ul class="<?php echo esc_attr( $container_classes ); ?>">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,25 +24,21 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <li class="wordcamp-block-post-list-item wordcamp-organizer wordcamp-organizer-<?php echo sanitize_html_class( $organizer->post_name ); ?> wordcamp-clearfix">
</span><span class="cx" style="display: block; padding: 0 10px"> <h3 class="wordcamp-item-title wordcamp-organizer-title">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <a href="<?php echo esc_url( get_permalink( $organizer ) ); ?>">
- <?php echo wp_kses_post( get_the_title( $organizer ) ); ?>
- </a>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php echo wp_kses_post( get_the_title( $organizer ) ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> </h3>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( true === $attributes['show_avatars'] ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wordcamp-organizer-avatar-container align-<?php echo esc_attr( $attributes['avatar_align'] ); ?>">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <a href="<?php echo esc_url( get_permalink( $organizer ) ); ?>" class="wordcamp-organizer-avatar-link">
- <?php echo get_avatar(
- $organizer->_wcpt_user_id,
- $attributes['avatar_size'],
- '',
- sprintf( __( 'Avatar of %s', 'wordcamporg'), get_the_title( $organizer ) ),
- [
- 'class' => 'wordcamp-organizer-avatar',
- 'force_display' => true,
- ]
- ); ?>
- </a>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php echo get_avatar(
+ $organizer->_wcpt_user_id,
+ $attributes['avatar_size'],
+ '',
+ sprintf( __( 'Avatar of %s', 'wordcamporg'), get_the_title( $organizer ) ),
+ [
+ 'class' => 'wordcamp-organizer-avatar',
+ 'force_display' => true,
+ ]
+ ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,24 +46,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wordcamp-item-content wordcamp-organizer-content-<?php echo esc_attr( $attributes['content'] ); ?>">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( 'full' === $attributes['content'] ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php echo wp_kses_post( wpautop( get_all_the_content( $organizer ) ) ); ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
- <p class="wordcamp-item-permalink">
- <a href="<?php echo esc_url( get_permalink( $organizer ) ); ?>">
- <?php esc_html_e( 'Visit organizer page', 'wordcamporg' ); ?>
- </a>
- </p>
-
</del><span class="cx" style="display: block; padding: 0 10px"> <?php elseif ( 'excerpt' === $attributes['content'] ) : ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php wpautop( the_excerpt() ); ?>
-
- <?php if ( true === $attributes['excerpt_more'] ) : ?>
- <p class="wordcamp-item-permalink">
- <a href="<?php echo esc_url( get_permalink( $organizer ) ); ?>" class="wordcamp-organizer-permalink">
- <?php esc_html_e( 'Read more', 'wordcamporg' ); ?>
- </a>
- </p>
- <?php endif; ?>
-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php echo wp_kses_post( wpautop( apply_filters( 'the_excerpt', get_the_excerpt() ) ) ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksviewsessionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/sessions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/sessions.php 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/sessions.php 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -62,21 +62,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wordcamp-item-content wordcamp-session-content-<?php echo esc_attr( $attributes['content'] ); ?>">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( 'full' === $attributes['content'] ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php echo wp_kses_post( wpautop( get_all_the_content( $session ) ) ); ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <p class="wordcamp-item-permalink">
- <a href="<?php echo esc_url( get_permalink( $session ) ); ?>">
- <?php esc_html_e( 'Visit session page', 'wordcamporg' ); ?>
- </a>
- </p>
-
</del><span class="cx" style="display: block; padding: 0 10px"> <?php elseif ( 'excerpt' === $attributes['content'] ) : ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php wp_kses_post( wpautop( the_excerpt() ) ); ?>
- <?php if ( true === $attributes['excerpt_more'] ) : ?>
- <p class="wordcamp-item-permalink">
- <a href="<?php echo esc_url( get_permalink( $session ) ); ?>" class="wordcamp-session-permalink">
- <?php esc_html_e( 'Read more', 'wordcamporg' ); ?>
- </a>
- </p>
- <?php endif; ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php echo wp_kses_post( wpautop( apply_filters( 'the_excerpt', get_the_excerpt() ) ) ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -133,4 +120,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ <?php if ( 'full' === $attributes['content'] ) : ?>
+ <p class="wordcamp-item-permalink">
+ <a href="<?php echo esc_url( get_permalink( $session ) ); ?>">
+ <?php esc_html_e( 'Visit session page', 'wordcamporg' ); ?>
+ </a>
+ </p>
+ <?php endif; ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksviewspeakersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/speakers.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/speakers.php 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/speakers.php 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -44,22 +44,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wordcamp-item-content wordcamp-speaker-content-<?php echo esc_attr( $attributes['content'] ); ?>">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( 'full' === $attributes['content'] ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php echo wp_kses_post( wpautop( get_all_the_content( $speaker ) ) ); ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <p class="wordcamp-item-permalink">
- <a href="<?php echo esc_url( get_permalink( $speaker ) ); ?>">
- <?php esc_html_e( 'Visit speaker page', 'wordcamporg' ); ?>
- </a>
- </p>
-
</del><span class="cx" style="display: block; padding: 0 10px"> <?php elseif ( 'excerpt' === $attributes['content'] ) : ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php wpautop( the_excerpt() ); ?>
-
- <?php if ( true === $attributes['excerpt_more'] ) : ?>
- <p class="wordcamp-item-permalink">
- <a href="<?php echo esc_url( get_permalink( $speaker ) ); ?>" class="wordcamp-speaker-permalink">
- <?php esc_html_e( 'Read more', 'wordcamporg' ); ?>
- </a>
- </p>
- <?php endif; ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php echo wp_kses_post( wpautop( apply_filters( 'the_excerpt', get_the_excerpt() ) ) ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -107,6 +93,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php if ( 'full' === $attributes['content'] ) : ?>
+ <p class="wordcamp-item-permalink">
+ <a href="<?php echo esc_url( get_permalink( $speaker ) ); ?>">
+ <?php esc_html_e( 'Visit speaker page', 'wordcamporg' ); ?>
+ </a>
+ </p>
+ <?php endif; ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> </li>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endforeach; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php wp_reset_postdata(); ?>
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentmupluginsblocksviewsponsorsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/sponsors.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/sponsors.php 2019-04-16 22:21:35 UTC (rev 8646)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/view/sponsors.php 2019-04-16 23:31:01 UTC (rev 8647)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,15 +35,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( 'full' === $attributes['content'] ) { ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php echo wp_kses_post( wpautop( get_all_the_content( $sponsor ) ) ); ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php } elseif ( 'excerpt' === $attributes['content'] ) { ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php wpautop( the_excerpt() ); ?>
- <?php if ( true === $attributes['excerpt_more'] ) { ?>
- <p class="wordcamp-item-permalink">
- <a href="<?php echo esc_url( get_permalink( $sponsor ) ); ?>" class="wordcamp-sponsor-permalink">
- <?php esc_html_e( 'Read more', 'wordcamporg' ); ?>
- </a>
- </p>
- <?php } ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php echo wp_kses_post( wpautop( apply_filters( 'the_excerpt', get_the_excerpt() ) ) ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> <?php } ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php } ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php if ( 'full' === $attributes['content'] ) : ?>
+ <p class="wordcamp-item-permalink">
+ <a href="<?php echo esc_url( get_permalink( $sponsor ) ); ?>">
+ <?php esc_html_e( 'Visit sponsor page', 'wordcamporg' ); ?>
+ </a>
+ </p>
+ <?php endif; ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span></span></pre>
</div>
</div>
</body>
</html>