webpackJsonp([7],{0:function(e,t,n){e.exports=n(239)},8:function(e,t){"use strict";function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=Object.assign||function(e,t){for(var i,s,o=n(e),r=1;r<arguments.length;r++){i=arguments[r],s=Object.keys(Object(i));for(var a=0;a<s.length;a++)o[s[a]]=i[s[a]]}return o}},9:function(e,t,n){var i,s;/*!
	  Copyright (c) 2016 Jed Watson.
	  Licensed under the MIT License (MIT), see
	  http://jedwatson.github.io/classnames
	*/
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var s=typeof i;if("string"===s||"number"===s)e.push(i);else if(Array.isArray(i))e.push(n.apply(null,i));else if("object"===s)for(var r in i)o.call(i,r)&&i[r]&&e.push(r)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(i=[],s=function(){return n}.apply(t,i),!(void 0!==s&&(e.exports=s)))}()},10:function(e,t){"use strict";function n(e){return document.querySelector(e)}function i(e){var t=document.querySelectorAll(e);return Array.prototype.slice.call(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.q=n,t.qAll=i},16:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(1),r=i(o),a=n(35),l=i(a),u=n(37),c=i(u),d=n(36),h=i(d),p=r.default.createClass({displayName:"FormElement",propTypes:{type:r.default.PropTypes.string,label:r.default.PropTypes.string.isRequired,multiple:r.default.PropTypes.bool,name:r.default.PropTypes.string.isRequired,handleChange:r.default.PropTypes.func.isRequired,value:r.default.PropTypes.oneOfType([r.default.PropTypes.array,r.default.PropTypes.bool,r.default.PropTypes.number,r.default.PropTypes.string,r.default.PropTypes.array]).isRequired,help:r.default.PropTypes.string,errors:r.default.PropTypes.array},getDefaultProps:function(){return{type:"text"}},render:function(){var e=this.props.errors,t="id_"+this.props.name,n=this.props.help,i={text:c.default,email:c.default,password:c.default,textarea:c.default,checkbox:l.default,radio:l.default,select:h.default}[this.props.type];return r.default.createElement("div",{className:"field-wrapper"},r.default.createElement("label",{htmlFor:t},this.props.label),r.default.createElement(i,s({id:t},this.props)),e&&r.default.createElement("ul",{className:"errorlist"},e.map(function(e,t){return r.default.createElement("li",{key:t},e)})),n&&r.default.createElement("span",{className:"helptext"},n))}});t.default=p},18:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=[],i=0,s=e,o=[];s;){if(o=/^[^\x25]+/.exec(s),null!==o)n.push(o[0]);else{if(o=/^\x25\(([^\)]+)\)s/.exec(s),null===o)throw new Error("Wrong format");if(o[1]){var r=t[o[1]];u.default.isValidElement(r)?n.push(u.default.cloneElement(r,{key:i++})):n.push(r)}}s=s.substring(o[0].length)}return n}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?s(gettext(e),t):[gettext(e)]}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?interpolate(gettext(e),t,!0):gettext(e)}function a(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return i?interpolate(ngettext(e,t,n),i,!0):ngettext(e,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.tct=o,t.t=r,t.nt=a;var l=n(1),u=i(l)},19:function(e,t,n){/*!
	  Copyright (c) 2015 Jed Watson.
	  Licensed under the MIT License (MIT), see
	  http://jedwatson.github.io/classnames
	*/
function i(){for(var e,t="",n=0;n<arguments.length;n++)if(e=arguments[n])if("string"==typeof e||"number"==typeof e)t+=" "+e;else if("[object Array]"===Object.prototype.toString.call(e))t+=" "+i.apply(null,e);else if("object"==typeof e)for(var s in e)e.hasOwnProperty(s)&&e[s]&&(t+=" "+s);return t.substr(1)}var s,o;"undefined"!=typeof e&&e.exports&&(e.exports=i),s=[],o=function(){return i}.apply(t,s),!(void 0!==o&&(e.exports=o))},24:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(e||window).location.toString().split("#",2)[1]||""}function o(e){return decodeURIComponent(e.replace(/\+/g," "))}function r(e){var t={},n=/([^&;=]+)=?([^&;]*)/g,i=e;void 0===i&&(i=s());for(var r=n.exec(i);null!==r;)t[o(r[1])]=o(r[2]),r=n.exec(i);return t}function a(e,t,n,i){var r=/([^&;=]+)=?([^&;]*)/g,a=[],l=i;void 0===l&&(l=s());for(var u=!1,c=r.exec(l);null!==c;){var d=o(c[1]);d===e?(a.push([c[1],encodeURIComponent(t)].join("=")),u=!0):y.default.inArray(d,n)===-1&&a.push([c[1],c[2]].join("=")),c=r.exec(l)}return u||a.push([encodeURIComponent(e),encodeURIComponent(t)].join("=")),a.join("&")}function l(e,t){var n=void 0;return n=e===t?0:e<t?-1:1}function u(e){return(0,C.nl2br)((0,C.highlightEscapes)((0,C.highlightHtml)((0,_.raw2sym)(e.replace(/\r\n/g,"\n")))))}function c(e){return(0,C.highlightSymbols)((0,C.nl2br)((0,C.highlightPunctuation)((0,C.highlightEscapes)((0,C.highlightHtml)((0,_.raw2sym)(e.replace(/\r\n/g,"\n")),"js-editor-copytext"),"js-editor-copytext"),"js-editor-copytext")),"js-editor-copytext")}function d(e,t){(0,b.qAll)(e).forEach(function(e){var n=e.dataset.string,i=n?JSON.parse('"'+n+'"'):e.textContent;e.innerHTML=t(i)})}function h(e){return d(e,u)}function p(e){return d(e,c)}function f(e,t,n,i){var s=(0,y.default)(e);s.length&&(s.select2(t),s.on("change",n),s.on("select2-selecting",i),(0,y.default)(".select2-selection__rendered").removeAttr("title"))}function g(e,t){for(var n=e.split("."),i=n.pop(),s=t,o=0;o<n.length;o++)s=s[n[o]];for(var r=arguments.length,a=Array(r>2?r-2:0),l=2;l<r;l++)a[l-2]=arguments[l];return s[i].apply(this,a)}function m(e,t,n,i){e.toggleClass(t),n>1&&setTimeout(function(){return m(e,t,n-1,i)},i)}Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=s,t.getParsedHash=r,t.updateHashPart=a,t.strCmp=l,t.highlightRO=u,t.highlightRW=c,t.highlightRONodes=h,t.highlightRWNodes=p,t.makeSelectableInput=f,t.executeFunctionByName=g,t.blinkClass=m;var v=n(3),y=i(v);n(67);var b=n(10),C=n(48),_=n(47);t.default={blinkClass:m,executeFunctionByName:g,highlightRO:u,highlightRW:c,highlightRONodes:h,highlightRWNodes:p,getHash:s,getParsedHash:r,makeSelectableInput:f,strCmp:l,updateHashPart:a}},28:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(33),r=i(o),a=n(1),l=i(a),u=l.default.createClass({displayName:"AutosizeTextarea",componentDidMount:function(){(0,r.default)(this.refs.textarea)},componentDidUpdate:function(){var e=this;setTimeout(function(){return r.default.update(e.refs.textarea)},0)},componentWillUnmount:function(){r.default.destroy(this.refs.textarea)},render:function(){return l.default.createElement("textarea",s({ref:"textarea"},this.props))}});t.default=u},29:function(e,t){"use strict";function n(e){var t=null;if(document.cookie&&""!==document.cookie)for(var n=document.cookie.split(";"),i=0;i<n.length;i++){var s=n[i].trim();if(s.substring(0,e.length+1)===e+"="){t=decodeURIComponent(s.substring(e.length+1));break}}return t}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null===t?"":t,s=null===t?-1:n.expires,o="";if(s&&("number"==typeof s||s.toUTCString)){var r=void 0;"number"==typeof s?(r=new Date,r.setTime(r.getTime()+24*s*60*60*1e3)):r=n.expiryDate,o="; expires="+r.toUTCString()}var a=n.path?"; path="+n.path:"",l=n.domain?"; domain="+n.domain:"",u=n.secure?"; secure":"";document.cookie=e+"="+encodeURIComponent(i)+(""+o+a+l+u)}function s(e,t,s){return void 0===t?n(e):i(e,t,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=s},30:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.url,n=e.body,i=e.method,s=void 0===i?"GET":i,o=e.dataType,u=void 0===o?"json":o,c=e.queue,d=void 0===c?null:c,h=e.crossDomain,p=void 0!==h&&h,f=d||t;return a[f]&&a[f].abort(),a[f]=r.default.ajax({crossDomain:p,method:s,dataType:u,url:l(t),data:n}),a[f].done(function(){a[f]=null}),a[f]}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),r=i(o),a={};t.default=s},33:function(e,t,n){var i,s,o;/*!
		Autosize 3.0.18
		license: MIT
		http://www.jacklmoore.com/autosize
	*/
!function(n,r){s=[t,e],i=r,o="function"==typeof i?i.apply(t,s):i,!(void 0!==o&&(e.exports=o))}(this,function(e,t){"use strict";function n(e){function t(){var t=window.getComputedStyle(e,null);"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),l="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(l)&&(l=0),a()}function n(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t,s()}function i(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function s(){var t=e.style.height,n=i(e),s=document.documentElement&&document.documentElement.scrollTop;e.style.height="auto";var o=e.scrollHeight+l;return 0===e.scrollHeight?void(e.style.height=t):(e.style.height=o+"px",u=e.clientWidth,n.forEach(function(e){e.node.scrollTop=e.scrollTop}),void(s&&(document.documentElement.scrollTop=s)))}function a(){s();var t=window.getComputedStyle(e,null),i=Math.round(parseFloat(t.height)),o=Math.round(parseFloat(e.style.height));if(i!==o?"visible"!==t.overflowY&&n("visible"):"hidden"!==t.overflowY&&n("hidden"),c!==i){c=i;var a=r("autosize:resized");try{e.dispatchEvent(a)}catch(e){}}}if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var l=null,u=e.clientWidth,c=null,d=function(){e.clientWidth!==u&&a()},h=function(t){window.removeEventListener("resize",d,!1),e.removeEventListener("input",a,!1),e.removeEventListener("keyup",a,!1),e.removeEventListener("autosize:destroy",h,!1),e.removeEventListener("autosize:update",a,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",h,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",a,!1),window.addEventListener("resize",d,!1),e.addEventListener("input",a,!1),e.addEventListener("autosize:update",a,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:h,update:a}),t()}}function i(e){var t=o.get(e);t&&t.destroy()}function s(e){var t=o.get(e);t&&t.update()}var o="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,i){e.indexOf(n)===-1&&(e.push(n),t.push(i))},delete:function(n){var i=e.indexOf(n);i>-1&&(e.splice(i,1),t.splice(i,1))}}}(),r=function(e){return new Event(e)};try{new Event("test")}catch(e){r=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(a=function(e){return e},a.destroy=function(e){return e},a.update=function(e){return e}):(a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e,t)}),e},a.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}),t.exports=a})},35:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(1),r=i(o),a=r.default.createClass({displayName:"FormCheckedInput",propTypes:{handleChange:r.default.PropTypes.func.isRequired,value:r.default.PropTypes.bool.isRequired},handleChange:function(e){this.props.handleChange(e.target.name,e.target.checked)},render:function(){return r.default.createElement("input",s({checked:this.props.value,onChange:this.handleChange},this.props))}});t.default=a},36:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(1),r=i(o),a=n(41),l=i(a),u=r.default.createClass({displayName:"FormSelectInput",propTypes:{handleChange:r.default.PropTypes.func.isRequired,multiple:r.default.PropTypes.bool,name:r.default.PropTypes.string.isRequired,options:r.default.PropTypes.array.isRequired,value:r.default.PropTypes.oneOfType([r.default.PropTypes.array,r.default.PropTypes.number,r.default.PropTypes.string,r.default.PropTypes.array]).isRequired},handleChange:function(e){var t=this.props.multiple?e.split(","):e;this.props.handleChange(this.props.name,t)},render:function(){var e=this.props.value,t=this.props.multiple?e:e.toString();return r.default.createElement(l.default,s({clearAllText:gettext("Clear all"),clearValueText:gettext("Clear value"),noResultsText:gettext("No results found"),onChange:this.handleChange,placeholder:gettext("Select..."),searchPromptText:gettext("Type to search")},this.props,{multi:this.props.multiple,value:t}))}});t.default=u},37:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(1),r=i(o),a=n(28),l=i(a),u=r.default.createClass({displayName:"FormValueInput",propTypes:{handleChange:r.default.PropTypes.func.isRequired,autosize:r.default.PropTypes.bool,type:r.default.PropTypes.string,value:r.default.PropTypes.string},getDefaultProps:function(){return{autosize:!0}},handleChange:function(e){this.props.handleChange(e.target.name,e.target.value)},render:function(){return"textarea"===this.props.type?this.props.autosize?r.default.createElement(l.default,s({onChange:this.handleChange},this.props)):r.default.createElement("textarea",s({onChange:this.handleChange},this.props)):r.default.createElement("input",s({onChange:this.handleChange},this.props))}});t.default=u},39:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=n(1),o={position:"absolute",visibility:"hidden",height:0,width:0,overflow:"scroll",whiteSpace:"pre"},r=("undefined"!=typeof window?function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}().bind(window):void 0,s.createClass({displayName:"AutosizeInput",propTypes:{value:s.PropTypes.any,defaultValue:s.PropTypes.any,onChange:s.PropTypes.func,style:s.PropTypes.object,className:s.PropTypes.string,minWidth:s.PropTypes.oneOfType([s.PropTypes.number,s.PropTypes.string]),inputStyle:s.PropTypes.object,inputClassName:s.PropTypes.string},getDefaultProps:function(){return{minWidth:1}},getInitialState:function(){return{inputWidth:this.props.minWidth}},componentDidMount:function(){this.copyInputStyles(),this.updateInputWidth()},componentDidUpdate:function(){this.updateInputWidth()},copyInputStyles:function(){if(this.isMounted()&&window.getComputedStyle){var e=window.getComputedStyle(this.refs.input);if(e){var t=this.refs.sizer;if(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,this.props.placeholder){var n=this.refs.placeholderSizer;n.style.fontSize=e.fontSize,n.style.fontFamily=e.fontFamily,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.letterSpacing=e.letterSpacing}}}},updateInputWidth:function(){if(this.isMounted()&&"undefined"!=typeof this.refs.sizer.scrollWidth){var e=void 0;e=this.props.placeholder?Math.max(this.refs.sizer.scrollWidth,this.refs.placeholderSizer.scrollWidth)+2:this.refs.sizer.scrollWidth+2,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}},getInput:function(){return this.refs.input},focus:function(){this.refs.input.focus()},blur:function(){this.refs.input.blur()},select:function(){this.refs.input.select()},render:function(){var e=this.props.defaultValue||this.props.value||"",t=this.props.style||{};t.display||(t.display="inline-block");var n=i({},this.props.inputStyle);n.width=this.state.inputWidth+"px",n.boxSizing="content-box";var r=this.props.placeholder?s.createElement("div",{ref:"placeholderSizer",style:o},this.props.placeholder):null;return s.createElement("div",{className:this.props.className,style:t},s.createElement("input",i({},this.props,{ref:"input",className:this.props.inputClassName,style:n})),s.createElement("div",{ref:"sizer",style:o},e),r)}}));e.exports=r},40:function(e,t,n){"use strict";var i=n(1),s=n(9),o=i.createClass({displayName:"Option",propTypes:{addLabelText:i.PropTypes.string,className:i.PropTypes.string,mouseDown:i.PropTypes.func,mouseEnter:i.PropTypes.func,mouseLeave:i.PropTypes.func,option:i.PropTypes.object.isRequired,renderFunc:i.PropTypes.func},blockEvent:function(e){e.preventDefault(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href):window.location.href=e.target.href)},handleMouseDown:function(e){this.props.mouseDown(this.props.option,e)},handleMouseEnter:function(e){this.props.mouseEnter(this.props.option,e)},handleMouseLeave:function(e){this.props.mouseLeave(this.props.option,e)},render:function(){var e=this.props.option,t=e.create?this.props.addLabelText.replace("{label}",e.label):this.props.renderFunc(e),n=s(this.props.className,e.className);return e.disabled?i.createElement("div",{className:n,onMouseDown:this.blockEvent,onClick:this.blockEvent},t):i.createElement("div",{className:n,style:e.style,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleMouseDown,title:e.title},t)}});e.exports=o},41:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(1),r=n(11),a=n(39),l=n(9),u=n(43),c=n(42),d=n(40),h=0,p=o.createClass({displayName:"Select",propTypes:{addLabelText:o.PropTypes.string,allowCreate:o.PropTypes.bool,asyncOptions:o.PropTypes.func,autoload:o.PropTypes.bool,backspaceRemoves:o.PropTypes.bool,cacheAsyncResults:o.PropTypes.bool,className:o.PropTypes.string,clearAllText:o.PropTypes.string,clearValueText:o.PropTypes.string,clearable:o.PropTypes.bool,delimiter:o.PropTypes.string,disabled:o.PropTypes.bool,filterOption:o.PropTypes.func,filterOptions:o.PropTypes.func,ignoreCase:o.PropTypes.bool,inputProps:o.PropTypes.object,isLoading:o.PropTypes.bool,labelKey:o.PropTypes.string,matchPos:o.PropTypes.string,matchProp:o.PropTypes.string,multi:o.PropTypes.bool,name:o.PropTypes.string,newOptionCreator:o.PropTypes.func,noResultsText:o.PropTypes.string,onBlur:o.PropTypes.func,onChange:o.PropTypes.func,onFocus:o.PropTypes.func,onInputChange:o.PropTypes.func,onOptionLabelClick:o.PropTypes.func,optionComponent:o.PropTypes.func,optionRenderer:o.PropTypes.func,options:o.PropTypes.array,placeholder:o.PropTypes.string,searchable:o.PropTypes.bool,searchingText:o.PropTypes.string,searchPromptText:o.PropTypes.string,singleValueComponent:o.PropTypes.func,value:o.PropTypes.any,valueComponent:o.PropTypes.func,valueKey:o.PropTypes.string,valueRenderer:o.PropTypes.func},getDefaultProps:function(){return{addLabelText:'Add "{label}"?',allowCreate:!1,asyncOptions:void 0,autoload:!0,backspaceRemoves:!0,cacheAsyncResults:!0,className:void 0,clearAllText:"Clear all",clearValueText:"Clear value",clearable:!0,delimiter:",",disabled:!1,ignoreCase:!0,inputProps:{},isLoading:!1,labelKey:"label",matchPos:"any",matchProp:"any",name:void 0,newOptionCreator:void 0,noResultsText:"No results found",onChange:void 0,onInputChange:void 0,onOptionLabelClick:void 0,optionComponent:d,options:void 0,placeholder:"Select...",searchable:!0,searchingText:"Searching...",searchPromptText:"Type to search",singleValueComponent:c,value:void 0,valueComponent:u,valueKey:"value"}},getInitialState:function(){return{isFocused:!1,isLoading:!1,isOpen:!1,options:this.props.options}},componentWillMount:function(){var e=this;this._optionsCache={},this._optionsFilterString="",this._closeMenuIfClickedOutside=function(t){if(e.state.isOpen){var n=r.findDOMNode(e.refs.selectMenuContainer),i=r.findDOMNode(e.refs.control),s=e.clickedOutsideElement(n,t),o=e.clickedOutsideElement(i,t);s&&o&&e.setState({isOpen:!1},e._unbindCloseMenuIfClickedOutside)}},this._bindCloseMenuIfClickedOutside=function(){!document.addEventListener&&document.attachEvent?document.attachEvent("onclick",e._closeMenuIfClickedOutside):document.addEventListener("click",e._closeMenuIfClickedOutside)},this._unbindCloseMenuIfClickedOutside=function(){!document.removeEventListener&&document.detachEvent?document.detachEvent("onclick",e._closeMenuIfClickedOutside):document.removeEventListener("click",e._closeMenuIfClickedOutside)},this.setState(this.getStateFromValue(this.props.value))},componentDidMount:function(){this.props.asyncOptions&&this.props.autoload&&this.autoloadAsyncOptions()},componentWillUnmount:function(){clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this.state.isOpen&&this._unbindCloseMenuIfClickedOutside()},componentWillReceiveProps:function(e){var t=this,n=!1;if(JSON.stringify(e.options)!==JSON.stringify(this.props.options)&&(n=!0,this.setState({options:e.options,filteredOptions:this.filterOptions(e.options)})),e.value!==this.state.value||e.placeholder!==this.props.placeholder||n){var i=function(n){t.setState(t.getStateFromValue(e.value,n&&n.options||e.options,e.placeholder))};this.props.asyncOptions?this.loadAsyncOptions(e.value,{},i):i()}},componentDidUpdate:function(){var e=this;if(!this.props.disabled&&this._focusAfterUpdate&&(clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this._focusTimeout=setTimeout(function(){e.isMounted()&&(e.getInputNode().focus(),e._focusAfterUpdate=!1)},50)),this._focusedOptionReveal){if(this.refs.focused&&this.refs.menu){var t=r.findDOMNode(this.refs.focused),n=r.findDOMNode(this.refs.menu),i=t.getBoundingClientRect(),s=n.getBoundingClientRect();(i.bottom>s.bottom||i.top<s.top)&&(n.scrollTop=t.offsetTop+t.clientHeight-n.offsetHeight)}this._focusedOptionReveal=!1}},focus:function(){this.getInputNode().focus()},clickedOutsideElement:function(e,t){for(var n=t.target?t.target:t.srcElement;null!=n;){if(n===e)return!1;n=n.offsetParent}return!0},getStateFromValue:function(e,t,n){var i=this;t||(t=this.state.options),n||(n=this.props.placeholder),this._optionsFilterString="";var s,o=this.initValuesArray(e,t),r=this.filterOptions(t,o),a=null;return!this.props.multi&&o.length?(s=o[0],a=o[0][this.props.valueKey]):(s=this.getFirstFocusableOption(r),a=o.map(function(e){return e[i.props.valueKey]}).join(this.props.delimiter)),{value:a,values:o,inputValue:"",filteredOptions:r,placeholder:!this.props.multi&&o.length?o[0][this.props.labelKey]:n,focusedOption:s}},getFirstFocusableOption:function(e){for(var t=0;t<e.length;++t)if(!e[t].disabled)return e[t]},initValuesArray:function(e,t){var n=this;return Array.isArray(e)||(e="string"==typeof e?""===e?[]:this.props.multi?e.split(this.props.delimiter):[e]:void 0!==e&&null!==e?[e]:[]),e.map(function(e){if("string"==typeof e||"number"==typeof e){var s;for(var o in t)if(t.hasOwnProperty(o)&&t[o]&&(t[o][n.props.valueKey]===e||"number"==typeof t[o][n.props.valueKey]&&t[o][n.props.valueKey].toString()===e))return t[o];return s={},i(s,n.props.valueKey,e),i(s,n.props.labelKey,e),s}return e})},setValue:function(e,t){(t||void 0===t)&&(this._focusAfterUpdate=!0);var n=this.getStateFromValue(e);n.isOpen=!1,this.fireChangeEvent(n),this.setState(n)},selectValue:function(e){this.props.multi?e&&this.addValue(e):this.setValue(e),this._unbindCloseMenuIfClickedOutside()},addValue:function(e){this.setValue(this.state.values.concat(e))},popValue:function(){this.setValue(this.state.values.slice(0,this.state.values.length-1))},removeValue:function(e){this.setValue(this.state.values.filter(function(t){return t!==e}))},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(null))},resetValue:function(){this.setValue(""===this.state.value?null:this.state.value)},getInputNode:function(){var e=this.refs.input;return this.props.searchable?e:r.findDOMNode(e)},fireChangeEvent:function(e){e.value!==this.state.value&&this.props.onChange&&this.props.onChange(e.value,e.values)},handleMouseDown:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button))return e.stopPropagation(),e.preventDefault(),this.state.isOpen&&!this.props.searchable?void this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside):void(this.state.isFocused?this.setState({isOpen:!0},this._bindCloseMenuIfClickedOutside):(this._openAfterFocus=!0,this.getInputNode().focus()))},handleMouseDownOnMenu:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault())},handleMouseDownOnArrow:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||this.state.isOpen&&(e.stopPropagation(),e.preventDefault(),this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside))},handleInputFocus:function(e){var t=this,n=this.state.isOpen||this._openAfterFocus;this.setState({isFocused:!0,isOpen:n},function(){n?t._bindCloseMenuIfClickedOutside():t._unbindCloseMenuIfClickedOutside()}),this._openAfterFocus=!1,this.props.onFocus&&this.props.onFocus(e)},handleInputBlur:function(e){var t=this,n=r.findDOMNode(this.refs.menu);document.activeElement.isEqualNode(n)||(this._blurTimeout=setTimeout(function(){!t._focusAfterUpdate&&t.isMounted()&&t.setState({inputValue:"",isFocused:!1,isOpen:!1})},50),this.props.onBlur&&this.props.onBlur(e))},handleKeyDown:function(e){if(!this.props.disabled){switch(e.keyCode){case 8:return void(!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue()));case 9:if(e.shiftKey||!this.state.isOpen||!this.state.focusedOption)return;this.selectFocusedOption();break;case 13:if(!this.state.isOpen)return;this.selectFocusedOption();break;case 27:this.state.isOpen?this.resetValue():this.props.clearable&&this.clearValue(e);break;case 38:this.focusPreviousOption();break;case 40:this.focusNextOption();break;case 188:if(!this.props.allowCreate||!this.props.multi)return;e.preventDefault(),e.stopPropagation(),this.selectFocusedOption();break;default:return}e.preventDefault()}},_getNewFocusedOption:function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===this.state.focusedOption)return e[t];return this.getFirstFocusableOption(e)},handleInputChange:function(e){if(this._optionsFilterString=e.target.value,this.props.onInputChange&&this.props.onInputChange(e.target.value),this.props.asyncOptions)this.setState({isLoading:!0,inputValue:e.target.value}),this.loadAsyncOptions(e.target.value,{isLoading:!1,isOpen:!0},this._bindCloseMenuIfClickedOutside);else{var t=this.filterOptions(this.state.options);this.setState({isOpen:!0,inputValue:e.target.value,filteredOptions:t,focusedOption:this._getNewFocusedOption(t)},this._bindCloseMenuIfClickedOutside)}},autoloadAsyncOptions:function(){var e=this;this.setState({isLoading:!0}),this.loadAsyncOptions("",{isLoading:!1},function(){e.setValue(e.props.value,!1)})},loadAsyncOptions:function(e,t,n){void 0===e&&(e="");var i=this,s=this._currentRequestId=h++;if(this.props.cacheAsyncResults)for(var o=0;o<=e.length;o++){var r=e.slice(0,o);if(this._optionsCache[r]&&(e===r||this._optionsCache[r].complete)){var a=this._optionsCache[r].options,l=this.filterOptions(a),u={options:a,filteredOptions:l,focusedOption:this._getNewFocusedOption(l)};for(var c in t)t.hasOwnProperty(c)&&(u[c]=t[c]);return this.setState(u),void(n&&n.call(this,u))}}var d=function(o,r){if(o)throw o;if(i.props.cacheAsyncResults&&(i._optionsCache[e]=r),s===i._currentRequestId){var a=i.filterOptions(r.options),l={options:r.options,filteredOptions:a,focusedOption:i._getNewFocusedOption(a)};for(var u in t)t.hasOwnProperty(u)&&(l[u]=t[u]);i.setState(l),n&&n.call(i,l)}},p=this.props.asyncOptions(e,d);p&&"function"==typeof p.then&&p.then(function(e){d(null,e)},function(e){d(e)})},filterOptions:function(e,t){var n=this,i=this._optionsFilterString,s=(t||this.state.values).map(function(e){return e[n.props.valueKey]});if(this.props.filterOptions)return this.props.filterOptions.call(this,e,i,s);var o=function(e){if(this.props.multi&&s.indexOf(e[this.props.valueKey])>-1)return!1;if(this.props.filterOption)return this.props.filterOption.call(this,e,i);var t=String(e[this.props.valueKey]),n=String(e[this.props.labelKey]);return this.props.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase(),i=i.toLowerCase()),i&&"start"!==this.props.matchPos?"label"!==this.props.matchProp&&t.indexOf(i)>=0||"value"!==this.props.matchProp&&n.indexOf(i)>=0:"label"!==this.props.matchProp&&t.substr(0,i.length)===i||"value"!==this.props.matchProp&&n.substr(0,i.length)===i};return(e||[]).filter(o,this)},selectFocusedOption:function(){return this.props.allowCreate&&!this.state.focusedOption?this.selectValue(this.state.inputValue):this.state.focusedOption?this.selectValue(this.state.focusedOption):void 0},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusAdjacentOption:function(e){this._focusedOptionReveal=!0;var t=this.state.filteredOptions.filter(function(e){return!e.disabled});if(!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this.state.focusedOption||t["next"===e?0:t.length-1]},this._bindCloseMenuIfClickedOutside);if(t.length){for(var n=-1,i=0;i<t.length;i++)if(this.state.focusedOption===t[i]){n=i;break}var s=t[0];"next"===e&&n>-1&&n<t.length-1?s=t[n+1]:"previous"===e&&(s=n>0?t[n-1]:t[t.length-1]),this.setState({focusedOption:s})}},unfocusOption:function(e){this.state.focusedOption===e&&this.setState({focusedOption:null})},renderOptionLabel:function(e){return e[this.props.labelKey]},buildMenu:function(){var e=this.state.focusedOption?this.state.focusedOption[this.props.valueKey]:null,t=this.props.optionRenderer||this.renderOptionLabel;this.state.filteredOptions.length>0&&(e=null==e?this.state.filteredOptions[0]:e);var n=this.state.filteredOptions;if(this.props.allowCreate&&this.state.inputValue.trim()){var i=this.state.inputValue;n=n.slice();var s=this.props.newOptionCreator?this.props.newOptionCreator(i):{value:i,label:i,create:!0};n.unshift(s)}var r=Object.keys(n).map(function(i){var s=n[i],r=this.state.value===s[this.props.valueKey],a=e===s[this.props.valueKey],u=l({"Select-option":!0,"is-selected":r,"is-focused":a,"is-disabled":s.disabled}),c=a?"focused":null,d=o.createElement(this.props.optionComponent,{key:"option-"+s[this.props.valueKey],className:u,renderFunc:t,mouseDown:this.selectValue,mouseEnter:this.focusOption,mouseLeave:this.unfocusOption,addLabelText:this.props.addLabelText,option:s,ref:c});return d},this);if(r.length)return r;var a,u;return this.isLoading()?(u="Select-searching",a=this.props.searchingText):this.state.inputValue||!this.props.asyncOptions?(u="Select-noresults",a=this.props.noResultsText):(u="Select-search-prompt",a=this.props.searchPromptText),o.createElement("div",{className:u},a)},handleOptionLabelClick:function(e,t){this.props.onOptionLabelClick&&this.props.onOptionLabelClick(e,t)},isLoading:function(){return this.props.isLoading||this.state.isLoading},render:function(){var e=l("Select",this.props.className,{"Select--multi":this.props.multi,"is-searchable":this.props.searchable,"is-open":this.state.isOpen,"is-focused":this.state.isFocused,"is-loading":this.isLoading(),"is-disabled":this.props.disabled,"has-value":this.state.value}),t=[];if(this.props.multi&&this.state.values.forEach(function(e){var n=this.props.valueRenderer||this.renderOptionLabel,i=this.handleOptionLabelClick.bind(this,e),s=this.removeValue.bind(this,e),r=o.createElement(this.props.valueComponent,{key:e[this.props.valueKey],option:e,renderer:n,optionLabelClick:!!this.props.onOptionLabelClick,onOptionLabelClick:i,onRemove:s,disabled:this.props.disabled});t.push(r)},this),!(this.state.inputValue||this.props.multi&&t.length)){var n=this.state.values[0]||null;if(this.props.valueRenderer&&this.state.values.length)t.push(o.createElement(u,{key:0,option:n,renderer:this.props.valueRenderer,disabled:this.props.disabled}));else{var i=o.createElement(this.props.singleValueComponent,{key:"placeholder",value:n,placeholder:this.state.placeholder});t.push(i)}}var r,c,d=this.isLoading()?o.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},o.createElement("span",{className:"Select-loading"})):null,h=this.props.clearable&&this.state.value&&!this.props.disabled&&!this.isLoading()?o.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchEnd:this.clearValue,onClick:this.clearValue},o.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"&times;"}})):null,p=o.createElement("span",{className:"Select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},o.createElement("span",{className:"Select-arrow",onMouseDown:this.handleMouseDownOnArrow}));this.state.isOpen&&(c={ref:"menu",className:"Select-menu",onMouseDown:this.handleMouseDownOnMenu},r=o.createElement("div",{ref:"selectMenuContainer",className:"Select-menu-outer"},o.createElement("div",c,this.buildMenu())));var f,g={ref:"input",className:"Select-input "+(this.props.inputProps.className||""),tabIndex:this.props.tabIndex||0,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};for(var m in this.props.inputProps)this.props.inputProps.hasOwnProperty(m)&&"className"!==m&&(g[m]=this.props.inputProps[m]);return this.props.disabled?this.props.multi&&this.state.values.length||(f=o.createElement("div",{className:"Select-input"}," ")):f=this.props.searchable?o.createElement(a,s({value:this.state.inputValue,onChange:this.handleInputChange,minWidth:"5"},g)):o.createElement("div",g," "),o.createElement("div",{ref:"wrapper",className:e},o.createElement("input",{type:"hidden",ref:"value",name:this.props.name,value:this.state.value,disabled:this.props.disabled}),o.createElement("div",{className:"Select-control",ref:"control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},t,f,d,h,p),r)}});e.exports=p},42:function(e,t,n){"use strict";var i=n(1),s=n(9),o=i.createClass({displayName:"SingleValue",propTypes:{placeholder:i.PropTypes.string,value:i.PropTypes.object},render:function(){var e=s("Select-placeholder",this.props.value&&this.props.value.className);return i.createElement("div",{className:e,style:this.props.value&&this.props.value.style,title:this.props.value&&this.props.value.title},this.props.placeholder)}});e.exports=o},43:function(e,t,n){"use strict";var i=n(1),s=n(9),o=i.createClass({displayName:"Value",propTypes:{disabled:i.PropTypes.bool,onOptionLabelClick:i.PropTypes.func,onRemove:i.PropTypes.func,option:i.PropTypes.object.isRequired,optionLabelClick:i.PropTypes.bool,renderer:i.PropTypes.func},blockEvent:function(e){e.stopPropagation()},handleOnRemove:function(e){this.props.disabled||this.props.onRemove(e)},render:function(){var e=this.props.option.label;return this.props.renderer&&(e=this.props.renderer(this.props.option)),this.props.onRemove||this.props.optionLabelClick?(this.props.optionLabelClick&&(e=i.createElement("a",{className:s("Select-item-label__a",this.props.option.className),onMouseDown:this.blockEvent,onTouchEnd:this.props.onOptionLabelClick,onClick:this.props.onOptionLabelClick,style:this.props.option.style,title:this.props.option.title},e)),i.createElement("div",{className:s("Select-item",this.props.option.className),style:this.props.option.style,title:this.props.option.title},i.createElement("span",{className:"Select-item-icon",onMouseDown:this.blockEvent,onClick:this.handleOnRemove,onTouchEnd:this.handleOnRemove},"×"),i.createElement("span",{className:"Select-item-label"},e))):i.createElement("div",{className:s("Select-value",this.props.option.className),style:this.props.option.style,title:this.props.option.title},e)}});e.exports=o},47:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return Array(e.length+1).join(S.SPACE)}function r(e){return x.LF+o(e.substring(1))}function a(e){return e.substring(0).replace(/ +/g,o)}function l(e){return o(e.substring(1))+x.LF}function u(e,t,n){var i=t.indexOf(e);return i>=0?n.charAt(i):e}function c(e){return u(e,R,E)}function d(e){return u(e,E,R)}function h(e){return u(e,k,A)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isRawMode,i=void 0!==n&&n,s=i?e.replace(/ +/g,o):e.replace(/ {2,}/g,o);return s=s.replace(/\n /g,r),s=s.replace(/ \n/g,l),s=s.replace(/ [\t\u00A0]/g,a),s=s.replace(/[\t\u00A0] /g,a),s=s.replace(/^ /,o),s=s.replace(/ $/,o),s=s.replace(/\n/g,""+S.LF+x.LF),s=i?s.replace(D,d):s.replace(P,h)}function f(e){var t=e.replace(/\u240A\n/g,x.LF);return t=t.replace(/\u240A/g,x.LF),t=t.replace(/\u2420/g,x.SPACE),t=t.replace(F,c)}Object.defineProperty(t,"__esModule",{value:!0}),t.RE_BASE_REVERSE=t.BASE_MAP_REVERSE_HL=t.FULL_MAP=t.BASE_MAP=t.SYMBOLS=t.CHARACTERS=void 0;var g,m,v,y;t.raw2sym=p,t.sym2raw=f;var b=n(8),C=i(b),_=n(6),w=i(_),x=t.CHARACTERS={NULL:"\0",BELL:"",BS:"\b",TAB:"\t",VT:"\v",FF:"\f",ESC:"",NBSP:" ",LF:"\n",CR:"\r",SPACE:" ",ALM:"؜",ZWS:"​",ZWNJ:"‌",ZWJ:"‍",LRM:"‎",RLM:"‏",LRE:"‪",RLE:"‫",PDF:"‬",LRO:"‭",RLO:"‮",WJ:"⁠",LRI:"⁦",RLI:"⁧",FSI:"⁨",PDI:"⁩"},S=t.SYMBOLS={NULL:"␀",BELL:"␇",BS:"␈",TAB:"␉",VT:"␋",FF:"␌",ESC:"␛",NBSP:"␣",LF:"␊",CR:"␍",SPACE:"␠",ALM:"",ZWS:"",ZWNJ:"",ZWJ:"",LRM:"",RLM:"",LRE:"",RLE:"",PDF:"",LRO:"",RLO:"",WJ:"",LRI:"",RLI:"",FSI:"",PDI:""},T=t.BASE_MAP=(g={},s(g,x.NULL,S.NULL),s(g,x.BELL,S.BELL),s(g,x.BS,S.BS),s(g,x.TAB,S.TAB),s(g,x.VT,S.VT),s(g,x.FF,S.FF),s(g,x.ESC,S.ESC),s(g,x.NBSP,S.NBSP),s(g,x.CR,S.CR),g),M=t.FULL_MAP=(0,C.default)({},T,(m={},s(m,x.ALM,S.ALM),s(m,x.ZWS,S.ZWS),s(m,x.ZWNJ,S.ZWNJ),s(m,x.ZWJ,S.ZWJ),s(m,x.LRM,S.LRM),s(m,x.RLM,S.RLM),s(m,x.LRE,S.LRE),s(m,x.RLE,S.RLE),s(m,x.PDF,S.PDF),s(m,x.LRO,S.LRO),s(m,x.RLO,S.RLO),s(m,x.WJ,S.WJ),s(m,x.LRI,S.LRI),s(m,x.RLI,S.RLI),s(m,x.FSI,S.FSI),s(m,x.PDI,S.PDI),m)),O=(0,C.default)({},w.default.invert(T),(v={},s(v,S.LF,""),s(v,S.CR,""),v)),k=(t.BASE_MAP_REVERSE_HL=(0,C.default)({},O,(y={},s(y,S.LF,x.LF),s(y,S.CR,x.CR),y)),t.RE_BASE_REVERSE=new RegExp("["+Object.keys(O).join("")+"]","g"),Object.keys(T).join("")),A=Object.keys(w.default.invert(T)).join(""),E=Object.keys(M).join(""),R=Object.keys(w.default.invert(M)).join(""),P=new RegExp("["+k+"]","g"),D=new RegExp("["+E+"]","g"),F=new RegExp("["+R+"]","g")},48:function(e,t,n){"use strict";function i(e){return"target_f_"+e}Object.defineProperty(t,"__esModule",{value:!0});var s=n(90);Object.defineProperty(t,"decodeEntities",{enumerable:!0,get:function(){return s.decodeEntities}});var o=n(89);Object.defineProperty(t,"highlightPunctuation",{enumerable:!0,get:function(){return o.highlightPunctuation}}),Object.defineProperty(t,"highlightEscapes",{enumerable:!0,get:function(){return o.highlightEscapes}}),Object.defineProperty(t,"highlightHtml",{enumerable:!0,get:function(){return o.highlightHtml}}),Object.defineProperty(t,"highlightSymbols",{
enumerable:!0,get:function(){return o.highlightSymbols}}),Object.defineProperty(t,"nl2br",{enumerable:!0,get:function(){return o.nl2br}});var r=n(91);Object.defineProperty(t,"normalizeCode",{enumerable:!0,get:function(){return r.normalizeCode}});var a=n(54);Object.defineProperty(t,"escapeUnsafeRegexSymbols",{enumerable:!0,get:function(){return a.escapeUnsafeRegexSymbols}}),Object.defineProperty(t,"makeRegexForMultipleWords",{enumerable:!0,get:function(){return a.makeRegexForMultipleWords}}),t.getAreaId=i},49:function(e,t,n){"use strict";function i(e){var t=e.minutes,n=e.hours,i=e.days,s=e.weeks,r=e.months,a=e.years;return a>0?1===a?(0,o.t)("A year ago"):(0,o.nt)("%(count)s year ago","%(count)s years ago",a,{count:a}):r>0?1===r?(0,o.t)("A month ago"):(0,o.nt)("%(count)s month ago","%(count)s months ago",r,{count:r}):s>0?1===s?(0,o.t)("A week ago"):(0,o.nt)("%(count)s week ago","%(count)s weeks ago",s,{count:s}):i>0?1===i?(0,o.t)("Yesterday"):(0,o.nt)("%(count)s day ago","%(count)s days ago",i,{count:i}):n>0?1===n?(0,o.t)("An hour ago"):(0,o.nt)("%(count)s hour ago","%(count)s hours ago",n,{count:n}):t>0?1===t?(0,o.t)("A minute ago"):(0,o.nt)("%(count)s minute ago","%(count)s minutes ago",t,{count:t}):(0,o.t)("A few seconds ago")}function s(e){var t=(0,r.timeDelta)(e),n=t.isFuture,s=t.minutes,o=t.hours,a=t.days,l=t.weeks,u=t.months,c=t.years;return null===n?"":i({minutes:s,hours:o,days:a,weeks:l,months:u,years:c})}Object.defineProperty(t,"__esModule",{value:!0}),t.relativeTime=s;var o=n(18),r=n(59)},52:function(e,t){!function(e){var t,n,i,s,o,r,a,l="Close",u="BeforeClose",c="AfterClose",d="BeforeAppend",h="MarkupParse",p="Open",f="Change",g="mfp",m="."+g,v="mfp-ready",y="mfp-removing",b="mfp-prevent-close",C=function(){},_=!!window.jQuery,w=e(window),x=function(e,n){t.ev.on(g+e+m,n)},S=function(t,n,i,s){var o=document.createElement("div");return o.className="mfp-"+t,i&&(o.innerHTML=i),s?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},T=function(n,i){t.ev.triggerHandler(g+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},M=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},O=function(){e.magnificPopup.instance||(t=new C,t.init(),e.magnificPopup.instance=t)},k=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};C.prototype={constructor:C,init:function(){var n=navigator.appVersion;t.isIE7=n.indexOf("MSIE 7.")!==-1,t.isIE8=n.indexOf("MSIE 8.")!==-1,t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=k(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),s=e(document),t.popupsCache={}},open:function(n){i||(i=e(document.body));var o;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var a,l=n.items;for(o=0;o<l.length;o++)if(a=l[o],a.parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=s,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=S("bg").on("click"+m,function(){t.close()}),t.wrap=S("wrap").attr("tabindex",-1).on("click"+m,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=S("container",t.wrap)),t.contentContainer=S("content"),t.st.preloader&&(t.preloader=S("preloader",t.container,t.st.tLoading));var u=e.magnificPopup.modules;for(o=0;o<u.length;o++){var c=u[o];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}T("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(h,function(e,t,n,i){n.close_replaceWith=M(i.type)}),r+=" mfp-close-btn-in"):t.wrap.append(M())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:w.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:s.height(),position:"absolute"}),t.st.enableEscapeKey&&s.on("keyup"+m,function(e){27===e.keyCode&&t.close()}),w.on("resize"+m,function(){t.updateSize()}),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var d=t.wH=w.height(),f={};if(t.fixedContentPos&&t._hasScrollBar(d)){var g=t._getScrollbarSize();g&&(f.marginRight=g)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):f.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),T("BuildControls"),e("html").css(f),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||i),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),s.on("focusin"+m,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),T(p),n},close:function(){t.isOpen&&(T(u),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(y),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){T(l);var n=y+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}s.off("keyup"+m+" focusin"+m),t.ev.off(m),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,T(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||w.height();t.fixedContentPos||t.wrap.css("height",t.wH),T("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(T("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var s=!!t.st[i]&&t.st[i].markup;T("FirstMarkupParse",s),s?t.currTemplate[i]=e(s):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,T(f,n),o=n.type,t.container.prepend(t.contentContainer),T("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(M()):t.content=e:t.content="",T(d),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,s=t.items[n];if(s.tagName?s={el:e(s)}:(i=s.type,s={data:s,src:s.src}),s.el){for(var o=t.types,r=0;r<o.length;r++)if(s.el.hasClass("mfp-"+o[r])){i=o[r];break}s.src=s.el.attr("data-mfp-src"),s.src||(s.src=s.el.attr("href"))}return s.type=i||t.st.type||"inline",s.index=n,s.parsed=!0,t.items[n]=s,T("ElementParse",s),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var s="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(s).on(s,i)):(n.isObj=!1,n.delegate?e.off(s).on(s,n.delegate,i):(n.items=e,e.off(s).on(s,i)))},_openClick:function(n,i,s){var o=void 0!==s.midClick?s.midClick:e.magnificPopup.defaults.midClick;if(o||2!==n.which&&!n.ctrlKey&&!n.metaKey){var r=void 0!==s.disableOn?s.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(w.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),s.el=e(n.mfpEl),s.delegate&&(s.items=i.find(s.delegate)),t.open(s)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var s={status:e,text:i};T("UpdateStatus",s),e=s.status,i=s.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(b)){var i=t.st.closeOnContentClick,s=t.st.closeOnBgClick;if(i&&s)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(s&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?s.height():document.body.scrollHeight)>(e||w.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var s;i.data&&(n=e.extend(i.data,n)),T(h,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(s=e.split("_"),s.length>1){var i=t.find(m+"-"+s[0]);if(i.length>0){var o=s[1];"replaceWith"===o?i[0]!==n[0]&&i.replaceWith(n):"img"===o?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(s[1],n)}}else t.find(m+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.id="mfp-sbm",e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:C.prototype,modules:[],open:function(t,n){return O(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){O();var i=e(this);if("string"==typeof n)if("open"===n){var s,o=_?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;o.items?s=o.items[r]:(s=i,o.delegate&&(s=s.find(o.delegate)),s=s.eq(r)),t._openClick({mfpEl:s},i,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),_?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var A,E,R,P="inline",D=function(){R&&(E.after(R.addClass(A)).detach(),R=null)};e.magnificPopup.registerModule(P,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(P),x(l+"."+P,function(){D()})},getInline:function(n,i){if(D(),n.src){var s=t.st.inline,o=e(n.src);if(o.length){var r=o[0].parentNode;r&&r.tagName&&(E||(A=s.hiddenClass,E=S(A),A="mfp-"+A),R=o.after(E).detach().removeClass(A)),t.updateStatus("ready")}else t.updateStatus("error",s.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var F,I="ajax",j=function(){F&&i.removeClass(F)},L=function(){j(),t.req&&t.req.abort()};e.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(I),F=t.st.ajax.cursor,x(l+"."+I,L),x("BeforeChange."+I,L)},getAjax:function(n){F&&i.addClass(F),t.updateStatus("loading");var s=e.extend({url:n.src,success:function(i,s,o){var r={data:i,xhr:o};T("ParseAjax",r),t.appendContent(e(r.data),I),n.finished=!0,j(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),T("AjaxContentAdded")},error:function(){j(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(s),""}}});var N,$=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=t.st.image,n=".image";t.types.push("image"),x(p+n,function(){"image"===t.currItem.type&&e.cursor&&i.addClass(e.cursor)}),x(l+n,function(){e.cursor&&i.removeClass(e.cursor),w.off("resize"+m)}),x("Resize"+n,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,N&&clearInterval(N),e.isCheckingImgSize=!1,T("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],s=function(o){N&&clearInterval(N),N=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(N),n++,void(3===n?s(10):40===n?s(50):100===n&&s(500)))},o)};s(1)},getImage:function(n,i){var s=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,T("ImageLoadComplete")):(s++,s<200?setTimeout(o,100):r()))},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",a.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},a=t.st.image,l=i.find(".mfp-img");if(l.length){var u=document.createElement("img");u.className="mfp-img",n.img=e(u).on("load.mfploader",o).on("error.mfploader",r),u.src=n.src,l.is("img")&&(n.img=n.img.clone()),u=n.img[0],u.naturalWidth>0?n.hasSize=!0:u.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:$(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(N&&clearInterval(N),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",a.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var B,z=function(){return void 0===B&&(B=void 0!==document.createElement("p").style.MozTransform),B};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var s,o,r=n.duration,a=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,s={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return s["-webkit-"+o]=s["-moz-"+o]=s["-o-"+o]=s[o]=i,t.css(s),t},c=function(){t.content.css("visibility","visible")};x("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(s),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void c();o=a(e),o.css(t._getOffset()),t.wrap.append(o),s=setTimeout(function(){o.css(t._getOffset(!0)),s=setTimeout(function(){c(),setTimeout(function(){o.remove(),e=o=null,T("ZoomAnimationEnded")},16)},r)},16)}}),x(u+i,function(){if(t._allowZoom()){if(clearTimeout(s),t.st.removalDelay=r,!e){if(e=t._getItemToZoom(),!e)return;o=a(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout(function(){o.css(t._getOffset())},16)}}),x(l+i,function(){t._allowZoom()&&(c(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var s=i.offset(),o=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);s.top-=e(window).scrollTop()-o;var a={width:i.width(),height:(_?i.innerHeight():i[0].offsetHeight)-r-o};return z()?a["-moz-transform"]=a.transform="translate("+s.left+"px,"+s.top+"px)":(a.left=s.left,a.top=s.top),a}}});var q="iframe",U="//about:blank",V=function(e){if(t.currTemplate[q]){var n=t.currTemplate[q].find("iframe");n.length&&(e||(n[0].src=U),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(q,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(q),x("BeforeChange",function(e,t,n){t!==n&&(t===q?V():n===q&&V(!0))}),x(l+"."+q,function(){V()})},getIframe:function(n,i){var s=n.src,o=t.st.iframe;e.each(o.patterns,function(){if(s.indexOf(this.index)>-1)return this.id&&(s="string"==typeof this.id?s.substr(s.lastIndexOf(this.id)+this.id.length,s.length):this.id.call(this,s)),s=this.src.replace("%id%",s),!1});var r={};return o.srcAction&&(r[o.srcAction]=s),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var H=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},W=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery",o=Boolean(e.fn.mfpFastClick);return t.direction=!0,!(!n||!n.enabled)&&(r+=" mfp-gallery",x(p+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),s.on("keydown"+i,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),x("UpdateStatus"+i,function(e,n){n.text&&(n.text=W(n.text,t.currItem.index,t.items.length))}),x(h+i,function(e,i,s,o){var r=t.items.length;s.counter=r>1?W(n.tCounter,o.index,r):""}),x("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,s=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(b),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(b),a=o?"mfpFastClick":"click";s[a](function(){t.prev()}),r[a](function(){t.next()}),t.isIE7&&(S("b",s[0],!1,!0),S("a",s[0],!1,!0),S("b",r[0],!1,!0),S("a",r[0],!1,!0)),t.container.append(s.add(r))}}),x(f+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void x(l+i,function(){s.off(i),t.wrap.off("click"+i),t.arrowLeft&&o&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=H(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=H(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),s=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?s:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:s);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=H(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),T("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,T("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var K="retina";e.magnificPopup.registerModule(K,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(x("ImageHasSize."+K,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),x("ElementParse."+K,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),O()}(window.jQuery||window.Zepto)},53:function(e,t){/*!
	 * jQuery serializeObject - v0.2 - 1/20/2010
	 * http://benalman.com/projects/jquery-misc-plugins/
	 * 
	 * Copyright (c) 2010 "Cowboy" Ben Alman
	 * Dual licensed under the MIT and GPL licenses.
	 * http://benalman.com/about/license/
	 */
!function(e,t){"$:nomunge";e.fn.serializeObject=function(){var n={};return e.each(this.serializeArray(),function(i,s){var o=s.name,r=s.value;n[o]=n[o]===t?r:e.isArray(n[o])?n[o].concat(r):[n[o],r]}),n}}(jQuery)},54:function(e,t){"use strict";function n(e){return e.replace(/[!$&(-+\-.:<-?\[-^{-}]/g,"\\$&")}function i(e){return e.replace(/\$/g,"$$$$")}function s(e){return["(",n(e).trim().replace(/ +/g,"|"),")"].join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUnsafeRegexSymbols=n,t.escapeRegexReplacementSymbols=i,t.makeRegexForMultipleWords=s},55:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(12),o=i(s),r=n(6),a=i(r),l=o.default.Model.extend({defaults:{text:"",level:"info",language:"en"}}),u=o.default.Collection.extend({model:l}),c=o.default.View.extend({className:"alert alert-block",render:function(){return this.$el.addClass(["alert",this.model.get("level")].join("-")),this.$el.attr("lang",this.model.get("language")),this.$el.html(this.model.get("text")).hide().fadeIn(300),this}}),d=o.default.View.extend({el:".js-alerts",initialize:function(){this.subViews=[],this.listenTo(this.collection,"add",this.add),this.listenTo(this.collection,"remove",this.remove)},add:function(e){var t=new c({model:e});this.subViews.push(t),this.$el.prepend(t.render().el)},remove:function(e){var t=a.default.find(this.subViews,function(t){return t.model===e});this.subViews=(0,a.default)(this.subViews).without(t),t.$el.fadeOut(3500,function(){t.remove()})}}),h=new u,p=void 0,f={show:function(e){p||(p=new d({collection:h}));var t=new l(e);h.add(t),window.setTimeout(function(){h.remove(t)},2e3)}};t.default=f},59:function(e,t){"use strict";function n(e){return(e>0?Math.floor:Math.ceil)(e)}function i(e){var t=n(e);return t<0?t*-1:t}function s(e){var t=e&&Date.parse(e);if(!t||isNaN(t))return{isFuture:null,seconds:null,minutes:null,hours:null,days:null,weeks:null,months:null,years:null};var n=(new Date).valueOf(),s=t-n,o=s>0,r=i(s/1e3),a=i(r/60),l=i(a/60),u=i(l/24),c=i(u/7),d=i(u/30),h=i(u/365);return{isFuture:o,seconds:r,minutes:a,hours:l,days:u,weeks:c,months:d,years:h}}Object.defineProperty(t,"__esModule",{value:!0}),t.timeDelta=s},62:function(e,t,n){var i;!function(s,o,r){function a(e,t,n){return e.addEventListener?void e.addEventListener(t,n,!1):void e.attachEvent("on"+t,n)}function l(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return _[e.which]?_[e.which]:w[e.which]?w[e.which]:String.fromCharCode(e.which).toLowerCase()}function u(e,t){return e.sort().join(",")===t.sort().join(",")}function c(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}function d(e){return e.preventDefault?void e.preventDefault():void(e.returnValue=!1)}function h(e){return e.stopPropagation?void e.stopPropagation():void(e.cancelBubble=!0)}function p(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function f(){if(!C){C={};for(var e in _)e>95&&e<112||_.hasOwnProperty(e)&&(C[_[e]]=e)}return C}function g(e,t,n){return n||(n=f()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function v(e,t){var n,i,s,o=[];for(n=m(e),s=0;s<n.length;++s)i=n[s],S[i]&&(i=S[i]),t&&"keypress"!=t&&x[i]&&(i=x[i],o.push("shift")),p(i)&&o.push(i);return t=g(i,o,t),{key:i,modifiers:o,action:t}}function y(e,t){return null!==e&&e!==o&&(e===t||y(e.parentNode,t))}function b(e){function t(e){e=e||{};var t,n=!1;for(t in C)e[t]?n=!0:C[t]=0;n||(x=!1)}function n(e,t,n,i,s,o){var r,a,l=[],c=n.type;if(!m._callbacks[e])return[];for("keyup"==c&&p(e)&&(t=[e]),r=0;r<m._callbacks[e].length;++r)if(a=m._callbacks[e][r],(i||!a.seq||C[a.seq]==a.level)&&c==a.action&&("keypress"==c&&!n.metaKey&&!n.ctrlKey||u(t,a.modifiers))){var d=!i&&a.combo==s,h=i&&a.seq==i&&a.level==o;(d||h)&&m._callbacks[e].splice(r,1),l.push(a)}return l}function i(e,t,n,i){m.stopCallback(t,t.target||t.srcElement,n,i)||e(t,n)===!1&&(d(t),h(t))}function s(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t=l(e);if(t)return"keyup"==e.type&&_===t?void(_=!1):void m.handleKey(t,c(e),e)}function r(){clearTimeout(y),y=setTimeout(t,1e3)}function f(e,n,s,o){function a(t){return function(){x=t,++C[e],r()}}function u(n){i(s,n,e),"keyup"!==o&&(_=l(n)),setTimeout(t,10)}C[e]=0;for(var c=0;c<n.length;++c){var d=c+1===n.length,h=d?u:a(o||v(n[c+1]).action);g(n[c],h,o,e,c)}}function g(e,t,i,s,o){m._directMap[e+":"+i]=t,e=e.replace(/\s+/g," ");var r,a=e.split(" ");return a.length>1?void f(e,a,t,i):(r=v(e,i),m._callbacks[r.key]=m._callbacks[r.key]||[],n(r.key,r.modifiers,{type:r.action},s,e,o),void m._callbacks[r.key][s?"unshift":"push"]({callback:t,modifiers:r.modifiers,action:r.action,seq:s,level:o,combo:e}))}var m=this;if(e=e||o,!(m instanceof b))return new b(e);m.target=e,m._callbacks={},m._directMap={};var y,C={},_=!1,w=!1,x=!1;m._handleKey=function(e,s,o){var r,a=n(e,s,o),l={},u=0,c=!1;for(r=0;r<a.length;++r)a[r].seq&&(u=Math.max(u,a[r].level));for(r=0;r<a.length;++r)if(a[r].seq){if(a[r].level!=u)continue;c=!0,l[a[r].seq]=1,i(a[r].callback,o,a[r].combo,a[r].seq)}else c||i(a[r].callback,o,a[r].combo);var d="keypress"==o.type&&w;o.type!=x||p(e)||d||t(l),w=c&&"keydown"==o.type},m._bindMultiple=function(e,t,n){for(var i=0;i<e.length;++i)g(e[i],t,n)},a(e,"keypress",s),a(e,"keydown",s),a(e,"keyup",s)}if(s){for(var C,_={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},w={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},x={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},S={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},T=1;T<20;++T)_[111+T]="f"+T;for(T=0;T<=9;++T)_[T+96]=T;b.prototype.bind=function(e,t,n){var i=this;return e=e instanceof Array?e:[e],i._bindMultiple.call(i,e,t,n),i},b.prototype.unbind=function(e,t){var n=this;return n.bind.call(n,e,function(){},t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){var n=this;return!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&(!y(t,n.target)&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable))},b.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(_[t]=e[t]);C=null},b.init=function(){var e=b(o);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),s.Mousetrap=b,"undefined"!=typeof e&&e.exports&&(e.exports=b),i=function(){return b}.call(t,n,t,e),!(i!==r&&(e.exports=i))}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},67:function(e,t,n){var i,s,o;/*!
	 * Select2 4.0.3
	 * https://select2.github.io
	 *
	 * Released under the MIT license
	 * https://github.com/select2/select2/blob/master/LICENSE.md
	 */
!function(r){s=[n(3)],i=r,o="function"==typeof i?i.apply(t,s):i,!(void 0!==o&&(e.exports=o))}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?n=t:t={};/**
	 * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
	 * Available via the MIT or new BSD license.
	 * see: http://github.com/jrburke/almond for details
	 */
var e,n,i;!function(t){function s(e,t){return C.call(e,t)}function o(e,t){var n,i,s,o,r,a,l,u,c,d,h,p=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),r=e.length-1,y.nodeIdCompat&&w.test(e[r])&&(e[r]=e[r].replace(w,"")),e=p.slice(0,p.length-1).concat(e),c=0;c<e.length;c+=1)if(h=e[c],"."===h)e.splice(c,1),c-=1;else if(".."===h){if(1===c&&(".."===e[2]||".."===e[0]))break;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((p||g)&&f){for(n=e.split("/"),c=n.length;c>0;c-=1){if(i=n.slice(0,c).join("/"),p)for(d=p.length;d>0;d-=1)if(s=f[p.slice(0,d).join("/")],s&&(s=s[i])){o=s,a=c;break}if(o)break;!l&&g&&g[i]&&(l=g[i],u=c)}!o&&l&&(o=l,a=u),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function r(e,n){return function(){var i=_.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),p.apply(t,i.concat([e,n]))}}function a(e){return function(t){return o(t,e)}}function l(e){return function(t){m[e]=t}}function u(e){if(s(v,e)){var n=v[e];delete v[e],b[e]=!0,h.apply(t,n)}if(!s(m,e)&&!s(b,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function d(e){return function(){return y&&y.config&&y.config[e]||{}}}var h,p,f,g,m={},v={},y={},b={},C=Object.prototype.hasOwnProperty,_=[].slice,w=/\.js$/;f=function(e,t){var n,i=c(e),s=i[0];return e=i[1],s&&(s=o(s,t),n=u(s)),s?e=n&&n.normalize?n.normalize(e,a(t)):o(e,t):(e=o(e,t),i=c(e),s=i[0],e=i[1],s&&(n=u(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:n}},g={require:function(e){return r(e)},exports:function(e){var t=m[e];return"undefined"!=typeof t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:d(e)}}},h=function(e,n,i,o){var a,c,d,h,p,y,C=[],_=typeof i;if(o=o||e,"undefined"===_||"function"===_){for(n=!n.length&&i.length?["require","exports","module"]:n,p=0;p<n.length;p+=1)if(h=f(n[p],o),c=h.f,"require"===c)C[p]=g.require(e);else if("exports"===c)C[p]=g.exports(e),y=!0;else if("module"===c)a=C[p]=g.module(e);else if(s(m,c)||s(v,c)||s(b,c))C[p]=u(c);else{if(!h.p)throw new Error(e+" missing "+c);h.p.load(h.n,r(o,!0),l(c),{}),C[p]=m[c]}d=i?i.apply(m[e],C):void 0,e&&(a&&a.exports!==t&&a.exports!==m[e]?m[e]=a.exports:d===t&&y||(m[e]=d))}else e&&(m[e]=i)},e=n=p=function(e,n,i,s,o){if("string"==typeof e)return g[e]?g[e](n):u(f(e,n).f);if(!e.splice){if(y=e,y.deps&&p(y.deps,y.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=s,s=o),s?h(t,e,n,i):setTimeout(function(){h(t,e,n,i)},4),p},p.config=function(e){return p(e)},e._defined=m,i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),s(m,e)||s(v,e)||(v[e]=[e,t,n])},i.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var i in t){var s=t[i];"function"==typeof s&&"constructor"!==i&&n.push(i)}return n}var n={};n.Extend=function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var s in t)i.call(t,s)&&(e[s]=t[s]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},n.Decorate=function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,s=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),s=n.prototype.constructor),s.apply(this,arguments)}function s(){this.constructor=i}var o=t(n),r=t(e);n.displayName=e.displayName,i.prototype=new s;for(var a=0;a<r.length;a++){var l=r[a];i.prototype[l]=e.prototype[l]}for(var u=(function(e){var t=function(){};e in i.prototype&&(t=i.prototype[e]);var s=n.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,t),s.apply(this,arguments)}}),c=0;c<o.length;c++){var d=o[c];i.prototype[d]=u(d)}return i};var i=function(){this.listeners={}};return i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},n.Observable=i,n.generateChars=function(e){for(var t="",n=0;n<e;n++){var i=Math.floor(36*Math.random());t+=i.toString(36)}return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var s=0;s<n.length;s++){var o=n[s];o=o.substring(0,1).toLowerCase()+o.substring(1),o in i||(i[o]={}),s==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},n.hasScroll=function(t,n){var i=e(n),s=n.style.overflowX,o=n.style.overflowY;return(s!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===s||"scroll"===o||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},n.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),s=this.options.get("translations").get(t.message);i.append(n(s(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],s=this.option(i);t.push(s)}this.$results.append(t)},n.prototype.position=function(e,t){var n=t.find(".select2-results");n.append(e)},n.prototype.sort=function(e){var t=this.options.get("sorter");return t(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(n){var i=e.map(n,function(e){return e.id.toString()}),s=t.$results.find(".select2-results__option[aria-selected]");s.each(function(){var t=e(this),n=e.data(this,"data"),s=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(s,i)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:t(e)},i=this.option(n);i.className+=" loading-results",this.$results.prepend(i)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var n=document.createElement("li");n.className="select2-results__option";var i={role:"treeitem","aria-selected":"false"};t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==t.id&&delete i["aria-selected"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(var s in i){var o=i[s];n.setAttribute(s,o)}if(t.children){var r=e(n),a=document.createElement("strong");a.className="select2-results__group";e(a);this.template(t,a);for(var l=[],u=0;u<t.children.length;u++){var c=t.children[u],d=this.option(c);l.push(d)}var h=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});h.append(l),r.append(a),r.append(h)}else this.template(t,n);return e.data(n,"data",t),n},n.prototype.bind=function(t,n){var i=this,s=t.id+"-results";this.$results.attr("id",s),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var s=n-1;0===e.length&&(s=0);var o=t.eq(s);o.trigger("mouseenter");var r=i.$results.offset().top,a=o.offset().top,l=i.$results.scrollTop()+(a-r);0===s?i.$results.scrollTop(0):a-r<0&&i.$results.scrollTop(l)}}),t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e),s=n+1;if(!(s>=t.length)){var o=t.eq(s);o.trigger("mouseenter");var r=i.$results.offset().top+i.$results.outerHeight(!1),a=o.offset().top+o.outerHeight(!1),l=i.$results.scrollTop()+a-r;0===s?i.$results.scrollTop(0):a>r&&i.$results.scrollTop(l)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,s=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&n<=i.$results.height();s?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var n=e(this),s=n.data("data");return"true"===n.attr("aria-selected")?void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:s}):i.trigger("close",{})):void i.trigger("select",{originalEvent:t,data:s})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var n=e(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:n,element:e(this)})})},n.prototype.getHighlightedResults=function(){var e=this.$results.find(".select2-results__option--highlighted");return e},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]"),n=t.index(e),i=this.$results.offset().top,s=e.offset().top,o=this.$results.scrollTop()+(s-i),r=s-i;o-=2*e.outerHeight(!1),n<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),o=i(t,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=s(o):e(n).append(o)},n}),t.define("select2/keys",[],function(){var e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return e}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},i.prototype.bind=function(e,t){var i=this,s=(e.id+"-container",e.id+"-results");this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",s),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.focus(),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex)}),e.on("disable",function(){i.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var n=e(t.target),i=n.closest(".select2"),s=e(".select2.select2-container--open");s.each(function(){var t=e(this);if(this!=i[0]){var n=t.data("element");n.select2("close")}})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){var n=t.find(".selection");n.append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function s(){s.__super__.constructor.apply(this,arguments)}return n.Extend(s,t),s.prototype.render=function(){var e=s.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},s.prototype.bind=function(e,t){var n=this;s.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()}),e.on("selection:update",function(e){n.update(e.data)})},s.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},s.prototype.display=function(e,t){var n=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(n(e,t))},s.prototype.selectionContainer=function(){return e("<span></span>")},s.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)},s}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,n){var s=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){s.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!s.options.get("disabled")){var n=e(this),i=n.parent(),o=i.data("data");s.trigger("unselect",{originalEvent:t,data:o})}})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(n(e,t))},i.prototype.selectionContainer=function(){var t=e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return t},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var s=e[i],o=this.selectionContainer(),r=this.display(s,o);o.append(r),o.prop("title",s.title||s.text),o.data("data",s),t.push(o)}var a=this.$selection.find(".select2-selection__rendered");n.appendMany(a,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id,i=t.length>1;if(i||n)return e.call(this,t);this.clear();var s=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(s)},t}),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),s=0;s<i.length;s++){var o={data:i[s]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var i=e('<span class="select2-selection__clear">&times;</span>');i.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(i)}},n}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,t,i){var s=this;e.call(this,t,i),t.on("open",function(){s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){s.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented();var t=e.which;if(t===n.BACKSPACE&&""===s.$search.val()){var i=s.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var o=i.data("data");s.searchRemoveChoice(o),e.preventDefault()}}});var o=document.documentMode,r=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){return r?void s.$selection.off("input.search input.searchcheck"):void s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(r&&"input"===e.type)return void s.$selection.off("input.search input.searchcheck");var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&s.handleSearch(e)})},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(""!==this.$search.attr("placeholder"))e=this.$selection.find(".select2-selection__rendered").innerWidth();else{var t=this.$search.val().length+1;e=.75*t+"em"}this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var s=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],r=["opening","closing","selecting","unselecting"];t.call(this,n,i),n.on("*",function(t,n){if(e.inArray(t,o)!==-1){n=n||{};var i=e.Event("select2:"+t,{params:n});s.$element.trigger(i),e.inArray(t,r)!==-1&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){var e={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return e}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),i+=null!=n.id?"-"+n.id.toString():"-"+e.generateChars(4)},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),s=i.item(e);t.push(s)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var s=[];e=[e],e.push.apply(e,i);for(var o=0;o<e.length;o++){var r=e[o].id;n.inArray(r,s)===-1&&s.push(r)}t.$element.val(s),t.$element.trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("change");
}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple"))return e.selected=!1,n(e.element).is("option")?(e.element.selected=!1,void this.$element.trigger("change")):void this.current(function(i){for(var s=[],o=0;o<i.length;o++){var r=i[o].id;r!==e.id&&n.inArray(r,s)===-1&&s.push(r)}t.$element.val(s),t.$element.trigger("change")})},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){n.removeData(this,"data")})},i.prototype.query=function(e,t){var i=[],s=this,o=this.$element.children();o.each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var o=s.item(t),r=s.matches(e,o);null!==r&&i.push(r)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup"),t.label=e.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=e.text:t.innerText=e.text),e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=n(t),s=this._normalizeItem(e);return s.element=t,n.data(t,"data",s),i},i.prototype.item=function(e){var t={};if(t=n.data(e[0],"data"),null!=t)return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),s=[],o=0;o<i.length;o++){var r=n(i[o]),a=this.item(r);s.push(a)}t.children=s}return t=this._normalizeItem(t),t.element=e[0],n.data(e[0],"data",t),t},i.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e}),e=n.extend({},{text:""},e);var t={selected:!1,disabled:!1};return null!=e.id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},i.prototype.matches=function(e,t){var n=this.options.get("matcher");return n(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){function i(e){return function(){return n(this).val()==e.id}}for(var s=this,o=this.$element.find("option"),r=o.map(function(){return s.item(n(this)).id}).get(),a=[],l=0;l<e.length;l++){var u=this._normalizeItem(e[l]);if(n.inArray(u.id,r)>=0){var c=o.filter(i(u)),d=this.item(c),h=n.extend(!0,{},u,d),p=this.option(h);c.replaceWith(p)}else{var f=this.option(u);if(u.children){var g=this.convertToOptions(u.children);t.appendMany(f,g)}a.push(f)}}return a},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var s=n.ajax(e);return s.then(t),s.fail(i),s}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){function i(){var i=o.transport(o,function(i){var o=s.processResults(i,e);s.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(o)},function(){i.status&&"0"===i.status||s.trigger("results:message",{message:"errorLoading"})});s._request=i}var s=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof o.url&&(o.url=o.url.call(this.$element,e)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var s=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var r=i.get("insertTag");if(void 0!==r&&(this.insertTag=r),t.call(this,n,i),e.isArray(s))for(var a=0;a<s.length;a++){var l=s[a],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return t.prototype.query=function(e,t,n){function i(e,o){for(var r=e.results,a=0;a<r.length;a++){var l=r[a],u=null!=l.children&&!i({results:l.children},!0),c=l.text===t.term;if(c||u)return!o&&(e.data=r,void n(e))}if(o)return!0;var d=s.createTag(t);if(null!=d){var h=s.option(d);h.attr("data-select2-tag",!0),s.addOptions([h]),s.insertTag(r,d)}e.results=r,n(e)}var s=this;return this._removeOldTags(),null==t.term||null!=t.page?void e.call(this,t,n):void e.call(this,t,i)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){var n=(this._lastTag,this.$element.find("option[data-select2-tag]"));n.each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){function s(t){var n=r._normalizeItem(t),i=r.$element.find("option").filter(function(){return e(this).val()===n.id});if(!i.length){var s=r.option(n);s.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([s])}o(n)}function o(e){r.trigger("select",{data:e})}var r=this;n.term=n.term||"";var a=this.tokenizer(n,this.options,s);a.term!==n.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),n.term=a.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,s){for(var o=i.get("tokenSeparators")||[],r=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<r.length;){var u=r[a];if(e.inArray(u,o)!==-1){var c=r.substr(0,a),d=e.extend({},n,{term:c}),h=l(d);null!=h?(s(h),r=r.substr(a+1)||"",a=0):a++}else a++}return{term:r}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(s){var o=null!=s?s.length:0;return i.maximumSelectionLength>0&&o>=i.maximumSelectionLength?void i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):void e.call(i,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var s=this;t.call(this,n,i),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),n.on("open",function(){s.$search.attr("tabindex",0),s.$search.focus(),window.setTimeout(function(){s.$search.focus()},0)}),n.on("close",function(){s.$search.attr("tabindex",-1),s.$search.val("")}),n.on("focus",function(){n.isOpen()&&s.$search.focus()}),n.on("results:all",function(e){if(null==e.query.term||""===e.query.term){var t=s.showSearch(e);t?s.$searchContainer.removeClass("select2-search--hide"):s.$searchContainer.addClass("select2-search--hide")}})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var s=t[i];this.placeholder.id===s.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var s=this;t.call(this,n,i),n.on("query",function(e){s.lastParams=e,s.loading=!0}),n.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,s.$loadingMore[0]);if(!s.loading&&t){var n=s.$results.offset().top+s.$results.outerHeight(!1),i=s.$loadingMore.offset().top+s.$loadingMore.outerHeight(!1);n+50>=i&&s.loadMore()}})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=i.get("dropdownParent")||e(document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this,s=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),s||(s=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,i){var s=this,o="scroll.select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(o,function(t){var n=e(this).data("select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(o+" "+r+" "+a,function(e){s._positionDropdown(),s._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var s="scroll.select2."+i.id,o="resize.select2."+i.id,r="orientationchange.select2."+i.id,a=this.$container.parents().filter(t.hasScroll);a.off(s),e(window).off(s+" "+o+" "+r)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),s=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=o.top,r.bottom=o.top+r.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},u=l.top<o.top-a.height,c=l.bottom>o.bottom+a.height,d={left:o.left,top:r.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p=h.offset();d.top-=p.top,d.left-=p.left,n||i||(s="below"),c||!u||n?!u&&c&&n&&(s="below"):s="above",("above"==s||n&&"below"!==s)&&(d.top=r.top-p.top-a.height),null!=s&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+s),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+s)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var n=0,i=0;i<t.length;i++){var s=t[i];s.children?n+=e(s.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var s=i.data("data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,i,s,o,r,a,l,u,c,d,h,p,f,g,m,v,y,b,C,_,w,x,S,T,M,O,k){function A(){this.reset()}A.prototype.apply=function(d){if(d=e.extend(!0,{},this.defaults,d),null==d.dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=p:d.dataAdapter=h,d.minimumInputLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,b)),d.tags&&(d.dataAdapter=u.Decorate(d.dataAdapter,g)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=u.Decorate(d.dataAdapter,m)),null!=d.query){var k=t(d.amdBase+"compat/query");d.dataAdapter=u.Decorate(d.dataAdapter,k)}if(null!=d.initSelection){var A=t(d.amdBase+"compat/initSelection");d.dataAdapter=u.Decorate(d.dataAdapter,A)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,x)),null!=d.placeholder&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,w)),d.selectOnClose&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,M))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=C;else{var E=u.Decorate(C,_);d.dropdownAdapter=E}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,T)),d.closeOnSelect&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,O)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var R=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=u.Decorate(d.dropdownAdapter,R)}d.dropdownAdapter=u.Decorate(d.dropdownAdapter,S)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=s:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,o)),d.allowClear&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,r)),d.multiple&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var P=t(d.amdBase+"compat/containerCss");d.selectionAdapter=u.Decorate(d.selectionAdapter,P)}d.selectionAdapter=u.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var D=d.language.split("-"),F=D[0];d.language=[d.language,F]}else d.language=[d.language];if(e.isArray(d.language)){var I=new c;d.language.push("en");for(var j=d.language,L=0;L<j.length;L++){var N=j[L],$={};try{$=c.loadPath(N)}catch(e){try{N=this.defaults.amdLanguageBase+N,$=c.loadPath(N)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+N+'" could not be automatically loaded. A fallback will be used instead.');continue}}I.extend($)}d.translations=I}else{var B=c.loadPath(this.defaults.amdLanguageBase+"en"),z=new c(d.language);z.extend(B),d.translations=z}return d},A.prototype.reset=function(){function t(e){function t(e){return d[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function n(i,s){if(""===e.trim(i.term))return s;if(s.children&&s.children.length>0){for(var o=e.extend(!0,{},s),r=s.children.length-1;r>=0;r--){var a=s.children[r],l=n(i,a);null==l&&o.children.splice(r,1)}return o.children.length>0?o:n(i,o)}var u=t(s.text).toUpperCase(),c=t(i.term).toUpperCase();return u.indexOf(c)>-1?s:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:k,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},A.prototype.set=function(t,n){var i=e.camelCase(t),s={};s[i]=n;var o=u._convertData(s);e.extend(this.defaults,o)};var E=new A;return E}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function s(t,s){if(this.options=t,null!=s&&this.fromElement(s),this.options=n.apply(this.options),s&&s.is("input")){var o=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,o)}}return s.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var s={};s=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var o=t.extend(!0,{},s);o=i._convertData(o);for(var r in o)t.inArray(r,n)>-1||(t.isPlainObject(this.options[r])?t.extend(this.options[r],o[r]):this.options[r]=o[r]);return this},s.prototype.get=function(e){return this.options[e]},s.prototype.set=function(e,t){this.options[e]=t},s}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var s=function(e,n){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),s.__super__.constructor.call(this);var i=e.attr("tabindex")||0;e.data("old-tabindex",i),e.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(e,this.options);var r=this.render();this._placeContainer(r);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var c=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){c.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(s,n.Observable),s.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},s.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},s.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var s=e.outerWidth(!1);return s<=0?"auto":s+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var r=o.split(";"),a=0,l=r.length;a<l;a+=1){var u=r[a].replace(/\s/g,""),c=u.match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},s.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},s.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},s.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},s.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,s){e.inArray(i,n)===-1&&t.trigger(i,s)})},s.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},s.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},s.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},s.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},s.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var s=0;s<t.addedNodes.length;s++){var o=t.addedNodes[s];o.selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},s.prototype.trigger=function(e,t){var n=s.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var o=i[e],r={prevented:!1,name:e,args:t};if(n.call(this,o,r),r.prevented)return void(t.prevented=!0)}n.call(this,e,t)},s.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},s.prototype.open=function(){this.isOpen()||this.trigger("query",{})},s.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},s.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},s.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},s.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},s.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},s.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},s.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},s.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},s.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),
t.data("element",this.$element),t},s}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,i){if(null==e.fn.select2){var s=["open","close","destroy"];e.fn.select2=function(t){if(t=t||{},"object"==typeof t)return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,o=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=n[t].apply(n,o)}),e.inArray(t,s)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n})},70:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){e.length===e.filter(":checked").length?t.prop("disabled",!1):t.prop("disabled",!0)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),r=i(o),a=n(49),l={updateRelativeDates:function(){(0,r.default)(".js-relative-date").each(function(e,t){(0,r.default)(t).text((0,a.relativeTime)((0,r.default)(t).attr("datetime")))})},fixSidebarHeight:function(){var e=(0,r.default)("#body"),t=e.height(),n=parseInt(e.css("padding-bottom"),10),i=(0,r.default)("#wrapper").height()-e.offset().top-n;(0,r.default)("#sidebar").css("width","30%");var s=(0,r.default)("#sidebar #sidebar-content").height()+(0,r.default)("#footer").height()+n,o=Math.max(i,s);(0,r.default)("#sidebar").css("width",""),t<o&&e.css("height",o)},updateInputState:function(e,t){var n=(0,r.default)(e);n.length&&!function(){var e=(0,r.default)(t);s(n,e),n.change(function(){s(n,e)})}()}};t.default=l},73:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(1),r=i(o),a=n(7),l=n(49),u=r.default.createClass({displayName:"TimeSince",propTypes:{dateTime:o.PropTypes.string.isRequired,title:o.PropTypes.string.isRequired},mixins:[a.PureRenderMixin],componentWillMount:function(){this.tickTimer=null,this.tick({refresh:!1})},componentWillReceiveProps:function(e){e.dateTime!==this.props.dateTime&&this.cleanup()},componentWillUnmount:function(){this.cleanup()},cleanup:function(){null!==this.tickTimer&&(clearTimeout(this.tickTimer),this.tickTimer=null)},tick:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{refresh:!0},n=Date.parse(this.props.dateTime),i=Date.now(),s=Math.round(Math.abs(i-n)/1e3),o=void 0;s<60?o=3e4:s<3600?o=6e4:s<86400&&(o=36e5),void 0!==o&&(this.tickTimer=setTimeout(function(){return e.tick()},o)),t.refresh&&this.forceUpdate()},render:function(){return r.default.createElement("time",s({className:"extra-item-meta",title:this.props.title,dateTime:this.props.dateTime},this.props),(0,l.relativeTime)(this.props.dateTime))}});t.default=u},84:function(e,t,n){var i=n(85);!function(e){e.fn.spin=function(t){return this.each(function(){var n=e(this),s=n.data();s.spinner&&(s.spinner.stop(),delete s.spinner),t!==!1&&(s.spinner=new i(e.extend({color:n.css("color")},t)).spin(this))}),this}}(jQuery)},85:function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e,t){var n,i=document.createElement(e||"div");for(n in t)i[n]=t[n];return i}function t(e){for(var t=1,n=arguments.length;t<n;t++)e.appendChild(arguments[t]);return e}function n(e,t,n,i){var s=["opacity",t,~~(100*e),n,i].join("-"),o=.01+n/i*100,r=Math.max(1-(1-e)/t*(100-o),e),a=c.substring(0,c.indexOf("Animation")).toLowerCase(),l=a&&"-"+a+"-"||"";return h[s]||(p.insertRule("@"+l+"keyframes "+s+"{0%{opacity:"+r+"}"+o+"%{opacity:"+e+"}"+(o+.01)+"%{opacity:1}"+(o+t)%100+"%{opacity:"+e+"}100%{opacity:"+r+"}}",p.cssRules.length),h[s]=1),s}function i(e,t){var n,i,s=e.style;for(t=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<d.length;i++)if(n=d[i]+t,void 0!==s[n])return n;if(void 0!==s[t])return t}function s(e,t){for(var n in t)e.style[i(e,n)||n]=t[n];return e}function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)void 0===e[i]&&(e[i]=n[i])}return e}function r(e){for(var t={x:e.offsetLeft,y:e.offsetTop};e=e.offsetParent;)t.x+=e.offsetLeft,t.y+=e.offsetTop;return t}function a(e,t){return"string"==typeof e?e:e[t%e.length]}function l(e){return"undefined"==typeof this?new l(e):void(this.opts=o(e||{},l.defaults,f))}function u(){function n(t,n){return e("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}p.addRule(".spin-vml","behavior:url(#default#VML)"),l.prototype.lines=function(e,i){function o(){return s(n("group",{coordsize:c+" "+c,coordorigin:-u+" "+-u}),{width:c,height:c})}function r(e,r,l){t(h,t(s(o(),{rotation:360/i.lines*e+"deg",left:~~r}),t(s(n("roundrect",{arcsize:i.corners}),{width:u,height:i.width,left:i.radius,top:-i.width>>1,filter:l}),n("fill",{color:a(i.color,e),opacity:i.opacity}),n("stroke",{opacity:0}))))}var l,u=i.length+i.width,c=2*u,d=2*-(i.width+i.length)+"px",h=s(o(),{position:"absolute",top:d,left:d});if(i.shadow)for(l=1;l<=i.lines;l++)r(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=i.lines;l++)r(l);return t(e,h)},l.prototype.opacity=function(e,t,n,i){var s=e.firstChild;i=i.shadow&&i.lines||0,s&&t+i<s.childNodes.length&&(s=s.childNodes[t+i],s=s&&s.firstChild,s=s&&s.firstChild,s&&(s.opacity=n))}}var c,d=["webkit","Moz","ms","O"],h={},p=function(){var n=e("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),f={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};l.defaults={},o(l.prototype,{spin:function(t){this.stop();var n,i,o=this,a=o.opts,l=o.el=s(e(0,{className:a.className}),{position:a.position,width:0,zIndex:a.zIndex}),u=a.radius+a.length+a.width;if(t&&(t.insertBefore(l,t.firstChild||null),i=r(t),n=r(l),s(l,{left:("auto"==a.left?i.x-n.x+(t.offsetWidth>>1):parseInt(a.left,10)+u)+"px",top:("auto"==a.top?i.y-n.y+(t.offsetHeight>>1):parseInt(a.top,10)+u)+"px"})),l.setAttribute("role","progressbar"),o.lines(l,o.opts),!c){var d,h=0,p=(a.lines-1)*(1-a.direction)/2,f=a.fps,g=f/a.speed,m=(1-a.opacity)/(g*a.trail/100),v=g/a.lines;!function e(){h++;for(var t=0;t<a.lines;t++)d=Math.max(1-(h+(a.lines-t)*v)%g*m,a.opacity),o.opacity(l,t*a.direction+p,d,a);o.timeout=o.el&&setTimeout(e,~~(1e3/f))}()}return o},stop:function(){var e=this.el;return e&&(clearTimeout(this.timeout),e.parentNode&&e.parentNode.removeChild(e),this.el=void 0),this},lines:function(i,o){function r(t,n){return s(e(),{position:"absolute",width:o.length+o.width+"px",height:o.width+"px",background:t,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/o.lines*u+o.rotate)+"deg) translate("+o.radius+"px,0)",borderRadius:(o.corners*o.width>>1)+"px"})}for(var l,u=0,d=(o.lines-1)*(1-o.direction)/2;u<o.lines;u++)l=s(e(),{position:"absolute",top:1+~(o.width/2)+"px",transform:o.hwaccel?"translate3d(0,0,0)":"",opacity:o.opacity,animation:c&&n(o.opacity,o.trail,d+u*o.direction,o.lines)+" "+1/o.speed+"s linear infinite"}),o.shadow&&t(l,s(r("#000","0 0 4px #000"),{top:"2px"})),t(i,t(l,r(a(o.color,u),"0 0 1px rgba(0,0,0,.1)")));return i},opacity:function(e,t,n){t<e.childNodes.length&&(e.childNodes[t].style.opacity=n)}});var g=s(e("group"),{behavior:"url(#default#VML)"});return!i(g,"transform")&&g.adj?u():c=i(g,"animation"),l})},88:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){402===e.status?r(e.responseText):c.default.executeFunctionByName(t,window,e)}function o(e){e.preventDefault();var t=(0,l.default)(this),n=t.serializeObject(),i=n.sfn,o=n.efn,r=t.attr("action");l.default.ajax({url:r,type:"POST",data:n,success:function(){c.default.executeFunctionByName(i,window,e),l.default.magnificPopup.close()},error:function(e){s(e,o)}})}function r(e){(0,l.default)(document).on("submit","#js-captcha",o),l.default.magnificPopup.open({items:{src:e,type:"inline"},focus:"#id_captcha_answer"})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),l=i(a);n(52),n(53);var u=n(24),c=i(u);t.default={onError:s}},89:function(e,t,n){"use strict";function i(e){function t(e){return'<span class="highlight-punctuation '+n+'">'+e+"</span>"}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.replace(c,t)}function s(e){function t(e){var t={"\\r":i.replace(/%s/,"\\r"),"\\n":i.replace(/%s/,"\\n"),"\\t":i.replace(/%s/,"\\t")};return t[e]}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i='<span class="highlight-escape '+n+'">%s</span>';return e.replace(d,t)}function o(e){return e.replace(h,"$&<br/>")}function r(e){function t(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;"},n=t[e];if(void 0===n){var s=e.slice(1,e.length-1);n=i.replace(/%s/,(0,u.escapeRegexReplacementSymbols)(r(s)))}return n}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i='<span class="highlight-html '+n+'">&lt;%s&gt;</span>';return e.replace(p,t)}function a(e){function t(e){var t=l.BASE_MAP_REVERSE_HL[e].charCodeAt().toString(16),i="0".repeat(4-t.length),s="\\u"+i+t.toUpperCase();return'<span class="'+n+'" data-codepoint="'+s+'">'+e+"</span>"}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.replace(l.RE_BASE_REVERSE,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.highlightPunctuation=i,t.highlightEscapes=s,t.nl2br=o,t.highlightHtml=r,t.highlightSymbols=a;var l=n(47),u=n(54),c=/[™©®]|[℃℉°]|[±πθ×÷−√∞∆Σ′″]|[‘’ʼ‚‛“”„‟]|[«»]|[£¥€]|…|—|–|[ ]/g,d=/\\r|\\n|\\t/gm,h=/\r\n|[\r\n]/gm,p=/<[^>]+>|[&<>]/gm},90:function(e,t){"use strict";function n(e){var t=document.createElement("textarea");return t.innerHTML=e,t.textContent}Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEntities=n},91:function(e,t){"use strict";function n(e){if(!e)return e;var t=e.indexOf("@"),n=e.replace("_","-");return t!==-1&&(n=n.slice(0,t)),n}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeCode=n},92:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e){l.default.render(r.default.createElement(c.default,{value:e}),(0,d.q)(".js-score"))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=i(o),a=n(11),l=i(a),u=n(97),c=i(u),d=n(10);t.default={init:s,set:s}},93:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),o=i(s),r=n(62),a=i(r),l=n(8),u=i(l),c=n(29),d=i(c),h="pootle-search",p={init:function(e){var t=this,n=this;this.state={searchText:"",searchFields:["source","target"],searchOptions:[]},this.$form=(0,o.default)("#search-form"),this.$container=(0,o.default)(".js-search-container"),this.$fields=(0,o.default)(".js-search-fields"),this.$options=(0,o.default)(".js-search-options"),this.$input=(0,o.default)("#id_search"),this.settings=(0,u.default)({onSearch:this.onSearch},e),(0,a.default)(document.body).bind("mod+shift+s",function(e){e.preventDefault(),t.$input.focus()}),(0,a.default)(this.$form[0]).bind("esc",function(e){e.preventDefault(),t.$form.hasClass("focused")&&(t.$input.blur(),t.toggleFields(e))}),this.$input.mouseup(function(e){e.preventDefault()}).focus(function(){t.$input.select(),t.$form.addClass("focused")}).blur(function(){""===t.$input.val()&&t.$input.val(t.state.searchText),t.$form.removeClass("focused")}),this.$input.click(function(e){p.isOpen()||t.toggleFields(e)}),this.$input.on("keypress",function(e){13===e.which&&t.$form.trigger("submit")}),this.$form.on("submit",this.handleSearch.bind(this)),(0,o.default)(document).mouseup(function(e){t.isOpen()&&e.target!==n.$input.get(0)&&!t.$container.find(e.target).length&&t.toggleFields(e)})},setState:function(e){this.state=(0,u.default)({},this.state,e),this.updateUI()},toggleFields:function(e){e.preventDefault(),this.$container.toggle()},isOpen:function(){return this.$container.is(":visible")},buildSearchQuery:function(){var e=this.state,t=e.searchText,n=e.searchFields,i=e.searchOptions,s=encodeURIComponent(t);if(n.length&&(s+="&sfields="+n.join(",")),i.length&&(s+="&soptions="+i.join(",")),n.length||i.length){var o={};n.length&&(o.sfields=n),i.length&&(o.soptions=i),(0,d.default)(h,JSON.stringify(o),{path:"/"})}return s},handleSearch:function(e){e.preventDefault();var t=this.$input.val(),n=[],i=[];this.$fields.find("input:checked").each(function(){i.push((0,o.default)(this).val())}),this.$options.find("input:checked").each(function(){n.push((0,o.default)(this).val())}),i.length||(i=["source","target"]),this.setState({searchText:t,searchFields:i,searchOptions:n}),this.settings.onSearch.call(this,this.state.searchText)},onSearch:function(e){if(!e)return!1;var t="#search="+this.buildSearchQuery();return window.location=this.$form[0].action+t,!1},updateUI:function(){this.$input.val(this.state.searchText).focus();var e=this.state,t=e.searchFields,n=e.searchOptions;this.$fields.find("input").each(function(){(0,o.default)(this).prop("checked",t.indexOf(this.value)!==-1)}),this.$options.find("input").each(function(){(0,o.default)(this).prop("checked",n.indexOf(this.value)!==-1)})}};t.default=p},96:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(131),o=i(s),r=n(1),a=i(r),l=a.default.createClass({displayName:"Odometer",propTypes:{value:a.default.PropTypes.number.isRequired},componentDidMount:function(){this.odometer=new o.default({el:this.refs.odometer,value:this.props.value})},componentDidUpdate:function(){this.odometer.update(this.props.value)},render:function(){return a.default.createElement("div",{className:"odometer",ref:"odometer"})}});t.default=l},97:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),o=i(s),r=n(96),a=i(r),l=o.default.createClass({displayName:"Score",propTypes:{value:o.default.PropTypes.number.isRequired},render:function(){return o.default.createElement(a.default,{value:this.props.value})}});t.default=l},100:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=l.diff_main(e,t),i=[];l.diff_cleanupSemantic(n);for(var s=0;s<n.length;s++){var o=n[s][0],u=(0,a.highlightRO)(n[s][1]);o===r.default.DIFF_INSERT?i[s]='<span class="diff-insert">'+u+"</span>":o===r.default.DIFF_DELETE?i[s]='<span class="diff-delete">'+u+"</span>":o===r.default.DIFF_EQUAL&&(i[s]=u)}return i.join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var o=n(105),r=i(o),a=n(24),l=new r.default},105:function(e,t){"use strict";function n(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var i=-1,s=1,o=0;n.Diff,n.prototype.diff_main=function(e,t,n,i){"undefined"==typeof i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var s=i;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[[o,e]]:[];"undefined"==typeof n&&(n=!0);var r=n,a=this.diff_commonPrefix(e,t),l=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=this.diff_commonSuffix(e,t);var u=e.substring(e.length-a);e=e.substring(0,e.length-a),t=t.substring(0,t.length-a);var c=this.diff_compute_(e,t,r,s);return l&&c.unshift([o,l]),u&&c.push([o,u]),this.diff_cleanupMerge(c),c},n.prototype.diff_compute_=function(e,t,n,r){var a;if(!e)return[[s,t]];if(!t)return[[i,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(c!=-1)return a=[[s,l.substring(0,c)],[o,u],[s,l.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=i),a;if(1==u.length)return[[i,e],[s,t]];var d=this.diff_halfMatch_(e,t);if(d){var h=d[0],p=d[1],f=d[2],g=d[3],m=d[4],v=this.diff_main(h,f,n,r),y=this.diff_main(p,g,n,r);return v.concat([[o,m]],y)}return n&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)},n.prototype.diff_lineMode_=function(e,t,n){var r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2;var a=r.lineArray,l=this.diff_main(e,t,!1,n);this.diff_charsToLines_(l,a),this.diff_cleanupSemantic(l),l.push([o,""]);for(var u=0,c=0,d=0,h="",p="";u<l.length;){switch(l[u][0]){case s:d++,p+=l[u][1];break;case i:c++,h+=l[u][1];break;case o:if(c>=1&&d>=1){l.splice(u-c-d,c+d),u=u-c-d;for(var r=this.diff_main(h,p,!1,n),f=r.length-1;f>=0;f--)l.splice(u,0,r[f]);u+=r.length}d=0,c=0,h="",p=""}u++}return l.pop(),l},n.prototype.diff_bisect_=function(e,t,n){for(var o=e.length,r=t.length,a=Math.ceil((o+r)/2),l=a,u=2*a,c=new Array(u),d=new Array(u),h=0;h<u;h++)c[h]=-1,d[h]=-1;c[l+1]=0,d[l+1]=0;for(var p=o-r,f=p%2!=0,g=0,m=0,v=0,y=0,b=0;b<a&&!((new Date).getTime()>n);b++){for(var C=-b+g;C<=b-m;C+=2){var _,w=l+C;_=C==-b||C!=b&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1;for(var x=_-C;_<o&&x<r&&e.charAt(_)==t.charAt(x);)_++,x++;if(c[w]=_,_>o)m+=2;else if(x>r)g+=2;else if(f){var S=l+p-C;if(S>=0&&S<u&&d[S]!=-1){var T=o-d[S];if(_>=T)return this.diff_bisectSplit_(e,t,_,x,n)}}}for(var M=-b+v;M<=b-y;M+=2){var T,S=l+M;T=M==-b||M!=b&&d[S-1]<d[S+1]?d[S+1]:d[S-1]+1;for(var O=T-M;T<o&&O<r&&e.charAt(o-T-1)==t.charAt(r-O-1);)T++,O++;if(d[S]=T,T>o)y+=2;else if(O>r)v+=2;else if(!f){var w=l+p-M;if(w>=0&&w<u&&c[w]!=-1){var _=c[w],x=l+_-w;if(T=o-T,_>=T)return this.diff_bisectSplit_(e,t,_,x,n)}}}}return[[i,e],[s,t]]},n.prototype.diff_bisectSplit_=function(e,t,n,i,s){var o=e.substring(0,n),r=t.substring(0,i),a=e.substring(n),l=t.substring(i),u=this.diff_main(o,r,!1,s),c=this.diff_main(a,l,!1,s);return u.concat(c)},n.prototype.diff_linesToChars_=function(e,t){function n(e){for(var t="",n=0,o=-1,r=i.length;o<e.length-1;){o=e.indexOf("\n",n),o==-1&&(o=e.length-1);var a=e.substring(n,o+1);n=o+1,(s.hasOwnProperty?s.hasOwnProperty(a):void 0!==s[a])?t+=String.fromCharCode(s[a]):(t+=String.fromCharCode(r),s[a]=r,i[r++]=a)}return t}var i=[],s={};i[0]="";var o=n(e),r=n(t);return{chars1:o,chars2:r,lineArray:i}},n.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var i=e[n][1],s=[],o=0;o<i.length;o++)s[o]=t[i.charCodeAt(o)];e[n][1]=s.join("")}},n.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),s=i,o=0;n<s;)e.substring(o,s)==t.substring(o,s)?(n=s,o=n):i=s,s=Math.floor((i-n)/2+n);return s},n.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),s=i,o=0;n<s;)e.substring(e.length-s,e.length-o)==t.substring(t.length-s,t.length-o)?(n=s,o=n):i=s,s=Math.floor((i-n)/2+n);return s},n.prototype.diff_commonOverlap_=function(e,t){var n=e.length,i=t.length;if(0==n||0==i)return 0;n>i?e=e.substring(n-i):n<i&&(t=t.substring(0,n));var s=Math.min(n,i);if(e==t)return s;for(var o=0,r=1;;){var a=e.substring(s-r),l=t.indexOf(a);if(l==-1)return o;r+=l,0!=l&&e.substring(s-r)!=t.substring(0,r)||(o=r,r++)}},n.prototype.diff_halfMatch_=function(e,t){function n(e,t,n){for(var i,s,o,a,l=e.substring(n,n+Math.floor(e.length/4)),u=-1,c="";(u=t.indexOf(l,u+1))!=-1;){var d=r.diff_commonPrefix(e.substring(n),t.substring(u)),h=r.diff_commonSuffix(e.substring(0,n),t.substring(0,u));c.length<h+d&&(c=t.substring(u-h,u)+t.substring(u,u+d),i=e.substring(0,n-h),s=e.substring(n+d),o=t.substring(0,u-h),a=t.substring(u+d))}return 2*c.length>=e.length?[i,s,o,a,c]:null}if(this.Diff_Timeout<=0)return null;var i=e.length>t.length?e:t,s=e.length>t.length?t:e;if(i.length<4||2*s.length<i.length)return null;var o,r=this,a=n(i,s,Math.ceil(i.length/4)),l=n(i,s,Math.ceil(i.length/2));if(!a&&!l)return null;o=l?a&&a[4].length>l[4].length?a:l:a;var u,c,d,h;e.length>t.length?(u=o[0],c=o[1],d=o[2],h=o[3]):(d=o[0],h=o[1],u=o[2],c=o[3]);var p=o[4];return[u,c,d,h,p]},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],r=0,a=null,l=0,u=0,c=0,d=0,h=0;l<e.length;)e[l][0]==o?(n[r++]=l,u=d,c=h,d=0,h=0,a=e[l][1]):(e[l][0]==s?d+=e[l][1].length:h+=e[l][1].length,a&&a.length<=Math.max(u,c)&&a.length<=Math.max(d,h)&&(e.splice(n[r-1],0,[i,a]),e[n[r-1]+1][0]=s,r--,r--,l=r>0?n[r-1]:-1,u=0,c=0,d=0,h=0,a=null,t=!0)),l++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l<e.length;){if(e[l-1][0]==i&&e[l][0]==s){var p=e[l-1][1],f=e[l][1],g=this.diff_commonOverlap_(p,f),m=this.diff_commonOverlap_(f,p);g>=m?(g>=p.length/2||g>=f.length/2)&&(e.splice(l,0,[o,f.substring(0,g)]),e[l-1][1]=p.substring(0,p.length-g),e[l+1][1]=f.substring(g),l++):(m>=p.length/2||m>=f.length/2)&&(e.splice(l,0,[o,p.substring(0,m)]),e[l-1][0]=s,e[l-1][1]=f.substring(0,f.length-m),e[l+1][0]=i,e[l+1][1]=p.substring(m),l++),l++}l++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var i=e.charAt(e.length-1),s=t.charAt(0),o=i.match(n.nonAlphaNumericRegex_),r=s.match(n.nonAlphaNumericRegex_),a=o&&i.match(n.whitespaceRegex_),l=r&&s.match(n.whitespaceRegex_),u=a&&i.match(n.linebreakRegex_),c=l&&s.match(n.linebreakRegex_),d=u&&e.match(n.blanklineEndRegex_),h=c&&t.match(n.blanklineStartRegex_);return d||h?5:u||c?4:o&&!a&&l?3:a||l?2:o||r?1:0}for(var i=1;i<e.length-1;){if(e[i-1][0]==o&&e[i+1][0]==o){var s=e[i-1][1],r=e[i][1],a=e[i+1][1],l=this.diff_commonSuffix(s,r);if(l){var u=r.substring(r.length-l);s=s.substring(0,s.length-l),r=u+r.substring(0,r.length-l),a=u+a}for(var c=s,d=r,h=a,p=t(s,r)+t(r,a);r.charAt(0)===a.charAt(0);){s+=r.charAt(0),r=r.substring(1)+a.charAt(0),a=a.substring(1);var f=t(s,r)+t(r,a);f>=p&&(p=f,c=s,d=r,h=a)}e[i-1][1]!=c&&(c?e[i-1][1]=c:(e.splice(i-1,1),i--),e[i][1]=d,h?e[i+1][1]=h:(e.splice(i+1,1),i--))}i++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],r=0,a=null,l=0,u=!1,c=!1,d=!1,h=!1;l<e.length;)e[l][0]==o?(e[l][1].length<this.Diff_EditCost&&(d||h)?(n[r++]=l,u=d,c=h,a=e[l][1]):(r=0,a=null),d=h=!1):(e[l][0]==i?h=!0:d=!0,a&&(u&&c&&d&&h||a.length<this.Diff_EditCost/2&&u+c+d+h==3)&&(e.splice(n[r-1],0,[i,a]),e[n[r-1]+1][0]=s,r--,a=null,u&&c?(d=h=!0,r=0):(r--,l=r>0?n[r-1]:-1,d=h=!1),t=!0)),l++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push([o,""]);for(var t,n=0,r=0,a=0,l="",u="";n<e.length;)switch(e[n][0]){case s:a++,u+=e[n][1],n++;break;case i:r++,l+=e[n][1],n++;break;case o:r+a>1?(0!==r&&0!==a&&(t=this.diff_commonPrefix(u,l),0!==t&&(n-r-a>0&&e[n-r-a-1][0]==o?e[n-r-a-1][1]+=u.substring(0,t):(e.splice(0,0,[o,u.substring(0,t)]),n++),u=u.substring(t),l=l.substring(t)),t=this.diff_commonSuffix(u,l),0!==t&&(e[n][1]=u.substring(u.length-t)+e[n][1],u=u.substring(0,u.length-t),l=l.substring(0,l.length-t))),0===r?e.splice(n-a,r+a,[s,u]):0===a?e.splice(n-r,r+a,[i,l]):e.splice(n-r-a,r+a,[i,l],[s,u]),n=n-r-a+(r?1:0)+(a?1:0)+1):0!==n&&e[n-1][0]==o?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,a=0,r=0,l="",u=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(n=1;n<e.length-1;)e[n-1][0]==o&&e[n+1][0]==o&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),c=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),c=!0)),n++;c&&this.diff_cleanupMerge(e)},n.prototype.diff_xIndex=function(e,t){var n,o=0,r=0,a=0,l=0;for(n=0;n<e.length&&(e[n][0]!==s&&(o+=e[n][1].length),e[n][0]!==i&&(r+=e[n][1].length),!(o>t));n++)a=o,l=r;return e.length!=n&&e[n][0]===i?l:l+(t-a)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=/</g,a=/>/g,l=/\n/g,u=0;u<e.length;u++){var c=e[u][0],d=e[u][1],h=d.replace(n,"&amp;").replace(r,"&lt;").replace(a,"&gt;").replace(l,"&para;<br>");switch(c){case s:t[u]='<ins style="background:#e6ffe6;">'+h+"</ins>";break;case i:t[u]='<del style="background:#ffe6e6;">'+h+"</del>";break;case o:t[u]="<span>"+h+"</span>"}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)e[n][0]!==s&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)e[n][0]!==i&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_levenshtein=function(e){for(var t=0,n=0,r=0,a=0;a<e.length;a++){var l=e[a][0],u=e[a][1];switch(l){case s:n+=u.length;break;case i:r+=u.length;break;case o:t+=Math.max(n,r),n=0,r=0}}return t+=Math.max(n,r)},n.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case s:t[n]="+"+encodeURI(e[n][1]);break;case i:t[n]="-"+e[n][1].length;break;case o:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(e,t){for(var n=[],r=0,a=0,l=t.split(/\t/g),u=0;u<l.length;u++){var c=l[u].substring(1);switch(l[u].charAt(0)){case"+":try{n[r++]=[s,decodeURI(c)]}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var d=parseInt(c,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+c);var h=e.substring(a,a+=d);"="==l[u].charAt(0)?n[r++]=[o,h]:n[r++]=[i,h];break;default:if(l[u])throw new Error("Invalid diff operation in diff_fromDelta: "+l[u])}}if(a!=e.length)throw new Error("Delta length ("+a+") does not equal source text length ("+e.length+").");return n},n.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},n.prototype.match_bitap_=function(e,t,n){function i(e,i){var s=e/t.length,r=Math.abs(n-i);return o.Match_Distance?s+r/o.Match_Distance:r?1:s}if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var s=this.match_alphabet_(t),o=this,r=this.Match_Threshold,a=e.indexOf(t,n);a!=-1&&(r=Math.min(i(0,a),r),a=e.lastIndexOf(t,n+t.length),a!=-1&&(r=Math.min(i(0,a),r)));var l=1<<t.length-1;a=-1;for(var u,c,d,h=t.length+e.length,p=0;p<t.length;p++){for(u=0,c=h;u<c;)i(p,n+c)<=r?u=c:h=c,c=Math.floor((h-u)/2+u);h=c;var f=Math.max(1,n-c+1),g=Math.min(n+c,e.length)+t.length,m=Array(g+2);m[g+1]=(1<<p)-1;for(var v=g;v>=f;v--){var y=s[e.charAt(v-1)];if(0===p?m[v]=(m[v+1]<<1|1)&y:m[v]=(m[v+1]<<1|1)&y|((d[v+1]|d[v])<<1|1)|d[v+1],m[v]&l){var b=i(p,v-1);if(b<=r){if(r=b,a=v-1,!(a>n))break;f=Math.max(1,2*n-a)}}}if(i(p+1,n)>r)break;d=m}return a},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(var n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},n.prototype.patch_addContext_=function(e,t){if(0!=t.length){for(var n=t.substring(e.start2,e.start2+e.length1),i=0;t.indexOf(n)!=t.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,n=t.substring(e.start2-i,e.start2+e.length1+i);i+=this.Patch_Margin;var s=t.substring(e.start2-i,e.start2);s&&e.diffs.unshift([o,s]);var r=t.substring(e.start2+e.length1,e.start2+e.length1+i);r&&e.diffs.push([o,r]),e.start1-=s.length,e.start2-=s.length,e.length1+=s.length+r.length,e.length2+=s.length+r.length}},n.prototype.patch_make=function(e,t,r){var a,l;if("string"==typeof e&&"string"==typeof t&&"undefined"==typeof r)a=e,l=this.diff_main(a,t,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&"object"==typeof e&&"undefined"==typeof t&&"undefined"==typeof r)l=e,a=this.diff_text1(l);else if("string"==typeof e&&t&&"object"==typeof t&&"undefined"==typeof r)a=e,l=t;else{if("string"!=typeof e||"string"!=typeof t||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");a=e,l=r}if(0===l.length)return[];for(var u=[],c=new n.patch_obj,d=0,h=0,p=0,f=a,g=a,m=0;m<l.length;m++){var v=l[m][0],y=l[m][1];switch(d||v===o||(c.start1=h,c.start2=p),v){case s:c.diffs[d++]=l[m],c.length2+=y.length,g=g.substring(0,p)+y+g.substring(p);break;case i:c.length1+=y.length,c.diffs[d++]=l[m],g=g.substring(0,p)+g.substring(p+y.length);break;case o:y.length<=2*this.Patch_Margin&&d&&l.length!=m+1?(c.diffs[d++]=l[m],c.length1+=y.length,c.length2+=y.length):y.length>=2*this.Patch_Margin&&d&&(this.patch_addContext_(c,f),u.push(c),c=new n.patch_obj,d=0,f=g,h=p)}v!==s&&(h+=y.length),v!==i&&(p+=y.length)}return d&&(this.patch_addContext_(c,f),u.push(c)),u},n.prototype.patch_deepCopy=function(e){for(var t=[],i=0;i<e.length;i++){var s=e[i],o=new n.patch_obj;o.diffs=[];for(var r=0;r<s.diffs.length;r++)o.diffs[r]=s.diffs[r].slice();o.start1=s.start1,o.start2=s.start2,o.length1=s.length1,o.length2=s.length2,t[i]=o}return t},n.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var r=0,a=[],l=0;l<e.length;l++){var u,c=e[l].start2+r,d=this.diff_text1(e[l].diffs),h=-1;if(d.length>this.Match_MaxBits?(u=this.match_main(t,d.substring(0,this.Match_MaxBits),c),u!=-1&&(h=this.match_main(t,d.substring(d.length-this.Match_MaxBits),c+d.length-this.Match_MaxBits),(h==-1||u>=h)&&(u=-1))):u=this.match_main(t,d,c),u==-1)a[l]=!1,r-=e[l].length2-e[l].length1;else{a[l]=!0,r=u-c;var p;if(p=h==-1?t.substring(u,u+d.length):t.substring(u,h+this.Match_MaxBits),d==p)t=t.substring(0,u)+this.diff_text2(e[l].diffs)+t.substring(u+d.length);else{var f=this.diff_main(d,p,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(f)/d.length>this.Patch_DeleteThreshold)a[l]=!1;else{this.diff_cleanupSemanticLossless(f);for(var g,m=0,v=0;v<e[l].diffs.length;v++){var y=e[l].diffs[v];y[0]!==o&&(g=this.diff_xIndex(f,m)),y[0]===s?t=t.substring(0,u+g)+y[1]+t.substring(u+g):y[0]===i&&(t=t.substring(0,u+g)+t.substring(u+this.diff_xIndex(f,m+y[1].length))),y[0]!==i&&(m+=y[1].length)}}}}}return t=t.substring(n.length,t.length-n.length),[t,a]},n.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,n="",i=1;i<=t;i++)n+=String.fromCharCode(i);for(var i=0;i<e.length;i++)e[i].start1+=t,e[i].start2+=t;var s=e[0],r=s.diffs;if(0==r.length||r[0][0]!=o)r.unshift([o,n]),s.start1-=t,s.start2-=t,s.length1+=t,s.length2+=t;else if(t>r[0][1].length){var a=t-r[0][1].length;r[0][1]=n.substring(r[0][1].length)+r[0][1],s.start1-=a,s.start2-=a,s.length1+=a,s.length2+=a}if(s=e[e.length-1],r=s.diffs,0==r.length||r[r.length-1][0]!=o)r.push([o,n]),s.length1+=t,s.length2+=t;else if(t>r[r.length-1][1].length){var a=t-r[r.length-1][1].length;r[r.length-1][1]+=n.substring(0,a),s.length1+=a,s.length2+=a}return n},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r<e.length;r++)if(!(e[r].length1<=t)){var a=e[r];e.splice(r--,1);for(var l=a.start1,u=a.start2,c="";0!==a.diffs.length;){var d=new n.patch_obj,h=!0;for(d.start1=l-c.length,d.start2=u-c.length,""!==c&&(d.length1=d.length2=c.length,d.diffs.push([o,c]));0!==a.diffs.length&&d.length1<t-this.Patch_Margin;){var p=a.diffs[0][0],f=a.diffs[0][1];p===s?(d.length2+=f.length,u+=f.length,d.diffs.push(a.diffs.shift()),h=!1):p===i&&1==d.diffs.length&&d.diffs[0][0]==o&&f.length>2*t?(d.length1+=f.length,l+=f.length,h=!1,d.diffs.push([p,f]),a.diffs.shift()):(f=f.substring(0,t-d.length1-this.Patch_Margin),d.length1+=f.length,l+=f.length,p===o?(d.length2+=f.length,u+=f.length):h=!1,d.diffs.push([p,f]),f==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(f.length))}c=this.diff_text2(d.diffs),c=c.substring(c.length-this.Patch_Margin);var g=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);""!==g&&(d.length1+=g.length,d.length2+=g.length,0!==d.diffs.length&&d.diffs[d.diffs.length-1][0]===o?d.diffs[d.diffs.length-1][1]+=g:d.diffs.push([o,g])),h||e.splice(++r,0,d)}}},n.prototype.patch_toText=function(e){
for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},n.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var r=e.split("\n"),a=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;a<r.length;){var u=r[a].match(l);if(!u)throw new Error("Invalid patch string: "+r[a]);var c=new n.patch_obj;for(t.push(c),c.start1=parseInt(u[1],10),""===u[2]?(c.start1--,c.length1=1):"0"==u[2]?c.length1=0:(c.start1--,c.length1=parseInt(u[2],10)),c.start2=parseInt(u[3],10),""===u[4]?(c.start2--,c.length2=1):"0"==u[4]?c.length2=0:(c.start2--,c.length2=parseInt(u[4],10)),a++;a<r.length;){var d=r[a].charAt(0);try{var h=decodeURI(r[a].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+h)}if("-"==d)c.diffs.push([i,h]);else if("+"==d)c.diffs.push([s,h]);else if(" "==d)c.diffs.push([o,h]);else{if("@"==d)break;if(""!==d)throw new Error('Invalid patch mode "'+d+'" in: '+h)}a++}}return t},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){var e,t;e=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1,t=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2;for(var n,r=["@@ -"+e+" +"+t+" @@\n"],a=0;a<this.diffs.length;a++){switch(this.diffs[a][0]){case s:n="+";break;case i:n="-";break;case o:n=" "}r[a+1]=n+encodeURI(this.diffs[a][1])+"\n"}return r.join("").replace(/%20/g," ")},e.exports=n,e.exports.diff_match_patch=n,e.exports.DIFF_DELETE=i,e.exports.DIFF_INSERT=s,e.exports.DIFF_EQUAL=o},131:function(e,t,n){var i,s;(function(){var o,r,a,l,u,c,d,h,p,f,g,m,v,y,b,C,_,w,x,S,T,M,O,k,A,E,R,P,D,F,I,j,L=[].slice;_='<span class="odometer-value"></span>',y='<span class="odometer-ribbon"><span class="odometer-ribbon-inner">'+_+"</span></span>",l='<span class="odometer-digit"><span class="odometer-digit-spacer">8</span><span class="odometer-digit-inner">'+y+"</span></span>",d='<span class="odometer-formatting-mark"></span>',a="(,ddd).dd",h=/^\(?([^)]*)\)?(?:(.)(d+))?$/,p=30,c=2e3,o=20,f=2,u=.5,g=1e3/p,r=1e3/o,b="transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",A=document.createElement("div").style,C=null!=A.transition||null!=A.webkitTransition||null!=A.mozTransition||null!=A.oTransition,O=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,m=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,x=function(e){var t;return t=document.createElement("div"),t.innerHTML=e,t.children[0]},M=function(e,t){return e.className=e.className.replace(new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi")," ")},w=function(e,t){return M(e,t),e.className+=" "+t},E=function(e,t){var n;if(null!=document.createEvent)return n=document.createEvent("HTMLEvents"),n.initEvent(t,!0,!0),e.dispatchEvent(n)},T=function(){var e,t;return null!=(e=null!=(t=window.performance)&&"function"==typeof t.now?t.now():void 0)?e:+new Date},k=function(e,t){return null==t&&(t=0),t?(e*=Math.pow(10,t),e+=.5,e=Math.floor(e),e/=Math.pow(10,t)):Math.round(e)},R=function(e){return e<0?Math.ceil(e):Math.floor(e)},S=function(e){return e-k(e)},D=!1,(P=function(){var e,t,n,i,s;if(!D&&null!=window.jQuery){for(D=!0,i=["html","text"],s=[],t=0,n=i.length;t<n;t++)e=i[t],s.push(function(e){var t;return t=window.jQuery.fn[e],window.jQuery.fn[e]=function(e){var n;return null==e||null==(null!=(n=this[0])?n.odometer:void 0)?t.apply(this,arguments):this[0].odometer.update(e)}}(e));return s}})(),setTimeout(P,0),v=function(){function e(t){var n,i,s,o,r,a,l,u,d,h,p=this;if(this.options=t,this.el=this.options.el,null!=this.el.odometer)return this.el.odometer;this.el.odometer=this,u=e.options;for(i in u)o=u[i],null==this.options[i]&&(this.options[i]=o);null==(r=this.options).duration&&(r.duration=c),this.MAX_VALUES=this.options.duration/g/f|0,this.resetFormat(),this.value=this.cleanValue(null!=(d=this.options.value)?d:""),this.renderInside(),this.render();try{for(h=["innerHTML","innerText","textContent"],a=0,l=h.length;a<l;a++)s=h[a],null!=this.el[s]&&!function(e){return Object.defineProperty(p.el,e,{get:function(){var t;return"innerHTML"===e?p.inside.outerHTML:null!=(t=p.inside.innerText)?t:p.inside.textContent},set:function(e){return p.update(e)}})}(s)}catch(e){n=e,this.watchForMutations()}}return e.prototype.renderInside=function(){return this.inside=document.createElement("div"),this.inside.className="odometer-inside",this.el.innerHTML="",this.el.appendChild(this.inside)},e.prototype.watchForMutations=function(){var e,t=this;if(null!=m)try{return null==this.observer&&(this.observer=new m(function(e){var n;return n=t.el.innerText,t.renderInside(),t.render(t.value),t.update(n)})),this.watchMutations=!0,this.startWatchingMutations()}catch(t){e=t}},e.prototype.startWatchingMutations=function(){if(this.watchMutations)return this.observer.observe(this.el,{childList:!0})},e.prototype.stopWatchingMutations=function(){var e;return null!=(e=this.observer)?e.disconnect():void 0},e.prototype.cleanValue=function(e){var t;return"string"==typeof e&&(e=e.replace(null!=(t=this.format.radix)?t:".","<radix>"),e=e.replace(/[.,]/g,""),e=e.replace("<radix>","."),e=parseFloat(e,10)||0),k(e,this.format.precision)},e.prototype.bindTransitionEnd=function(){var e,t,n,i,s,o,r=this;if(!this.transitionEndBound){for(this.transitionEndBound=!0,t=!1,s=b.split(" "),o=[],n=0,i=s.length;n<i;n++)e=s[n],o.push(this.el.addEventListener(e,function(){return!!t||(t=!0,setTimeout(function(){return r.render(),t=!1,E(r.el,"odometerdone")},0),!0)},!1));return o}},e.prototype.resetFormat=function(){var e,t,n,i,s,o,r,l;if(e=null!=(r=this.options.format)?r:a,e||(e="d"),n=h.exec(e),!n)throw new Error("Odometer: Unparsable digit format");return l=n.slice(1,4),o=l[0],s=l[1],t=l[2],i=(null!=t?t.length:void 0)||0,this.format={repeating:o,radix:s,precision:i}},e.prototype.render=function(e){var t,n,i,s,o,r,a,l,u,c,d,h;for(null==e&&(e=this.value),this.stopWatchingMutations(),this.resetFormat(),this.inside.innerHTML="",r=this.options.theme,t=this.el.className.split(" "),o=[],l=0,c=t.length;l<c;l++)n=t[l],n.length&&((s=/^odometer-theme-(.+)$/.exec(n))?r=s[1]:/^odometer(-|$)/.test(n)||o.push(n));for(o.push("odometer"),C||o.push("odometer-no-transitions"),r?o.push("odometer-theme-"+r):o.push("odometer-auto-theme"),this.el.className=o.join(" "),this.ribbons={},this.digits=[],a=!this.format.precision||!S(e)||!1,h=e.toString().split("").reverse(),u=0,d=h.length;u<d;u++)i=h[u],"."===i&&(a=!0),this.addDigit(i,a);return this.startWatchingMutations()},e.prototype.update=function(e){var t,n=this;if(e=this.cleanValue(e),t=e-this.value)return M(this.el,"odometer-animating-up odometer-animating-down odometer-animating"),t>0?w(this.el,"odometer-animating-up"):w(this.el,"odometer-animating-down"),this.stopWatchingMutations(),this.animate(e),this.startWatchingMutations(),setTimeout(function(){return n.el.offsetHeight,w(n.el,"odometer-animating")},0),this.value=e},e.prototype.renderDigit=function(){return x(l)},e.prototype.insertDigit=function(e,t){return null!=t?this.inside.insertBefore(e,t):this.inside.children.length?this.inside.insertBefore(e,this.inside.children[0]):this.inside.appendChild(e)},e.prototype.addSpacer=function(e,t,n){var i;return i=x(d),i.innerHTML=e,n&&w(i,n),this.insertDigit(i,t)},e.prototype.addDigit=function(e,t){var n,i,s,o;if(null==t&&(t=!0),"-"===e)return this.addSpacer(e,null,"odometer-negation-mark");if("."===e)return this.addSpacer(null!=(o=this.format.radix)?o:".",null,"odometer-radix-mark");if(t)for(s=!1;;){if(!this.format.repeating.length){if(s)throw new Error("Bad odometer format without digits");this.resetFormat(),s=!0}if(n=this.format.repeating[this.format.repeating.length-1],this.format.repeating=this.format.repeating.substring(0,this.format.repeating.length-1),"d"===n)break;this.addSpacer(n)}i=this.renderDigit(),i.querySelector(".odometer-value").innerHTML=e,this.digits.push(i);var r=this.insertDigit(i);return E(this.el,"odometer-digit-added"),r},e.prototype.animate=function(e){return C&&"count"!==this.options.animation?this.animateSlide(e):this.animateCount(e)},e.prototype.animateCount=function(e){var t,n,i,s,o,a=this;if(n=+e-this.value)return s=i=T(),t=this.value,(o=function(){var l,u,c;return T()-s>a.options.duration?(a.value=e,a.render(),void E(a.el,"odometerdone")):(l=T()-i,l>r&&(i=T(),c=l/a.options.duration,u=n*c,t+=u,a.render(Math.round(t))),null!=O?O(o):setTimeout(o,r))})()},e.prototype.getDigitCount=function(){var e,t,n,i,s,o;for(i=1<=arguments.length?L.call(arguments,0):[],e=s=0,o=i.length;s<o;e=++s)n=i[e],i[e]=Math.abs(n);return t=Math.max.apply(Math,i),Math.ceil(Math.log(t+1)/Math.log(10))},e.prototype.getFractionalDigitCount=function(){var e,t,n,i,s,o,r;for(s=1<=arguments.length?L.call(arguments,0):[],t=/^\-?\d*\.(\d*?)0*$/,e=o=0,r=s.length;o<r;e=++o)i=s[e],s[e]=i.toString(),n=t.exec(s[e]),null==n?s[e]=0:s[e]=n[1].length;return Math.max.apply(Math,s)},e.prototype.resetDigits=function(){return this.digits=[],this.ribbons=[],this.inside.innerHTML="",this.resetFormat()},e.prototype.animateSlide=function(e){var t,n,i,s,o,r,a,l,c,d,h,p,f,g,m,v,y,b,C,_,x,S,T,M,O,k,A;if(v=this.value,l=this.getFractionalDigitCount(v,e),l&&(e*=Math.pow(10,l),v*=Math.pow(10,l)),i=e-v){for(this.bindTransitionEnd(),s=this.getDigitCount(v,e),o=[],t=0,h=C=0;0<=s?C<s:C>s;h=0<=s?++C:--C){if(y=R(v/Math.pow(10,s-h-1)),a=R(e/Math.pow(10,s-h-1)),r=a-y,Math.abs(r)>this.MAX_VALUES){for(d=[],p=r/(this.MAX_VALUES+this.MAX_VALUES*t*u),n=y;r>0&&n<a||r<0&&n>a;)d.push(Math.round(n)),n+=p;d[d.length-1]!==a&&d.push(a),t++}else d=function(){A=[];for(var e=y;y<=a?e<=a:e>=a;y<=a?e++:e--)A.push(e);return A}.apply(this);for(h=_=0,S=d.length;_<S;h=++_)c=d[h],d[h]=Math.abs(c%10);o.push(d)}for(this.resetDigits(),k=o.reverse(),h=x=0,T=k.length;x<T;h=++x)for(d=k[h],this.digits[h]||this.addDigit(" ",h>=l),null==(b=this.ribbons)[h]&&(b[h]=this.digits[h].querySelector(".odometer-ribbon-inner")),this.ribbons[h].innerHTML="",i<0&&(d=d.reverse()),f=O=0,M=d.length;O<M;f=++O)c=d[f],m=document.createElement("div"),m.className="odometer-value",m.innerHTML=c,this.ribbons[h].appendChild(m),f===d.length-1&&w(m,"odometer-last-value"),0===f&&w(m,"odometer-first-value");return y<0&&this.addDigit("-"),g=this.inside.querySelector(".odometer-radix-mark"),null!=g&&g.parent.removeChild(g),l?this.addSpacer(this.format.radix,this.digits[l-1],"odometer-radix-mark"):void 0}},e}(),v.options=null!=(I=window.odometerOptions)?I:{},setTimeout(function(){var e,t,n,i,s;if(window.odometerOptions){i=window.odometerOptions,s=[];for(e in i)t=i[e],s.push(null!=(n=v.options)[e]?(n=v.options)[e]:n[e]=t);return s}},0),v.init=function(){var e,t,n,i,s,o;if(null!=document.querySelectorAll){for(t=document.querySelectorAll(v.options.selector||".odometer"),o=[],n=0,i=t.length;n<i;n++)e=t[n],o.push(e.odometer=new v({el:e,value:null!=(s=e.innerText)?s:e.textContent}));return o}},null!=(null!=(j=document.documentElement)?j.doScroll:void 0)&&null!=document.createEventObject?(F=document.onreadystatechange,document.onreadystatechange=function(){return"complete"===document.readyState&&v.options.auto!==!1&&v.init(),null!=F?F.apply(this,arguments):void 0}):document.addEventListener("DOMContentLoaded",function(){if(v.options.auto!==!1)return v.init()},!1),i=[n(3)],s=function(){return v}.apply(t,i),!(void 0!==s&&(e.exports=s))}).call(this)},136:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),r=i(o),a=n(62),l=i(a),u=n(1),c=i(u),d=n(11),h=i(d),p=n(6),f=i(p),g=n(28),m=i(g),v=n(141),y="mod+z",b="mod+shift+z",C=c.default.createClass({displayName:"RawFontTextarea",propTypes:{autoFocus:c.default.PropTypes.bool,id:c.default.PropTypes.string,initialValue:c.default.PropTypes.string,isDisabled:c.default.PropTypes.bool,isRawMode:c.default.PropTypes.bool,onChange:c.default.PropTypes.func.isRequired,style:c.default.PropTypes.object},contextTypes:{currentLocaleCode:c.default.PropTypes.string,currentLocaleDir:c.default.PropTypes.string},getDefaultProps:function(){return{initialValue:""}},getInitialState:function(){return{done:[],undone:[]}},componentWillMount:function(){this.saveSnapshot=f.default.debounce(this.saveSnapshot,300,!0)},componentDidMount:function(){this.mousetrap=new l.default(this._textareaNode),this.mousetrap.bind(y,this.handleUndo),this.mousetrap.bind(b,this.handleRedo);var e=this.props.isRawMode,t="rtl"===this.context.currentLocaleDir&&!e;this.rawFont=new v.RawFontAware(this._textareaNode,{isRawMode:e,isRtlMode:t}),this.previousSnapshot=this.rawFont.setSnapshot({value:this.props.initialValue})},componentWillReceiveProps:function(e){if(this.props.isRawMode!==e.isRawMode){var t="rtl"===this.context.currentLocaleDir&&!e.isRawMode;this.rawFont.setMode({isRtlMode:t,isRawMode:e.isRawMode}),this.rawFont.update()}},shouldComponentUpdate:function(e,t){return this.isRawMode!==e.isRawMode||!f.default.isEqual(this.state.done,t.done)&&!f.default.isEqual(this.state.undone,t.undone)},componentDidUpdate:function(){this.rawFont.focus()},componentWillUnmount:function(){this.mousetrap.unbind(y),this.mousetrap.unbind(b),this.rawFont.destroy()},saveSnapshot:function(e){var t=this;this.setState(function(t){return{done:[].concat(s(t.done),[e]),undone:[]}},function(){t.previousSnapshot=t.rawFont.getSnapshot()})},handleChange:function(){this.saveSnapshot(this.previousSnapshot),this.props.onChange(this.rawFont.getValue())},handleUndo:function(e){var t=this;if(e.preventDefault(),0!==this.state.done.length){var n=this.state.done.slice(-1)[0];this.setState(function(e){return{done:e.done.slice(0,-1),undone:[].concat(s(e.undone),[t.rawFont.getSnapshot()])}},function(){t.previousSnapshot=t.rawFont.setSnapshot(n),t.props.onChange(t.rawFont.getValue())})}},handleRedo:function(e){var t=this;if(e.preventDefault(),0!==this.state.undone.length){var n=this.state.undone.slice(-1)[0];this.setState(function(e){return{done:[].concat(s(e.done),[t.rawFont.getSnapshot()]),undone:e.undone.slice(0,-1)}},function(){t.previousSnapshot=t.rawFont.setSnapshot(n),t.props.onChange(t.rawFont.getValue())})}},render:function(){var e=this,t=(0,r.default)({},{boxSizing:"border-box",margin:"0 0 0.5em 0",padding:"0.3em"},this.props.style);return c.default.createElement(m.default,{autoFocus:this.props.autoFocus,className:"translation focusthis js-translation-area",defaultValue:this.props.initialValue,dir:this.context.currentLocaleDir,disabled:this.props.isDisabled,id:this.props.id,lang:this.context.currentLocaleCode,onChange:this.handleChange,ref:function(t){null!==t&&(e._textareaNode=h.default.findDOMNode(t))},style:t,value:void 0})}});t.default=C},141:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){var n=void 0;try{n=new Event(t,{bubbles:!0})}catch(e){n=document.createEvent("HTMLEvents"),n.initEvent("input",!0,!1)}e.dispatchEvent(n)}function o(e){return(0,c.sym2raw)(e.value)}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.isRawMode,r=void 0!==i&&i,a=n.triggerChange,l=void 0!==a&&a;return e.value=(0,c.raw2sym)(t,{isRawMode:r}),l&&s(e,"input"),o(e)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.isRawMode,o=void 0!==i&&i,r=n.triggerChange,a=void 0!==r&&r,l=e.selectionStart,u=e.selectionEnd,d=e.value,h=t||"",p=null!==t?l:u,f=d.substring(0,p),g=d.substring(u),m=(0,c.raw2sym)((0,c.sym2raw)(f+h),{isRawMode:o}),v=m.length-f.length-(u-p),y=(0,c.raw2sym)((0,c.sym2raw)(f+h+g),{isRawMode:o});d!==y&&(e.value=y,e.selectionEnd=u+v,l===u&&(e.selectionStart=u+v),(a||null!==t)&&s(e,"input"))}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.isRawMode,s=void 0!==i&&i,r=n.triggerChange,l=void 0!==r&&r;return a(e,t,{isRawMode:s,triggerChange:l}),o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.RawFontAware=t.insertAtCaret=t.setValue=void 0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c=n(47),d=8,h=39,p=37,f=46,g=66,m=70;t.setValue=r,t.insertAtCaret=l;t.RawFontAware=function(){function e(t){var n=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=s.isRawMode,r=void 0!==o&&o,a=s.isRtlMode,l=void 0!==a&&a;i(this,e),this.element=t,this.isRawMode=r,this.isRtlMode=l,t.addEventListener("input",function(e){return n.onInput(e)}),t.addEventListener("keydown",function(e){return n.onKeyDown(e)}),t.addEventListener("mousedown",function(e){return n.onMouseDown(e)}),t.addEventListener("mouseup",function(e){return n.onMouseUp(e)}),t.addEventListener("copy",function(e){return n.onCopyOrCut(e)}),t.addEventListener("cut",function(e){return n.onCopyOrCut(e)}),t.addEventListener("compositionstart",function(){return n.onCompositionStart()}),t.addEventListener("compositionend",function(){return n.onCompositionEnd()})}return u(e,[{key:"destroy",value:function(){var e=this.element;this.clearDeferTimer(),e.removeEventListener("input",this.onInput),e.removeEventListener("keydown",this.onKeyDown),e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseup",this.onMouseUp),e.removeEventListener("copy",this.onCopyOrCut),e.removeEventListener("cut",this.onCopyOrCut),e.removeEventListener("compositionstart",this.onCompositionStart),e.removeEventListener("compositionend",this.onCompositionEnd),this.element=null}},{key:"clearDeferTimer",value:function(){this.deferTimer&&(clearTimeout(this.deferTimer),this.deferTimer=void 0)}},{key:"defer",value:function(e){this.clearDeferTimer(),this.deferTimer=setTimeout(e,0)}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isRawMode,n=void 0!==t&&t,i=e.isRtlMode,s=void 0!==i&&i;this.isRawMode=n,this.isRtlMode=s}},{key:"focus",value:function(){this.element.focus()}},{key:"getValue",value:function(){return o(this.element)}},{key:"setValue",value:function(e){return r(this.element,e,{isRawMode:this.isRawMode})}},{key:"getSnapshot",value:function(){return{selectionStart:this.element.selectionStart,selectionEnd:this.element.selectionEnd,value:this.getValue()}}},{key:"setSnapshot",value:function(e){var t=this.element;return this.setValue(e.value),t.selectionStart=e.selectionStart||t.value.length,t.selectionEnd=e.selectionEnd||t.value.length,this.getSnapshot()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;a(this.element,e,{isRawMode:this.isRawMode})}},{key:"raw2sym",value:function(e){return(0,c.raw2sym)(e,{isRawMode:this.isRawMode})}},{key:"sym2raw",value:function(e){return(0,c.sym2raw)(e)}},{key:"onMouseDown",value:function(){var e=this;this.defer(function(){e.adjustSelection()})}},{key:"onMouseUp",value:function(){this.adjustSelection()}},{key:"onKeyDown",value:function(e){var t=this,n=e.target,i=void 0;i=this.isRtlMode?e.keyCode===p&&!e.metaKey||e.ctrlKey&&e.keyCode===g:e.keyCode===h&&!e.metaKey||e.ctrlKey&&e.keyCode===m,this.defer(function(){t.adjustSelection(i)});var s=n.selectionStart,o=n.selectionEnd,r=n.value;s>r.length&&(s=r.length),o>r.length&&(o=r.length);var a=r.substr(o-1,1),l=r.substr(o,1);if(s===o){if(e.keyCode===f&&l===c.SYMBOLS.LF)return void(n.selectionEnd=o+2);e.keyCode===d&&a===c.CHARACTERS.LF&&(n.selectionStart=s-2)}}},{key:"onCopyOrCut",value:function(e){e.preventDefault();var t=e.target,n=t.selectionStart,i=t.selectionEnd,s=this.sym2raw(t.value.substring(n,i));e.clipboardData?e.clipboardData.setData("text/plain",s):window.clipboardData.setData("Text",s),"cut"===e.type&&this.insertAtCaret("")}},{key:"onInput",value:function(){this.isComposing||this.update(),this.requestUpdate=!1}},{key:"onCompositionStart",value:function(){this.isComposing=!0}},{key:"onCompositionEnd",value:function(){var e=this;this.isComposing=!1,this.requestUpdate=!0,this.defer(function(){e.requestUpdate&&e.update()})}},{key:"adjustSelection",value:function(e){var t=this.element,n=t.selectionStart,i=t.selectionEnd,s=t.value,o=s.substr(i-1,1),r=s.substr(i,1),a=o===c.SYMBOLS.LF&&r===c.CHARACTERS.LF,l=s.substring(n,i);return l===c.CHARACTERS.LF&&s.substr(n-1,1)===c.SYMBOLS.LF?void(t.selectionStart=t.selectionStart-1):void(a&&(t.selectionEnd=e?i+1:i-1,n===i&&(t.selectionStart=t.selectionEnd)))}},{key:"insertAtCaret",value:function(e){return l(this.element,e)}}]),e}()},142:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(11),o=i(s),r={nodes:[],render:function(e,t){return this.nodes.push(t),o.default.render(e,t)},unmountComponents:function(){this.nodes.forEach(function(e){return o.default.unmountComponentAtNode(e)}),this.nodes=[]}};t.default=r},235:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UnitSet=void 0;var s=n(12),o=i(s),r=n(251);t.UnitSet=o.default.Collection.extend({model:r.Unit,initialize:function(e,t){this.chunkSize=t.chunkSize,this.uIds=[],this.total=0,this.frozenTotal=0},comparator:function(e){return this.uIds.indexOf(e.id)},getByUnitId:function(e){return e>0?this.get(e):this.at(0)},getCurrent:function(){return this.activeUnit},setCurrent:function(e){return this.activeUnit=e instanceof this.model?e:this.getByUnitId(e),this.activeUnit},fetchedIds:function(){return this.map(function(e){return e.id})},next:function(){var e=this.indexOf(this.getCurrent());return e+1===this.length?null:this.at(e+1)},hasNext:function(){return null!==this.next()},prev:function(){var e=this.indexOf(this.getCurrent());return 0===e?null:this.at(e-1)},hasPrev:function(){return null!==this.prev()}})},239:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){(0,F.qAll)(".js-suggestion-text").forEach(function(t){t.innerHTML=(0,D.default)(e.get("target")[0],t.dataset.string)})}function r(e){var t=(0,u.default)(".js-unit-checks"),n=(0,u.default)(".focusthis")[0];t.html(e).show(),te.default.blinkClass(t,"blink",4,200),n.focus()}var a=function(){function e(e,t){var n=[],i=!0,s=!1,o=void 0;try{for(var r,a=e[Symbol.iterator]();!(i=(r=a.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(s)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=n(3),u=i(l),c=n(6),d=i(c),h=n(1),p=i(h),f=n(11),g=i(f),m=n(73),v=i(m),y=n(142),b=i(y);n(380),n(381),n(382),n(383),n(53),n(84);var C=n(19),_=i(C),w=n(385),x=i(w),S=n(62),T=i(S),M=n(8),O=i(M),k=n(254),A=i(k),E=n(29),R=i(E),P=n(100),D=i(P),F=n(10),I=n(30),j=i(I),L=n(264),N=i(L),$=n(242),B=i($),z=n(244),q=i(z),U=n(88),V=i(U),H=n(235),W=n(70),K=i(W),Q=n(55),G=i(Q),Y=n(92),J=i(Y),Z=n(93),X=i(Z),ee=n(24),te=i(ee),ne=n(48),ie=n(248),se=i(ie);PTL.reactEditor=se.default;var oe=1,re=["oldest","newest","default"],ae={dropdownAutoWidth:!0,width:"off"},le=(0,O.default)({minimumResultsForSearch:-1},ae),ue=[];window.PTL=window.PTL||{},PTL.editor={init:function(e){var t=this;this.settings={mt:[],displayPriority:!1},e&&(0,O.default)(this.settings,e),this.formats={},this.backToBrowserEl=(0,F.q)(".js-back-to-browser"),this.$editorActivity=(0,u.default)("#js-editor-act"),this.$editorBody=(0,u.default)(".js-editor-body"),this.editorTableEl=(0,F.q)(".js-editor-table"),this.$filterStatus=(0,u.default)("#js-filter-status"),this.$filterChecks=(0,u.default)("#js-filter-checks"),this.$filterChecksWrapper=(0,u.default)(".js-filter-checks-wrapper"),this.$filterSortBy=(0,u.default)("#js-filter-sort"),this.$msgOverlay=(0,u.default)("#js-editor-msg-overlay"),this.$navNext=(0,u.default)("#js-nav-next"),this.$navPrev=(0,u.default)("#js-nav-prev"),this.unitCountEl=(0,F.q)(".js-unit-count"),this.unitIndexEl=(0,F.q)(".js-unit-index"),this.offsetRequested=0,this.units=new H.UnitSet([],{chunkSize:this.settings.chunkSize}),this.editorRow=null,this.filter="all",this.checks=[],this.sortBy="default",this.modifiedSince=null,this.user=null,this.ctxGap=0,this.ctxQty=parseInt((0,R.default)("ctxQty"),10)||1,this.preventNavigation=!1,this.isUnitDirty=!1,this.isLoading=!0,this.showActivity(),this.fetchingOffsets=[],this.wordComparer=new x.default({compare:"words"}),this.tmpl={vUnit:d.default.template((0,u.default)("#view_unit").html()),tm:d.default.template((0,u.default)("#tm_suggestions").html()),editCtx:d.default.template((0,u.default)("#editCtx").html()),msg:d.default.template((0,u.default)("#js-editor-msg").html())},X.default.init({onSearch:this.onSearch}),e.displayPriority&&re.push("priority"),this.$filterStatus.select2(ae),this.$filterSortBy.select2(le),(0,u.default)(".select2-selection__rendered").removeAttr("title"),(0,u.default)("#editor").on("click",".js-dev-img",function(e){e.preventDefault(),(0,u.default)(this).magnificPopup({type:"image",gallery:{enabled:!0}}).magnificPopup("open")}),(0,u.default)("#toolbar").on("keypress",".js-unit-index",function(e){return t.gotoIndex(e)}),(0,u.default)("#toolbar").on("dblclick click",".js-unit-index",function(e){return t.unitIndex(e)}),(0,u.default)("#toolbar").on("click","#js-nav-prev",function(){return t.gotoPrev()}),(0,u.default)("#toolbar").on("click","#js-nav-next",function(){return t.gotoNext()}),(0,u.default)("#toolbar").on("change","#js-filter-sort",function(){return t.filterSort()}),(0,u.default)("#actions").on("change","#js-filter-status",function(){return t.filterStatus()}),(0,u.default)("#actions").on("change","#js-filter-checks",function(){return t.filterChecks()}),(0,u.default)("#editor").on("change","input.fuzzycheck",function(){return t.onStateChange()}),(0,u.default)("#editor").on("click","input.fuzzycheck",function(){return t.onStateClick()}),(0,u.default)("#editor").on("input","#id_translator_comment",function(){return t.handleTranslationChange()}),(0,u.default)("#editor").on("click",".switch-suggest-mode a",function(e){return t.toggleSuggestMode(e)}),(0,u.default)("#editor").on("focus",".focusthis",function(e){PTL.editor.focused=e.target}),(0,u.default)("#editor").on("focus",".js-translation-area",function(e){(0,u.default)(e.target).closest(".js-editor-area-wrapper").addClass("is-focused")}),(0,u.default)("#editor").on("blur",".js-translation-area",function(e){(0,u.default)(e.target).closest(".js-editor-area-wrapper").removeClass("is-focused")}),(0,u.default)("#editor").on("click",".js-editor-reload",function(e){e.preventDefault(),u.default.history.load("")}),(0,u.default)("#editor").on("click",".js-editor-copytext",function(e){return t.copyText(e)}),(0,u.default)("#editor").on("click",".js-editor-copy-tm-text",function(e){return t.copyTMText(e)}),(0,u.default)("#editor").on("click",".js-editor-copy-comment",function(e){var n=e.currentTarget.dataset.string;t.copyComment(n)}),(0,u.default)("#editor").on("click",".js-copyoriginal",function(e){t.copyOriginal(e.currentTarget.dataset.languageCode)}),(0,u.default)("#editor").on("mouseup","tr.view-row, tr.ctx-row",this.gotoUnit),(0,u.default)("#editor").on("click","input.submit",function(e){e.preventDefault(),t.handleSubmit()}),(0,u.default)("#editor").on("click","input.suggest",function(e){e.preventDefault(),t.handleSuggest()}),(0,u.default)("#editor").on("click",".js-suggestion-reject",function(e){e.stopPropagation(),t.rejectSuggestion(e.currentTarget.dataset.suggId)}),(0,u.default)("#editor").on("click",".js-suggestion-accept",function(e){e.stopPropagation(),t.acceptSuggestion(e.currentTarget.dataset.suggId)}),(0,u.default)("#editor").on("click",".js-suggestion-toggle",function(e){return t.toggleSuggestion(e,{canHide:!0})}),this.settings.canReview&&(0,u.default)("#editor").on("click",".js-user-suggestion",function(e){return t.toggleSuggestion(e,{canHide:!1})}),(0,u.default)("#editor").on("click",".js-translate-lightbox",function(){return t.closeSuggestion()}),(0,u.default)("#editor").on("click","#js-toggle-timeline",function(e){return t.toggleTimeline(e)}),(0,u.default)("#editor").on("click",".js-toggle-check",function(e){t.toggleCheck(e.currentTarget.dataset.checkId)}),(0,u.default)("#editor").on("click",".js-more-ctx",function(){return t.moreContext()}),(0,u.default)("#editor").on("click",".js-less-ctx",function(){return t.lessContext()}),(0,u.default)("#editor").on("click",".js-show-ctx",function(){return t.showContext()}),(0,u.default)("#editor").on("click",".js-hide-ctx",function(){return t.hideContext()}),(0,u.default)("#editor").on("click",".js-editor-comment",function(e){e.preventDefault();var t=(0,u.default)(".js-editor-comment-form"),n=(0,u.default)(".js-editor-comment");n.toggleClass("selected"),n.hasClass("selected")?(t.css("display","inline-block"),(0,u.default)("#id_translator_comment").focus()):t.css("display","none")}),(0,u.default)("#editor").on("submit","#js-comment-form",function(e){return t.addComment(e)}),(0,u.default)("#editor").on("click",".js-comment-remove",function(e){return t.removeComment(e)}),(0,u.default)(document).on("click",".js-editor-msg-hide",function(){return t.hideMsg()}),(0,u.default)("#editor").on("click",".js-toggle-raw",function(e){e.preventDefault(),(0,u.default)(".js-translate-translation").toggleClass("raw");var t=document.querySelector(".js-toggle-raw");t.classList.toggle("selected"),se.default.setProps({isRawMode:t.classList.contains("selected")})}),window.addEventListener("beforeunload",function(e){(PTL.editor.isUnitDirty||PTL.editor.isSuggestionFeedbackFormDirty)&&(e.returnValue=gettext("You have unsaved changes in this string. Navigating away will discard those changes."))});var i=(0,T.default)(document.body);i.bind("esc",function(e){e.preventDefault(),void 0!==t.selectedSuggestionId&&t.closeSuggestion()}),i.bind("ctrl+return",function(e){e.preventDefault(),t.isSuggestMode()?t.handleSuggest():t.handleSubmit()}),i.bind("ctrl+space",function(e){e.preventDefault(),t.toggleState()}),i.bind("ctrl+shift+space",function(e){e.preventDefault(),t.toggleSuggestMode(e)}),i.bind(["ctrl+up","ctrl+,"],function(e){e.preventDefault(),t.gotoPrev()}),i.bind(["ctrl+down","ctrl+."],function(e){e.preventDefault(),t.gotoNext({isSubmission:!1})}),navigator.platform.toUpperCase().indexOf("MAC")>=0&&(this.$navNext.attr("title",gettext("Go to the next string (Ctrl+.)<br/><br/>Also:<br/>Next page: Ctrl+Shift+.<br/>Last page: Ctrl+Shift+End")),this.$navPrev.attr("title",gettext("Go to the previous string (Ctrl+,)<br/><br/>Also:<br/>Previous page: Ctrl+Shift+,<br/>First page: Ctrl+Shift+Home"))),i.bind("ctrl+shift+n",function(e){e.preventDefault(),t.unitIndex(e)}),(0,u.default)(document).ajaxStart(function(){clearTimeout(t.delayedActivityTimer),t.isLoading||(t.delayedActivityTimer=setTimeout(function(){t.showActivity()},3e3))}),(0,u.default)(document).ajaxStop(function(){clearTimeout(t.delayedActivityTimer),t.isLoading||t.hideActivity()}),this.settings.mt.forEach(function(e){n.e(1,function(){var t=e.name.split("_").map(function(e){return e[0]+e.slice(1).toLowerCase()}).join(""),i=n(189)("./"+t).default;ue.push(new i(e.key))})}),u.default.history.init(function(e){var n=te.default.getParsedHash(e),i=!0,s=0,o=0;if(void 0!==t.selectedSuggestionId&&t.closeSuggestion({checkIfCanNavigate:!1}),n.unit){var r=parseInt(n.unit,10);if(r&&!isNaN(r)){var a=t.units.getCurrent(),l=t.units.get(r);if(l&&l!==a)return void t.setUnit(l);s=r,i=!t.units.length}}if(n.offset){var c=parseInt(n.offset,10);c&&!isNaN(c)&&(o=t.getStartOfChunk(c))}if(t.filter="all",t.checks=[],
t.category=[],t.sortBy="default","filter"in n){var d=n.filter;if(t.filter=d,"checks"===d&&"checks"in n&&(t.checks=n.checks.split(",")),"checks"===d&&"category"in n&&(t.category=n.category),"sort"in n){var h=n.sort;t.sortBy=re.indexOf(h)!==-1?h:"default"}}if("modified-since"in n?t.modifiedSince=n["modified-since"]:t.modifiedSince=null,"month"in n?t.month=n.month:t.month=null,"user"in n&&0===t.filter.indexOf("user-")){t.user=encodeURIComponent(n.user);var p=t.user,f={"user-suggestions":interpolate(gettext("%s's pending suggestions"),[p]),"user-suggestions-accepted":interpolate(gettext("%s's accepted suggestions"),[p]),"user-suggestions-rejected":interpolate(gettext("%s's rejected suggestions"),[p]),"user-submissions":interpolate(gettext("%s's submissions"),[p]),"user-submissions-overwritten":interpolate(gettext("%s's overwritten submissions"),[p])},g=[];for(var m in f)f.hasOwnProperty(m)&&g.push('\n            <option value="'+m+'" data-user="'+p+'" class="js-user-filter">\n              '+f[m]+"\n            </option>\n          ");(0,u.default)(".js-user-filter").remove(),t.$filterStatus.append(g.join(""))}if("search"in n){t.filter="search";var v={searchText:n.search};"sfields"in n&&(v.searchFields=n.sfields.split(",")),"soptions"in n&&(v.searchOptions=n.soptions.split(",")),X.default.setState(v)}t.preventNavigation=!0;var y="search"===t.filter?"all":t.filter;t.$filterStatus.val(y).trigger("change.select2"),"checks"===t.filter&&t.$filterChecks.is(":hidden")&&t.getCheckOptions(),t.$filterSortBy.val(t.sortBy).trigger("change.select2"),"search"===t.filter&&t.$filterChecksWrapper.hide(),(0,u.default)(".select2-selection__rendered").removeAttr("title"),t.preventNavigation=!1,t.fetchUnits({uId:s,initialOffset:o,initial:i}).then(function(e){e&&(t.units.uIds.indexOf(s)===-1&&(s=t.offsetRequested>t.initialOffset&&t.offsetRequested<=t.getOffsetOfLastUnit()?t.units.uIds[t.offsetRequested-t.initialOffset-1]:t.units.uIds[0]),t.offsetRequested=0,t.setUnit(s))})},{unescape:!0})},ready:function(){var e=this.units.getCurrent();e.get("isObsolete")&&this.displayObsoleteMsg(),o(e),(0,u.default)(".extra-item-comment").filter(":not([dir])").bidi(),(0,u.default)(".suggestion-translation").filter(":not([dir])").bidi();var t=(0,u.default)(".js-developer-comments");if(t.html((0,N.default)(t.html())),"search"===this.filter&&this.hlSearch(),""!==this.settings.tmUrl&&this.getTMUnits(),null!==this.tmData){var n=this.getTMUnitsContent(this.tmData);(0,u.default)("#extras-container").append(n)}this.runHooks(),this.isUnitDirty=!1,this.keepState=!1,this.isLoading=!1,this.hideActivity(),K.default.updateRelativeDates()},noResults:function(){this.displayMsg({body:gettext("No results.")}),this.reDraw()},canNavigate:function(){return!this.isUnitDirty&&!this.isSuggestionFeedbackFormDirty||window.confirm(gettext("You have unsaved changes in this string. Navigating away will discard those changes."))},hlSearch:function(){var e=X.default.state,t=e.searchText,n=e.searchFields,i=e.searchOptions,s={notes:"div.developer-comments",locations:"div.translate-locations",source:"td.translate-original, .original .js-translation-text",target:"td.translate-translation"},o=n.map(function(e){return["tr.edit-row "+s[e],"tr.view-row "+s[e]]}).reduce(function(e,t){return e.concat(t)},[]),r=void 0;r=i.indexOf("exact")>=0?new RegExp("("+(0,ne.escapeUnsafeRegexSymbols)(t)+")"):new RegExp((0,ne.makeRegexForMultipleWords)(t),"i"),(0,u.default)(o.join(", ")).highlightRegex(r)},copyText:function(e){var t=(0,u.default)(e.currentTarget),n=t.data("action"),i=t.data("codepoint")&&JSON.parse('"'+t.data("codepoint")+'"')||t.data("string")||t.data("translation-aid")||t.text();"overwrite"===n?se.default.setValueFor(this.focused||0,i):se.default.insertAtCaretFor(this.focused||0,i)},copyTMText:function(e){""===window.getSelection().toString()&&this.copyText(e)},copyOriginal:function(e){for(var t=this.units.getCurrent().get("sources")[e],n=0;n<t.length;n++)se.default.setValueFor(n,t[n]);this.goFuzzy()},copyComment:function(e){var t=(0,F.q)(".js-editor-comment"),n=(0,F.q)(".js-editor-comment-form"),i=(0,F.q)("#id_translator_comment");t.classList.contains("selected")||(n.style.display="inline-block",t.classList.add("selected")),i.focus(),i.value=e},doFuzzyStyle:function(){(0,u.default)("tr.edit-row").addClass("fuzzy-unit")},undoFuzzyStyle:function(){(0,u.default)("tr.edit-row").removeClass("fuzzy-unit")},doFuzzyBox:function(){var e=(0,u.default)("input.fuzzycheck");e.prop("checked",!0),this.settings.isAdmin||(this.isSuggestMode()||(0,u.default)(".js-fuzzy-block").show(),e[0].defaultChecked=!0),e.trigger("change")},undoFuzzyBox:function(){var e=(0,u.default)("input.fuzzycheck");e.prop("checked",!1),e.trigger("change")},goFuzzy:function(){this.isFuzzy()||(this.doFuzzyStyle(),this.doFuzzyBox())},ungoFuzzy:function(){this.isFuzzy()&&(this.undoFuzzyStyle(),this.undoFuzzyBox())},isFuzzy:function(){return(0,u.default)("input.fuzzycheck").prop("checked")},toggleFuzzyStyle:function(){this.isFuzzy()?this.doFuzzyStyle():this.undoFuzzyStyle()},toggleState:function(){(0,u.default)("input.fuzzycheck:visible").blur().click()},updateUnitDefaultProperties:function(){se.default.setProps({initialValues:se.default.stateValues.slice()});var e=(0,F.q)("#id_state");e.defaultChecked=e.checked,this.handleTranslationChange()},updateCommentDefaultProperties:function(){var e=(0,F.q)("#id_translator_comment");e.defaultValue=e.value,this.handleTranslationChange()},handleTranslationChange:function(){var e=(0,F.q)("#id_translator_comment"),t=null!==e&&e.value!==e.defaultValue,n=(0,F.q)(".js-submit"),i=(0,F.q)(".js-suggest"),s=(0,u.default)(".js-user-suggestion").map(function(){return(0,u.default)(this).data("translation-aid")}).get(),o=(0,F.q)("#id_state"),r=o.defaultChecked!==o.checked,a=!1,l=!1;this.settings.isAdmin||(a=o.checked===!0);var c=this.isTextareaValueDirty(),d=se.default.stateValues;if(s.length)for(var h=0;h<d.length&&!l;h++)l=s.indexOf(d[h])!==-1;this.isUnitDirty=c||r||t,null!==n&&(n.disabled=!(r||c)||a),null!==i&&(i.disabled=!c||l)},onStateChange:function(){this.handleTranslationChange(),this.toggleFuzzyStyle()},onStateClick:function(){this.keepState=!0},onTextareaChange:function(){var e=this;this.handleTranslationChange(),this.isTextareaValueDirty()&&!this.keepState&&this.ungoFuzzy(),clearTimeout(this.similarityTimer),this.similarityTimer=setTimeout(function(){e.checkSimilarTranslations(),e.similarityTimer=null},200)},isTextareaValueDirty:function(){return!d.default.isEqual(se.default.props.initialValues,se.default.stateValues)},getSimilarityData:function(){var e=this.units.getCurrent();return{similarity:e.get("similarityHuman"),mt_similarity:e.get("similarityMT")}},calculateSimilarity:function(e,t,n){for(var i=0,s=null,o=0;o<t.length;o++){var r=t.eq(o),a=r.data(n),l=this.wordComparer.similarity(e,a);l>i&&(i=l,s=r.hasClass("js-translation-area")?null:r.val("id"))}return{boxId:s,max:i}},checkSimilarTranslations:function(){var e="translation-aid",t="translation-aid-mt",n=(0,u.default)("[data-"+t+"]"),i="[data-"+e+"]";this.settings.isAnonymous||(i+="[data-suggestor-id!="+this.settings.userId+"]");var s=(0,u.default)(i);if(!s.length&&!n.length)return!1;var o=this.units.getCurrent(),r=se.default.stateValues[0],a={max:0,boxId:null},l={max:0,boxId:null};s.length&&(a=this.calculateSimilarity(r,s,e)),n.length&&(l=this.calculateSimilarity(r,n,t)),o.set({similarityHuman:a.max,similarityMT:l.max});var c=a.max>l.max?a:l;return this.highlightBox(c.boxId,1===c.max),!0},highlightBox:function(e,t){var n,i="best-match",o="exact-match";return(0,u.default)(".translate-table").find("."+i).removeClass(i+" "+o),null!==e&&((0,u.default)(e).addClass((0,_.default)((n={},s(n,i,!0),s(n,o,t),n))),!0)},doSuggestMode:function(){this.editorTableEl.classList.add("suggest-mode")},undoSuggestMode:function(){this.editorTableEl.classList.remove("suggest-mode")},isSuggestMode:function(){return this.editorTableEl.classList.contains("suggest-mode")},toggleSuggestMode:function(e){e.preventDefault(),this.isSuggestMode()?this.undoSuggestMode():this.doSuggestMode()},showActivity:function(){this.hideMsg(),this.$editorActivity.spin().fadeIn(300)},hideActivity:function(){this.$editorActivity.spin(!1).fadeOut(300)},displayMsg:function(e){var t=e.showClose,n=void 0===t||t,i=e.body,s=void 0===i?null:i;this.hideActivity(),K.default.fixSidebarHeight(),this.$msgOverlay.html(this.tmpl.msg({showClose:n,body:s})).fadeIn(300)},hideMsg:function(){this.$msgOverlay.length&&this.$msgOverlay.fadeOut(300)},displayError:function(e){this.hideActivity(),G.default.show({text:e,level:"error"})},error:function(e,t){var n="";"abort"!==t&&(0===e.status?n=gettext("Error while connecting to the server"):402===e.status?V.default.onError(e,"PTL.editor.error"):n=404===e.status?gettext("Not found"):500===e.status?gettext("Server error"):"timeout"===t?gettext("The server seems down. Try again later."):u.default.parseJSON(e.responseText).msg,PTL.editor.displayError(n))},displayObsoleteMsg:function(){var e=gettext("This string no longer exists."),t=gettext("Go back to browsing"),n=this.backToBrowserEl.getAttribute("href"),i=gettext("Reload page"),s=["<div>",e,"</div>",'<div class="editor-msg-btns">','<a class="btn btn-xs js-editor-reload" href="#">',i,"</a>",'<a class="btn btn-xs" href="',n,'">',t,"</a>","</div>"].join("");this.displayMsg({body:s,showClose:!1})},getOffsetOfUid:function(e){return this.initialOffset+this.units.uIds.indexOf(e)},getStartOfChunk:function(e){return e-e%(2*this.units.chunkSize)},needsNextUnitBatch:function(){return this.units.uIds.slice(-7).indexOf(this.units.activeUnit.id)!==-1&&this.getOffsetOfLastUnit()<this.units.total},needsPreviousUnitBatch:function(){return this.units.uIds.slice(0,7).indexOf(this.units.activeUnit.id)!==-1&&this.initialOffset>0},getPreviousUids:function(){return this.units.uIds.slice(-(2*this.units.chunkSize))},setOffset:function(e){u.default.history.load(te.default.updateHashPart("offset",this.getStartOfChunk(this.getOffsetOfUid(e))))},getOffsetOfLastUnit:function(){return this.initialOffset+this.units.uIds.length},markAsFetching:function(e){this.fetchingOffsets.push(e)},markAsFetched:function(e){this.fetchingOffsets.indexOf(e)!==-1&&(this.fetchingOffsets=this.fetchingOffsets.splice(this.fetchingOffsets.indexOf(e),1))},isBeingFetched:function(e){return this.fetchingOffsets.indexOf(e)!==-1},getReqData:function(){var e={};if("checks"===this.filter&&this.checks.length&&(e.checks=this.checks.join(",")),"checks"===this.filter&&this.category.length&&(e.category=this.category),"search"===this.filter){var t=X.default.state,n=t.searchText,i=t.searchFields,s=t.searchOptions;e.search=n,e.sfields=i,e.soptions=s}else e.filter=this.filter,"default"!==this.sortBy&&(e.sort=this.sortBy);return null!==this.modifiedSince&&(e["modified-since"]=this.modifiedSince),null!==this.month&&(e.month=this.month),this.user&&(e.user=this.user),e},getValueStateData:function(){for(var e={},t=se.default.stateValues,n=0;n<t.length;n++)e[(0,ne.getAreaId)(n)]=t[n];return e},getCheckedStateData:function(){var e=document.querySelector("#id_state");return e.checked?s({},e.name,e.value):{}},renderRow:function(e){return'\n      <tr id="row'+e.id+'" class="view-row">\n        '+this.tmpl.vUnit({unit:e.toJSON()})+"\n      </tr>\n    "},renderEditorRow:function(e){var t=(0,_.default)("edit-row",{"fuzzy-unit":e.get("isfuzzy"),"with-ctx":"all"!==this.filter}),n=this.renderCtxControls({hasData:!1}),i=a(n,2),s=i[0],o=i[1];return"\n      "+("all"!==this.filter?s:"")+'\n      <tr id="row'+e.id+'" class="'+t+'">\n        '+this.editorRow+"\n      </tr>\n      "+("all"!==this.filter?o:"")+"\n    "},renderRows:function(){var e=this,t=this.getUnitGroups(),n=this.units.getCurrent(),i=[];return t.forEach(function(s){1!==t.length&&i.push('<tr class="delimiter-row"><td colspan="2">'+('<div class="hd"><h2>'+d.default.escape(s.path)+"</h2></div>")+"</td></tr>");for(var o=0;o<s.units.length;o++){var r=s.units[o];r.id===n.id?i.push(e.renderEditorRow(r)):i.push(e.renderRow(r))}}),i.join("")},renderCtxRows:function(e,t){for(var n=this.units.getCurrent(),i="",s=0;s<e.length;s++){var o=e[s];o=(0,O.default)({},n.toJSON(),o),i+='<tr id="ctx'+o.id+'" class="ctx-row '+t+'">',i+=this.tmpl.vUnit({unit:o}),i+="</tr>"}return i},getUnitGroups:function(){var e=parseInt((this.units.chunkSize-1)/2,10),t=this.units.length,n=this.units.getCurrent(),i=this.units.indexOf(n),s=i-e,o=i+1+e,r=null;return s<0?(o+=-s,s=0):o>t&&(s>o-t?s+=-(o-t):s=0,o=t),this.units.slice(s,o).reduce(function(e,t){var n=t.get("store").get("pootlePath");return n===r?e[e.length-1].units.push(t):e.push({path:n,units:[t]}),r=n,e},[])},renderUnit:function(){this.units.length&&(this.hideMsg(),this.reDraw(this.renderRows()))},reDraw:function(e){this.$editorBody.find("tr").remove(),void 0!==e&&(this.$editorBody.html(e),this.ready())},updateNavButton:function(e,t){e.is(":disabled")&&t||e.is(":enabled")&&!t||(t?(e.data("title",e.attr("title")),e.removeAttr("title")):e.attr("title",e.data("title")),e.prop("disabled",t))},updateNavigation:function(){this.updateNavButton(this.$navPrev,0===this.initialOffset&&!this.units.hasPrev()),this.updateNavButton(this.$navNext,!this.units.hasNext()),this.unitCountEl.textContent=this.units.frozenTotal;var e=this.units.getCurrent();void 0!==e&&0===this.offsetRequested&&(this.unitIndexEl.textContent=this.units.uIds.indexOf(e.id)+1+this.initialOffset)},fetchUnits:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initial,i=void 0!==n&&n,s=t.uId,o=void 0===s?0:s,r=t.initialOffset,a=void 0===r?0:r,l=-1,c=-1,d=[];if(i?(this.initialOffset=-1,this.offset=0,o>0&&(c=o),a>0&&(l=a,this.initialOffset=a)):this.units.length&&this.units.total&&(this.needsNextUnitBatch()?(d=this.getPreviousUids(),l=this.offset):this.needsPreviousUnitBatch()&&(l=Math.max(this.initialOffset-2*this.units.chunkSize,0))),i||c>-1||l>-1&&!this.isBeingFetched(l)){var h={path:this.settings.pootlePath};return(0,O.default)(h,this.getReqData()),l>-1&&(this.markAsFetching(l),l>0&&(h.offset=l)),c>-1&&(h.uids=c),d.length>0&&(h.previous_uids=d),A.default.fetchUnits(h).then(function(t){return e.storeUnitData(t,{isInitial:i})},this.error).always(function(){return e.markAsFetched(l)})}return u.default.Deferred(function(e){return e.reject(!1)})},storeUnitData:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.isInitial,s=void 0!==i&&i,o=e.total,r=e.start,a=e.end,l=e.unitGroups,u=!1;if(!l.length&&s)return this.noResults(),!1;0===this.offset&&(this.units.reset(),this.units.uIds=[],this.units.frozenTotal=o),this.initialOffset===-1?(this.initialOffset=r,this.units.frozenTotal=o):r<this.initialOffset&&(this.initialOffset=r,u=!0,l=l.reverse());for(var c=0;c<l.length;c++){var d=l[c],h=function(e){if(!d.hasOwnProperty(e))return"continue";var n=d[e],i=(0,O.default)({pootlePath:e},n.meta),s=n.units.map(function(e){return(0,O.default)(e,{store:i})});u?(t.units.set(s,{remove:!1,at:0}),s.reverse().map(function(e){return t.units.uIds.unshift(e.id)})):(t.units.set(s,{remove:!1,at:t.units.length}),s.map(function(e){return t.units.uIds.push(e.id)}))};for(var p in d){h(p)}}return this.offset=a,this.units.total=o,this.updateNavigation(),!0},setEditUnit:function(e){var t=this.units.getCurrent();t.set("isObsolete",e.is_obsolete),t.set("sources",e.sources),this.tmData=e.tm_suggestions||null,this.editorRow=e.editor},setUnit:function(e){var t=this,n=this.units.setCurrent(e),i={};this.settings.vFolder&&(i.vfolder=this.settings.vFolder),this.fetchUnits().always(function(){t.updateNavigation(),A.default.fetchUnit(n.id,i).then(function(e){t.setEditUnit(e),t.renderUnit()},t.error)})},handleSubmit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.translation,i=void 0===n?null:n,s=t.comment,o=void 0===s?"":s,r=(0,F.q)("input.submit"),a={};null!==i?a[(0,ne.getAreaId)(0)]=i:a=this.getValueStateData();var l=a[0],c=(0,u.default)(".js-user-suggestion").map(function(){return{text:this.dataset.translationAid,id:this.dataset.suggId}}).get(),h={sfn:"PTL.editor.processSubmission",efn:"PTL.editor.error"};this.updateUnitDefaultProperties();var p=d.default.pluck(c,"id"),f=d.default.pluck(c,"text"),g=f.indexOf(l);if(g!==-1&&!this.isFuzzy()){if(this.settings.canReview)return void this.acceptSuggestion(p[g],{skipToNext:!0});this.selectedSuggestionId=p[g]}null!==this.similarityTimer&&(clearTimeout(this.similarityTimer),this.checkSimilarTranslations());var m=(0,O.default)({},this.getCheckedStateData(),a,this.getReqData(),this.getSimilarityData(),h);if(r.disabled=!0,void 0!==this.selectedSuggestionId){var v={suggestion:this.selectedSuggestionId,comment:o};(0,O.default)(m,v)}A.default.addTranslation(this.units.getCurrent().id,m).then(function(t){return e.processSubmission(t)},this.error)},processSubmission:function(e){if(void 0!==this.selectedSuggestionId)return void this.processAcceptSuggestion(e,this.selectedSuggestionId);var t=this.units.getCurrent();t.setTranslation(e.newtargets),t.set("isfuzzy",this.isFuzzy());var n=!!e.checks;(0,u.default)(".translate-container").toggleClass("error",n),e.user_score&&J.default.set(e.user_score),n?r(e.checks):this.gotoNext()},handleSuggest:function(){var e=this,t={sfn:"PTL.editor.processSuggestion",efn:"PTL.editor.error"};this.updateUnitDefaultProperties();var n=(0,O.default)({},this.getValueStateData(),this.getReqData(),this.getSimilarityData(),t);A.default.addSuggestion(this.units.getCurrent().id,n).then(function(t){return e.processSuggestion(t)},this.error)},processSuggestion:function(e){e.user_score&&J.default.set(e.user_score),this.gotoNext()},gotoPrev:function(){if(!this.canNavigate())return!1;var e=this.units.prev();if(e){var t=te.default.updateHashPart("unit",e.id);u.default.history.load(t),this.setOffset(e.id)}return!0},gotoNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isSubmission:!0};if(!this.canNavigate())return!1;var t=this.units.next();if(t){var n=te.default.updateHashPart("unit",t.id);u.default.history.load(n),this.setOffset(t.id)}else e.isSubmission&&((0,R.default)("finished","1",{path:"/"}),window.location.href=this.backToBrowserEl.getAttribute("href"));return!0},gotoUnit:function(e){if(e.preventDefault(),!PTL.editor.canNavigate())return!1;if(e.ctrlKey||e.altKey||e.metaKey||2===e.which){var t="TD"!==e.target.nodeName?(0,u.default)(e.target).parents("td"):(0,u.default)(e.target);return window.open(t.data("target"),"_blank"),!1}if(""!==window.getSelection().toString())return!1;var n=this.id.match(/(row|ctx)([0-9]+)/);if(n){var i=n[1],s=parseInt(n[2],10),o=void 0;o="row"===i?te.default.updateHashPart("unit",s):"unit="+encodeURIComponent(s),u.default.history.load(o),PTL.editor.setOffset(s)}return!0},unitIndex:function(e){e.preventDefault();var t=window.getSelection(),n=document.createRange();n.selectNodeContents(this.unitIndexEl),t.removeAllRanges(),t.addRange(n),this.unitIndexEl.focus()},gotoIndex:function(e){if(13===e.which){e.preventDefault();var t=parseInt(this.unitIndexEl.textContent,10);if(!isNaN(t)&&(t=Math.max(0,t-1),t>=0&&t<=this.units.total))if(t<this.initialOffset||t>=this.getOffsetOfLastUnit())this.initialOffset=-1,this.offset=0,this.offsetRequested=t+1,u.default.history.load(te.default.updateHashPart("offset",this.getStartOfChunk(t),["unit"]));else{var n=this.units.uIds[t-this.initialOffset],i=te.default.updateHashPart("unit",n);u.default.history.load(te.default.updateHashPart("offset",this.getStartOfChunk(t),[],i))}}},getCheckOptions:function(){var e=this.$filterChecks,t=this.checks[0]||"none";e.select2(ae),e.val(t).trigger("change.select2"),this.$filterChecksWrapper.css("display","inline-block")},filterChecks:function e(){if(this.preventNavigation)return!1;if(!this.canNavigate())return!1;var e=this.$filterChecks.val();if("none"!==e){var t=this.$filterSortBy.val(),n={filter:"checks",checks:e};"default"!==t&&(n.sort=t),u.default.history.load(u.default.param(n))}return!0},filterSort:function(){var e=this.$filterStatus.val(),t=this.$filterChecks.val()||this.checks.join(","),n=this.$filterSortBy.val(),i=this.user||null,s={filter:e};this.category.length?s.category=this.category:"none"!==t&&(s.checks=t),"default"!==n&&(s.sort=n),null!==i&&(s.user=i),u.default.history.load(u.default.param(s))},filterStatus:function(){if(!this.canNavigate())return!1;var e=this.$filterStatus.find("option:selected"),t=e.val();if("checks"===t)this.getCheckOptions();else if(this.$filterChecksWrapper.hide(),!this.preventNavigation){var n={filter:t},i=e.data("user");this.user&&i?n.user=this.user:(this.user=null,(0,u.default)(".js-user-filter").remove(),"default"!==this.sortBy&&(n.sort=this.sortBy)),u.default.history.load(u.default.param(n))}return!0},renderCtxControls:function(e){var t=e.hasData,n=void 0!==t&&t,i=this.tmpl.editCtx({hasData:n,extraCls:"before"}),s=this.tmpl.editCtx({hasData:n,extraCls:"after"});return[i,s]},replaceCtxControls:function(e){var t=a(e,2),n=t[0],i=t[1];(0,u.default)("tr.edit-ctx.before").replaceWith(n),(0,u.default)("tr.edit-ctx.after").replaceWith(i)},handleContextSuccess:function(e){if(e.ctx.before.length||e.ctx.after.length){this.ctxGap+=Math.max(e.ctx.before.length,e.ctx.after.length),(0,R.default)("ctxQty",this.ctxGap,{path:"/"});var t=this.renderCtxRows(e.ctx.before,"before"),n=this.renderCtxRows(e.ctx.after,"after"),i=(0,u.default)("tr.edit-ctx");i.first().after(t),i.last().before(n)}},moreContext:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe;return A.default.getContext(this.units.getCurrent().id,{gap:this.ctxGap,qty:t}).then(function(t){return e.handleContextSuccess(t)},this.error)},lessContext:function(){var e=(0,u.default)(".ctx-row.before"),t=(0,u.default)(".ctx-row.after");(e.length||t.length)&&(e.length===this.ctxGap&&e.slice(0,oe).remove(),t.length===this.ctxGap&&t.slice(-oe).remove(),this.ctxGap-=oe,this.ctxGap>=0&&(0===this.ctxGap&&this.replaceCtxControls(this.renderCtxControls({hasData:!1})),(0,R.default)("ctxQty",this.ctxGap,{path:"/"})))},showContext:function(){var e=this,t=(0,u.default)(".ctx-row.before"),n=(0,u.default)(".ctx-row.after");t.length||n.length?(t.show(),n.show(),this.replaceCtxControls(this.renderCtxControls({hasData:!0}))):this.ctxQty>0&&(this.ctxGap=0,this.moreContext(this.ctxQty).then(function(){e.replaceCtxControls(e.renderCtxControls({hasData:!0}))}))},hideContext:function(){var e=(0,u.default)(".ctx-row.before"),t=(0,u.default)(".ctx-row.after");e.hide(),t.hide(),this.replaceCtxControls(this.renderCtxControls({hasData:!1}))},onSearch:function(e){if(!PTL.editor.canNavigate())return!1;var t=void 0;if(e){var n=this.buildSearchQuery();t="search="+n}else t=te.default.updateHashPart("filter","all",["search","sfields","soptions"]);return u.default.history.load(t),!0},addComment:function(e){var t=this;e.preventDefault(),this.updateCommentDefaultProperties(),A.default.addComment(this.units.getCurrent().id,(0,u.default)(e.target).serializeObject()).then(function(e){return t.processAddComment(e)},this.error)},processAddComment:function(e){(0,u.default)(".js-editor-comment").removeClass("selected"),(0,u.default)("#editor-comment").fadeOut(200),(0,u.default)("#translator-comment").length?(0,u.default)(e.comment).hide().prependTo("#translator-comment").delay(200).animate({height:"show"},1e3,"easeOutQuad"):(0,u.default)("<div id='translator-comment'>"+e.comment+"</div>").prependTo("#extras-container").delay(200).hide().animate({height:"show"},1e3,"easeOutQuad"),K.default.updateRelativeDates()},removeComment:function(e){e.preventDefault(),A.default.removeComment(this.units.getCurrent().id).then(function(){return(0,u.default)(".js-comment-first").fadeOut(200)},this.error)},showTimeline:function(){var e=this,t=(0,u.default)("#timeline-results");if(t.length)return void t.slideDown(1e3,"easeOutQuad");var n=(0,u.default)(".translate-container");n.spin(),A.default.getTimeline(this.units.getCurrent().id).then(function(t){return e.renderTimeline(t)},this.error).always(function(){return n.spin(!1)})},renderTimeline:function(e){var t=e.uid;e.timeline&&t===this.units.getCurrent().id&&((0,u.default)("#translator-comment").length?(0,u.default)(e.timeline).hide().insertAfter("#translator-comment").slideDown(1e3,"easeOutQuad"):(0,u.default)(e.timeline).hide().prependTo("#extras-container").slideDown(1e3,"easeOutQuad"),(0,F.qAll)(".js-mount-timesince").forEach(function(t,n){var i={title:e.entries_group[n].display_datetime,dateTime:e.entries_group[n].iso_datetime};e.entries_group[n].via_upload?b.default.render(p.default.createElement(q.default,i),t):b.default.render(p.default.createElement(v.default,i),t)}),te.default.highlightRONodes(".js-unit-highlight"),(0,u.default)(".timeline-field-body").filter(":not([dir])").bidi(),(0,u.default)("#js-show-timeline").addClass("selected"))},toggleTimeline:function(e){e.preventDefault();var t=(0,u.default)("#js-toggle-timeline");t.toggleClass("selected"),t.hasClass("selected")?this.showTimeline():(0,u.default)("#timeline-results").slideUp(1e3,"easeOutQuad")},filterTMResults:function(e,t){var n=[];if(e.length>0&&e[0].source===t&&""===se.default.stateValues[0]){var i=this.isUnitDirty,s=e[0].target;se.default.setValueFor(this.focused||0,s),this.goFuzzy(),this.isUnitDirty=i}for(var o=0;o<e.length&&o<3;o++){var r=e[o],a=r.fullname;"nobody"===r.username?a=gettext("some anonymous user"):r.fullname||(a=r.username?r.username:gettext("someone")),r.fullname=d.default.escape(a),r.project=d.default.escape(r.project),r.path=d.default.escape(r.path),n.push(r)}return n},getTMUnitsContent:function(e){var t=this.units.getCurrent(),n=t.get("store"),i=t.get("source")[0],s=this.filterTMResults(e,i),o=gettext("Similar translations");return s.length?this.tmpl.tm({name:o,store:n.toJSON(),unit:t.toJSON(),suggs:s}):""},getTMUnits:function(){var e=this,t=this.units.getCurrent(),n=t.get("store"),i=n.get("source_lang"),s=n.get("target_lang"),o=t.get("source")[0];if(o.length&&i!==s){var r=n.get("project_style"),a=""+this.settings.tmUrl+i+"/"+s+"/unit/?source="+encodeURIComponent(o);r.length&&"standard"!==r&&(a+="&style="+r),(0,j.default)({url:a,crossDomain:!0}).then(function(i){return e.handleTmResults(i,n,t)},function(e,t){return console.error("HTTP "+e.status+" ("+t+"): "+a)})}},handleTmResults:function(e,t,n){if(!e.length)return!1;var i=n.get("source")[0],s=PTL.editor.filterTMResults(e,i),o=gettext("Similar translations"),r=PTL.editor.tmpl.tm({name:o,store:t.toJSON(),unit:n.toJSON(),suggs:s});return(0,u.default)(r).hide().appendTo("#extras-container").slideDown(1e3,"easeOutQuad"),!0},handleRejectSuggestion:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.requestData,i=void 0===n?{}:n;this.rejectSuggestion(e,{requestData:i})},rejectSuggestion:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.requestData,s=void 0===i?{}:i;A.default.rejectSuggestion(this.units.getCurrent().id,e,s).then(function(n){return t.processRejectSuggestion(n,e)},this.error)},processRejectSuggestion:function(e,t){e.user_score&&J.default.set(e.user_score),(0,u.default)("#suggestion-"+t).fadeOut(200,function(){PTL.editor.closeSuggestion({checkIfCanNavigate:!1}),(0,u.default)(this).remove(),(0,u.default)(".js-user-suggestion").length||PTL.editor.gotoNext()})},handleAcceptSuggestion:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.requestData,i=void 0===n?{}:n,s=t.isSuggestionChanged,o=void 0!==s&&s;o?(this.undoFuzzyBox(),this.handleSubmit(i)):this.acceptSuggestion(e,{requestData:i})},acceptSuggestion:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.requestData,s=void 0===i?{}:i,o=n.skipToNext,r=void 0!==o&&o;A.default.acceptSuggestion(this.units.getCurrent().id,e,s).then(function(n){return t.processAcceptSuggestion(n,e,r)},this.error)},processAcceptSuggestion:function(e,t,n){if(void 0!==e.newtargets)for(var i=0;i<e.newtargets.length;i++)se.default.setValueFor(i,e.newtargets[i]);this.updateUnitDefaultProperties();var s=this.units.getCurrent();s.setTranslation(se.default.stateValues),s.set("isfuzzy",!1),o(s),e.user_score&&J.default.set(e.user_score);var a=!!e.checks;(0,u.default)(".translate-container").toggleClass("error",a),a&&r(e.checks),(0,u.default)("#suggestion-"+t).fadeOut(200,function(){PTL.editor.closeSuggestion({checkIfCanNavigate:!1}),(0,u.default)(this).remove(),a||!n&&(0,u.default)(".js-user-suggestion").length||PTL.editor.gotoNext()})},toggleCheck:function(e){var t=this,n=(0,u.default)(".js-check-"+e),i=n.hasClass("false-positive"),s=i?null:{mute:1};A.default.toggleCheck(this.units.getCurrent().id,e,s).then(function(){return t.processToggleCheck(e,i)},this.error)},processToggleCheck:function(e,t){(0,u.default)(".js-check-"+e).toggleClass("false-positive",!t);var n=(0,u.default)("#translate-checks-block .check").not(".false-positive").size()>0;(0,u.default)(".translate-container").toggleClass("error",n)},runHooks:function(){var e=this;ue.forEach(function(t){return t.init({unit:e.units.getCurrent().toJSON()})})},setTranslation:function(e){var t=e.translation;return void 0===t&&e.msg?(this.displayError(e.msg),!1):(se.default.setValueFor(this.focused||0,(0,ne.decodeEntities)(t)),this.focused.dataset.translationAidMt=t,this.goFuzzy(),!0)},openSuggestion:function(e,t){var n=document.getElementById("suggestion-"+e);this.selectedSuggestionId=e;var i={suggId:e,initialSuggestionText:t,localeDir:this.settings.localeDir,onAcceptSuggestion:this.handleAcceptSuggestion.bind(this),onRejectSuggestion:this.handleRejectSuggestion.bind(this),onChange:this.handleSuggestionFeedbackChange.bind(this)},s=".js-mnt-suggestion-feedback-"+e,o=(0,F.q)(s),r=(0,F.q)(".js-editor-body .translate-full");n.classList.add("suggestion-expanded"),r.classList.add("suggestion-expanded"),this.isSuggestionFeedbackFormDirty=!1,this.suggestionFeedbackForm=g.default.render(p.default.createElement(B.default,i),o)},toggleSuggestion:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.canHide,i=void 0!==n&&n;if(void 0===this.selectedSuggestionId){e.stopPropagation();var s=parseInt(e.currentTarget.dataset.suggId,10),o=e.currentTarget.dataset.translationAid;this.openSuggestion(s,o)}else i&&(e.stopPropagation(),this.closeSuggestion())},handleSuggestionFeedbackChange:function(e){this.isSuggestionFeedbackFormDirty=e},closeSuggestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.checkIfCanNavigate,n=void 0===t||t;if(void 0!==this.selectedSuggestionId&&(!n||this.canNavigate())){var i=(0,F.q)("#suggestion-"+this.selectedSuggestionId),s=(0,F.q)(".js-editor-body .translate-full"),o=".js-mnt-suggestion-feedback-"+this.selectedSuggestionId,r=(0,F.q)(o);s.classList.remove("suggestion-expanded"),i.classList.remove("suggestion-expanded"),g.default.unmountComponentAtNode(r),this.selectedSuggestionId=void 0,this.suggestionFeedbackForm=void 0,this.isSuggestionFeedbackFormDirty=!1}},addFormats:function(e){this.formats=(0,O.default)(this.formats,e)}}},240:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(19),o=i(s),r=n(1),a=i(r),l=function(e){var t=e.isDisabled,n=e.children,i=(0,o.default)("editor-area-wrapper js-editor-area-wrapper",{"is-disabled":t});return a.default.createElement("div",{className:i},n)};l.propTypes={children:a.default.PropTypes.oneOfType([a.default.PropTypes.array,a.default.PropTypes.element]),isDisabled:a.default.PropTypes.bool.isRequired},t.default=l},241:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(1),r=i(o),a=n(18),l=n(240),u=i(l),c=n(136),d=i(c),h=n(48),p=r.default.createClass({displayName:"Editor",propTypes:{getPluralFormName:r.default.PropTypes.func,initialValues:r.default.PropTypes.array,
isDisabled:r.default.PropTypes.bool,isRawMode:r.default.PropTypes.bool,onChange:r.default.PropTypes.func.isRequired,style:r.default.PropTypes.object,targetNplurals:r.default.PropTypes.number.isRequired,textareaComponent:r.default.PropTypes.func,values:r.default.PropTypes.array},getDefaultProps:function(){return{initialValues:[],textareaComponent:d.default}},getPluralFormName:function(e){return void 0!==this.props.getPluralFormName?this.props.getPluralFormName(e):(0,a.t)("Plural form %(index)s",{index:e})},render:function(){for(var e=this,t=[],n=function(n){var i={};void 0!==e.props.isRawMode&&(i.isRawMode=e.props.isRawMode),t.push(r.default.createElement(u.default,{isDisabled:e.props.isDisabled,key:n},e.props.targetNplurals>1&&r.default.createElement("div",{className:"subheader"},e.getPluralFormName(n)),r.default.createElement(e.props.textareaComponent,s({autoFocus:0===n,id:(0,h.getAreaId)(n),initialValue:e.props.initialValues[n],isDisabled:e.props.isDisabled,onChange:function(t){return e.props.onChange(n,t)},value:e.props.values[n]},i))))},i=0;i<this.props.targetNplurals;i++)n(i);return r.default.createElement("div",null,t)}});t.default=p},242:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(6),o=i(s),r=n(1),a=i(r),l=n(16),u=i(l),c=a.default.createClass({displayName:"SuggestionFeedBackForm",propTypes:{suggId:a.default.PropTypes.number.isRequired,initialSuggestionText:a.default.PropTypes.string.isRequired,localeDir:a.default.PropTypes.string.isRequired,onAcceptSuggestion:a.default.PropTypes.func.isRequired,onRejectSuggestion:a.default.PropTypes.func.isRequired,onChange:a.default.PropTypes.func.isRequired},getInitialState:function(){return this.initialData={comment:"",translation:this.props.initialSuggestionText},{formData:this.initialData}},handleAccept:function(e){var t=this.state.formData.translation!==this.props.initialSuggestionText;e.preventDefault(),this.props.onAcceptSuggestion(this.props.suggId,{requestData:this.state.formData,isSuggestionChanged:t})},handleReject:function(e){e.preventDefault(),this.props.onRejectSuggestion(this.props.suggId,{requestData:this.state.formData})},handleChange:function(e,t){var n=o.default.extend({},this.state.formData);n[e]=t;var i=!o.default.isEqual(n,this.initialData);this.setState({isDirty:i,formData:n}),this.props.onChange(i)},render:function(){var e=this.state.formData;return a.default.createElement("form",{id:"suggestion-feedback-form"},a.default.createElement("div",{className:"fields"},a.default.createElement(u.default,{id:"suggestion-editor",type:"textarea",label:gettext("Edit the suggestion before accepting, if necessary"),placeholder:"",name:"translation",handleChange:this.handleChange,value:e.translation,"data-action":"overwrite",dir:this.props.localeDir,autoFocus:!0}),a.default.createElement(u.default,{type:"textarea",label:gettext("Provide optional comment (will be publicly visible)"),placeholder:"",name:"comment",handleChange:this.handleChange,value:e.comment})),a.default.createElement("p",{className:"buttons"},a.default.createElement("button",{className:"btn btn-success",onClick:this.handleAccept},a.default.createElement("i",{className:"icon-accept-white"}),gettext("Accept")),a.default.createElement("button",{className:"btn btn-danger",onClick:this.handleReject},a.default.createElement("i",{className:"icon-reject-white"}),gettext("Reject"))),a.default.createElement("div",{className:"clear"}))}});t.default=c},243:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(19),r=i(o),a=n(1),l=i(a),u=n(18),c=n(24),d=function(e){var t=e.sourceValue;return l.default.createElement("div",{dangerouslySetInnerHTML:{__html:(0,c.highlightRW)(t)}})};d.propTypes={sourceValue:l.default.PropTypes.string.isRequired};var h=l.default.createClass({displayName:"UnitSource",propTypes:{id:l.default.PropTypes.number.isRequired,values:l.default.PropTypes.array.isRequired,getPluralFormName:l.default.PropTypes.func,hasPlurals:l.default.PropTypes.bool.isRequired,sourceLocaleCode:l.default.PropTypes.string,sourceLocaleDir:l.default.PropTypes.string,innerComponent:l.default.PropTypes.func},getDefaultProps:function(){return{innerComponent:d}},getPluralFormName:function(e){return void 0!==this.props.getPluralFormName?this.props.getPluralFormName(e):(0,u.t)("Plural form %(index)s",{index:e})},createItem:function(e,t){var n={lang:this.props.sourceLocaleCode,dir:this.props.sourceLocaleDir};return l.default.createElement("div",{key:"source-value-"+t},this.props.hasPlurals&&l.default.createElement("div",{className:"plural-form-label"},this.getPluralFormName(t)),l.default.createElement("div",s({className:"translation-text js-translation-text","data-string":e},n),l.default.createElement(this.props.innerComponent,{sourceValue:e})))},render:function(){var e=(0,r.default)("translate-original",{"translate-plural":this.props.hasPlurals});return l.default.createElement("div",{id:"js-unit-"+this.props.id,className:e},this.props.values.map(this.createItem))}});t.default=h},244:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=n(1),r=i(o),a=n(7),l=n(73),u=i(l),c=n(18),d=r.default.createClass({displayName:"UploadTimeSince",propTypes:{dateTime:o.PropTypes.string.isRequired,title:o.PropTypes.string.isRequired},mixins:[a.PureRenderMixin],render:function(){var e=r.default.createElement(u.default,s({className:""},this.props));return r.default.createElement("span",{className:"extra-item-meta"},(0,c.tct)("%(timeSince)s via file upload",{timeSince:e}))}});t.default=d},245:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),o=i(s),r=n(10),a=n(241),l=i(a),u=n(136),c=i(u),d=o.default.createClass({displayName:"EditorContainer",propTypes:{currentLocaleCode:o.default.PropTypes.string.isRequired,currentLocaleDir:o.default.PropTypes.string.isRequired,initialValues:o.default.PropTypes.array,isDisabled:o.default.PropTypes.bool,isRawMode:o.default.PropTypes.bool,onChange:o.default.PropTypes.func.isRequired,sourceValues:o.default.PropTypes.array,style:o.default.PropTypes.object,targetNplurals:o.default.PropTypes.number.isRequired,textareaComponent:o.default.PropTypes.func,editorComponent:o.default.PropTypes.func},childContextTypes:{currentLocaleCode:o.default.PropTypes.string,currentLocaleDir:o.default.PropTypes.string},getDefaultProps:function(){return{initialValues:[],textareaComponent:c.default,editorComponent:l.default}},getInitialState:function(){return{values:this.props.initialValues}},getChildContext:function(){return{currentLocaleCode:this.props.currentLocaleCode,currentLocaleDir:this.props.currentLocaleDir}},componentDidMount:function(){this.areas=(0,r.qAll)(".js-translation-area")},getAreas:function(){return this.areas},getStateValues:function(){return this.state.values},handleChange:function(e,t){var n=this.state.values.slice();n[e]=t,this.setState({values:n},this.props.onChange)},render:function(){return o.default.createElement(this.props.editorComponent,{isDisabled:this.props.isDisabled,isRawMode:this.props.isRawMode,style:this.props.style,targetNplurals:this.props.targetNplurals,textareaComponent:this.props.textareaComponent,initialValues:this.props.initialValues,onChange:this.handleChange,sourceValues:this.props.sourceValues,values:this.state.values})}});t.default=d},246:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(245),o=i(s),r=n(243),a=i(r),l={editorComponent:o.default,unitSourceComponent:a.default};t.default=l},247:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=(0,r.default)({},e);delete n.fileType;var i=PTL.editor.formats[e.fileType];void 0!==i?i(n,t):t(n,l.default)}Object.defineProperty(t,"__esModule",{value:!0}),t.loadFormatAdaptor=s;var o=n(8),r=i(o),a=n(246),l=i(a)},248:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=n(8),a=i(r),l=n(1),u=i(l),c=n(142),d=i(c),h=n(10),p=n(247),f=n(250),g=n(141),m={init:function(e){var t=this;this.node=(0,h.q)(".js-mount-editor"),this.sourceNode=(0,h.q)(".js-mount-editor-original-src"),this.alternativeSourceNodes=(0,h.qAll)(".js-mount-editor-alt-src"),this.props={},this.hasCRLF=e.sourceValues.some(f.hasCRLF),(0,p.loadFormatAdaptor)(e,function(e,n){t.formatAdaptor=n,d.default.unmountComponents(),t.setProps(e)})},setProps:function(e){this.props=(0,a.default)(this.props,e);var t={};this.hasCRLF&&e.hasOwnProperty("initialValues")&&(t.initialValues=(0,f.normalize)(e.initialValues)),this.editorInstance=d.default.render(u.default.createElement(this.formatAdaptor.editorComponent,o({onChange:this.handleChange},this.props,t)),this.node),d.default.render(u.default.createElement(this.formatAdaptor.unitSourceComponent,{id:this.props.unitId,values:this.props.sourceValues,hasPlurals:this.props.hasPlurals,sourceLocaleCode:this.props.sourceLocaleCode,sourceLocaleDir:this.props.sourceLocaleDir}),this.sourceNode);for(var n=0;n<this.alternativeSourceNodes.length;n++){var i=this.alternativeSourceNodes[n],s=this.props.alternativeSources[i.dataset.id];d.default.render(u.default.createElement(this.formatAdaptor.unitSourceComponent,{id:s.id,values:s.target,hasPlurals:s.has_plurals,sourceLocaleCode:s.language_code,sourceLocaleDir:s.language_direction}),this.alternativeSourceNodes[n])}},get stateValues(){var e=this.editorInstance.getStateValues();return this.hasCRLF?(0,f.denormalize)(e):e},handleChange:function(){PTL.editor.onTextareaChange()},setValueFor:function(e,t){var n=this.editorInstance.getAreas(),i="object"===("undefined"==typeof e?"undefined":s(e))?n.indexOf(e):e;(0,g.setValue)(n[i],t,{isRawMode:this.props.isRawMode,triggerChange:!0}),n[i].focus()},insertAtCaretFor:function(e,t){var n=this.editorInstance.getAreas(),i="object"===("undefined"==typeof e?"undefined":s(e))?n.indexOf(e):e;(0,g.insertAtCaret)(n[i],t,{isRawMode:this.props.isRawMode,triggerChange:!0}),n[i].focus()}};t.default=m},250:function(e,t){"use strict";function n(e){return"string"==typeof e&&e.indexOf("\r\n")!==-1}function i(e){return Array.isArray(e)?e.map(function(e){return e.replace(/\r\n/g,"\n")}):[]}function s(e){return Array.isArray(e)?e.map(function(e){return e.replace(/\n/g,"\r\n")}):[]}Object.defineProperty(t,"__esModule",{value:!0}),t.hasCRLF=n,t.normalize=i,t.denormalize=s},251:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Unit=t.Store=void 0;var s=n(12),o=i(s);n(378);var r=n(6),a=i(r),l=t.Store=o.default.RelationalModel.extend({});t.Unit=o.default.RelationalModel.extend({relations:[{type:"HasOne",key:"store",relatedModel:l,reverseRelation:{key:"units"}}],setTranslation:function(e){var t=e;a.default.isArray(e)||(t=[e]),this.set("target",t)}})},254:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(30),o=i(s);window.PTL=window.PTL||{};var r={apiRoot:PTL.unitApiRoot,fetchUnits:function(e){return(0,o.default)({body:e,url:this.apiRoot})},fetchUnit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.default)({body:t,queue:"unitWidget",url:""+this.apiRoot+e+"/edit/"})},addTranslation:function(e,t){return(0,o.default)({body:t,method:"POST",url:""+this.apiRoot+e})},getContext:function(e,t){return(0,o.default)({body:t,url:""+this.apiRoot+e+"/context/"})},getTimeline:function(e){return(0,o.default)({url:""+this.apiRoot+e+"/timeline/"})},addComment:function(e,t){return(0,o.default)({body:t,method:"POST",url:""+this.apiRoot+e+"/comment/"})},removeComment:function(e){return(0,o.default)({method:"DELETE",url:""+this.apiRoot+e+"/comment/"})},addSuggestion:function(e,t){return(0,o.default)({body:t,method:"POST",url:""+this.apiRoot+e+"/suggestions/"})},acceptSuggestion:function(e,t,n){return(0,o.default)({body:n,method:"POST",url:""+this.apiRoot+e+"/suggestions/"+t+"/"})},rejectSuggestion:function(e,t,n){return(0,o.default)({body:n,method:"DELETE",url:""+this.apiRoot+e+"/suggestions/"+t+"/"})},toggleCheck:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,o.default)({body:n,method:"POST",url:""+this.apiRoot+e+"/checks/"+t+"/toggle/"})}};t.default=r},264:function(e,t){"use strict";function n(e){var t=window.location.toString().split("#",2)[0],n=encodeURIComponent(e);return t+"#search="+n+"&sfields=notes"}function i(e){return e?e.replace(s,function(e,t,i){return t+'<a href="'+n(i)+'">'+i+"</a>"}):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=/(^|\s+|>)(#[0-9a-z_\-]+)/gi},378:function(e,t,n){var i,s,o;!function(r,a){s=[t,n(12),n(6)],i=a,o="function"==typeof i?i.apply(t,s):i,!(void 0!==o&&(e.exports=o))}(this,function(e,t,n){"use strict";t.Relational={showWarnings:!0},t.Semaphore={_permitsAvailable:null,_permitsUsed:0,acquire:function(){if(this._permitsAvailable&&this._permitsUsed>=this._permitsAvailable)throw new Error("Max permits acquired");this._permitsUsed++},release:function(){if(0===this._permitsUsed)throw new Error("All permits released");this._permitsUsed--},isLocked:function(){return this._permitsUsed>0},setAvailablePermits:function(e){if(this._permitsUsed>e)throw new Error("Available permits cannot be less than used permits");this._permitsAvailable=e}},t.BlockingQueue=function(){this._queue=[]},n.extend(t.BlockingQueue.prototype,t.Semaphore,{_queue:null,add:function(e){this.isBlocked()?this._queue.push(e):e()},process:function(){var e=this._queue;for(this._queue=[];e&&e.length;)e.shift()()},block:function(){this.acquire()},unblock:function(){this.release(),this.isBlocked()||this.process()},isBlocked:function(){return this.isLocked()}}),t.Relational.eventQueue=new t.BlockingQueue,t.Store=function(){this._collections=[],this._reverseRelations=[],this._orphanRelations=[],this._subModels=[],this._modelScopes=[e]},n.extend(t.Store.prototype,t.Events,{initializeRelation:function(e,i,s){var o=n.isString(i.type)?t[i.type]||this.getObjectByName(i.type):i.type;o&&o.prototype instanceof t.Relation?new o(e,i,s):t.Relational.showWarnings&&"undefined"!=typeof console&&console.warn("Relation=%o; missing or invalid relation type!",i)},addModelScope:function(e){this._modelScopes.push(e)},removeModelScope:function(e){this._modelScopes=n.without(this._modelScopes,e)},addSubModels:function(e,t){this._subModels.push({superModelType:t,subModels:e})},setupSuperModel:function(e){n.find(this._subModels,function(t){return n.filter(t.subModels||[],function(n,i){var s=this.getObjectByName(n);if(e===s)return t.superModelType._subModels[i]=e,e._superModel=t.superModelType,e._subModelTypeValue=i,e._subModelTypeAttribute=t.superModelType.prototype.subModelTypeAttribute,!0},this).length},this)},addReverseRelation:function(e){var t=n.any(this._reverseRelations,function(t){return n.all(e||[],function(e,n){return e===t[n]})});!t&&e.model&&e.type&&(this._reverseRelations.push(e),this._addRelation(e.model,e),this.retroFitRelation(e))},addOrphanRelation:function(e){var t=n.any(this._orphanRelations,function(t){return n.all(e||[],function(e,n){return e===t[n]})});!t&&e.model&&e.type&&this._orphanRelations.push(e)},processOrphanRelations:function(){n.each(this._orphanRelations.slice(0),function(e){var i=t.Relational.store.getObjectByName(e.relatedModel);i&&(this.initializeRelation(null,e),this._orphanRelations=n.without(this._orphanRelations,e))},this)},_addRelation:function(e,t){e.prototype.relations||(e.prototype.relations=[]),e.prototype.relations.push(t),n.each(e._subModels||[],function(e){this._addRelation(e,t)},this)},retroFitRelation:function(e){var t=this.getCollection(e.model,!1);t&&t.each(function(t){t instanceof e.model&&new e.type(t,e)},this)},getCollection:function(e,i){e instanceof t.RelationalModel&&(e=e.constructor);for(var s=e;s._superModel;)s=s._superModel;var o=n.find(this._collections,function(e){return e.model===s});return o||i===!1||(o=this._createCollection(s)),o},getObjectByName:function(e){var t=e.split("."),i=null;return n.find(this._modelScopes,function(e){if(i=n.reduce(t||[],function(e,t){return e?e[t]:void 0},e),i&&i!==e)return!0},this),i},_createCollection:function(e){var n;return e instanceof t.RelationalModel&&(e=e.constructor),e.prototype instanceof t.RelationalModel&&(n=new t.Collection,n.model=e,this._collections.push(n)),n},resolveIdForItem:function(e,i){var s=n.isString(i)||n.isNumber(i)?i:null;return null===s&&(i instanceof t.RelationalModel?s=i.id:n.isObject(i)&&(s=i[e.prototype.idAttribute])),s||0===s||(s=null),s},find:function(e,t){var n=this.resolveIdForItem(e,t),i=this.getCollection(e);if(i){var s=i.get(n);if(s instanceof e)return s}return null},register:function(e){var t=this.getCollection(e);if(t){var n=e.collection;t.add(e),e.collection=n}},checkId:function(e,n){var i=this.getCollection(e),s=i&&i.get(n);if(s&&e!==s)throw t.Relational.showWarnings&&"undefined"!=typeof console&&console.warn("Duplicate id! Old RelationalModel=%o, new RelationalModel=%o",s,e),new Error("Cannot instantiate more than one Backbone.RelationalModel with the same id per type!")},update:function(e){var t=this.getCollection(e);t.contains(e)||this.register(e),t._onModelEvent("change:"+e.idAttribute,e,t),e.trigger("relational:change:id",e,t)},unregister:function(e){var i,s;e instanceof t.Model?(i=this.getCollection(e),s=[e]):e instanceof t.Collection?(i=this.getCollection(e.model),s=n.clone(e.models)):(i=this.getCollection(e),s=n.clone(i.models)),n.each(s,function(e){this.stopListening(e),n.invoke(e.getRelations(),"stopListening")},this),n.contains(this._collections,e)?i.reset([]):n.each(s,function(e){i.get(e)?i.remove(e):i.trigger("relational:remove",e,i)},this)},reset:function(){this.stopListening(),n.each(this._collections,function(e){this.unregister(e)},this),this._collections=[],this._subModels=[],this._modelScopes=[e]}}),t.Relational.store=new t.Store,t.Relation=function(e,i,s){if(this.instance=e,i=n.isObject(i)?i:{},this.reverseRelation=n.defaults(i.reverseRelation||{},this.options.reverseRelation),this.options=n.defaults(i,this.options,t.Relation.prototype.options),this.reverseRelation.type=n.isString(this.reverseRelation.type)?t[this.reverseRelation.type]||t.Relational.store.getObjectByName(this.reverseRelation.type):this.reverseRelation.type,this.key=this.options.key,this.keySource=this.options.keySource||this.key,this.keyDestination=this.options.keyDestination||this.keySource||this.key,this.model=this.options.model||this.instance.constructor,this.relatedModel=this.options.relatedModel,!n.isFunction(this.relatedModel)||this.relatedModel.prototype instanceof t.RelationalModel||(this.relatedModel=n.result(this,"relatedModel")),n.isString(this.relatedModel)&&(this.relatedModel=t.Relational.store.getObjectByName(this.relatedModel)),this.checkPreconditions()&&(!this.options.isAutoRelation&&this.reverseRelation.type&&this.reverseRelation.key&&t.Relational.store.addReverseRelation(n.defaults({isAutoRelation:!0,model:this.relatedModel,relatedModel:this.model,reverseRelation:this.options},this.reverseRelation)),e)){var o=this.keySource;o!==this.key&&"object"==typeof this.instance.get(this.key)&&(o=this.key),this.setKeyContents(this.instance.get(o)),this.relatedCollection=t.Relational.store.getCollection(this.relatedModel),this.keySource!==this.key&&delete this.instance.attributes[this.keySource],this.instance._relations[this.key]=this,this.initialize(s),this.options.autoFetch&&this.instance.fetchRelated(this.key,n.isObject(this.options.autoFetch)?this.options.autoFetch:{}),this.listenTo(this.instance,"destroy",this.destroy).listenTo(this.relatedCollection,"relational:add relational:change:id",this.tryAddRelated).listenTo(this.relatedCollection,"relational:remove",this.removeRelated)}},t.Relation.extend=t.Model.extend,n.extend(t.Relation.prototype,t.Events,t.Semaphore,{options:{createModels:!0,includeInJSON:!0,isAutoRelation:!1,autoFetch:!1,parse:!1},instance:null,key:null,keyContents:null,relatedModel:null,relatedCollection:null,reverseRelation:null,related:null,checkPreconditions:function(){var e=this.instance,i=this.key,s=this.model,o=this.relatedModel,r=t.Relational.showWarnings&&"undefined"!=typeof console;if(!s||!i||!o)return r&&console.warn("Relation=%o: missing model, key or relatedModel (%o, %o, %o).",this,s,i,o),!1;if(!(s.prototype instanceof t.RelationalModel))return r&&console.warn("Relation=%o: model does not inherit from Backbone.RelationalModel (%o).",this,e),!1;if(!(o.prototype instanceof t.RelationalModel))return r&&console.warn("Relation=%o: relatedModel does not inherit from Backbone.RelationalModel (%o).",this,o),!1;if(this instanceof t.HasMany&&this.reverseRelation.type===t.HasMany)return r&&console.warn("Relation=%o: relation is a HasMany, and the reverseRelation is HasMany as well.",this),!1;if(e&&n.keys(e._relations).length){var a=n.find(e._relations,function(e){return e.key===i},this);if(a)return r&&console.warn("Cannot create relation=%o on %o for model=%o: already taken by relation=%o.",this,i,e,a),!1}return!0},setRelated:function(e){this.related=e,this.instance.attributes[this.key]=e},_isReverseRelation:function(e){return e.instance instanceof this.relatedModel&&this.reverseRelation.key===e.key&&this.key===e.reverseRelation.key},getReverseRelations:function(e){var t=[],i=n.isUndefined(e)?this.related&&(this.related.models||[this.related]):[e];return n.each(i||[],function(e){n.each(e.getRelations()||[],function(e){this._isReverseRelation(e)&&t.push(e)},this)},this),t},destroy:function(){this.stopListening(),this instanceof t.HasOne?this.setRelated(null):this instanceof t.HasMany&&this.setRelated(this._prepareCollection()),n.each(this.getReverseRelations(),function(e){e.removeRelated(this.instance)},this)}}),t.HasOne=t.Relation.extend({options:{reverseRelation:{type:"HasMany"}},initialize:function(e){this.listenTo(this.instance,"relational:change:"+this.key,this.onChange);var t=this.findRelated(e);this.setRelated(t),n.each(this.getReverseRelations(),function(t){t.addRelated(this.instance,e)},this)},findRelated:function(e){var t=null;if(e=n.defaults({parse:this.options.parse},e),this.keyContents instanceof this.relatedModel)t=this.keyContents;else if(this.keyContents||0===this.keyContents){var i=n.defaults({create:this.options.createModels},e);t=this.relatedModel.findOrCreate(this.keyContents,i)}return t&&(this.keyId=null),t},setKeyContents:function(e){this.keyContents=e,this.keyId=t.Relational.store.resolveIdForItem(this.relatedModel,this.keyContents)},onChange:function(e,i,s){if(!this.isLocked()){this.acquire(),s=s?n.clone(s):{};var o=n.isUndefined(s.__related),r=o?this.related:s.__related;if(o){this.setKeyContents(i);var a=this.findRelated(s);this.setRelated(a)}if(r&&this.related!==r&&n.each(this.getReverseRelations(r),function(e){e.removeRelated(this.instance,null,s)},this),n.each(this.getReverseRelations(),function(e){e.addRelated(this.instance,s)},this),!s.silent&&this.related!==r){var l=this;this.changed=!0,t.Relational.eventQueue.add(function(){l.instance.trigger("change:"+l.key,l.instance,l.related,s,!0),l.changed=!1})}this.release()}},tryAddRelated:function(e,t,n){!this.keyId&&0!==this.keyId||e.id!==this.keyId||(this.addRelated(e,n),this.keyId=null)},addRelated:function(e,t){var i=this;e.queue(function(){if(e!==i.related){var s=i.related||null;i.setRelated(e),i.onChange(i.instance,e,n.defaults({__related:s},t))}})},removeRelated:function(e,t,i){if(this.related&&e===this.related){var s=this.related||null;this.setRelated(null),this.onChange(this.instance,e,n.defaults({__related:s},i))}}}),t.HasMany=t.Relation.extend({collectionType:null,options:{reverseRelation:{type:"HasOne"},collectionType:t.Collection,collectionKey:!0,collectionOptions:{}},initialize:function(e){if(this.listenTo(this.instance,"relational:change:"+this.key,this.onChange),this.collectionType=this.options.collectionType,!n.isFunction(this.collectionType)||this.collectionType===t.Collection||this.collectionType.prototype instanceof t.Collection||(this.collectionType=n.result(this,"collectionType")),n.isString(this.collectionType)&&(this.collectionType=t.Relational.store.getObjectByName(this.collectionType)),this.collectionType!==t.Collection&&!(this.collectionType.prototype instanceof t.Collection))throw new Error("`collectionType` must inherit from Backbone.Collection");var i=this.findRelated(e);this.setRelated(i)},_prepareCollection:function(e){if(this.related&&this.stopListening(this.related),!(e&&e instanceof t.Collection)){var i=n.isFunction(this.options.collectionOptions)?this.options.collectionOptions(this.instance):this.options.collectionOptions;e=new this.collectionType(null,i)}if(e.model=this.relatedModel,this.options.collectionKey){var s=this.options.collectionKey===!0?this.options.reverseRelation.key:this.options.collectionKey;e[s]&&e[s]!==this.instance?t.Relational.showWarnings&&"undefined"!=typeof console&&console.warn("Relation=%o; collectionKey=%s already exists on collection=%o",this,s,this.options.collectionKey):s&&(e[s]=this.instance)}return this.listenTo(e,"relational:add",this.handleAddition).listenTo(e,"relational:remove",this.handleRemoval).listenTo(e,"relational:reset",this.handleReset),e},findRelated:function(e){var i=null;if(e=n.defaults({parse:this.options.parse},e),this.keyContents instanceof t.Collection)this._prepareCollection(this.keyContents),i=this.keyContents;else{var s=[];n.each(this.keyContents,function(t){if(t instanceof this.relatedModel)var i=t;else i=this.relatedModel.findOrCreate(t,n.extend({merge:!0},e,{create:this.options.createModels}));i&&s.push(i)},this),i=this.related instanceof t.Collection?this.related:this._prepareCollection(),i.set(s,n.defaults({merge:!1,parse:!1},e))}return this.keyIds=n.difference(this.keyIds,n.pluck(i.models,"id")),i},setKeyContents:function(e){this.keyContents=e instanceof t.Collection?e:null,this.keyIds=[],this.keyContents||!e&&0!==e||(this.keyContents=n.isArray(e)?e:[e],n.each(this.keyContents,function(e){var n=t.Relational.store.resolveIdForItem(this.relatedModel,e);(n||0===n)&&this.keyIds.push(n)},this))},onChange:function(e,i,s){s=s?n.clone(s):{},this.setKeyContents(i),this.changed=!1;var o=this.findRelated(s);if(this.setRelated(o),!s.silent){var r=this;t.Relational.eventQueue.add(function(){r.changed&&(r.instance.trigger("change:"+r.key,r.instance,r.related,s,!0),r.changed=!1)})}},handleAddition:function(e,i,s){s=s?n.clone(s):{},this.changed=!0,n.each(this.getReverseRelations(e),function(e){e.addRelated(this.instance,s)},this);var o=this;!s.silent&&t.Relational.eventQueue.add(function(){o.instance.trigger("add:"+o.key,e,o.related,s)})},handleRemoval:function(e,i,s){s=s?n.clone(s):{},this.changed=!0,n.each(this.getReverseRelations(e),function(e){e.removeRelated(this.instance,null,s)},this);var o=this;!s.silent&&t.Relational.eventQueue.add(function(){o.instance.trigger("remove:"+o.key,e,o.related,s)})},handleReset:function(e,i){var s=this;i=i?n.clone(i):{},!i.silent&&t.Relational.eventQueue.add(function(){s.instance.trigger("reset:"+s.key,s.related,i)})},tryAddRelated:function(e,t,i){var s=n.contains(this.keyIds,e.id);s&&(this.addRelated(e,i),this.keyIds=n.without(this.keyIds,e.id))},addRelated:function(e,t){var i=this;e.queue(function(){i.related&&!i.related.get(e)&&i.related.add(e,n.defaults({parse:!1},t))})},removeRelated:function(e,t,n){this.related.get(e)&&this.related.remove(e,n)}}),t.RelationalModel=t.Model.extend({relations:null,_relations:null,_isInitialized:!1,_deferProcessing:!1,_queue:null,_attributeChangeFired:!1,subModelTypeAttribute:"type",subModelTypes:null,constructor:function(e,i){if(i&&i.collection){var s=this,o=this.collection=i.collection;delete i.collection,this._deferProcessing=!0;var r=function(e){e===s&&(s._deferProcessing=!1,s.processQueue(),o.off("relational:add",r))};o.on("relational:add",r),n.defer(function(){r(s)})}t.Relational.store.processOrphanRelations(),t.Relational.store.listenTo(this,"relational:unregister",t.Relational.store.unregister),this._queue=new t.BlockingQueue,this._queue.block(),t.Relational.eventQueue.block();try{t.Model.apply(this,arguments)}finally{t.Relational.eventQueue.unblock()}},trigger:function(e){if(e.length>5&&0===e.indexOf("change")){var n=this,i=arguments;t.Relational.eventQueue.isLocked()?t.Relational.eventQueue.add(function(){var s=!0;if("change"===e)s=n.hasChanged()||n._attributeChangeFired,n._attributeChangeFired=!1;else{var o=e.slice(7),r=n.getRelation(o);r?(s=i[4]===!0,s?n.changed[o]=i[2]:r.changed||delete n.changed[o]):s&&(n._attributeChangeFired=!0)}s&&t.Model.prototype.trigger.apply(n,i)}):t.Model.prototype.trigger.apply(n,i)}else"destroy"===e?(t.Model.prototype.trigger.apply(this,arguments),t.Relational.store.unregister(this)):t.Model.prototype.trigger.apply(this,arguments);return this},initializeRelations:function(e){this.acquire(),this._relations={},n.each(this.relations||[],function(n){t.Relational.store.initializeRelation(this,n,e)},this),this._isInitialized=!0,this.release(),this.processQueue()},updateRelations:function(e,t){this._isInitialized&&!this.isLocked()&&n.each(this._relations,function(n){if(!e||n.keySource in e||n.key in e){var i=this.attributes[n.keySource]||this.attributes[n.key],s=e&&(e[n.keySource]||e[n.key]);(n.related!==i||null===i&&null===s)&&this.trigger("relational:change:"+n.key,this,i,t||{})}n.keySource!==n.key&&delete this.attributes[n.keySource]},this)},queue:function(e){this._queue.add(e)},processQueue:function(){this._isInitialized&&!this._deferProcessing&&this._queue.isBlocked()&&this._queue.unblock()},getRelation:function(e){return this._relations[e]},getRelations:function(){return n.values(this._relations)},fetchRelated:function(e,i,s){i=n.extend({update:!0,remove:!1},i);var o,r,a=[],l=this.getRelation(e),u=l&&(l.keyIds&&l.keyIds.slice(0)||(l.keyId||0===l.keyId?[l.keyId]:[]));if(s&&(o=l.related instanceof t.Collection?l.related.models:[l.related],n.each(o,function(e){(e.id||0===e.id)&&u.push(e.id)})),u&&u.length){var c=[];if(o=n.map(u,function(e){var t=l.relatedModel.findModel(e);if(!t){var n={};n[l.relatedModel.prototype.idAttribute]=e,t=l.relatedModel.findOrCreate(n,i),c.push(t)}return t},this),l.related instanceof t.Collection&&n.isFunction(l.related.url)&&(r=l.related.url(o)),r&&r!==l.related.url()){var d=n.defaults({error:function(){var e=arguments;n.each(c,function(t){t.trigger("destroy",t,t.collection,i),i.error&&i.error.apply(t,e)})},url:r},i);a=[l.related.fetch(d)]}else a=n.map(o,function(e){var t=n.defaults({error:function(){n.contains(c,e)&&(e.trigger("destroy",e,e.collection,i),i.error&&i.error.apply(e,arguments))}},i);return e.fetch(t)},this)}return a},get:function(e){var i=t.Model.prototype.get.call(this,e);if(!this.dotNotation||e.indexOf(".")===-1)return i;var s=e.split("."),o=n.reduce(s,function(e,i){if(!n.isNull(e)&&!n.isUndefined(e)){if(e instanceof t.Model)return t.Model.prototype.get.call(e,i);if(e instanceof t.Collection)return t.Collection.prototype.at.call(e,i);throw new Error("Attribute must be an instanceof Backbone.Model or Backbone.Collection. Is: "+e+", currentSplit: "+i);
}},this);if(void 0!==i&&void 0!==o)throw new Error("Ambiguous result for '"+e+"'. direct result: "+i+", dotNotation: "+o);return i||o},set:function(e,i,s){t.Relational.eventQueue.block();var o;n.isObject(e)||null==e?(o=e,s=i):(o={},o[e]=i);try{var r=this.id,a=o&&this.idAttribute in o&&o[this.idAttribute];t.Relational.store.checkId(this,a);var l=t.Model.prototype.set.apply(this,arguments);this._isInitialized||this.isLocked()?a&&a!==r&&t.Relational.store.update(this):(this.constructor.initializeModelHierarchy(),(a||0===a)&&t.Relational.store.register(this),this.initializeRelations(s)),o&&this.updateRelations(o,s)}finally{t.Relational.eventQueue.unblock()}return l},clone:function(){var e=n.clone(this.attributes);return n.isUndefined(e[this.idAttribute])||(e[this.idAttribute]=null),n.each(this.getRelations(),function(t){delete e[t.key]}),new this.constructor(e)},toJSON:function(e){if(this.isLocked())return this.id;this.acquire();var i=t.Model.prototype.toJSON.call(this,e);return!this.constructor._superModel||this.constructor._subModelTypeAttribute in i||(i[this.constructor._subModelTypeAttribute]=this.constructor._subModelTypeValue),n.each(this._relations,function(s){var o=i[s.key],r=s.options.includeInJSON,a=null;r===!0?o&&n.isFunction(o.toJSON)&&(a=o.toJSON(e)):n.isString(r)?(o instanceof t.Collection?a=o.pluck(r):o instanceof t.Model&&(a=o.get(r)),r===s.relatedModel.prototype.idAttribute&&(s instanceof t.HasMany?a=a.concat(s.keyIds):s instanceof t.HasOne&&(a=a||s.keyId,a||n.isObject(s.keyContents)||(a=s.keyContents||null)))):n.isArray(r)?o instanceof t.Collection?(a=[],o.each(function(e){var t={};n.each(r,function(n){t[n]=e.get(n)}),a.push(t)})):o instanceof t.Model&&(a={},n.each(r,function(e){a[e]=o.get(e)})):delete i[s.key],r&&(i[s.keyDestination]=a),s.keyDestination!==s.key&&delete i[s.key]}),this.release(),i}},{setup:function(e){return this.prototype.relations=(this.prototype.relations||[]).slice(0),this._subModels={},this._superModel=null,this.prototype.hasOwnProperty("subModelTypes")?t.Relational.store.addSubModels(this.prototype.subModelTypes,this):this.prototype.subModelTypes=null,n.each(this.prototype.relations||[],function(e){if(e.model||(e.model=this),e.reverseRelation&&e.model===this){var i=!0;if(n.isString(e.relatedModel)){var s=t.Relational.store.getObjectByName(e.relatedModel);i=s&&s.prototype instanceof t.RelationalModel}i?t.Relational.store.initializeRelation(null,e):n.isString(e.relatedModel)&&t.Relational.store.addOrphanRelation(e)}},this),this},build:function(e,t){this.initializeModelHierarchy();var n=this._findSubModelType(this,e)||this;return new n(e,t)},_findSubModelType:function(e,t){if(e._subModels&&e.prototype.subModelTypeAttribute in t){var n=t[e.prototype.subModelTypeAttribute],i=e._subModels[n];if(i)return i;for(n in e._subModels)if(i=this._findSubModelType(e._subModels[n],t))return i}return null},initializeModelHierarchy:function(){if(this.inheritRelations(),this.prototype.subModelTypes){var e=n.keys(this._subModels),i=n.omit(this.prototype.subModelTypes,e);n.each(i,function(e){var n=t.Relational.store.getObjectByName(e);n&&n.initializeModelHierarchy()})}},inheritRelations:function(){if(n.isUndefined(this._superModel)||n.isNull(this._superModel))if(t.Relational.store.setupSuperModel(this),this._superModel){if(this._superModel.inheritRelations(),this._superModel.prototype.relations){var e=n.filter(this._superModel.prototype.relations||[],function(e){return!n.any(this.prototype.relations||[],function(t){return e.relatedModel===t.relatedModel&&e.key===t.key},this)},this);this.prototype.relations=e.concat(this.prototype.relations)}}else this._superModel=!1},findOrCreate:function(e,t){t||(t={});var i=n.isObject(e)&&t.parse&&this.prototype.parse?this.prototype.parse(n.clone(e)):e,s=this.findModel(i);return n.isObject(e)&&(s&&t.merge!==!1?(delete t.collection,delete t.url,s.set(i,t)):s||t.create===!1||(s=this.build(i,n.defaults({parse:!1},t)))),s},find:function(e,t){return t||(t={}),t.create=!1,this.findOrCreate(e,t)},findModel:function(e){return t.Relational.store.find(this,e)}}),n.extend(t.RelationalModel.prototype,t.Semaphore),t.Collection.prototype.__prepareModel=t.Collection.prototype._prepareModel,t.Collection.prototype._prepareModel=function(e,i){var s;return e instanceof t.Model?(e.collection||(e.collection=this),s=e):(i=i?n.clone(i):{},i.collection=this,s="undefined"!=typeof this.model.findOrCreate?this.model.findOrCreate(e,i):new this.model(e,i),s&&s.validationError&&(this.trigger("invalid",this,e,i),s=!1)),s};var i=t.Collection.prototype.__set=t.Collection.prototype.set;t.Collection.prototype.set=function(e,s){if(!(this.model.prototype instanceof t.RelationalModel))return i.apply(this,arguments);s&&s.parse&&(e=this.parse(e,s));var o=!n.isArray(e),r=[],a=[];e=o?e?[e]:[]:n.clone(e),n.each(e,function(e){e instanceof t.Model||(e=t.Collection.prototype._prepareModel.call(this,e,s)),e&&(a.push(e),this.get(e)||this.get(e.cid)?null!=e.id&&(this._byId[e.id]=e):r.push(e))},this),a=o?a.length?a[0]:null:a;var l=i.call(this,a,n.defaults({parse:!1},s));return n.each(r,function(e){(this.get(e)||this.get(e.cid))&&this.trigger("relational:add",e,this,s)},this),l};var s=t.Collection.prototype.__remove=t.Collection.prototype.remove;t.Collection.prototype.remove=function(e,i){if(!(this.model.prototype instanceof t.RelationalModel))return s.apply(this,arguments);var o=!n.isArray(e),r=[];e=o?e?[e]:[]:n.clone(e),i||(i={}),n.each(e,function(e){e=this.get(e)||e&&this.get(e.cid),e&&r.push(e)},this);var a=s.call(this,o?r.length?r[0]:null:r,i);return n.each(r,function(e){this.trigger("relational:remove",e,this,i)},this),a};var o=t.Collection.prototype.__reset=t.Collection.prototype.reset;t.Collection.prototype.reset=function(e,i){i=n.extend({merge:!0},i);var s=o.call(this,e,i);return this.model.prototype instanceof t.RelationalModel&&this.trigger("relational:reset",this,i),s};var r=t.Collection.prototype.__sort=t.Collection.prototype.sort;t.Collection.prototype.sort=function(e){var n=r.call(this,e);return this.model.prototype instanceof t.RelationalModel&&this.trigger("relational:reset",this,e),n};var a=t.Collection.prototype.__trigger=t.Collection.prototype.trigger;t.Collection.prototype.trigger=function(e){if(!(this.model.prototype instanceof t.RelationalModel))return a.apply(this,arguments);if("add"===e||"remove"===e||"reset"===e||"sort"===e){var i=this,s=arguments;n.isObject(s[3])&&(s=n.toArray(s),s[3]=n.clone(s[3])),t.Relational.eventQueue.add(function(){a.apply(i,s)})}else a.apply(this,arguments);return this},t.RelationalModel.extend=function(e,n){var i=t.Model.extend.apply(this,arguments);return i.setup(this),i}})},380:function(e,t){NOT_UNICODE_LETTER=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0523\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0621-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971\u0972\u097B-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3D\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC\u0EDD\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8B\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1159\u115F-\u11A2\u11A8-\u11F9\u1200-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u1676\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19A9\u19C1-\u19C7\u1A00-\u1A16\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u2094\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2C6F\u2C71-\u2C7D\u2C80-\u2CE4\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31B7\u31F0-\u31FF\u3400\u4DB5\u4E00\u9FC3\uA000-\uA48C\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA65F\uA662-\uA66E\uA67F-\uA697\uA717-\uA71F\uA722-\uA788\uA78B\uA78C\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA90A-\uA925\uA930-\uA946\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAC00\uD7A3\uF900-\uFA2D\uFA30-\uFA6A\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/g,UNICODE_RTL=/^[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\uFB50-\uFDFF\uFE70-\uFEFF]/,function(e){e.fn.bidi=function(){return this.each(function(){var t=e(this),n=t.text().replace(NOT_UNICODE_LETTER,"");n&&UNICODE_RTL.test(n)?t.css("direction","rtl"):t.css("direction","ltr")})}}(jQuery)},381:function(e,t){jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,i,s){return jQuery.easing[jQuery.easing.def](e,t,n,i,s)},easeInQuad:function(e,t,n,i,s){return i*(t/=s)*t+n},easeOutQuad:function(e,t,n,i,s){return-i*(t/=s)*(t-2)+n},easeInOutQuad:function(e,t,n,i,s){return(t/=s/2)<1?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,i,s){return i*(t/=s)*t*t+n},easeOutCubic:function(e,t,n,i,s){return i*((t=t/s-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,i,s){return(t/=s/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,i,s){return i*(t/=s)*t*t*t+n},easeOutQuart:function(e,t,n,i,s){return-i*((t=t/s-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,i,s){return(t/=s/2)<1?i/2*t*t*t*t+n:-i/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,i,s){return i*(t/=s)*t*t*t*t+n},easeOutQuint:function(e,t,n,i,s){return i*((t=t/s-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,i,s){return(t/=s/2)<1?i/2*t*t*t*t*t+n:i/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,i,s){return-i*Math.cos(t/s*(Math.PI/2))+i+n},easeOutSine:function(e,t,n,i,s){return i*Math.sin(t/s*(Math.PI/2))+n},easeInOutSine:function(e,t,n,i,s){return-i/2*(Math.cos(Math.PI*t/s)-1)+n},easeInExpo:function(e,t,n,i,s){return 0==t?n:i*Math.pow(2,10*(t/s-1))+n},easeOutExpo:function(e,t,n,i,s){return t==s?n+i:i*(-Math.pow(2,-10*t/s)+1)+n},easeInOutExpo:function(e,t,n,i,s){return 0==t?n:t==s?n+i:(t/=s/2)<1?i/2*Math.pow(2,10*(t-1))+n:i/2*(-Math.pow(2,-10*--t)+2)+n},easeInCirc:function(e,t,n,i,s){return-i*(Math.sqrt(1-(t/=s)*t)-1)+n},easeOutCirc:function(e,t,n,i,s){return i*Math.sqrt(1-(t=t/s-1)*t)+n},easeInOutCirc:function(e,t,n,i,s){return(t/=s/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+n:i/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,i,s){var o=1.70158,r=0,a=i;if(0==t)return n;if(1==(t/=s))return n+i;if(r||(r=.3*s),a<Math.abs(i)){a=i;var o=r/4}else var o=r/(2*Math.PI)*Math.asin(i/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*s-o)*(2*Math.PI)/r))+n},easeOutElastic:function(e,t,n,i,s){var o=1.70158,r=0,a=i;if(0==t)return n;if(1==(t/=s))return n+i;if(r||(r=.3*s),a<Math.abs(i)){a=i;var o=r/4}else var o=r/(2*Math.PI)*Math.asin(i/a);return a*Math.pow(2,-10*t)*Math.sin((t*s-o)*(2*Math.PI)/r)+i+n},easeInOutElastic:function(e,t,n,i,s){var o=1.70158,r=0,a=i;if(0==t)return n;if(2==(t/=s/2))return n+i;if(r||(r=s*(.3*1.5)),a<Math.abs(i)){a=i;var o=r/4}else var o=r/(2*Math.PI)*Math.asin(i/a);return t<1?-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*s-o)*(2*Math.PI)/r))+n:a*Math.pow(2,-10*(t-=1))*Math.sin((t*s-o)*(2*Math.PI)/r)*.5+i+n},easeInBack:function(e,t,n,i,s,o){return void 0==o&&(o=1.70158),i*(t/=s)*t*((o+1)*t-o)+n},easeOutBack:function(e,t,n,i,s,o){return void 0==o&&(o=1.70158),i*((t=t/s-1)*t*((o+1)*t+o)+1)+n},easeInOutBack:function(e,t,n,i,s,o){return void 0==o&&(o=1.70158),(t/=s/2)<1?i/2*(t*t*(((o*=1.525)+1)*t-o))+n:i/2*((t-=2)*t*(((o*=1.525)+1)*t+o)+2)+n},easeInBounce:function(e,t,n,i,s){return i-jQuery.easing.easeOutBounce(e,s-t,0,i,s)+n},easeOutBounce:function(e,t,n,i,s){return(t/=s)<1/2.75?i*(7.5625*t*t)+n:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+n:i*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,i,s){return t<s/2?.5*jQuery.easing.easeInBounce(e,2*t,0,i,s)+n:.5*jQuery.easing.easeOutBounce(e,2*t-s,0,i,s)+.5*i+n}})},382:function(e,t){!function(e){e.fn.highlightRegex=function(t){return void 0==t||""==t.source?e(this).find("span.highlight").each(function(){e(this).replaceWith(e(this).text()),e(this).parent().each(function(){node=e(this).get(0),node.normalize&&node.normalize()})}):e(this).each(function(){elt=e(this).get(0),elt.normalize(),e.each(e.makeArray(elt.childNodes),function(n,i){if(3==i.nodeType)for(var s=i;(pos=s.data.search(t))>=0&&(match=s.data.slice(pos).match(t)[0],0!=match.length);){var o=document.createElement("span");o.className="highlight";var r=s.splitText(pos),s=r.splitText(match.length),a=r.cloneNode(!0);o.appendChild(a),s.parentNode.replaceChild(o,r)}else e(i).highlightRegex(t)})}),e(this)}}(jQuery)},383:function(e,t){!function(e){function t(t){function i(e){return e===!0?function(e){return e}:"string"==typeof e&&(e=s(e.split("")))||"function"==typeof e?function(t){return e(encodeURIComponent(t))}:encodeURIComponent}function s(t){var n=new RegExp(e.map(t,encodeURIComponent).join("|"),"ig");return function(e){return e.replace(n,decodeURIComponent)}}t=e.extend({unescape:!1},t||{}),n.encoder=i(t.unescape)}var n={put:function(e,t){(t||window).location.hash=this.encoder(e)},get:function(e){return(e||window).location.toString().split("#",2)[1]||""},encoder:encodeURIComponent};e.history={callback:void 0,type:void 0,check:function(){this.callback(n.get())},load:function(e){n.put(e)},init:function(e,n){t(n),this.callback=e,this._options=n,this._init()},_init:function(){this.callback(n.get()),e(window).bind("hashchange",this.check.bind(this))},_options:{}}}(jQuery)},385:function(e,t,n){var i,s,o;!function(n,r){s=[],i=r,o="function"==typeof i?i.apply(t,s):i,!(void 0!==o&&(e.exports=o))}(this,function(){"use strict";var e=function(e){return e.replace(/\s+/g," ").split(" ")},t=function(t,n){return null===t||void 0===t?t="":("string"!=typeof t||!t instanceof String)&&(t=t.toString()),"words"===n?e(t):t},n=function(e,t){return 1-e/t},i=function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,i,s,o=[],r=[];for(n=0;n<t.length+1;++n)o[n]=n;for(n=0;n<e.length;n++){for(r[0]=n+1,i=0;i<t.length;i++)s=e[n]===t[i]?0:1,r[i+1]=Math.min(r[i]+1,o[i+1]+1,o[i]+s);for(i=0;i<r.length;i++)o[i]=r[i]}return r[t.length]},s=function(e){e=e||{},this.opts={compare:e.compare||"strings"}};return s.fn=s.prototype,s.fn.prepareInput=t,s.fn.distance=function(e,n){var e=t(e,this.opts.compare),n=t(n,this.opts.compare);return i(e,n)},s.fn.similarity=function(e,s){var e=t(e,this.opts.compare),s=t(s,this.opts.compare);return n(i(e,s),Math.max(e.length,s.length))},s})}});