react-selectize-wesm87
Version:
A Stateless & Flexible Select component for React inspired by Selectize
2 lines • 70.2 kB
JavaScript
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.reactSelectize=e()}}(function(){return function e(n,t,o){function r(s,a){if(!t[s]){if(!n[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var p=t[s]={exports:{}};n[s][0].call(p.exports,function(e){var t=n[s][1][e];return r(t?t:e)},p,p.exports,e,n,t,o)}return t[s].exports}for(var i="function"==typeof require&&require,s=0;s<o.length;s++)r(o[s]);return r}({1:[function(e,n,t){(function(){var t,o,r,i;t=e("./HighlightedText"),o=e("./SimpleSelect"),r=e("./MultiSelect"),i=e("./ReactSelectize"),n.exports={HighlightedText:t,SimpleSelect:o,MultiSelect:r,ReactSelectize:i}}).call(this)},{"./HighlightedText":26,"./MultiSelect":27,"./ReactSelectize":29,"./SimpleSelect":33}],2:[function(e,n,t){function o(){if(!a){a=!0;for(var e,n=s.length;n;){e=s,s=[];for(var t=-1;++t<n;)e[t]();n=s.length}a=!1}}function r(){}var i=n.exports={},s=[],a=!1;i.nextTick=function(e){s.push(e),a||setTimeout(o,0)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=r,i.addListener=r,i.once=r,i.off=r,i.removeListener=r,i.removeAllListeners=r,i.emit=r,i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],3:[function(e,n,t){n.exports=function(){for(var e=arguments.length,n=[],t=0;t<e;t++)n[t]=arguments[t];if(n=n.filter(function(e){return null!=e}),0!==n.length)return 1===n.length?n[0]:n.reduce(function(e,n){return function(){e.apply(this,arguments),n.apply(this,arguments)}})}},{}],4:[function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,n){e.classList?e.classList.add(n):(0,s["default"])(e)||(e.className=e.className+" "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var i=e("./hasClass"),s=o(i);n.exports=t["default"]},{"./hasClass":5}],5:[function(e,n,t){"use strict";function o(e,n){return e.classList?!!n&&e.classList.contains(n):(" "+e.className+" ").indexOf(" "+n+" ")!==-1}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o,n.exports=t["default"]},{}],6:[function(e,n,t){"use strict";n.exports=function(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}},{}],7:[function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(){for(var e=document.createElement("div").style,n={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},t=Object.keys(n),o=void 0,r=void 0,i="",s=0;s<t.length;s++){var a=t[s];if(a+"TransitionProperty"in e){i="-"+a.toLowerCase(),o=n[a]("TransitionEnd"),r=n[a]("AnimationEnd");break}}return!o&&"transitionProperty"in e&&(o="transitionend"),!r&&"animationName"in e&&(r="animationend"),e=null,{animationEnd:r,transitionEnd:o,prefix:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i=e("../util/inDOM"),s=o(i),a="transform",u=void 0,l=void 0,p=void 0,c=void 0,d=void 0,f=void 0,h=void 0,g=void 0,v=void 0,y=void 0,m=void 0;if(s["default"]){var w=r();u=w.prefix,t.transitionEnd=l=w.transitionEnd,t.animationEnd=p=w.animationEnd,t.transform=a=u+"-"+a,t.transitionProperty=c=u+"-transition-property",t.transitionDuration=d=u+"-transition-duration",t.transitionDelay=h=u+"-transition-delay",t.transitionTiming=f=u+"-transition-timing-function",t.animationName=g=u+"-animation-name",t.animationDuration=v=u+"-animation-duration",t.animationTiming=y=u+"-animation-delay",t.animationDelay=m=u+"-animation-timing-function"}t.transform=a,t.transitionProperty=c,t.transitionTiming=f,t.transitionDelay=h,t.transitionDuration=d,t.transitionEnd=l,t.animationName=g,t.animationDuration=v,t.animationTiming=y,t.animationDelay=m,t.animationEnd=p,t["default"]={transform:a,end:l,property:c,timing:f,delay:h,duration:d}},{"../util/inDOM":8}],8:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=!("undefined"==typeof window||!window.document||!window.document.createElement),n.exports=t["default"]},{}],9:[function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e){var n=(new Date).getTime(),t=Math.max(0,16-(n-d)),o=setTimeout(e,t);return d=n,o}Object.defineProperty(t,"__esModule",{value:!0});var i=e("./inDOM"),s=o(i),a=["","webkit","moz","o","ms"],u="clearTimeout",l=r,p=void 0,c=function(e,n){return e+(e?n[0].toUpperCase()+n.substr(1):n)+"AnimationFrame"};s["default"]&&a.some(function(e){var n=c(e,"request");if(n in window)return u=c(e,"cancel"),l=function(e){return window[n](e)}});var d=(new Date).getTime();p=function(e){return l(e)},p.cancel=function(e){window[u]&&"function"==typeof window[u]&&window[u](e)},t["default"]=p,n.exports=t["default"]},{"./inDOM":8}],10:[function(e,n,t){"use strict";function o(e){return function(){return e}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},n.exports=r},{}],11:[function(e,n,t){(function(e){"use strict";function t(e,n,t,r,i,s,a,u){if(o(n),!e){var l;if(void 0===n)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[t,r,i,s,a,u],c=0;l=new Error(n.replace(/%s/g,function(){return p[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};"production"!==e.env.NODE_ENV&&(o=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),n.exports=t}).call(this,e("_process"))},{_process:2}],12:[function(e,n,t){(function(t){"use strict";var o=e("./emptyFunction"),r=o;"production"!==t.env.NODE_ENV&&!function(){var e=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];var r=0,i="Warning: "+e.replace(/%s/g,function(){return t[r++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(s){}};r=function(n,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!n){for(var o=arguments.length,r=Array(o>2?o-2:0),i=2;i<o;i++)r[i-2]=arguments[i];e.apply(void 0,[t].concat(r))}}}(),n.exports=r}).call(this,e("_process"))},{"./emptyFunction":10,_process:2}],13:[function(e,n,t){(function(t){"use strict";function o(e,n,o,u,l){if("production"!==t.env.NODE_ENV)for(var p in e)if(e.hasOwnProperty(p)){var c;try{r("function"==typeof e[p],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",u||"React class",o,p),c=e[p](n,p,u,o,null,s)}catch(d){c=d}if(i(!c||c instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",o,p,typeof c),c instanceof Error&&!(c.message in a)){a[c.message]=!0;var f=l?l():"";i(!1,"Failed %s type: %s%s",o,c.message,null!=f?f:"")}}}if("production"!==t.env.NODE_ENV)var r=e("fbjs/lib/invariant"),i=e("fbjs/lib/warning"),s=e("./lib/ReactPropTypesSecret"),a={};n.exports=o}).call(this,e("_process"))},{"./lib/ReactPropTypesSecret":17,_process:2,"fbjs/lib/invariant":11,"fbjs/lib/warning":12}],14:[function(e,n,t){"use strict";var o=e("fbjs/lib/emptyFunction"),r=e("fbjs/lib/invariant"),i=e("./lib/ReactPropTypesSecret");n.exports=function(){function e(e,n,t,o,s,a){a!==i&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n};return t.checkPropTypes=o,t.PropTypes=t,t}},{"./lib/ReactPropTypesSecret":17,"fbjs/lib/emptyFunction":10,"fbjs/lib/invariant":11}],15:[function(e,n,t){(function(t){"use strict";var o=e("fbjs/lib/emptyFunction"),r=e("fbjs/lib/invariant"),i=e("fbjs/lib/warning"),s=e("./lib/ReactPropTypesSecret"),a=e("./checkPropTypes");n.exports=function(e,n){function u(e){var n=e&&(x&&e[x]||e[N]);if("function"==typeof n)return n}function l(e,n){return e===n?0!==e||1/e===1/n:e!==e&&n!==n}function p(e){this.message=e,this.stack=""}function c(e){function o(o,l,c,d,f,h,g){if(d=d||D,h=h||c,g!==s)if(n)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=d+":"+c;!a[v]&&u<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,d),a[v]=!0,u++)}return null==l[c]?o?new p(null===l[c]?"The "+f+" `"+h+"` is marked as required "+("in `"+d+"`, but its value is `null`."):"The "+f+" `"+h+"` is marked as required in "+("`"+d+"`, but its value is `undefined`.")):null:e(l,c,d,f,h)}if("production"!==t.env.NODE_ENV)var a={},u=0;var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function d(e){function n(n,t,o,r,i,s){var a=n[t],u=S(a);if(u!==e){var l=E(a);return new p("Invalid "+r+" `"+i+"` of type "+("`"+l+"` supplied to `"+o+"`, expected ")+("`"+e+"`."))}return null}return c(n)}function f(){return c(o.thatReturnsNull)}function h(e){function n(n,t,o,r,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=n[t];if(!Array.isArray(a)){var u=S(a);return new p("Invalid "+r+" `"+i+"` of type "+("`"+u+"` supplied to `"+o+"`, expected an array."))}for(var l=0;l<a.length;l++){var c=e(a,l,o,r,i+"["+l+"]",s);if(c instanceof Error)return c}return null}return c(n)}function g(){function n(n,t,o,r,i){var s=n[t];if(!e(s)){var a=S(s);return new p("Invalid "+r+" `"+i+"` of type "+("`"+a+"` supplied to `"+o+"`, expected a single ReactElement."))}return null}return c(n)}function v(e){function n(n,t,o,r,i){if(!(n[t]instanceof e)){var s=e.name||D,a=P(n[t]);return new p("Invalid "+r+" `"+i+"` of type "+("`"+a+"` supplied to `"+o+"`, expected ")+("instance of `"+s+"`."))}return null}return c(n)}function y(e){function n(n,t,o,r,i){for(var s=n[t],a=0;a<e.length;a++)if(l(s,e[a]))return null;var u=JSON.stringify(e);return new p("Invalid "+r+" `"+i+"` of value `"+s+"` "+("supplied to `"+o+"`, expected one of "+u+"."))}return Array.isArray(e)?c(n):("production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,o.thatReturnsNull)}function m(e){function n(n,t,o,r,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var a=n[t],u=S(a);if("object"!==u)return new p("Invalid "+r+" `"+i+"` of type "+("`"+u+"` supplied to `"+o+"`, expected an object."));for(var l in a)if(a.hasOwnProperty(l)){var c=e(a,l,o,r,i+"."+l,s);if(c instanceof Error)return c}return null}return c(n)}function w(e){function n(n,t,o,r,i){for(var a=0;a<e.length;a++){var u=e[a];if(null==u(n,t,o,r,i,s))return null}return new p("Invalid "+r+" `"+i+"` supplied to "+("`"+o+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,o.thatReturnsNull;for(var r=0;r<e.length;r++){var a=e[r];if("function"!=typeof a)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",R(a),r),o.thatReturnsNull}return c(n)}function b(){function e(e,n,t,o,r){return T(e[n])?null:new p("Invalid "+o+" `"+r+"` supplied to "+("`"+t+"`, expected a ReactNode."))}return c(e)}function O(e){function n(n,t,o,r,i){var a=n[t],u=S(a);if("object"!==u)return new p("Invalid "+r+" `"+i+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var l in e){var c=e[l];if(c){var d=c(a,l,o,r,i+"."+l,s);if(d)return d}}return null}return c(n)}function T(n){switch(typeof n){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(T);if(null===n||e(n))return!0;var t=u(n);if(!t)return!1;var o,r=t.call(n);if(t!==n.entries){for(;!(o=r.next()).done;)if(!T(o.value))return!1}else for(;!(o=r.next()).done;){var i=o.value;if(i&&!T(i[1]))return!1}return!0;default:return!1}}function C(e,n){return"symbol"===e||("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}function S(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":C(n,e)?"symbol":n}function E(e){if("undefined"==typeof e||null===e)return""+e;var n=S(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function R(e){var n=E(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}function P(e){return e.constructor&&e.constructor.name?e.constructor.name:D}var x="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",D="<<anonymous>>",M={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:f(),arrayOf:h,element:g(),instanceOf:v,node:b(),objectOf:m,oneOf:y,oneOfType:w,shape:O};return p.prototype=Error.prototype,M.checkPropTypes=a,M.PropTypes=M,M}}).call(this,e("_process"))},{"./checkPropTypes":13,"./lib/ReactPropTypesSecret":17,_process:2,"fbjs/lib/emptyFunction":10,"fbjs/lib/invariant":11,"fbjs/lib/warning":12}],16:[function(e,n,t){(function(t){if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,r=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},i=!0;n.exports=e("./factoryWithTypeCheckers")(r,i)}else n.exports=e("./factoryWithThrowingShims")()}).call(this,e("_process"))},{"./factoryWithThrowingShims":14,"./factoryWithTypeCheckers":15,_process:2}],17:[function(e,n,t){"use strict";var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";n.exports=o},{}],18:[function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function i(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function s(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}t.__esModule=!0;var a=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},u=e("react"),l=o(u),p=e("prop-types"),c=o(p),d=e("./TransitionGroup"),f=o(d),h=e("./CSSTransitionGroupChild"),g=o(h),v=e("./utils/PropTypes"),y={transitionName:v.nameShape.isRequired,transitionAppear:c["default"].bool,transitionEnter:c["default"].bool,transitionLeave:c["default"].bool,transitionAppearTimeout:(0,v.transitionTimeout)("Appear"),transitionEnterTimeout:(0,v.transitionTimeout)("Enter"),transitionLeaveTimeout:(0,v.transitionTimeout)("Leave")},m={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},w=function(e){function n(){var t,o,s;r(this,n);for(var a=arguments.length,u=Array(a),p=0;p<a;p++)u[p]=arguments[p];return t=o=i(this,e.call.apply(e,[this].concat(u))),o._wrapChild=function(e){return l["default"].createElement(g["default"],{name:o.props.transitionName,appear:o.props.transitionAppear,enter:o.props.transitionEnter,leave:o.props.transitionLeave,appearTimeout:o.props.transitionAppearTimeout,enterTimeout:o.props.transitionEnterTimeout,leaveTimeout:o.props.transitionLeaveTimeout},e)},s=t,i(o,s)}return s(n,e),n.prototype.render=function(){return l["default"].createElement(f["default"],a({},this.props,{childFactory:this._wrapChild}))},n}(l["default"].Component);w.displayName="CSSTransitionGroup",w.propTypes=y,w.defaultProps=m,t["default"]=w,n.exports=t["default"]},{"./CSSTransitionGroupChild":19,"./TransitionGroup":20,"./utils/PropTypes":22,"prop-types":16,react:void 0}],19:[function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function i(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function s(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}function a(e,n){return T.length?T.forEach(function(t){return e.addEventListener(t,n,!1)}):setTimeout(n,0),function(){T.length&&T.forEach(function(t){return e.removeEventListener(t,n,!1)})}}t.__esModule=!0;var u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},l=e("dom-helpers/class/addClass"),p=o(l),c=e("dom-helpers/class/removeClass"),d=o(c),f=e("dom-helpers/util/requestAnimationFrame"),h=o(f),g=e("dom-helpers/transition/properties"),v=e("react"),y=o(v),m=e("prop-types"),w=o(m),b=e("react-dom"),O=e("./utils/PropTypes"),T=[];g.transitionEnd&&T.push(g.transitionEnd),g.animationEnd&&T.push(g.animationEnd);var C={children:w["default"].node,name:O.nameShape.isRequired,appear:w["default"].bool,enter:w["default"].bool,leave:w["default"].bool,appearTimeout:w["default"].number,enterTimeout:w["default"].number,leaveTimeout:w["default"].number},S=function(e){function n(){var t,o,s;r(this,n);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return t=o=i(this,e.call.apply(e,[this].concat(u))),o.componentWillAppear=function(e){o.props.appear?o.transition("appear",e,o.props.appearTimeout):e()},o.componentWillEnter=function(e){o.props.enter?o.transition("enter",e,o.props.enterTimeout):e()},o.componentWillLeave=function(e){o.props.leave?o.transition("leave",e,o.props.leaveTimeout):e()},s=t,i(o,s)}return s(n,e),n.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},n.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},n.prototype.transition=function(e,n,t){var o=(0,b.findDOMNode)(this);if(!o)return void(n&&n());var r=this.props.name[e]||this.props.name+"-"+e,i=this.props.name[e+"Active"]||r+"-active",s=null,u=void 0;(0,p["default"])(o,r),this.queueClassAndNode(i,o);var l=function(e){e&&e.target!==o||(clearTimeout(s),u&&u(),(0,d["default"])(o,r),(0,d["default"])(o,i),u&&u(),n&&n())};t?(s=setTimeout(l,t),this.transitionTimeouts.push(s)):g.transitionEnd&&(u=a(o,l))},n.prototype.queueClassAndNode=function(e,n){var t=this;this.classNameAndNodeQueue.push({className:e,node:n}),this.rafHandle||(this.rafHandle=(0,h["default"])(function(){return t.flushClassNameAndNodeQueue()}))},n.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(e){e.node.scrollTop,(0,p["default"])(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},n.prototype.render=function(){var e=u({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,y["default"].cloneElement(y["default"].Children.only(this.props.children),e)},n}(y["default"].Component);S.displayName="CSSTransitionGroupChild",S.propTypes=C,t["default"]=S,n.exports=t["default"]},{"./utils/PropTypes":22,"dom-helpers/class/addClass":4,"dom-helpers/class/removeClass":6,"dom-helpers/transition/properties":7,"dom-helpers/util/requestAnimationFrame":9,"prop-types":16,react:void 0,"react-dom":void 0}],20:[function(e,n,t){(function(o){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function s(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function a(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}t.__esModule=!0;var u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},l=e("chain-function"),p=r(l),c=e("react"),d=r(c),f=e("prop-types"),h=r(f),g=e("warning"),v=r(g),y=e("./utils/ChildMapping"),m={component:h["default"].any,childFactory:h["default"].func,children:h["default"].node},w={component:"span",childFactory:function(e){return e}},b=function(e){function n(t,o){i(this,n);var r=s(this,e.call(this,t,o));return r.performAppear=function(e){r.currentlyTransitioningKeys[e]=!0;var n=r.childRefs[e];n.componentWillAppear?n.componentWillAppear(r._handleDoneAppearing.bind(r,e)):r._handleDoneAppearing(e)},r._handleDoneAppearing=function(e){var n=r.childRefs[e];n&&n.componentDidAppear&&n.componentDidAppear(),delete r.currentlyTransitioningKeys[e];var t=(0,y.getChildMapping)(r.props.children);t&&t.hasOwnProperty(e)||r.performLeave(e)},r.performEnter=function(e){r.currentlyTransitioningKeys[e]=!0;var n=r.childRefs[e];n.componentWillEnter?n.componentWillEnter(r._handleDoneEntering.bind(r,e)):r._handleDoneEntering(e)},r._handleDoneEntering=function(e){var n=r.childRefs[e];n&&n.componentDidEnter&&n.componentDidEnter(),delete r.currentlyTransitioningKeys[e];var t=(0,y.getChildMapping)(r.props.children);t&&t.hasOwnProperty(e)||r.performLeave(e)},r.performLeave=function(e){r.currentlyTransitioningKeys[e]=!0;var n=r.childRefs[e];n.componentWillLeave?n.componentWillLeave(r._handleDoneLeaving.bind(r,e)):r._handleDoneLeaving(e)},r._handleDoneLeaving=function(e){var n=r.childRefs[e];n&&n.componentDidLeave&&n.componentDidLeave(),delete r.currentlyTransitioningKeys[e];var t=(0,y.getChildMapping)(r.props.children);t&&t.hasOwnProperty(e)?r.performEnter(e):r.setState(function(n){var t=u({},n.children);return delete t[e],{children:t}})},r.childRefs=Object.create(null),r.state={children:(0,y.getChildMapping)(t.children)},r}return a(n,e),n.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},n.prototype.componentDidMount=function(){var e=this.state.children;for(var n in e)e[n]&&this.performAppear(n)},n.prototype.componentWillReceiveProps=function(e){var n=(0,y.getChildMapping)(e.children),t=this.state.children;this.setState({children:(0,y.mergeChildMappings)(t,n)});for(var o in n){var r=t&&t.hasOwnProperty(o);!n[o]||r||this.currentlyTransitioningKeys[o]||this.keysToEnter.push(o)}for(var i in t){var s=n&&n.hasOwnProperty(i);!t[i]||s||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}},n.prototype.componentDidUpdate=function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var n=this.keysToLeave;this.keysToLeave=[],n.forEach(this.performLeave)},n.prototype.render=function(){var e=this,n=[],t=function(t){var r=e.state.children[t];if(r){var i="string"!=typeof r.ref,s=e.props.childFactory(r),a=function(n){e.childRefs[t]=n};"production"!==o.env.NODE_ENV?(0,v["default"])(i,"string refs are not supported on children of TransitionGroup and will be ignored. Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute"):void 0,s===r&&i&&(a=(0,p["default"])(r.ref,a)),n.push(d["default"].cloneElement(s,{key:t,ref:a}))}};for(var r in this.state.children)t(r);var i=u({},this.props);return delete i.transitionLeave,delete i.transitionName,delete i.transitionAppear,delete i.transitionEnter,delete i.childFactory,delete i.transitionLeaveTimeout,delete i.transitionEnterTimeout,delete i.transitionAppearTimeout,delete i.component,d["default"].createElement(this.props.component,i,n)},n}(d["default"].Component);b.displayName="TransitionGroup",b.propTypes=m,b.defaultProps=w,t["default"]=b,n.exports=t["default"]}).call(this,e("_process"))},{"./utils/ChildMapping":21,_process:2,"chain-function":3,"prop-types":16,react:void 0,warning:23}],21:[function(e,n,t){"use strict";function o(e){if(!e)return e;var n={};return i.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=e}),n}function r(e,n){function t(t){return n.hasOwnProperty(t)?n[t]:e[t]}e=e||{},n=n||{};var o={},r=[];for(var i in e)n.hasOwnProperty(i)?r.length&&(o[i]=r,r=[]):r.push(i);var s=void 0,a={};for(var u in n){if(o.hasOwnProperty(u))for(s=0;s<o[u].length;s++){var l=o[u][s];a[o[u][s]]=t(l)}a[u]=t(u)}for(s=0;s<r.length;s++)a[r[s]]=t(r[s]);return a}t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=r;var i=e("react")},{react:void 0}],22:[function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e){var n="transition"+e+"Timeout",t="transition"+e;return function(e){if(e[t]){if(null==e[n])return new Error(n+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[n])return new Error(n+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=r;var i=e("react"),s=(o(i),e("prop-types")),a=o(s);t.nameShape=a["default"].oneOfType([a["default"].string,a["default"].shape({enter:a["default"].string,leave:a["default"].string,active:a["default"].string}),a["default"].shape({enter:a["default"].string,enterActive:a["default"].string,leave:a["default"].string,leaveActive:a["default"].string,appear:a["default"].string,appearActive:a["default"].string})])},{"prop-types":16,react:void 0}],23:[function(e,n,t){(function(e){"use strict";var t=function(){};"production"!==e.env.NODE_ENV&&(t=function(e,n,t){var o=arguments.length;t=new Array(o>2?o-2:0);for(var r=2;r<o;r++)t[r-2]=arguments[r];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(n.length<10||/^[s\W]*$/.test(n))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+n);if(!e){var i=0,s="Warning: "+n.replace(/%s/g,function(){return t[i++]});"undefined"!=typeof console&&console.error(s);try{throw new Error(s)}catch(a){}}}),n.exports=t}).call(this,e("_process"))},{_process:2}],24:[function(e,n,t){(function(e){(function(){var t,o;t=("undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null).DOM.div,o="undefined"!=typeof window?window.createReactClass:"undefined"!=typeof e?e.createReactClass:null,n.exports=o({getDefaultProps:function(){return{className:"",onHeightChange:function(){}}},render:function(){return t({className:this.props.className,ref:"dropdown"},this.props.children)},componentDidMount:function(){this.props.onHeightChange(this.refs.dropdown.offsetHeight)},componentDidUpdate:function(){this.props.onHeightChange(this.refs.dropdown.offsetHeight)},componentWillUnmount:function(){this.props.onHeightChange(0)}})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],25:[function(e,n,t){(function(t){(function(){function o(e,n){var t={}.hasOwnProperty;for(var o in n)t.call(n,o)&&(e[o]=n[o]);return e}var r,i,s,a,u,l,p,c,d,f,h,g,v,y,m,w,b,O;r=e("prelude-ls"),i=r.filter,s=r.id,a=r.map,u=("undefined"!=typeof window?window.preludeExtension:"undefined"!=typeof t?t.preludeExtension:null).isEqualToObject,l="undefined"!=typeof window?window.React:"undefined"!=typeof t?t.React:null,r=l.DOM,p=r.div,c=r.input,d=r.span,f=l.createFactory,h="undefined"!=typeof window?window.createReactClass:"undefined"!=typeof t?t.createReactClass:null,g=("undefined"!=typeof window?window.ReactDOM:"undefined"!=typeof t?t.ReactDOM:null).findDOMNode,v=f(e("react-transition-group/CSSTransitionGroup")),y=f(e("./ReactTether")),m=f(e("./DivWrapper")),w=f(e("./OptionWrapper")),r=e("./utils"),b=r.cancelEvent,O=r.classNameFromObject,n.exports=h({displayName:"DropdownMenu",getDefaultProps:function(){return{className:"",dropdownDirection:1,groupId:function(e){return e.groupId},groupsAsColumns:!1,highlightedUid:void 0,onHighlightedUidChange:function(e,n){},onOptionClick:function(e){},onScrollLockChange:function(e){},options:[],renderNoResultsFound:function(){return p({className:"no-results-found"},"No results found")},renderGroupTitle:function(e,n){var t,o;return null!=n&&(t=n.groupId,o=n.title),p({className:"simple-group-title",key:t},o)},renderOption:function(e){var n,t,o,r;return null!=e&&(n=e.label,t=e.newOption,o=e.selectable),r="undefined"==typeof o||o,p({className:"simple-option "+(r?"":"not-selectable")},d(null,t?"Add "+n+" ...":n))},scrollLock:!1,style:{},tether:!1,tetherProps:{},theme:"default",transitionEnter:!1,transitionLeave:!1,transitionEnterTimeout:200,transitionLeaveTimeout:200,uid:s}},render:function(){var e,n;return e=O((n={},n[this.props.theme+""]=1,n[this.props.className+""]=1,n.flipped=this.props.dropdownDirection===-1,n.tethered=this.props.tether,n)),this.props.tether?y((n=o({},this.props.tetherProps),n.options={attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"scrollParent"}]},n),this.renderAnimatedDropdown({dynamicClassName:e})):this.renderAnimatedDropdown({dynamicClassName:e})},renderAnimatedDropdown:function(e){var n;return n=e.dynamicClassName,this.props.transitionEnter||this.props.transitionLeave?v({component:"div",transitionName:"custom",transitionEnter:this.props.transitionEnter,transitionLeave:this.props.transitionLeave,transitionEnterTimeout:this.props.transitionEnterTimeout,transitionLeaveTimeout:this.props.transitionLeaveTimeout,className:"dropdown-menu-wrapper "+n,ref:function(e){return this.dropdownMenuWrapper=e}},this.renderDropdown(e)):this.renderDropdown(e)},renderOptions:function(e){var n=this;return a(function(t){var r,i;return r=e[t],i=n.props.uid(r),w(o({uid:i,ref:"option-"+n.uidToString(i),key:n.uidToString(i),item:r,highlight:u(n.props.highlightedUid,i),selectable:null!=r?r.selectable:void 0,onMouseMove:function(e){var t;t=e.currentTarget,n.props.scrollLock&&n.props.onScrollLockChange(!1)},onMouseOut:function(){n.props.scrollLock||n.props.onHighlightedUidChange(void 0,function(){});
},renderItem:n.props.renderOption},function(){switch(!1){case!("boolean"==typeof(null!=r?r.selectable:void 0)&&!r.selectable):return{onClick:b};default:return{onClick:function(){n.props.onOptionClick(n.props.highlightedUid)},onMouseOver:function(e){var t;t=e.currentTarget,n.props.scrollLock||n.props.onHighlightedUidChange(i,function(){})}}}}()))})(function(){var n,t,o=[];for(n=0,t=e.length;n<t;++n)o.push(n);return o}())},renderDropdown:function(e){var n,t,o,r,s=this;return n=e.dynamicClassName,this.props.open?m({className:"dropdown-menu "+n,ref:function(e){return!!e&&(this.dropdownMenu=e)},onHeightChange:function(e){s.dropdownMenuWrapper&&(g(s.dropdownMenuWrapper).style.height=e+"px")}},0===this.props.options.length?this.props.renderNoResultsFound():(null!=(t=this.props)&&null!=(o=t.groups)?o.length:void 0)>0?(r=a(function(e){var n,t,o;return n=s.props.groups[e],t=n.groupId,o=i(function(e){return s.props.groupId(e)===t})(s.props.options),{index:e,group:n,options:o}})(function(){var e,n,t=[];for(e=0,n=this.props.groups.length;e<n;++e)t.push(e);return t}.call(this)),p({className:"groups "+(this.props.groupsAsColumns?"as-columns":"")},a(function(e){var n,t,o,r;return n=e.index,t=e.group,o=t.groupId,r=e.options,p({key:o},s.props.renderGroupTitle(n,t,r),p({className:"options"},s.renderOptions(r)))})(i(function(e){return e.options.length>0})(r)))):this.renderOptions(this.props.options)):null},componentDidUpdate:function(){var e,n,t;e=n=g(null!=(t=this.dropdownMenuWrapper)?t:this.dropdownMenu),null!=e&&(e.style.bottom=function(){switch(!1){case this.props.dropdownDirection!==-1:return this.props.bottomAnchor().offsetHeight+n.style.marginBottom+"px";default:return""}}.call(this))},highlightAndScrollToOption:function(e,n){var t,o=this;null==n&&(n=function(){}),t=this.props.uid(this.props.options[e]),this.props.onHighlightedUidChange(t,function(){var e,r,i,s,a;return null!=(e=g(null!=(r=o.refs)?r["option-"+o.uidToString(t)]:void 0))&&(i=e),i&&(s=i.parentElement,a=i.offsetHeight-1,i.offsetTop-s.scrollTop>=s.offsetHeight?s.scrollTop=i.offsetTop-s.offsetHeight+a:i.offsetTop-s.scrollTop+a<=0&&(s.scrollTop=i.offsetTop)),n()})},highlightAndScrollToSelectableOption:function(e,n,t){var o,r,i;null==t&&(t=function(){}),e<0||e>=this.props.options.length?this.props.onHighlightedUidChange(void 0,function(){return t(!1)}):(o=null!=(r=this.props)&&null!=(i=r.options)?i[e]:void 0,"boolean"!=typeof(null!=o?o.selectable:void 0)||o.selectable?this.highlightAndScrollToOption(e,function(){return t(!0)}):this.highlightAndScrollToSelectableOption(e+n,n,t))},uidToString:function(e){return("object"==typeof e?JSON.stringify:s)(e)}})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./DivWrapper":24,"./OptionWrapper":28,"./ReactTether":30,"./utils":37,"prelude-ls":void 0,"react-transition-group/CSSTransitionGroup":18}],26:[function(e,n,t){(function(t){(function(){var o,r,i,s,a,u;o="undefined"!=typeof window?window.React:"undefined"!=typeof t?t.React:null,r=o.DOM,i=r.div,s=r.span,a="undefined"!=typeof window?window.createReactClass:"undefined"!=typeof t?t.createReactClass:null,u=e("prelude-ls").map,n.exports=a({getDefaultProps:function(){return{partitions:[],text:"",style:{},highlightStyle:{}}},render:function(){var e=this;return i({className:"highlighted-text",style:this.props.style},u(function(n){var t,o,r;return t=n[0],o=n[1],r=n[2],s({key:e.props.text+""+t+o+r,className:r?"highlight":"",style:r?e.props.highlightStyle:{}},e.props.text.substring(t,o))})(this.props.partitions))}})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"prelude-ls":void 0}],27:[function(e,n,t){(function(t){(function(){function o(e,n){for(var t=-1,o=n.length>>>0;++t<o;)if(e===n[t])return!0;return!1}function r(e,n){var t,o=function(r){return e.length>1?function(){var i=r?r.concat():[];return t=n?t||this:this,i.push.apply(i,arguments)<e.length&&arguments.length?o.call(t,i):e.apply(t,i)}:e};return o()}function i(e,n){var t={}.hasOwnProperty;for(var o in n)t.call(n,o)&&(e[o]=n[o]);return e}var s,a,u,l,p,c,d,f,h,g,v,y,m,w,b,O,T,C,S,E,R,P,x={}.toString;s=e("prelude-ls"),a=s.all,u=s.any,l=s.camelize,p=s.difference,c=s.drop,d=s.filter,f=s.find,h=s.findIndex,g=s.id,v=s.last,y=s.map,m=s.reject,w=("undefined"!=typeof window?window.preludeExtension:"undefined"!=typeof t?t.preludeExtension:null).isEqualToObject,b="undefined"!=typeof window?window.React:"undefined"!=typeof t?t.React:null,O=b.createFactory,s=b.DOM,T=s.div,C=s.img,S=s.span,E="undefined"!=typeof window?window.createReactClass:"undefined"!=typeof t?t.createReactClass:null,R=O(e("./ReactSelectize")),P=e("./utils").cancelEvent,n.exports=E({displayName:"MultiSelect",getDefaultProps:function(){return{className:"",closeOnSelect:!1,defaultValues:[],delimiters:[],filterOptions:r(function(e,n,t){return d(function(e){return e.label.toLowerCase().trim().indexOf(t.toLowerCase().trim())>-1})(m(function(e){return o(e.label.trim(),y(function(e){return e.label.trim()},null!=n?n:[]))})(e))}),firstOptionIndexToHighlight:g,onBlur:function(e){},onFocus:function(e){},onPaste:function(e){},serialize:y(function(e){return null!=e?e.value:void 0}),tether:!1}},render:function(){var e,n,t,o,r,s,a,u,l,p,c,d,f,h,g,y,m,w,b,O,T,C,S,E,x,N,D,M,A,L,_,k,j,F,I,U,H,B,W=this;return e=this.getComputedState(),n=e.anchor,t=e.filteredOptions,o=e.highlightedUid,r=e.onAnchorChange,s=e.onOpenChange,a=e.onHighlightedUidChange,u=e.onSearchChange,l=e.onValuesChange,p=e.search,c=e.open,d=e.options,f=e.values,null!=(e=this.props)&&(h=e.autofocus,g=e.autosize,y=e.cancelKeyboardEventOnSelection,m=e.delimiters,w=e.disabled,b=e.dropdownDirection,O=e.groupId,T=e.groups,C=e.groupsAsColumns,S=e.hideResetButton,E=e.inputProps,x=e.name,N=e.onKeyboardSelectionFailed,D=e.renderToggleButton,M=e.renderGroupTitle,A=e.renderResetButton,L=e.serialize,_=e.tether,k=e.tetherProps,j=e.theme,F=e.transitionEnter,I=e.transitionLeave,U=e.transitionEnterTimeout,H=e.transitionLeaveTimeout,B=e.uid),R(i(i({autofocus:h,autosize:g,cancelKeyboardEventOnSelection:y,className:"multi-select "+this.props.className,delimiters:m,disabled:w,dropdownDirection:b,groupId:O,groups:T,groupsAsColumns:C,hideResetButton:S,highlightedUid:o,onHighlightedUidChange:a,inputProps:E,name:x,onKeyboardSelectionFailed:N,renderGroupTitle:M,renderResetButton:A,renderToggleButton:D,scrollLock:this.state.scrollLock,onScrollLockChange:function(e){return W.setState({scrollLock:e})},tether:_,tetherProps:k,theme:j,transitionEnter:F,transitionEnterTimeout:U,transitionLeave:I,transitionLeaveTimeout:H,uid:B,ref:"select",anchor:n,onAnchorChange:r,open:c,onOpenChange:s,options:d,renderOption:this.props.renderOption,firstOptionIndexToHighlight:function(){return W.firstOptionIndexToHighlight(d)},search:p,onSearchChange:function(e,n){return u(W.props.maxValues&&f.length>=W.props.maxValues?"":e,n)},values:f,onValuesChange:function(e,n){return l(e,function(){if(n(),W.props.closeOnSelect||W.props.maxValues&&W.values().length>=W.props.maxValues)return s(!1,function(){})})},renderValue:this.props.renderValue,serialize:L,onBlur:function(e){u("",function(){return W.props.onBlur({open:c,values:f,originalEvent:e})})},onFocus:function(e){W.props.onFocus({open:c,values:f,originalEvent:e})},onPaste:function(){var e;switch(!1){case"undefined"!=typeof(null!=(e=this.props)?e.valuesFromPaste:void 0):return this.props.onPaste;default:return function(e){var n;return n=e.clipboardData,function(){var e;return e=f.concat(W.props.valuesFromPaste(d,f,n.getData("text"))),l(e,function(){return r(v(e))})}(),P(e)}}}.call(this),placeholder:this.props.placeholder,style:this.props.style},function(){switch(!1){case"function"!=typeof this.props.restoreOnBackspace:return{restoreOnBackspace:this.props.restoreOnBackspace};default:return{}}}.call(this)),function(){switch(!1){case"function"!=typeof this.props.renderNoResultsFound:return{renderNoResultsFound:function(){return W.props.renderNoResultsFound(f,p)}};default:return{}}}.call(this)))},getComputedState:function(){var e,n,t,o,r,s,a,u,p,c,d,f,h,g,v,m,w=this;return e=this.props.hasOwnProperty("anchor")?this.props.anchor:this.state.anchor,n=this.props.hasOwnProperty("highlightedUid")?this.props.highlightedUid:this.state.highlightedUid,t=this.isOpen(),o=this.props.hasOwnProperty("search")?this.props.search:this.state.search,r=this.values(),s=y(function(e){switch(!1){case!(w.props.hasOwnProperty(e)&&w.props.hasOwnProperty(l("on-"+e+"-change"))):return function(n,t){return w.props[l("on-"+e+"-change")](n,function(){}),w.setState({},t)};case!(w.props.hasOwnProperty(e)&&!w.props.hasOwnProperty(l("on-"+e+"-change"))):return function(e,n){return n()};case!(!w.props.hasOwnProperty(e)&&w.props.hasOwnProperty(l("on-"+e+"-change"))):return function(n,t){var o;return w.setState((o={},o[e+""]=n,o),function(){return t(),w.props[l("on-"+e+"-change")](n,function(){})})};case!(!w.props.hasOwnProperty(e)&&!w.props.hasOwnProperty(l("on-"+e+"-change"))):return function(n,t){var o;return w.setState((o={},o[e+""]=n,o),t)}}})(["anchor","highlightedUid","open","search","values"]),a=s[0],u=s[1],p=s[2],c=s[3],d=s[4],f=function(){var e;switch(!1){case!(null!=(e=this.props)&&e.children):return y(function(e){var n,t,o;return null!=e&&(n=e.props),null!=n&&(t=n.value,o=n.children),{label:o,value:t}})("Array"===x.call(this.props.children).slice(8,-1)?this.props.children:[this.props.children]);default:return[]}}.call(this),h=this.props.hasOwnProperty("options")?null!=(s=this.props.options)?s:[]:f,g=this.props.filterOptions(h,r,o),v=function(){switch(!1){case"function"!=typeof this.props.createFromSearch:return this.props.createFromSearch(g,r,o);default:return null}}.call(this),m=(v?[(s=i({},v),s.newOption=!0,s)]:[]).concat(g),{anchor:e,highlightedUid:n,search:o,values:r,onAnchorChange:a,onHighlightedUidChange:u,open:t,onOpenChange:function(e,n){p(function(){switch(!1){case!("undefined"!=typeof this.props.maxValues&&this.values().length>=this.props.maxValues):return!1;default:return e}}.call(w),n)},onSearchChange:c,onValuesChange:d,filteredOptions:g,options:m}},getInitialState:function(){return{anchor:this.props.values?v(this.props.values):void 0,highlightedUid:void 0,open:!1,scrollLock:!1,search:"",values:this.props.defaultValues}},firstOptionIndexToHighlight:function(e){var n,t;return n=function(){var n;switch(!1){case 1!==e.length:return 0;case"undefined"!=typeof(null!=(n=e[0])?n.newOption:void 0):return 0;default:return a(function(e){return"boolean"==typeof e.selectable&&!e.selectable})(c(1)(e))?0:1}}(),t=this.props.hasOwnProperty("search")?this.props.search:this.state.search,this.props.firstOptionIndexToHighlight(n,e,this.values(),t)},focus:function(){this.refs.select.focus()},blur:function(){this.refs.select.blur()},highlightFirstSelectableOption:function(){this.state.open&&this.refs.select.highlightAndScrollToSelectableOption(this.firstOptionIndexToHighlight(this.getComputedState().options),1)},values:function(){return this.props.hasOwnProperty("values")?this.props.values:this.state.values},isOpen:function(){return this.props.hasOwnProperty("open")?this.props.open:this.state.open}})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ReactSelectize":29,"./utils":37,"prelude-ls":void 0}],28:[function(e,n,t){(function(t){(function(){var o,r,i,s;o=("undefined"!=typeof window?window.React:"undefined"!=typeof t?t.React:null).DOM.div,r="undefined"!=typeof window?window.createReactClass:"undefined"!=typeof t?t.createReactClass:null,i=("undefined"!=typeof window?window.preludeExtension:"undefined"!=typeof t?t.preludeExtension:null).isEqualToObject,s=e("./utils").cancelEvent,n.exports=r({getDefaultProps:function(){return{}},render:function(){var e=this;return o({className:"option-wrapper "+(this.props.highlight?"highlight":""),onMouseDown:function(n){var t;return t=function(n){return e.props.onClick(n),window.removeEventListener("mouseup",t)},window.addEventListener("mouseup",t),s(n)},onMouseMove:this.props.onMouseMove,onMouseOut:this.props.onMouseOut,onMouseOver:this.props.onMouseOver},this.props.renderItem(this.props.item))},shouldComponentUpdate:function(e){var n,t,o;return!i(null!=e?e.uid:void 0,null!=(n=this.props)?n.uid:void 0)||(null!=e?e.highlight:void 0)!==(null!=(t=this.props)?t.highlight:void 0)||(null!=e?e.selectable:void 0)!==(null!=(o=this.props)?o.selectable:void 0)}})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./utils":37}],29:[function(e,n,t){(function(t){(function(){function o(e,n){var t={}.hasOwnProperty;for(var o in n)t.call(n,o)&&(e[o]=n[o]);return e}function r(e,n){for(var t=-1,o=n.length>>>0;++t<o;)if(e===n[t])return!0;return!1}var i,s,a,u,l,p,c,d,f,h,g,v,y,m,w,b,O,T,C,S,E,R,P,x,N,D,M,A,L,_,k,j,F,I,U,H;i=e("prelude-ls"),s=i.each,a=i.filter,u=i.find,l=i.findIndex,p=i.id,c=i.initial,d=i.last,f=i.map,h=i.objToPairs,g=i.partition,v=i.reject,y=i.reverse,m=i.Str,w=i.sortBy,b=i.sum,O=i.values,i="undefined"!=typeof window?window.preludeExtension:"undefined"!=typeof t?t.preludeExtension:null,T=i.clamp,C=i.isEqualToObject,S="undefined"!=typeof window?window.React:"undefined"!=typeof t?t.React:null,i=S.DOM,E=i.div,R=i.input,P=i.path,x=i.span,N=i.svg,D=S.createFactory,M="undefined"!=typeof window?window.createReactClass:"undefined"!=typeof t?t.createReactClass:null,A=("undefined"!=typeof window?window.ReactDOM:"undefined"!=typeof t?t.ReactDOM:null).findDOMNode,L=D(e("./ToggleButton")),_=D(e("./DropdownMenu")),k=D(e("./OptionWrapper")),j=D(e("./ValueWrapper")),F=D(e("./ResetButton")),I=D(e("./ResizableInput")),i=e("./utils"),U=i.cancelEvent,H=i.classNameFromObject,n.exports=M({displayName:"ReactSelectize",focusLock:!1,getDefaultProps:function(){return{anchor:null,autofocus:!1,cancelKeyboardEventOnSelection:!0,delimiters:[],disabled:!1,dropdownDirection:1,firstOptionIndexToHighlight:function(e){return 0},groupId:function(e){return e.groupId},groupsAsColumns:!1,highlightedUid:void 0,inputProps:{},onAnchorChange:function(e){},onBlur:function(e){},onEnter:function(e){},onFocus:function(e){},onHighlightedUidChange:function(e,n){},onKeyboardSelectionFailed:function(e){},onOpenChange:function(e,n){},onPaste:function(e){},onScrollLockChange:function(e){},onSearchChange:function(e,n){},onValuesChange:function(e,n){},open:!1,hideResetButton:!1,renderValue:function(e){var n;return n=e.label,E({className:"simple-value"},x(null,n))},renderToggleButton:L,renderResetButton:F,scrollLock:!1,search:"",style:{},theme:"default",uid:p,values:[]}},render:function(){var e,n,t,r,i,s=this;return e=function(){var e;switch(!1){case!("undefined"==typeof this.props.anchor||null===this.props.anchor):return-1;default:return null!=(e=l(function(e){return s.isEqualToObject(e,s.props.anchor)},this.props.values))?e:this.props.values.length-1}}.call(this),n=function(e){return f(function(e){var n,t;return n=s.props.values[e],t=s.props.uid(n),j({key:s.uidToString(t),uid:t,item:n,renderItem:s.props.renderValue})})(e)},t=this.props.dropdownDirection===-1,E({className:H((r={"react-selectize":1},r[this.props.theme+""]=1,r["root-node"]=1,r[this.props.className+""]=1,r.disabled=this.props.disabled,r.open=this.props.open,r.flipped=t,r.tethered=this.props.tether,r)),style:this.props.style},this.props.name?R({type:"hidden",name:this.props.name,value:this.props.serialize(this.props.values)}):void 0,E({className:"react-selectize-control",ref:"control",onMouseDown:function(e){if(function(){return s.props.onAnchorChange(d(s.props.values),function(){return s.onOpenChange(!0,function(){return s.highlightAndFocus()})})}(),!s.props.open)return U(e)}},0===this.props.search.length&&0===this.props.values.length?E({className:"react-selectize-placeholder"},this.props.placeholder):void 0,E({className:"react-selectize-search-field-and-selected-values"},n(function(){var n,t,o=[];for(n=0,t=e;n<=t;++n)o.push(n);return o}()),I((r=o({disabled:this.props.disabled},this.props.inputProps),r.ref="search",r.type="text",r.value=this.props.search,r.onChange=function(e){var n;return n=e.currentTarget.value,s.props.onSearchChange(n,function(){return s.highlightAndScrollToSelectableOption(s.props.firstOptionIndexToHighlight(s.props.options),1)})},r.onFocus=function(e){!function(){return function(e){return s.focusLock?e(s.focusLock=!1):s.onOpenChange(!0,function(){return e(!0)})}}()(function(){return s.props.onFocus(e)})},r.onBlur=function(e){if(!s.refs.dropdownMenu||document.activeElement!==A(s.refs.dropdownMenu))return s.closeDropdown(function(){return s.props.onBlur(e)})},r.onPaste=this.props.onPaste,r.onKeyDown=function(n){return s.handleKeydown({anchorIndex:e},n)},r)),n(function(){var n,t,o=[];for(n=e+1,t=this.props.values.length;n<t;++n)o.push(n);return o}.call(this))),this.props.values.length>0&&!this.props.hideResetButton?E({className:"react-selectize-reset-button-container",onClick:function(e){return function(){return s.props.onValuesChange([],function(){return s.props.onSearchChange("",function(){return s.highlightAndFocus()})})}(),U(e)}},this.props.renderResetButton()):void 0,E({className:"react-selectize-toggle-button-container",onMouseDown:function(e){return s.props.open?s.onOpenChange(!1,function(){}):s.props.onAnchorChange(d(s.props.values),function(){return s.onOpenChange(!0,function(){})}),U(e)}},this.props.renderToggleButton({open:this.props.open,flipped:t}))),_((r=o({},this.props),r.ref="dropdownMenu",r.className=H((i={"react-selectize":1},i[this.props.className+""]=1,i)),r.theme=this.props.theme,r.scrollLock=this.props.scrollLock,r.onScrollChange=this.props.onScrollChange,r.bottomAnchor=function(){return A(s.refs.control)},r.tetherProps=(i=o({},this.props.tetherProps),i.target=function(){return A(s.refs.control)},i),r.highlightedUid=this.props.highlightedUid,r.onHighlightedUidChange=th