text: !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/static/assets/",n(n.s=2044)}({1039:function(e,t,n){(function(i){var o;
  /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */"classList"in document.createElement("_")||function(e){"use strict";if("Element"in e){var t=e.Element.prototype,n=Object,i=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},r=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},a=function(e,t){if(""===t)throw new r("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new r("INVALID_CHARACTER_ERR","String contains an invalid character");return o.call(e,t)},s=function(e){for(var t=i.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],o=0,r=n.length;o<r;o++)this.push(n[o]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},l=s.prototype=[],c=function(){return new s(this)};if(r.prototype=Error.prototype,l.item=function(e){return this[e]||null},l.contains=function(e){return-1!==a(this,e+="")},l.add=function(){var e,t=arguments,n=0,i=t.length,o=!1;do{e=t[n]+"",-1===a(this,e)&&(this.push(e),o=!0)}while(++n<i);o&&this._updateClassName()},l.remove=function(){var e,t,n=arguments,i=0,o=n.length,r=!1;do{for(e=n[i]+"",t=a(this,e);-1!==t;)this.splice(t,1),r=!0,t=a(this,e)}while(++i<o);r&&this._updateClassName()},l.toggle=function(e,t){e+="";var n=this.contains(e),i=n?!0!==t&&"remove":!1!==t&&"add";return i&&this[i](e),!0===t||!1===t?t:!n},l.toString=function(){return this.join(" ")},n.defineProperty){var u={get:c,enumerable:!0,configurable:!0};try{n.defineProperty(t,"classList",u)}catch(e){-2146823252===e.number&&(u.enumerable=!1,n.defineProperty(t,"classList",u))}}else n.prototype.__defineGetter__&&t.__defineGetter__("classList",c)}}(self)
  /*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */,
  /*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
  function(e){"use strict";if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(e){}var t=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var t=function(e){return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},i=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},o=n.prototype,r=i.prototype,a=e.FileReaderSync,s=function(e){this.code=this[this.name=e]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=l.length,u=e.URL||e.webkitURL||e,d=u.createObjectURL,h=u.revokeObjectURL,p=u,f=e.btoa,m=e.atob,g=e.ArrayBuffer,v=e.Uint8Array,y=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(i.fake=r.fake=!0;c--;)s.prototype[l[c]]=c+1;return u.createObjectURL||(p=e.URL=function(e){var t,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=e,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(t=e.match(y),n.origin=t&&t[1])),n}),p.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof i?(t="data:"+n,"base64"===e.encoding?t+";base64,"+e.data:"URI"===e.encoding?t+","+decodeURIComponent(e.data):f?t+";base64,"+f(e.data):t+","+encodeURIComponent(e.data)):d?d.call(u,e):void 0},p.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&h&&h.call(u,e)},o.append=function(e){var n=this.data;if(v&&(e instanceof g||e instanceof v)){for(var o="",r=new v(e),l=0,c=r.length;l<c;l++)o+=String.fromCharCode(r[l]);n.push(o)}else if("Blob"===t(e)||"File"===t(e)){if(!a)throw new s("NOT_READABLE_ERR");var u=new a;n.push(u.readAsBinaryString(e))}else e instanceof i?"base64"===e.encoding&&m?n.push(m(e.data)):"URI"===e.encoding?n.push(decodeURIComponent(e.data)):"raw"===e.encoding&&n.push(e.data):("string"!=typeof e&&(e+=""),n.push(unescape(encodeURIComponent(e))))},o.getBlob=function(e){return arguments.length||(e=null),new i(this.data.join(""),e,"raw")},o.toString=function(){return"[object BlobBuilder]"},r.slice=function(e,t,n){var o=arguments.length;return o<3&&(n=null),new i(this.data.slice(e,o>1?t:this.data.length),n,this.encoding)},r.toString=function(){return"[object Blob]"},r.close=function(){this.size=0,delete this.data},n}(e);e.Blob=function(e,n){var i=n&&n.type||"",o=new t;if(e)for(var r=0,a=e.length;r<a;r++)Uint8Array&&e[r]instanceof Uint8Array?o.append(e[r].buffer):o.append(e[r]);var s=o.getBlob(i);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(e){return e.__proto__};e.Blob.prototype=n(new e.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(r,a){"use strict";void 0!==i&&i&&i.versions&&i.versions.electron||"object"!=typeof e?void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o):e.exports=a}(0,function(){"use strict";function e(e,t){return this.init(e,t)}var t,n,i,o,r,a,s,l,c,u,d;return e.extensions={},function(t){function n(e,t){var n,i=Array.prototype.slice.call(arguments,2);t=t||{};for(var o=0;o<i.length;o++){var r=i[o];if(r)for(n in r)r.hasOwnProperty(n)&&void 0!==r[n]&&(e||!1===t.hasOwnProperty(n))&&(t[n]=r[n])}return t}var i=!1;try{var o=document.createElement("div"),r=document.createTextNode(" ");o.appendChild(r),i=o.contains(r)}catch(e){}var a={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMac:t.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(e){return!!(a.isMac&&e.metaKey||!a.isMac&&e.ctrlKey)},isKey:function(e,t){var n=a.getKeyCode(e);return!1===Array.isArray(t)?n===t:-1!==t.indexOf(n)},getKeyCode:function(e){var t=e.which;return null===t&&(t=null!==e.charCode?e.charCode:e.keyCode),t},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var e=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,e)},defaults:function(){var e=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,e)},createLink:function(e,t,n,i){var o=e.createElement("a");return a.moveTextRangeIntoElement(t[0],t[t.length-1],o),o.setAttribute("href",n),i&&("_blank"===i&&o.setAttribute("rel","noopener noreferrer"),o.setAttribute("target",i)),o},findOrCreateMatchingTextNodes:function(e,t,n){for(var i=e.createTreeWalker(t,NodeFilter.SHOW_ALL,null,!1),o=[],r=0,s=!1,l=null,c=null;null!==(l=i.nextNode());)if(!(l.nodeType>3))if(3===l.nodeType){if(!s&&n.start<r+l.nodeValue.length&&(s=!0,c=a.splitStartNodeIfNeeded(l,n.start,r)),s&&a.splitEndNodeIfNeeded(l,c,n.end,r),s&&r===n.end)break;if(s&&r>n.end+1)throw new Error("PerformLinking overshot the target!");s&&o.push(c||l),r+=l.nodeValue.length,null!==c&&(r+=c.nodeValue.length,i.nextNode()),c=null}else"img"===l.tagName.toLowerCase()&&(!s&&n.start<=r&&(s=!0),s&&o.push(l));return o},splitStartNodeIfNeeded:function(e,t,n){return t!==n?e.splitText(t-n):null},splitEndNodeIfNeeded:function(e,t,n,i){var o,r;o=i+e.nodeValue.length+(t?t.nodeValue.length:0)-1,r=n-i-(t?e.nodeValue.length:0),o>=n&&i!==o&&0!==r&&(t||e).splitText(r)},splitByBlockElements:function(t){if(3!==t.nodeType&&1!==t.nodeType)return[];var n=[],i=e.util.blockContainerElementNames.join(",");if(3===t.nodeType||0===t.querySelectorAll(i).length)return[t];for(var o=0;o<t.childNodes.length;o++){var r=t.childNodes[o];if(3===r.nodeType)n.push(r);else if(1===r.nodeType){0===r.querySelectorAll(i).length?n.push(r):n=n.concat(e.util.splitByBlockElements(r))}}return n},findAdjacentTextNodeWithContent:function(e,t,n){var i,o=!1,r=n.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1);for(i=r.nextNode();i;){if(i===t)o=!0;else if(o&&3===i.nodeType&&i.nodeValue&&i.nodeValue.trim().length>0)break;i=r.nextNode()}return i},findPreviousSibling:function(e){if(!e||a.isMediumEditorElement(e))return!1;for(var t=e.previousSibling;!t&&!a.isMediumEditorElement(e.parentNode);)t=(e=e.parentNode).previousSibling;return t},isDescendant:function(e,t,n){if(!e||!t)return!1;if(e===t)return!!n;if(1!==e.nodeType)return!1;if(i||3!==t.nodeType)return e.contains(t);for(var o=t.parentNode;null!==o;){if(o===e)return!0;o=o.parentNode}return!1},isElement:function(e){return!(!e||1!==e.nodeType)},throttle:function(e,t){var n,i,o,r=null,a=0,s=function(){a=Date.now(),r=null,o=e.apply(n,i),r||(n=i=null)};return t||0===t||(t=50),function(){var l=Date.now(),c=t-(l-a);return n=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),a=l,o=e.apply(n,i),r||(n=i=null)):r||(r=setTimeout(s,c)),o}},traverseUp:function(e,t){if(!e)return!1;do{if(1===e.nodeType){if(t(e))return e;if(a.isMediumEditorElement(e))return!1}e=e.parentNode}while(e);return!1},htmlEntities:function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},insertHTMLCommand:function(t,n){var i,o,r,s,l,c,u,d=!1,h=["insertHTML",!1,n];if(!e.util.isEdge&&t.queryCommandSupported("insertHTML"))try{return t.execCommand.apply(t,h)}catch(e){}if((i=t.getSelection()).rangeCount){if(u=(o=i.getRangeAt(0)).commonAncestorContainer,a.isMediumEditorElement(u)&&!u.firstChild)o.selectNode(u.appendChild(t.createTextNode("")));else if(3===u.nodeType&&0===o.startOffset&&o.endOffset===u.nodeValue.length||3!==u.nodeType&&u.innerHTML===o.toString()){for(;!a.isMediumEditorElement(u)&&u.parentNode&&1===u.parentNode.childNodes.length&&!a.isMediumEditorElement(u.parentNode);)u=u.parentNode;o.selectNode(u)}for(o.deleteContents(),(r=t.createElement("div")).innerHTML=n,s=t.createDocumentFragment();r.firstChild;)l=r.firstChild,c=s.appendChild(l);o.insertNode(s),c&&((o=o.cloneRange()).setStartAfter(c),o.collapse(!0),e.selection.selectRange(t,o)),d=!0}return t.execCommand.callListeners&&t.execCommand.callListeners(h,d),d},execFormatBlock:function(t,n){var i=a.getTopBlockContainer(e.selection.getSelectionStart(t));if("blockquote"===n){if(i&&Array.prototype.slice.call(i.childNodes).some(function(e){return a.isBlockContainer(e)}))return t.execCommand("outdent",!1,null);if(a.isIE)return t.execCommand("indent",!1,n)}if(i&&n===i.nodeName.toLowerCase()&&(n="p"),a.isIE&&(n="<"+n+">"),i&&"blockquote"===i.nodeName.toLowerCase()){if(a.isIE&&"<p>"===n)return t.execCommand("outdent",!1,n);if((a.isFF||a.isEdge)&&"p"===n)return Array.prototype.slice.call(i.childNodes).some(function(e){return!a.isBlockContainer(e)})&&t.execCommand("formatBlock",!1,n),t.execCommand("outdent",!1,n)}return t.execCommand("formatBlock",!1,n)},setTargetBlank:function(e,t){var n,i=t||!1;if("a"===e.nodeName.toLowerCase())e.target="_blank",e.rel="noopener noreferrer";else for(e=e.getElementsByTagName("a"),n=0;n<e.length;n+=1)!1!==i&&i!==e[n].attributes.href.value||(e[n].target="_blank",e[n].rel="noopener noreferrer")},removeTargetBlank:function(e,t){var n;if("a"===e.nodeName.toLowerCase())e.removeAttribute("target"),e.removeAttribute("rel");else for(e=e.getElementsByTagName("a"),n=0;n<e.length;n+=1)t===e[n].attributes.href.value&&(e[n].removeAttribute("target"),e[n].removeAttribute("rel"))},addClassToAnchors:function(e,t){var n,i,o=t.split(" ");if("a"===e.nodeName.toLowerCase())for(i=0;i<o.length;i+=1)e.classList.add(o[i]);else{var r=e.getElementsByTagName("a");if(0===r.length){var s=a.getClosestTag(e,"a");e=s?[s]:[]}else e=r;for(n=0;n<e.length;n+=1)for(i=0;i<o.length;i+=1)e[n].classList.add(o[i])}},isListItem:function(e){if(!e)return!1;if("li"===e.nodeName.toLowerCase())return!0;for(var t=e.parentNode,n=t.nodeName.toLowerCase();"li"===n||!a.isBlockContainer(t)&&"div"!==n;){if("li"===n)return!0;if(!(t=t.parentNode))return!1;n=t.nodeName.toLowerCase()}return!1},cleanListDOM:function(t,n){if("li"===n.nodeName.toLowerCase()){var i=n.parentElement;"p"===i.parentElement.nodeName.toLowerCase()&&(a.unwrap(i.parentElement,t),e.selection.moveCursor(t,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(e,t,n){for(var i=t,o=null,r=!n;i!==e;){var a,s=i.parentNode,l=s.cloneNode(!1),c=r?i:s.firstChild;for(o&&(r?l.appendChild(o):a=o),o=l;c;){var u=c.nextSibling;c===i?(c.hasChildNodes()?c=c.cloneNode(!1):c.parentNode.removeChild(c),c.textContent&&o.appendChild(c),c=r?u:null):(c.parentNode.removeChild(c),(c.hasChildNodes()||c.textContent)&&o.appendChild(c),c=u)}a&&o.appendChild(a),i=s}return o},moveTextRangeIntoElement:function(e,t,n){if(!e||!t)return!1;var i=a.findCommonRoot(e,t);if(!i)return!1;if(t===e){var o=e.parentNode,r=e.nextSibling;return o.removeChild(e),n.appendChild(e),r?o.insertBefore(n,r):o.appendChild(n),n.hasChildNodes()}for(var s,l,c,u=[],d=0;d<i.childNodes.length;d++)if(c=i.childNodes[d],s){if(a.isDescendant(c,t,!0)){l=c;break}u.push(c)}else a.isDescendant(c,e,!0)&&(s=c);var h=l.nextSibling,p=i.ownerDocument.createDocumentFragment();return s===e?(s.parentNode.removeChild(s),p.appendChild(s)):p.appendChild(a.splitOffDOMTree(s,e)),u.forEach(function(e){e.parentNode.removeChild(e),p.appendChild(e)}),l===t?(l.parentNode.removeChild(l),p.appendChild(l)):p.appendChild(a.splitOffDOMTree(l,t,!0)),n.appendChild(p),l.parentNode===i?i.insertBefore(n,l):h?i.insertBefore(n,h):i.appendChild(n),n.hasChildNodes()},depthOfNode:function(e){for(var t=0,n=e;null!==n.parentNode;)n=n.parentNode,t++;return t},findCommonRoot:function(e,t){for(var n=a.depthOfNode(e),i=a.depthOfNode(t),o=e,r=t;n!==i;)n>i?(o=o.parentNode,n-=1):(r=r.parentNode,i-=1);for(;o!==r;)o=o.parentNode,r=r.parentNode;return o},isElementAtBeginningOfBlock:function(e){for(var t;!a.isBlockContainer(e)&&!a.isMediumEditorElement(e);){for(t=e;t=t.previousSibling;)if((3===t.nodeType?t.nodeValue:t.textContent).length>0)return!1;e=e.parentNode}return!0},isMediumEditorElement:function(e){return e&&e.getAttribute&&!!e.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(e){return a.traverseUp(e,function(e){return a.isMediumEditorElement(e)})},isBlockContainer:function(e){return e&&3!==e.nodeType&&-1!==a.blockContainerElementNames.indexOf(e.nodeName.toLowerCase())},getClosestBlockContainer:function(e){return a.traverseUp(e,function(e){return a.isBlockContainer(e)||a.isMediumEditorElement(e)})},getTopBlockContainer:function(e){var t=!!a.isBlockContainer(e)&&e;return a.traverseUp(e,function(e){return a.isBlockContainer(e)&&(t=e),!(t||!a.isMediumEditorElement(e))&&(t=e,!0)}),t},getFirstSelectableLeafNode:function(e){for(;e&&e.firstChild;)e=e.firstChild;if("table"===(e=a.traverseUp(e,function(e){return-1===a.emptyElementNames.indexOf(e.nodeName.toLowerCase())})).nodeName.toLowerCase()){var t=e.querySelector("th, td");t&&(e=t)}return e},getFirstTextNode:function(e){return a.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),a._getFirstTextNode(e)},_getFirstTextNode:function(e){if(3===e.nodeType)return e;for(var t=0;t<e.childNodes.length;t++){var n=a._getFirstTextNode(e.childNodes[t]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(e){return-1===e.indexOf("://")?"http://"+e:e},warn:function(){void 0!==t.console&&"function"==typeof t.console.warn&&t.console.warn.apply(t.console,arguments)},deprecated:function(e,t,n){var i=e+" is deprecated, please use "+t+" instead.";n&&(i+=" Will be removed in "+n),a.warn(i)},deprecatedMethod:function(e,t,n,i){a.deprecated(e,t,i),"function"==typeof this[t]&&this[t].apply(this,n)},cleanupAttrs:function(e,t){t.forEach(function(t){e.removeAttribute(t)})},cleanupTags:function(e,t){-1!==t.indexOf(e.nodeName.toLowerCase())&&e.parentNode.removeChild(e)},unwrapTags:function(t,n){-1!==n.indexOf(t.nodeName.toLowerCase())&&e.util.unwrap(t,document)},getClosestTag:function(e,t){return a.traverseUp(e,function(e){return e.nodeName.toLowerCase()===t.toLowerCase()})},unwrap:function(e,t){for(var n=t.createDocumentFragment(),i=Array.prototype.slice.call(e.childNodes),o=0;o<i.length;o++)n.appendChild(i[o]);n.childNodes.length?e.parentNode.replaceChild(n,e):e.parentNode.removeChild(e)},guid:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}};e.util=a}(window),(t=function(t){e.util.extend(this,t)}).extend=function(t){var n,i=this;n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return i.apply(this,arguments)},e.util.extend(n,i);var o=function(){this.constructor=n};return o.prototype=i.prototype,n.prototype=new o,t&&e.util.extend(n.prototype,t),n},t.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(e){return this.base.options[e]}},["execAction","on","off","subscribe","trigger"].forEach(function(e){t.prototype[e]=function(){return this.base[e].apply(this.base,arguments)}}),e.Extension=t,function(){function t(t){return e.util.isBlockContainer(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(t,n){var i,o=n.getSelection();return 0!==o.rangeCount&&(i=o.getRangeAt(0).commonAncestorContainer,e.util.traverseUp(i,t))},getSelectionElement:function(t){return this.findMatchingSelectionParent(function(t){return e.util.isMediumEditorElement(t)},t)},exportSelection:function(e,t){if(!e)return null;var n=null,i=t.getSelection();if(i.rangeCount>0){var o,r=i.getRangeAt(0),a=r.cloneRange();a.selectNodeContents(e),a.setEnd(r.startContainer,r.startOffset),n={start:o=a.toString().length,end:o+r.toString().length},this.doesRangeStartWithImages(r,t)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(e,n,r.endContainer,r.endOffset);if(s&&(n.trailingImageCount=s),0!==o){var l=this.getIndexRelativeToAdjacentEmptyBlocks(t,e,r.startContainer,r.startOffset);-1!==l&&(n.emptyBlocksIndex=l)}}return n},importSelection:function(e,t,n,i){if(e&&t){var o=n.createRange();o.setStart(t,0),o.collapse(!0);var r,a=t,s=[],l=0,c=!1,u=!1,d=0,h=!1,p=!1,f=null;for((i||e.startsWithImage||void 0!==e.emptyBlocksIndex)&&(p=!0);!h&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||u){if(e.trailingImageCount&&u&&("img"===a.nodeName.toLowerCase()&&d++,d===e.trailingImageCount)){for(var m=0;a.parentNode.childNodes[m]!==a;)m++;o.setEnd(a.parentNode,m+1),h=!0}if(!h&&1===a.nodeType)for(var g=a.childNodes.length-1;g>=0;)s.push(a.childNodes[g]),g-=1}else r=l+a.length,!c&&e.start>=l&&e.start<=r&&(p||e.start<r?(o.setStart(a,e.start-l),c=!0):f=a),c&&e.end>=l&&e.end<=r&&(e.trailingImageCount?u=!0:(o.setEnd(a,e.end-l),h=!0)),l=r;h||(a=s.pop())}!c&&f&&(o.setStart(f,f.length),o.setEnd(f,f.length)),void 0!==e.emptyBlocksIndex&&(o=this.importSelectionMoveCursorPastBlocks(n,t,e.emptyBlocksIndex,o)),i&&(o=this.importSelectionMoveCursorPastAnchor(e,o)),this.selectRange(n,o)}},importSelectionMoveCursorPastAnchor:function(t,n){if(t.start===t.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&e.util.traverseUp(n.startContainer,function(e){return"a"===e.nodeName.toLowerCase()})){for(var i=n.startContainer,o=n.startContainer.parentNode;null!==o&&"a"!==o.nodeName.toLowerCase();)o.childNodes[o.childNodes.length-1]!==i?o=null:(i=o,o=o.parentNode);if(null!==o&&"a"===o.nodeName.toLowerCase()){for(var r=null,a=0;null===r&&a<o.parentNode.childNodes.length;a++)o.parentNode.childNodes[a]===o&&(r=a);n.setStart(o.parentNode,r+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,i,o,r){var a,s,l=n.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,t,!1),c=r.startContainer,u=0;for(o=o||1,a=3===c.nodeType&&e.util.isBlockContainer(c.previousSibling)?c.previousSibling:e.util.getClosestBlockContainer(c);l.nextNode();)if(s){if(s=l.currentNode,++u===o)break;if(s.textContent.length>0)break}else a===l.currentNode&&(s=l.currentNode);return s||(s=a),r.setStart(e.util.getFirstSelectableLeafNode(s),0),r},getIndexRelativeToAdjacentEmptyBlocks:function(n,i,o,r){if(o.textContent.length>0&&r>0)return-1;var a=o;if(3!==a.nodeType&&(a=o.childNodes[r]),a){if(!e.util.isElementAtBeginningOfBlock(a))return-1;var s=e.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var l=e.util.getClosestBlockContainer(o),c=n.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,t,!1),u=0;c.nextNode();){var d=""===c.currentNode.textContent;if((d||u>0)&&(u+=1),c.currentNode===l)return u;d||(u=0)}return u},doesRangeStartWithImages:function(e,t){if(0!==e.startOffset||1!==e.startContainer.nodeType)return!1;if("img"===e.startContainer.nodeName.toLowerCase())return!0;var n=e.startContainer.querySelector("img");if(!n)return!1;for(var i=t.createTreeWalker(e.startContainer,NodeFilter.SHOW_ALL,null,!1);i.nextNode();){var o=i.currentNode;if(o===n)break;if(o.nodeValue)return!1}return!0},getTrailingImageCount:function(e,t,n,i){if(0===i||1!==n.nodeType)return 0;if("img"!==n.nodeName.toLowerCase()&&!n.querySelector("img"))return 0;for(var o=n.childNodes[i-1];o.hasChildNodes();)o=o.lastChild;for(var r,a=e,s=[],l=0,c=!1,u=!1,d=!1,h=0;!d&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||u){if("img"===a.nodeName.toLowerCase()&&h++,a===o)d=!0;else if(1===a.nodeType)for(var p=a.childNodes.length-1;p>=0;)s.push(a.childNodes[p]),p-=1}else h=0,r=l+a.length,!c&&t.start>=l&&t.start<=r&&(c=!0),c&&t.end>=l&&t.end<=r&&(u=!0),l=r;d||(a=s.pop())}return h},selectionContainsContent:function(e){var t=e.getSelection();if(!t||t.isCollapsed||!t.rangeCount)return!1;if(""!==t.toString().trim())return!0;var n=this.getSelectedParentElement(t.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(e){var t,n=this.findMatchingSelectionParent(function(e){var n=e&&e.getAttribute("contenteditable");return"true"===n&&(t=!0),"#text"!==e.nodeName&&"false"===n},e);return!t&&n},getSelectionHtml:function(e){var t,n,i,o="",r=e.getSelection();if(r.rangeCount){for(i=e.createElement("div"),t=0,n=r.rangeCount;t<n;t+=1)i.appendChild(r.getRangeAt(t).cloneContents());o=i.innerHTML}return o},getCaretOffsets:function(e,t){var n,i;return t||(t=window.getSelection().getRangeAt(0)),n=t.cloneRange(),i=t.cloneRange(),n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset),i.selectNodeContents(e),i.setStart(t.endContainer,t.endOffset),{left:n.toString().length,right:i.toString().length}},rangeSelectsSingleNode:function(e){var t=e.startContainer;return t===e.endContainer&&t.hasChildNodes()&&e.endOffset===e.startOffset+1},getSelectedParentElement:function(e){return e?this.rangeSelectsSingleNode(e)&&3!==e.startContainer.childNodes[e.startOffset].nodeType?e.startContainer.childNodes[e.startOffset]:3===e.startContainer.nodeType?e.startContainer.parentNode:e.startContainer:null},getSelectedElements:function(e){var t,n,i,o=e.getSelection();if(!o.rangeCount||o.isCollapsed||!o.getRangeAt(0).commonAncestorContainer)return[];if(3===(t=o.getRangeAt(0)).commonAncestorContainer.nodeType){for(n=[],i=t.commonAncestorContainer;i.parentNode&&1===i.parentNode.childNodes.length;)n.push(i.parentNode),i=i.parentNode;return n}return[].filter.call(t.commonAncestorContainer.getElementsByTagName("*"),function(e){return"function"!=typeof o.containsNode||o.containsNode(e,!0)})},selectNode:function(e,t){var n=t.createRange();n.selectNodeContents(e),this.selectRange(t,n)},select:function(e,t,n,i,o){var r=e.createRange();return r.setStart(t,n),i?r.setEnd(i,o):r.collapse(!0),this.selectRange(e,r),r},clearSelection:function(e,t){t?e.getSelection().collapseToStart():e.getSelection().collapseToEnd()},moveCursor:function(e,t,n){this.select(e,t,n)},getSelectionRange:function(e){var t=e.getSelection();return 0===t.rangeCount?null:t.getRangeAt(0)},selectRange:function(e,t){var n=e.getSelection();n.removeAllRanges(),n.addRange(t)},getSelectionStart:function(e){var t=e.getSelection().anchorNode;return t&&3===t.nodeType?t.parentNode:t}};e.selection=n}(),function(){function t(t,n){return!!t&&t.some(function(t){if("function"!=typeof t.getInteractionElements)return!1;var i=t.getInteractionElements();return!!i&&(Array.isArray(i)||(i=[i]),i.some(function(t){return e.util.isDescendant(t,n,!0)}))})}var n=function(e){this.base=e,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!e.util.isIE&&!e.util.isEdge,attachDOMEvent:function(t,n,i,o){var r=this.base.options.contentWindow,a=this.base.options.ownerDocument;t=e.util.isElement(t)||[r,a].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){e.addEventListener(n,i,o),this.events.push([e,n,i,o])}.bind(this))},detachDOMEvent:function(t,n,i,o){var r,a,s=this.base.options.contentWindow,l=this.base.options.ownerDocument;t&&(t=e.util.isElement(t)||[s,l].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){-1!==(r=this.indexOfListener(e,n,i,o))&&(a=this.events.splice(r,1)[0])[0].removeEventListener(a[1],a[2],a[3])}.bind(this)))},indexOfListener:function(e,t,n,i){var o,r,a;for(o=0,r=this.events.length;o<r;o+=1)if((a=this.events[o])[0]===e&&a[1]===t&&a[2]===n&&a[3]===i)return o;return-1},detachAllDOMEvents:function(){for(var e=this.events.pop();e;)e[0].removeEventListener(e[1],e[2],e[3]),e=this.events.pop()},detachAllEventsFromElement:function(e){for(var t=this.events.filter(function(t){return t&&t[0].getAttribute&&t[0].getAttribute("medium-editor-index")===e.getAttribute("medium-editor-index")}),n=0,i=t.length;n<i;n++){var o=t[n];this.detachDOMEvent(o[0],o[1],o[2],o[3])}},attachAllEventsToElement:function(e){this.listeners.editableInput&&(this.contentCache[e.getAttribute("medium-editor-index")]=e.innerHTML),this.eventsCache&&this.eventsCache.forEach(function(t){this.attachDOMEvent(e,t.name,t.handler.bind(this))},this)},enableCustomEvent:function(e){void 0!==this.disabledEvents[e]&&delete this.disabledEvents[e]},disableCustomEvent:function(e){this.disabledEvents[e]=!0},attachCustomEvent:function(e,t){this.setupListener(e),this.customEvents[e]||(this.customEvents[e]=[]),this.customEvents[e].push(t)},detachCustomEvent:function(e,t){var n=this.indexOfCustomListener(e,t);-1!==n&&this.customEvents[e].splice(n,1)},indexOfCustomListener:function(e,t){return this.customEvents[e]&&this.customEvents[e].length?this.customEvents[e].indexOf(t):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(e,t,n){this.customEvents[e]&&!this.disabledEvents[e]&&this.customEvents[e].forEach(function(e){e(t,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(e){e.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(e){this.handleDocumentExecCommand(e)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var e=this.options.ownerDocument;if(this.execCommandListener&&e.execCommand.listeners){var t=e.execCommand.listeners.indexOf(this.execCommandListener);-1!==t&&e.execCommand.listeners.splice(t,1),e.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var e=this.options.ownerDocument;if(!e.execCommand.listeners){var t=function(t,n){e.execCommand.listeners&&e.execCommand.listeners.forEach(function(e){e({command:t[0],value:t[2],args:t,result:n})})},n=function(){var n=e.execCommand.orig.apply(this,arguments);if(!e.execCommand.listeners)return n;var i=Array.prototype.slice.call(arguments);return t(i,n),n};n.orig=e.execCommand,n.listeners=[],n.callListeners=t,e.execCommand=n}},unwrapExecCommand:function(){var e=this.options.ownerDocument;e.execCommand.orig&&(e.execCommand=e.execCommand.orig)},setupListener:function(e){if(!this.listeners[e]){switch(e){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach(function(e){this.contentCache[e.getAttribute("medium-editor-index")]=e.innerHTML},this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":case"editableKeydownEnter":case"editableKeydownTab":case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[e]=!0}},attachToEachElement:function(e,t){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach(function(n){this.attachDOMEvent(n,e,t.bind(this))},this),this.eventsCache.push({name:e,handler:t})},cleanupElement:function(e){var t=e.getAttribute("medium-editor-index");t&&(this.detachAllEventsFromElement(e),this.contentCache&&delete this.contentCache[t])},focusElement:function(e){e.focus(),this.updateFocus(e,{target:e,type:"focus"})},updateFocus:function(n,i){var o,r=this.base.getFocusedElement();r&&"click"===i.type&&this.lastMousedownTarget&&(e.util.isDescendant(r,this.lastMousedownTarget,!0)||t(this.base.extensions,this.lastMousedownTarget))&&(o=r),o||this.base.elements.some(function(t){return!o&&e.util.isDescendant(t,n,!0)&&(o=t),!!o},this);var a=!e.util.isDescendant(r,n,!0)&&!t(this.base.extensions,n);o!==r&&(r&&a&&(r.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",i,r)),o&&(o.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",i,o))),a&&this.triggerCustomEvent("externalInteraction",i)},updateInput:function(e,t){if(this.contentCache){var n=e.getAttribute("medium-editor-index"),i=e.innerHTML;i!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",t,e),this.contentCache[n]=i}},handleDocumentSelectionChange:function(t){if(t.currentTarget&&t.currentTarget.activeElement){var n,i=t.currentTarget.activeElement;this.base.elements.some(function(t){return!!e.util.isDescendant(t,i,!0)&&(n=t,!0)},this),n&&this.updateInput(n,{target:i,currentTarget:n})}},handleDocumentExecCommand:function(){var e=this.base.getFocusedElement();e&&this.updateInput(e,{target:e,currentTarget:e})},handleBodyClick:function(e){this.updateFocus(e.target,e)},handleBodyFocus:function(e){this.updateFocus(e.target,e)},handleBodyMousedown:function(e){this.lastMousedownTarget=e.target},handleInput:function(e){this.updateInput(e.currentTarget,e)},handleClick:function(e){this.triggerCustomEvent("editableClick",e,e.currentTarget)},handleBlur:function(e){this.triggerCustomEvent("editableBlur",e,e.currentTarget)},handleKeypress:function(e){if(this.triggerCustomEvent("editableKeypress",e,e.currentTarget),this.keypressUpdateInput){var t={target:e.target,currentTarget:e.currentTarget};setTimeout(function(){this.updateInput(t.currentTarget,t)}.bind(this),0)}},handleKeyup:function(e){this.triggerCustomEvent("editableKeyup",e,e.currentTarget)},handleMouseover:function(e){this.triggerCustomEvent("editableMouseover",e,e.currentTarget)},handleDragging:function(e){this.triggerCustomEvent("editableDrag",e,e.currentTarget)},handleDrop:function(e){this.triggerCustomEvent("editableDrop",e,e.currentTarget)},handlePaste:function(e){this.triggerCustomEvent("editablePaste",e,e.currentTarget)},handleKeydown:function(t){return this.triggerCustomEvent("editableKeydown",t,t.currentTarget),e.util.isKey(t,e.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",t,t.currentTarget):e.util.isKey(t,e.util.keyCode.ENTER)||t.ctrlKey&&e.util.isKey(t,e.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",t,t.currentTarget):e.util.isKey(t,e.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",t,t.currentTarget):e.util.isKey(t,[e.util.keyCode.DELETE,e.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",t,t.currentTarget):void 0}},e.Events=n}(),(n=e.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(t){n.isBuiltInButton(t)?e.Extension.call(this,this.defaults[t]):e.Extension.call(this,t)},init:function(){e.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var e=this.document.createElement("button"),t=this.contentDefault,n=this.getAria(),i=this.getEditorOption("buttonLabels");return e.classList.add("medium-editor-action"),e.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(t){e.classList.add(t)}),e.setAttribute("data-action",this.getAction()),n&&(e.setAttribute("title",n),e.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(t){e.setAttribute(t,this.attrs[t])},this),"fontawesome"===i&&this.contentFA&&(t=this.contentFA),e.innerHTML=t,e},handleClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.getAction();t&&this.execAction(t)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var e=null;return this.useQueryState&&(e=this.base.queryCommandState(this.getAction())),e},isAlreadyApplied:function(e){var t,n,i=!1,o=this.getTagNames();return!1===this.knownState||!0===this.knownState?this.knownState:(o&&o.length>0&&(i=-1!==o.indexOf(e.nodeName.toLowerCase())),!i&&this.style&&(t=this.style.value.split("|"),n=this.window.getComputedStyle(e,null).getPropertyValue(this.style.prop),t.forEach(function(e){this.knownState||((i=-1!==n.indexOf(e))||"text-decoration"!==this.style.prop)&&(this.knownState=i)},this)),i)}})).isBuiltInButton=function(t){return"string"==typeof t&&e.extensions.button.prototype.defaults.hasOwnProperty(t)},e.extensions.button=n,e.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"<b>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>&bull;</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>&rarr;</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>&larr;</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>&ldquo;</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}},i=e.extensions.button.extend({init:function(){e.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"&#10003;",formCloseLabel:"&times;",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.hideToolbarDefaultActions()},setToolbarPosition:function(){var e=this.base.getExtensionByName("toolbar");e&&e.setToolbarPosition()}}),e.extensions.form=i,o=e.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',init:function(){e.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(t){t.preventDefault(),t.stopPropagation();var n=e.selection.getSelectionRange(this.document);return"a"===n.startContainer.nodeName.toLowerCase()||"a"===n.endContainer.nodeName.toLowerCase()||e.util.getClosestTag(e.selection.getSelectedParentElement(n),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(t){e.util.isKey(t,e.util.keyCode.K)&&e.util.isMetaCtrlKey(t)&&!t.shiftKey&&this.handleClick(t)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var e=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return e.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),e.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&e.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&e.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),e.join("")},isDisplayed:function(){return e.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){e.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(t){var n=this.getInput(),i=this.getAnchorTargetCheckbox(),o=this.getAnchorButtonCheckbox();if("string"==typeof(t=t||{value:""})&&(t={value:t}),this.base.saveSelection(),this.hideToolbarDefaultActions(),e.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=t.value,n.focus(),i&&(i.checked="_blank"===t.target),o){var r=t.buttonClass?t.buttonClass.split(" "):[];o.checked=-1!==r.indexOf(this.customClassOption)}},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},getFormOpts:function(){var e=this.getAnchorTargetCheckbox(),t=this.getAnchorButtonCheckbox(),n={value:this.getInput().value.trim()};return this.linkValidation&&(n.value=this.checkLinkFormat(n.value)),n.target="_self",e&&e.checked&&(n.target="_blank"),t&&t.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var e=this.getFormOpts();this.completeFormSave(e)},completeFormSave:function(e){this.base.restoreSelection(),this.execAction(this.action,e),this.base.checkSelection()},ensureEncodedUri:function(e){return e===decodeURI(e)?encodeURI(e):e},ensureEncodedUriComponent:function(e){return e===decodeURIComponent(e)?encodeURIComponent(e):e},ensureEncodedParam:function(e){var t=e.split("="),n=t[0],i=t[1];return n+(void 0===i?"":"="+this.ensureEncodedUriComponent(i))},ensureEncodedQuery:function(e){return e.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(e){var t=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i.test(e),n="",i=e.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),o=i[1],r=i[2],a=i[3];if(/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/.test(e))return"tel:"+e;if(!t){var s=o.split("/")[0];(s.match(/.+(\.|:).+/)||"localhost"===s)&&(n="http://")}return n+this.ensureEncodedUri(o)+(void 0===r?"":"?"+this.ensureEncodedQuery(r))+(void 0===a?"":"#"+a)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(e){var t=e.querySelector(".medium-editor-toolbar-close"),n=e.querySelector(".medium-editor-toolbar-save"),i=e.querySelector(".medium-editor-toolbar-input");this.on(e,"click",this.handleFormClick.bind(this)),this.on(i,"keyup",this.handleTextboxKeyup.bind(this)),this.on(t,"click",this.handleCloseClick.bind(this)),this.on(n,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var e=this.document.createElement("div");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),e.innerHTML=this.getTemplate(),this.attachFormEvents(e),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(t){if(t.keyCode===e.util.keyCode.ENTER)return t.preventDefault(),void this.doFormSave();t.keyCode===e.util.keyCode.ESCAPE&&(t.preventDefault(),this.doFormCancel())},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}}),e.extensions.anchor=o,r=e.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var e=this.document.createElement("div");return e.id="medium-editor-anchor-preview-"+this.getEditorId(),e.className="medium-editor-anchor-preview",e.innerHTML=this.getTemplate(),this.on(e,"click",this.handleClick.bind(this)),e},getTemplate:function(){return'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview">    <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(e){return!(!this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")&&!e.getAttribute("data-disable-preview"))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=e.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=e.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=e,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(e){e=e||this.activeAnchor;var t,n,i,o,r,a=this.window.innerWidth,s=this.anchorPreview.offsetHeight,l=e.getBoundingClientRect(),c=this.diffLeft,u=this.diffTop,d=this.getEditorOption("elementsContainer"),h=["absolute","fixed"].indexOf(window.getComputedStyle(d).getPropertyValue("position"))>-1,p={};t=this.anchorPreview.offsetWidth/2;var f=this.base.getExtensionByName("toolbar");f&&(c=f.diffLeft,u=f.diffTop),n=c-t,h?(o=d.getBoundingClientRect(),["top","left"].forEach(function(e){p[e]=l[e]-o[e]}),p.width=l.width,p.height=l.height,l=p,a=o.width,r=d.scrollTop):r=this.window.pageYOffset,i=l.left+l.width/2,r+=s+l.top+l.height-u-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(r)+"px",this.anchorPreview.style.right="initial",i<t?(this.anchorPreview.style.left=n+t+"px",this.anchorPreview.style.right="initial"):a-i<t?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+i+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(e){var t=this.base.getExtensionByName("anchor"),n=this.activeAnchor;t&&n&&(e.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var e={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};t.showForm(e),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(t){var n=e.util.getClosestTag(t.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var i=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&i&&i.isDisplayed&&i.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(e){e.relatedTarget&&/anchor-preview/.test(e.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;(new Date).getTime()-this.lastOver>this.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}}),e.extensions.anchorPreview=r,function(){var t,n,i,o;t=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],n="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw",i=new RegExp("^("+n+")$","i"),o=new RegExp("(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.](com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.(com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw))","gi");var r=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var e=0,t=0;t<this.window._mediumEditors.length;t++){var n=this.window._mediumEditors[t];null!==n&&void 0!==n.getExtensionByName("autoLink")&&e++}return 1===e},destroy:function(){this.document.queryCommandSupported("AutoUrlDetect")&&this.isLastInstance()&&this.document.execCommand("AutoUrlDetect",!1,!0)},onBlur:function(e,t){this.performLinking(t)},onKeypress:function(t){this.disableEventHandling||e.util.isKey(t,[e.util.keyCode.SPACE,e.util.keyCode.ENTER])&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var e=this.base.exportSelection();this.performLinking(t.target)&&this.base.importSelection(e,!0)}catch(e){window.console&&window.console.error("Failed to perform linking",e),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(t){var n=e.util.splitByBlockElements(t),i=!1;0===n.length&&(n=[t]);for(var o=0;o<n.length;o++)i=this.removeObsoleteAutoLinkSpans(n[o])||i,i=this.performLinkingWithinElement(n[o])||i;return this.base.events.updateInput(t,{target:t,currentTarget:t}),i},removeObsoleteAutoLinkSpans:function(t){if(!t||3===t.nodeType)return!1;for(var n,i=t.querySelectorAll('span[data-auto-link="true"]'),o=!1,r=0;r<i.length;r++){var a=i[r].textContent;if(-1===a.indexOf("://")&&(a=e.util.ensureUrlHasProtocol(a)),i[r].getAttribute("data-href")!==a&&(n=i[r],!e.util.getClosestTag(n,"a"))){o=!0;var s=a.replace(/\s+$/,"");if(i[r].getAttribute("data-href")===s){var l=a.length-s.length,c=e.util.splitOffDOMTree(i[r],this.splitTextBeforeEnd(i[r],l));i[r].parentNode.insertBefore(c,i[r].nextSibling)}else e.util.unwrap(i[r],this.document)}}return o},splitTextBeforeEnd:function(e,t){for(var n,i,o,r=this.document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),a=!0;a;)a=null!==r.lastChild();for(;t>0&&null!==o;)(i=(n=r.currentNode).nodeValue).length>t?(o=n.splitText(i.length-t),t=0):(o=r.previousNode(),t-=i.length);return o},performLinkingWithinElement:function(t){for(var n=this.findLinkableText(t),i=0;i<n.length;i++){var o=e.util.findOrCreateMatchingTextNodes(this.document,t,n[i]);this.shouldNotLink(o)||this.createAutoLink(o,n[i].href)}return!1},shouldNotLink:function(t){for(var n=!1,i=0;i<t.length&&!1===n;i++)n=!!e.util.traverseUp(t[i],function(e){return"a"===e.nodeName.toLowerCase()||e.getAttribute&&"true"===e.getAttribute("data-auto-link")});return n},findLinkableText:function(e){for(var n=e.textContent,r=null,a=[];null!==(r=o.exec(n));){var s=r.index+r[0].length;!(0!==r.index&&-1===t.indexOf(n[r.index-1])||s!==n.length&&-1===t.indexOf(n[s]))&&(-1!==r[0].indexOf("/")||i.test(r[0].split(".").pop().split("?").shift()))&&a.push({href:r[0],start:r.index,end:s})}return a},createAutoLink:function(t,n){n=e.util.ensureUrlHasProtocol(n);var i=e.util.createLink(this.document,t,n,this.getEditorOption("targetBlank")?"_blank":null),o=this.document.createElement("span");for(o.setAttribute("data-auto-link","true"),o.setAttribute("data-href",n),i.insertBefore(o,i.firstChild);i.childNodes.length>1;)o.appendChild(i.childNodes[1])}});e.extensions.autoLink=r}(),function(){var t="medium-editor-dragover";function n(n){var i=e.util.getContainerEditorElement(n);Array.prototype.slice.call(i.parentElement.querySelectorAll("."+t)).forEach(function(e){e.classList.remove(t)})}var i=e.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy";var i=e.target.classList?e.target:e.target.parentElement;n(i),"dragover"===e.type&&i.classList.add(t)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),this.base.selectElement(e.target);var t=this.base.exportSelection();t.start=t.end,this.base.importSelection(t),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files).forEach(function(e){this.isAllowedFile(e)&&e.type.match("image")&&this.insertImageFile(e)},this),n(e.target)},isAllowedFile:function(e){return this.allowedTypes.some(function(t){return!!e.type.match(t)})},insertImageFile:function(t){if("function"==typeof FileReader){var n=new FileReader;n.readAsDataURL(t),n.addEventListener("load",function(t){var n=this.document.createElement("img");n.src=t.target.result,e.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});e.extensions.fileDragging=i}(),a=e.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach(function(e){var t=e.key.charCodeAt(0);this.keys[t]||(this.keys[t]=[]),this.keys[t].push(e)},this)},handleKeydown:function(t){var n=e.util.getKeyCode(t);if(this.keys[n]){var i=e.util.isMetaCtrlKey(t),o=!!t.shiftKey,r=!!t.altKey;this.keys[n].forEach(function(e){e.meta!==i||e.shift!==o||e.alt!==r&&void 0!==e.alt||(t.preventDefault(),t.stopPropagation(),"function"==typeof e.command?e.command.apply(this):!1!==e.command&&this.execAction(e.command))},this)}}}),e.extensions.keyboardCommands=a,s=e.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"&#xB1;",contentFA:'<i class="fa fa-font"></i>',fonts:["","Arial","Verdana","Times New Roman"],init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontName")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(e){var t=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var e,t=this.document,n=t.createElement("div"),i=t.createElement("select"),o=t.createElement("a"),r=t.createElement("a");n.className="medium-editor-toolbar-form",n.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(n,"click",this.handleFormClick.bind(this));for(var a=0;a<this.fonts.length;a++)(e=t.createElement("option")).innerHTML=this.fonts[a],e.value=this.fonts[a],i.appendChild(e);return i.className="medium-editor-toolbar-select",n.appendChild(i),this.on(i,"change",this.handleFontChange.bind(this)),r.setAttribute("href","#"),r.className="medium-editor-toobar-save",r.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",n.appendChild(r),this.on(r,"click",this.handleSaveClick.bind(this),!0),o.setAttribute("href","#"),o.className="medium-editor-toobar-close",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"&times;",n.appendChild(o),this.on(o,"click",this.handleCloseClick.bind(this)),n},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("face")&&e.removeAttribute("face")})},handleFontChange:function(){var e=this.getSelect().value;""===e?this.clearFontName():this.execAction("fontName",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}}),e.extensions.fontName=s,l=e.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"&#xB1;",contentFA:'<i class="fa fa-text-height"></i>',init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontSize")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(e){var t=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var e=this.document,t=e.createElement("div"),n=e.createElement("input"),i=e.createElement("a"),o=e.createElement("a");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(t,"click",this.handleFormClick.bind(this)),n.setAttribute("type","range"),n.setAttribute("min","1"),n.setAttribute("max","7"),n.className="medium-editor-toolbar-input",t.appendChild(n),this.on(n,"change",this.handleSliderChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",t.appendChild(o),this.on(o,"click",this.handleSaveClick.bind(this),!0),i.setAttribute("href","#"),i.className="medium-editor-toobar-close",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"&times;",t.appendChild(i),this.on(i,"click",this.handleCloseClick.bind(this)),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("size")&&e.removeAttribute("size")})},handleSliderChange:function(){var e=this.getInput().value;"4"===e?this.clearFontSize():this.execAction("fontSize",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}}),e.extensions.fontSize=l,function(){var t=null,n=null,i=function(e){e.stopPropagation()};function o(e,t,n){var i=e.clipboardData||t.clipboardData||n.dataTransfer,o={};if(!i)return o;if(i.getData){var r=i.getData("Text");r&&r.length>0&&(o["text/plain"]=r)}if(i.types)for(var a=0;a<i.types.length;a++){var s=i.types[a];o[s]=i.getData(s)}return o}var r=e.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],unwrapTags:[],init:function(){e.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.getEditorElements().forEach(function(e){this.on(e,"paste",this.handlePaste.bind(this))},this),this.subscribe("addElement",this.handleAddElement.bind(this)))},handleAddElement:function(e,t){this.on(t,"paste",this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(e,t){if(!e.defaultPrevented){var n=o(e,this.window,this.document),i=n["text/html"],r=n["text/plain"];this.window.clipboardData&&void 0===e.clipboardData&&!i&&(i=r),(i||r)&&(e.preventDefault(),this.doPaste(i,r,t))}},doPaste:function(t,n,i){var o,r,a="";if(this.cleanPastedHTML&&t)return this.cleanPaste(t);if(n){if(this.getEditorOption("disableReturn")||i&&i.getAttribute("data-disable-return"))a=e.util.htmlEntities(n);else if((o=n.split(/[\r\n]+/g)).length>1)for(r=0;r<o.length;r+=1)""!==o[r]&&(a+="<p>"+e.util.htmlEntities(o[r])+"</p>");else a=e.util.htmlEntities(o[0]);e.util.insertHTMLCommand(this.document,a)}},handlePasteBinPaste:function(e){if(e.defaultPrevented)this.removePasteBin();else{var t=o(e,this.window,this.document),i=t["text/html"],r=t["text/plain"],a=n;if(!this.cleanPastedHTML||i)return e.preventDefault(),this.removePasteBin(),this.doPaste(i,r,a),void this.trigger("editablePaste",{currentTarget:a,target:a},a);setTimeout(function(){this.cleanPastedHTML&&(i=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(i,r,a),this.trigger("editablePaste",{currentTarget:a,target:a},a)}.bind(this),0)}},handleKeydown:function(t,n){e.util.isKey(t,e.util.keyCode.V)&&e.util.isMetaCtrlKey(t)&&(t.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(n))},createPasteBin:function(o){var r,a=e.selection.getSelectionRange(this.document),s=this.window.pageYOffset;n=o,a&&((r=a.getClientRects()).length?s+=r[0].top:void 0!==a.startContainer.getBoundingClientRect?s+=a.startContainer.getBoundingClientRect().top:s+=a.getBoundingClientRect().top),t=a;var l=this.document.createElement("div");l.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),l.setAttribute("style","border: 1px red solid; position: absolute; top: "+s+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),l.setAttribute("contentEditable",!0),l.innerHTML="%ME_PASTEBIN%",this.document.body.appendChild(l),this.on(l,"focus",i),this.on(l,"focusin",i),this.on(l,"focusout",i),l.focus(),e.selection.selectNode(l,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(l,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==t&&(e.selection.selectRange(this.document,t),t=null),null!==n&&(n=null);var o=this.getPasteBin();o&&o&&(this.off(o,"focus",i),this.off(o,"focusin",i),this.off(o,"focusout",i),this.off(o,"paste",this.boundHandlePaste),o.parentElement.removeChild(o))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var e=this.getPasteBin();if(!e)return!1;if(e.firstChild&&"mcepastebin"===e.firstChild.id)return!1;var t=e.innerHTML;return!(!t||"%ME_PASTEBIN%"===t)&&t},cleanPaste:function(e){var t,n,i,o,r=/<p|<br|<div/.test(e),a=[].concat(this.preCleanReplacements||[],[[new RegExp(/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/&lt;(\/?)(i|b|a)&gt;/gi),"<$1$2>"],[new RegExp(/&lt;a(?:(?!href).)+href=(?:&quot;|&rdquo;|&ldquo;|"|“|”)(((?!&quot;|&rdquo;|&ldquo;|"|“|”).)*)(?:&quot;|&rdquo;|&ldquo;|"|“|”)(?:(?!&gt;).)*&gt;/gi),'<a href="$1">'],[new RegExp(/<\/p>\n+/gi),"</p>"],[new RegExp(/\n+<p/gi),"<p"],[new RegExp(/<\/?o:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi),"$1"]],this.cleanReplacements||[]);for(t=0;t<a.length;t+=1)e=e.replace(a[t][0],a[t][1]);if(!r)return this.pasteHTML(e);for((i=this.document.createElement("div")).innerHTML="<p>"+e.split("<br><br>").join("</p><p>")+"</p>",n=i.querySelectorAll("a,p,div,br"),t=0;t<n.length;t+=1)switch((o=n[t]).innerHTML=o.innerHTML.replace(/\n/gi," "),o.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(o);break;case"br":this.filterLineBreak(o)}this.pasteHTML(i.innerHTML)},pasteHTML:function(t,n){n=e.util.defaults({},n,{cleanAttrs:this.cleanAttrs,cleanTags:this.cleanTags,unwrapTags:this.unwrapTags});var i,o,r,a,s=this.document.createDocumentFragment();for(s.appendChild(this.document.createElement("body")),(a=s.querySelector("body")).innerHTML=t,this.cleanupSpans(a),i=a.querySelectorAll("*"),r=0;r<i.length;r+=1)"a"===(o=i[r]).nodeName.toLowerCase()&&this.getEditorOption("targetBlank")&&e.util.setTargetBlank(o),e.util.cleanupAttrs(o,n.cleanAttrs),e.util.cleanupTags(o,n.cleanTags),e.util.unwrapTags(o,n.unwrapTags);e.util.insertHTMLCommand(this.document,a.innerHTML.replace(/&nbsp;/g," "))},isCommonBlock:function(e){return e&&("p"===e.nodeName.toLowerCase()||"div"===e.nodeName.toLowerCase())},filterCommonBlocks:function(e){/^\s*$/.test(e.textContent)&&e.parentNode&&e.parentNode.removeChild(e)},filterLineBreak:function(e){this.isCommonBlock(e.previousElementSibling)?this.removeWithParent(e):!this.isCommonBlock(e.parentNode)||e.parentNode.firstChild!==e&&e.parentNode.lastChild!==e?e.parentNode&&1===e.parentNode.childElementCount&&""===e.parentNode.textContent&&this.removeWithParent(e):this.removeWithParent(e)},removeWithParent:function(e){e&&e.parentNode&&(e.parentNode.parentNode&&1===e.parentNode.childElementCount?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))},cleanupSpans:function(t){var n,i,o,r=t.querySelectorAll(".replace-with"),a=function(e){return e&&"#text"!==e.nodeName&&"false"===e.getAttribute("contenteditable")};for(n=0;n<r.length;n+=1)i=r[n],o=this.document.createElement(i.classList.contains("bold")?"b":"i"),i.classList.contains("bold")&&i.classList.contains("italic")?o.innerHTML="<i>"+i.innerHTML+"</i>":o.innerHTML=i.innerHTML,i.parentNode.replaceChild(o,i);for(r=t.querySelectorAll("span"),n=0;n<r.length;n+=1){if(i=r[n],e.util.traverseUp(i,a))return!1;e.util.unwrap(i,this.document)}}});e.extensions.paste=r}(),c=e.Extension.extend({name:"placeholder",text:"Type your text",hideOnClick:!0,init:function(){e.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(e,t){this.initElement(t)},initElement:function(e){e.getAttribute("data-placeholder")||e.setAttribute("data-placeholder",this.text),this.updatePlaceholder(e)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(e,t){this.cleanupElement(t)},cleanupElement:function(e){e.getAttribute("data-placeholder")===this.text&&e.removeAttribute("data-placeholder")},showPlaceholder:function(t){t&&(e.util.isFF&&0===t.childNodes.length?(t.classList.add("medium-editor-placeholder-relative"),t.classList.remove("medium-editor-placeholder")):(t.classList.add("medium-editor-placeholder"),t.classList.remove("medium-editor-placeholder-relative")))},hidePlaceholder:function(e){e&&(e.classList.remove("medium-editor-placeholder"),e.classList.remove("medium-editor-placeholder-relative"))},updatePlaceholder:function(e,t){if(e.querySelector("img, blockquote, ul, ol, table")||""!==e.textContent.replace(/^\s+|\s+$/g,""))return this.hidePlaceholder(e);t||this.showPlaceholder(e)},attachEventHandlers:function(){this.hideOnClick&&this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableInput",this.handleInput.bind(this)),this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("addElement",this.handleAddElement.bind(this)),this.subscribe("removeElement",this.handleRemoveElement.bind(this))},handleInput:function(e,t){var n=this.hideOnClick&&t===this.base.getFocusedElement();this.updatePlaceholder(t,n)},handleFocus:function(e,t){this.hidePlaceholder(t)},handleBlur:function(e,t){this.updatePlaceholder(t)}}),e.extensions.placeholder=c,u=e.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,static:!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){e.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption("elementsContainer").appendChild(this.getToolbarElement())},forEachExtension:function(e,t){return this.base.extensions.forEach(function(n){if(n!==this)return e.apply(t||this,arguments)},this)},createToolbar:function(){var e=this.document.createElement("div");return e.id="medium-editor-toolbar-"+this.getEditorId(),e.className="medium-editor-toolbar",this.static?e.className+=" static-toolbar":this.relativeContainer?e.className+=" medium-editor-relative-toolbar":e.className+=" medium-editor-stalker-toolbar",e.appendChild(this.createToolbarButtons()),this.forEachExtension(function(t){t.hasForm&&e.appendChild(t.getForm())}),this.attachEventHandlers(),e},createToolbarButtons:function(){var t,n,i,o,r,a,s=this.document.createElement("ul");return s.id="medium-editor-toolbar-actions"+this.getEditorId(),s.className="medium-editor-toolbar-actions",s.style.display="block",this.buttons.forEach(function(i){"string"==typeof i?(r=i,a=null):(r=i.name,a=i),(o=this.base.addBuiltInExtension(r,a))&&"function"==typeof o.getButton&&(n=o.getButton(this.base),t=this.document.createElement("li"),e.util.isElement(n)?t.appendChild(n):t.innerHTML=n,s.appendChild(t))},this),(i=s.querySelectorAll("button")).length>0&&(i[0].classList.add(this.firstButtonClass),i[i.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=e.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this.static&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(t){if(t&&t.target&&e.util.isDescendant(this.getToolbarElement(),t.target))return!1;this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension(function(e){e.hasForm&&e.isDisplayed()&&e.hideForm()})},multipleBlockElementsSelected:function(){var t=new RegExp("<("+e.util.blockContainerElementNames.join("|")+")[^>]*>","g"),n=e.selection.getSelectionHtml(this.document).replace(/<[^\/>][^>]*><\/[^>]+>/gim,"").match(t);return!!n&&n.length>1},modifySelection:function(){var t=this.window.getSelection().getRangeAt(0);if(this.standardizeSelectionStart&&t.startContainer.nodeValue&&t.startOffset===t.startContainer.nodeValue.length){var n=e.util.findAdjacentTextNodeWithContent(e.selection.getSelectionElement(this.window),t.startContainer,this.document);if(n){for(var i=0;0===n.nodeValue.substr(i,1).trim().length;)i+=1;t=e.selection.select(this.document,n,i,t.endContainer,t.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||e.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var t=e.selection.getSelectionElement(this.window);return!t||-1===this.getEditorElements().indexOf(t)||t.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!e.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(e){"function"==typeof e.isActive&&"function"==typeof e.setInactive&&e.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var t,n=[],i=null,o=e.selection.getSelectionRange(this.document),r=function(e){"function"==typeof e.checkState?e.checkState(t):"function"==typeof e.isActive&&"function"==typeof e.isAlreadyApplied&&"function"==typeof e.setActive&&!e.isActive()&&e.isAlreadyApplied(t)&&e.setActive()};if(o&&(this.forEachExtension(function(e){"function"!=typeof e.queryCommandState||null===(i=e.queryCommandState())?n.push(e):i&&"function"==typeof e.setActive&&e.setActive()}),t=e.selection.getSelectedParentElement(o),this.getEditorElements().some(function(n){return e.util.isDescendant(n,t,!0)})))for(;t&&(n.forEach(r),!e.util.isMediumEditorElement(t));)t=t.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var e=this.base.getFocusedElement(),t=this.window.getSelection();if(!e)return this;!this.static&&t.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(e):this.positionToolbar(t)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(e){this.getToolbarElement().style.left="0";var t,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,i=this.window.innerWidth,o=this.getToolbarElement(),r=e.getBoundingClientRect(),a=r.top+n,s=r.left+r.width/2,l=o.offsetHeight,c=o.offsetWidth,u=c/2;switch(this.sticky?n>a+e.offsetHeight-l-this.stickyTopOffset?(o.style.top=a+e.offsetHeight-l+"px",o.classList.remove("medium-editor-sticky-toolbar")):n>a-l-this.stickyTopOffset?(o.classList.add("medium-editor-sticky-toolbar"),o.style.top=this.stickyTopOffset+"px"):(o.classList.remove("medium-editor-sticky-toolbar"),o.style.top=a-l+"px"):o.style.top=a-l+"px",this.align){case"left":t=r.left;break;case"right":t=r.right-c;break;case"center":t=s-u}t<0?t=0:t+c>i&&(t=i-Math.ceil(c)-1),o.style.left=t+"px"},positionToolbar:function(e){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var t=e.getRangeAt(0),n=t.getBoundingClientRect();(!n||0===n.height&&0===n.width&&t.startContainer===t.endContainer)&&(n=1===t.startContainer.nodeType&&t.startContainer.querySelector("img")?t.startContainer.querySelector("img").getBoundingClientRect():t.startContainer.getBoundingClientRect());var i,o,r=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,l=a.offsetWidth/2,c=this.diffLeft-l,u=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(u).getPropertyValue("position"))>-1,h={},p={};d?(o=u.getBoundingClientRect(),["top","left"].forEach(function(e){p[e]=n[e]-o[e]}),p.width=n.width,p.height=n.height,n=p,r=o.width,h.top=u.scrollTop):h.top=this.window.pageYOffset,i=n.left+n.width/2,h.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),h.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),h.top+=this.diffTop),i<l?(h.left=c+l,h.right="initial"):r-i<l?(h.left="auto",h.right=0):(h.left=c+i,h.right="initial"),["top","left","right"].forEach(function(e){a.style[e]=h[e]+(isNaN(h[e])?"":"px")})}}),e.extensions.toolbar=u,d=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy","dragover"===e.type?e.target.classList.add("medium-editor-dragover"):"dragleave"===e.type&&e.target.classList.remove("medium-editor-dragover")},handleDrop:function(t){t.preventDefault(),t.stopPropagation(),t.dataTransfer.files&&Array.prototype.slice.call(t.dataTransfer.files,0).some(function(t){var n,i;t.type.match("image")&&((n=new FileReader).readAsDataURL(t),i="medium-img-"+ +new Date,e.util.insertHTMLCommand(this.document,'<img class="medium-editor-image-loading" id="'+i+'" />'),n.onload=function(){var e=this.document.getElementById(i);e&&(e.removeAttribute("id"),e.removeAttribute("class"),e.src=n.result)}.bind(this))}.bind(this)),t.target.classList.remove("medium-editor-dragover")}}),e.extensions.imageDragging=d,function(){function t(t,n){if(this.options.disableReturn||n.getAttribute("data-disable-return"))t.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute("data-disable-double-return")){var i=e.selection.getSelectionStart(this.options.ownerDocument);(i&&""===i.textContent.trim()&&"li"!==i.nodeName.toLowerCase()||i.previousElementSibling&&"br"!==i.previousElementSibling.nodeName.toLowerCase()&&""===i.previousElementSibling.textContent.trim())&&t.preventDefault()}}function n(t){var n,i=e.selection.getSelectionStart(this.options.ownerDocument),o=i.nodeName.toLowerCase(),r=/^(\s+|<br\/?>)?$/i,a=/h\d/i;e.util.isKey(t,[e.util.keyCode.BACKSPACE,e.util.keyCode.ENTER])&&i.previousElementSibling&&a.test(o)&&0===e.selection.getCaretOffsets(i).left?e.util.isKey(t,e.util.keyCode.BACKSPACE)&&r.test(i.previousElementSibling.innerHTML)?(i.previousElementSibling.parentNode.removeChild(i.previousElementSibling),t.preventDefault()):!this.options.disableDoubleReturn&&e.util.isKey(t,e.util.keyCode.ENTER)&&((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",i.previousElementSibling.parentNode.insertBefore(n,i),t.preventDefault()):e.util.isKey(t,e.util.keyCode.DELETE)&&i.nextElementSibling&&i.previousElementSibling&&!a.test(o)&&r.test(i.innerHTML)&&a.test(i.nextElementSibling.nodeName.toLowerCase())?(e.selection.moveCursor(this.options.ownerDocument,i.nextElementSibling),i.previousElementSibling.parentNode.removeChild(i),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&"li"===o&&r.test(i.innerHTML)&&!i.previousElementSibling&&!i.parentElement.previousElementSibling&&i.nextElementSibling&&"li"===i.nextElementSibling.nodeName.toLowerCase()?((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",i.parentElement.parentElement.insertBefore(n,i.parentElement),e.selection.moveCursor(this.options.ownerDocument,n),i.parentElement.removeChild(i),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&!1!==e.util.getClosestTag(i,"blockquote")&&0===e.selection.getCaretOffsets(i).left?(t.preventDefault(),e.util.execFormatBlock(this.options.ownerDocument,"p")):e.util.isKey(t,e.util.keyCode.ENTER)&&!1!==e.util.getClosestTag(i,"blockquote")&&0===e.selection.getCaretOffsets(i).right?((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",i.parentElement.insertBefore(n,i.nextSibling),e.selection.moveCursor(this.options.ownerDocument,n),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&e.util.isMediumEditorElement(i.parentElement)&&!i.previousElementSibling&&i.nextElementSibling&&r.test(i.innerHTML)&&(t.preventDefault(),e.selection.moveCursor(this.options.ownerDocument,i.nextSibling),i.parentElement.removeChild(i))}function i(t,n,i){var o=[];if(t||(t=[]),"string"==typeof t&&(t=n.querySelectorAll(t)),e.util.isElement(t)&&(t=[t]),i)for(var r=0;r<t.length;r++){var a=t[r];!e.util.isElement(a)||a.getAttribute("data-medium-editor-element")||a.getAttribute("medium-editor-textarea-id")||o.push(a)}else o=Array.prototype.slice.apply(t);return o}function o(e){var t=e.parentNode.querySelector('textarea[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');t&&(t.classList.remove("medium-editor-hidden"),t.removeAttribute("medium-editor-textarea-id")),e.parentNode&&e.parentNode.removeChild(e)}function r(e,t,n){return"function"==typeof(e=function(e,t){return Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])}),e}(e,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n})).init&&e.init(),e.name||(e.name=t),e}function a(){return!this.elements.every(function(e){return!!e.getAttribute("data-disable-toolbar")})&&!1!==this.options.toolbar}function s(){return!!a.call(this)&&!1!==this.options.anchorPreview}function l(){return!1!==this.options.placeholder}function c(){return!1!==this.options.autoLink}function u(){return!1!==this.options.keyboardCommands}function d(n,i){if(!n.getAttribute("data-medium-editor-element")){"textarea"===n.nodeName.toLowerCase()&&(n=function(e){for(var t=this.options.ownerDocument.createElement("div"),n=Date.now(),i="medium-editor-"+n,o=e.attributes;this.options.ownerDocument.getElementById(i);)i="medium-editor-"+ ++n;t.className=e.className,t.id=i,t.innerHTML=e.value,e.setAttribute("medium-editor-textarea-id",i);for(var r=0,a=o.length;r<a;r++)t.hasAttribute(o[r].nodeName)||t.setAttribute(o[r].nodeName,o[r].value);return e.form&&this.on(e.form,"reset",function(e){e.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(i))}.bind(this)),e.classList.add("medium-editor-hidden"),e.parentNode.insertBefore(t,e),t}.call(this,n),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=function(e,t){var n=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=t.innerHTML.trim())}.bind(this),this.subscribe("editableInput",this.instanceHandleEditableInput))),this.options.disableEditing||n.getAttribute("data-disable-editing")||(n.setAttribute("contentEditable",!0),n.setAttribute("spellcheck",this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(n.getAttribute("data-disable-return")||n.getAttribute("data-disable-double-return"))&&(this.instanceHandleEditableKeydownEnter=t.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||n.getAttribute("data-disable-return")||this.on(n,"keyup",function(t){var n=e.selection.getSelectionStart(this.options.ownerDocument);n&&(e.util.isMediumEditorElement(n)&&0===n.children.length&&!e.util.isBlockContainer(n)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!e.util.isKey(t,e.util.keyCode.ENTER)||e.util.isListItem(n)||e.util.isBlockContainer(n)||("a"===n.nodeName.toLowerCase()?this.options.ownerDocument.execCommand("unlink",!1,null):t.shiftKey||t.ctrlKey||this.options.ownerDocument.execCommand("formatBlock",!1,"p")))}.bind(this));var o=e.util.guid();n.setAttribute("data-medium-editor-element",!0),n.classList.add("medium-editor-element"),n.setAttribute("role","textbox"),n.setAttribute("aria-multiline",!0),n.setAttribute("data-medium-editor-editor-index",i),n.setAttribute("medium-editor-index",o),f[o]=n.innerHTML,this.events.attachAllEventsToElement(n)}return n}function h(){this.subscribe("editableKeydownTab",function(t){var n=e.selection.getSelectionStart(this.options.ownerDocument);"pre"===(n&&n.nodeName.toLowerCase())&&(t.preventDefault(),e.util.insertHTMLCommand(this.options.ownerDocument,"    ")),e.util.isListItem(n)&&(t.preventDefault(),t.shiftKey?this.options.ownerDocument.execCommand("outdent",!1,null):this.options.ownerDocument.execCommand("indent",!1,null))}.bind(this)),this.subscribe("editableKeydownDelete",n.bind(this)),this.subscribe("editableKeydownEnter",n.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",function(t){var n=e.selection.getSelectionStart(this.options.ownerDocument),i=n.textContent,o=e.selection.getCaretOffsets(n);(void 0===i[o.left-1]||""===i[o.left-1].trim()||void 0!==i[o.left]&&""===i[o.left].trim())&&t.preventDefault()}.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=t.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter))}function p(t,n){var i,o;if(i=/^append-(.+)$/gi.exec(t))return e.util.execFormatBlock(this.options.ownerDocument,i[1]);if("fontSize"===t)return n.size&&e.util.deprecated(".size option for fontSize command",".value","6.0.0"),o=n.value||n.size,this.options.ownerDocument.execCommand("fontSize",!1,o);if("fontName"===t)return n.name&&e.util.deprecated(".name option for fontName command",".value","6.0.0"),o=n.value||n.name,this.options.ownerDocument.execCommand("fontName",!1,o);if("createLink"===t)return this.createLink(n);if("image"===t){var r=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,r)}if("html"===t){var a=this.options.contentWindow.getSelection().toString().trim();return e.util.insertHTMLCommand(this.options.ownerDocument,a)}if(/justify([A-Za-z]*)$/g.exec(t)){var s=this.options.ownerDocument.execCommand(t,!1,null),l=e.selection.getSelectedParentElement(e.selection.getSelectionRange(this.options.ownerDocument));return l&&function(t){if(!t)return;var n,i=Array.prototype.slice.call(t.childNodes).filter(function(e){var t="div"===e.nodeName.toLowerCase();return t&&!n&&(n=e.style.textAlign),t});i.length&&(this.saveSelection(),i.forEach(function(t){if(t.style.textAlign===n){var i=t.lastChild;if(i){e.util.unwrap(t,this.options.ownerDocument);var o=this.options.ownerDocument.createElement("BR");i.parentNode.insertBefore(o,i.nextSibling)}}},this),t.style.textAlign=n,this.restoreSelection())}.call(this,e.util.getTopBlockContainer(l)),s}return o=n&&n.value,this.options.ownerDocument.execCommand(t,!1,o)}var f={};e.prototype={init:function(t,n){return this.options=function(t,n){return n&&[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]].forEach(function(t){n.hasOwnProperty(t[0])&&void 0!==n[t[0]]&&e.util.deprecated(t[0],t[1],"v6.0.0")}),e.util.defaults({},n,t)}.call(this,this.defaults,n),this.origElements=t,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(function(e){e._mediumEditors||(e._mediumEditors=[null]),this.id||(this.id=e._mediumEditors.length),e._mediumEditors[this.id]=this}.call(this,this.options.contentWindow),this.events=new e.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,function(){if(this.extensions=[],Object.keys(this.options.extensions).forEach(function(e){"toolbar"!==e&&this.options.extensions[e]&&this.extensions.push(r(this.options.extensions[e],e,this))},this),function(){return!this.options.extensions.imageDragging}.call(this)){var t=this.options.fileDragging;t||(t={},function(){return!1!==this.options.imageDragging}.call(this)||(t.allowedTypes=[])),this.addBuiltInExtension("fileDragging",t)}var n={paste:!0,"anchor-preview":s.call(this),autoLink:c.call(this),keyboardCommands:u.call(this),placeholder:l.call(this)};Object.keys(n).forEach(function(e){n[e]&&this.addBuiltInExtension(e)},this);var i=this.options.extensions.toolbar;if(!i&&a.call(this)){var o=e.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});i=new e.extensions.toolbar(o)}i&&this.extensions.push(r(i,"toolbar",this))}.call(this),h.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach(function(e){"function"==typeof e.destroy&&e.destroy()},this),this.events.destroy(),this.elements.forEach(function(e){this.options.spellcheck&&(e.innerHTML=e.innerHTML),e.removeAttribute("contentEditable"),e.removeAttribute("spellcheck"),e.removeAttribute("data-medium-editor-element"),e.classList.remove("medium-editor-element"),e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("medium-editor-index"),e.removeAttribute("data-medium-editor-editor-index"),e.getAttribute("medium-editor-textarea-id")&&o(e)},this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,function(e){e._mediumEditors&&e._mediumEditors[this.id]&&(e._mediumEditors[this.id]=null)}.call(this,this.options.contentWindow))},on:function(e,t,n,i){return this.events.attachDOMEvent(e,t,n,i),this},off:function(e,t,n,i){return this.events.detachDOMEvent(e,t,n,i),this},subscribe:function(e,t){return this.events.attachCustomEvent(e,t),this},unsubscribe:function(e,t){return this.events.detachCustomEvent(e,t),this},trigger:function(e,t,n){return this.events.triggerCustomEvent(e,t,n),this},delay:function(e){var t=this;return setTimeout(function(){t.isActive&&e()},this.options.delay)},serialize:function(){var e,t={},n=this.elements.length;for(e=0;e<n;e+=1)t[""!==this.elements[e].id?this.elements[e].id:"element-"+e]={value:this.elements[e].innerHTML.trim()};return t},getExtensionByName:function(e){var t;return this.extensions&&this.extensions.length&&this.extensions.some(function(n){return n.name===e&&(t=n,!0)}),t},addBuiltInExtension:function(t,n){var i,o=this.getExtensionByName(t);if(o)return o;switch(t){case"anchor":i=e.util.extend({},this.options.anchor,n),o=new e.extensions.anchor(i);break;case"anchor-preview":o=new e.extensions.anchorPreview(this.options.anchorPreview);break;case"autoLink":o=new e.extensions.autoLink;break;case"fileDragging":o=new e.extensions.fileDragging(n);break;case"fontname":o=new e.extensions.fontName(this.options.fontName);break;case"fontsize":o=new e.extensions.fontSize(n);break;case"keyboardCommands":o=new e.extensions.keyboardCommands(this.options.keyboardCommands);break;case"paste":o=new e.extensions.paste(this.options.paste);break;case"placeholder":o=new e.extensions.placeholder(this.options.placeholder);break;default:e.extensions.button.isBuiltInButton(t)&&(n?(i=e.util.defaults({},n,e.extensions.button.prototype.defaults[t]),o=new e.extensions.button(i)):o=new e.extensions.button(t))}return o&&this.extensions.push(r(o,t,this)),o},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var e=this.getExtensionByName("toolbar");return e&&e.checkState(),this},queryCommandState:function(e){var t,n=null;(t=/^full-(.+)$/gi.exec(e))&&(e=t[1]);try{n=this.options.ownerDocument.queryCommandState(e)}catch(e){n=null}return n},execAction:function(t,n){var i,o;return(i=/^full-(.+)$/gi.exec(t))?(this.saveSelection(),this.selectAllContents(),o=p.call(this,i[1],n),this.restoreSelection()):o=p.call(this,t,n),"insertunorderedlist"!==t&&"insertorderedlist"!==t||e.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),o},getSelectedParentElement:function(t){return void 0===t&&(t=this.options.contentWindow.getSelection().getRangeAt(0)),e.selection.getSelectedParentElement(t)},selectAllContents:function(){var t=e.selection.getSelectionElement(this.options.contentWindow);if(t){for(;1===t.children.length;)t=t.children[0];this.selectElement(t)}},selectElement:function(t){e.selection.selectNode(t,this.options.ownerDocument);var n=e.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var e;return this.elements.some(function(t){return!e&&t.getAttribute("data-medium-focused")&&(e=t),!!e},this),e},exportSelection:function(){var t=e.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(t),i=null;return n>=0&&(i=e.selection.exportSelection(t,this.options.ownerDocument)),null!==i&&0!==n&&(i.editableElementIndex=n),i},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(t,n){if(t){var i=this.elements[t.editableElementIndex||0];e.selection.importSelection(t,i,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(t){var n,i=e.selection.getSelectionElement(this.options.contentWindow),o={};if(-1!==this.elements.indexOf(i)){try{if(this.events.disableCustomEvent("editableInput"),t.url&&e.util.deprecated(".url option for createLink",".value","6.0.0"),(n=t.url||t.value)&&n.trim().length>0){var r=this.options.contentWindow.getSelection();if(r){var a,s,l,c,u=r.getRangeAt(0),d=u.commonAncestorContainer;if(3===u.endContainer.nodeType&&3!==u.startContainer.nodeType&&0===u.startOffset&&u.startContainer.firstChild===u.endContainer&&(d=u.endContainer),s=e.util.getClosestBlockContainer(u.startContainer),l=e.util.getClosestBlockContainer(u.endContainer),3!==d.nodeType&&0!==d.textContent.length&&s===l){var h=s||i,p=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),a=this.exportSelection(),p.appendChild(h.cloneNode(!0)),i===h?e.selection.select(this.options.ownerDocument,h.firstChild,0,h.lastChild,3===h.lastChild.nodeType?h.lastChild.nodeValue.length:h.lastChild.childNodes.length):e.selection.select(this.options.ownerDocument,h,0,h,h.childNodes.length);var f=this.exportSelection();0===(c=e.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,p,{start:a.start-f.start,end:a.end-f.start,editableElementIndex:a.editableElementIndex})).length&&((p=this.options.ownerDocument.createDocumentFragment()).appendChild(d.cloneNode(!0)),c=[p.firstChild.firstChild,p.firstChild.lastChild]),e.util.createLink(this.options.ownerDocument,c,n.trim());var m=(p.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;e.util.insertHTMLCommand(this.options.ownerDocument,p.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=m,a.end-=m,this.importSelection(a)}else this.options.ownerDocument.execCommand("createLink",!1,n);this.options.targetBlank||"_blank"===t.target?e.util.setTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),n):e.util.removeTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),n),t.buttonClass&&e.util.addClassToAnchors(e.selection.getSelectionStart(this.options.ownerDocument),t.buttonClass)}}if(this.options.targetBlank||"_blank"===t.target||t.buttonClass){(o=this.options.ownerDocument.createEvent("HTMLEvents")).initEvent("input",!0,!0,this.options.contentWindow);for(var g=0,v=this.elements.length;g<v;g+=1)this.elements[g].dispatchEvent(o)}}finally{this.events.enableCustomEvent("editableInput")}this.events.triggerCustomEvent("editableInput",o,i)}},cleanPaste:function(e){this.getExtensionByName("paste").cleanPaste(e)},pasteHTML:function(e,t){this.getExtensionByName("paste").pasteHTML(e,t)},setContent:function(e,t){if(t=t||0,this.elements[t]){var n=this.elements[t];n.innerHTML=e,this.checkContentChanged(n)}},getContent:function(e){return e=e||0,this.elements[e]?this.elements[e].innerHTML.trim():null},checkContentChanged:function(t){t=t||e.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(t,{target:t,currentTarget:t})},resetContent:function(e){if(e){var t=this.elements.indexOf(e);-1!==t&&this.setContent(f[e.getAttribute("medium-editor-index")],t)}else this.elements.forEach(function(e,t){this.setContent(f[e.getAttribute("medium-editor-index")],t)},this)},addElements:function(e){var t=i(e,this.options.ownerDocument,!0);if(0===t.length)return!1;t.forEach(function(e){e=d.call(this,e,this.id),this.elements.push(e),this.trigger("addElement",{target:e,currentTarget:e},e)},this)},removeElements:function(e){var t=i(e,this.options.ownerDocument).map(function(e){return e.getAttribute("medium-editor-textarea-id")&&e.parentNode?e.parentNode.querySelector('div[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]'):e});this.elements=this.elements.filter(function(e){return-1===t.indexOf(e)||(this.events.cleanupElement(e),e.getAttribute("medium-editor-textarea-id")&&o(e),this.trigger("removeElement",{target:e,currentTarget:e},e),!1)},this)}},e.getEditorFromElement=function(e){var t=e.getAttribute("data-medium-editor-editor-index"),n=e&&e.ownerDocument&&(e.ownerDocument.defaultView||e.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors[t]?n._mediumEditors[t]:null}}(),e.prototype.defaults={activeButtonClass:"medium-editor-button-active",buttonLabels:!1,delay:0,disableReturn:!1,disableDoubleReturn:!1,disableExtraSpaces:!1,disableEditing:!1,autoLink:!1,elementsContainer:!1,contentWindow:window,ownerDocument:document,targetBlank:!1,extensions:{},spellcheck:!0},e.parseVersionString=function(e){var t=e.split("-"),n=t[0].split("."),i=t.length>1?t[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:i,toString:function(){return[n[0],n[1],n[2]].join(".")+(i?"-"+i:"")}}},e.version=e.parseVersionString.call(this,"5.23.3"),e}())}).call(this,n(120))},1040:function(e,t,n){e.exports=n.p+"align_center.2dfcaba16810938f25ec5f0f5e2679a2.svg"},1041:function(e,t,n){e.exports=n.p+"align_justify.594a7b3b77233c2bcb71cd2d5d48d9f3.svg"},1042:function(e,t,n){e.exports=n.p+"align_left.60d6c585f6651a51ef26ec5887996a8a.svg"},1043:function(e,t,n){e.exports=n.p+"align_right.4ef3be989e0bdebbe9753c3fa514e936.svg"},1044:function(e,t,n){e.exports=n.p+"insert_link.c7cca32ff1ef52b876cdcff669681669.svg"},1045:function(e,t,n){e.exports=n.p+"insert_photo.5de1bb3b21da2dcc27a507c35f41f383.svg"},1046:function(e,t,n){e.exports=n.p+"quote.0fd0c1e8821b5232e81325835ce1a34b.svg"},1047:function(e,t,n){e.exports=n.p+"format_clear.51da27e0590a9c30d371d5c3b21a2881.svg"},1048:function(e,t,n){e.exports=n.p+"done.856a6a782003679dd13ad9798ed593c2.svg"},1049:function(e,t,n){e.exports=n.p+"close.6bf64fd3e7c6a47373ab109823a81058.svg"},1050:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),i.hasSupport=e}}};i.update(),t.default=i},1051:function(e,t,n){(function(i){var o,r;
  /**!
   * Sortable
   * @author	RubaXa   <trash@rubaxa.org>
   * @author	owenm    <owen23355@gmail.com>
   * @license MIT
   */
  /**!
   * Sortable
   * @author	RubaXa   <trash@rubaxa.org>
   * @author	owenm    <owen23355@gmail.com>
   * @license MIT
   */
  !function(i){"use strict";void 0===(r="function"==typeof(o=i)?o.call(t,n,t,e):o)||(e.exports=r)}(function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var e,t,n,o,r,a,s,l,c,u,d,h,p,f,m,g,v,y,b,w,x,C,k,E,T,S,A,D,_=[],N=!1,P=!1,O=!1,L=[],M=!1,I=!1,F=[],R=/\s+/g,j="Sortable"+(new Date).getTime(),q=window,H=q.document,z=q.parseInt,$=q.setTimeout,B=i||q.Zepto,W=q.Polymer,U={capture:!1,passive:!1},V=!!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),X=!!navigator.userAgent.match(/Edge/i),Y=!!navigator.userAgent.match(/firefox/i),Q=!(!navigator.userAgent.match(/safari/i)||navigator.userAgent.match(/chrome/i)||navigator.userAgent.match(/android/i)),K=!!navigator.userAgent.match(/iP(ad|od|hone)/i),G=X||V?"cssFloat":"float",Z="draggable"in H.createElement("div"),J=function(){if(V)return!1;var e=H.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),ee=!1,te=!1,ne=Math.abs,ie=Math.min,oe=Math.max,re=[],ae=function(e,t){var n=Ee(e),i=z(n.width)-z(n.paddingLeft)-z(n.paddingRight)-z(n.borderLeftWidth)-z(n.borderRightWidth),o=Pe(e,0,t),r=Pe(e,1,t),a=o&&Ee(o),s=r&&Ee(r),l=a&&z(a.marginLeft)+z(a.marginRight)+$e(o).width,c=s&&z(s.marginLeft)+z(s.marginRight)+$e(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&"none"!==a.float){var u="left"===a.float?"left":"right";return!r||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[G]||r&&"none"===n[G]&&l+c>i)?"vertical":"horizontal"},se=function(e,t){if(!e||!e.getBoundingClientRect)return le();var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Ee(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n||!n.getBoundingClientRect||n===H.body)return le();if(i||t)return n;i=!0}}}while(n=n.parentNode);return le()},le=function(){return V?H.documentElement:H.scrollingElement},ce=function(e,t,n){e.scrollLeft+=t,e.scrollTop+=n},ue=Re(function(e,t,n,i){if(t.scroll){var o=n?n[j]:window,r=t.scrollSensitivity,a=t.scrollSpeed,s=e.clientX,d=e.clientY,h=le(),p=!1;c!==n&&(de(),l=t.scroll,u=t.scrollFn,!0===l&&(l=se(n,!0),c=l));var f=0,m=l;do{var g,v,y,b,w,C,k,E,T,S=m,A=$e(S),D=A.top,P=A.bottom,O=A.left,L=A.right,M=A.width,I=A.height;if(g=S.scrollWidth,v=S.scrollHeight,y=Ee(S),E=S.scrollLeft,T=S.scrollTop,S===h?(C=M<g&&("auto"===y.overflowX||"scroll"===y.overflowX||"visible"===y.overflowX),k=I<v&&("auto"===y.overflowY||"scroll"===y.overflowY||"visible"===y.overflowY)):(C=M<g&&("auto"===y.overflowX||"scroll"===y.overflowX),k=I<v&&("auto"===y.overflowY||"scroll"===y.overflowY)),b=C&&(ne(L-s)<=r&&E+M<g)-(ne(O-s)<=r&&!!E),w=k&&(ne(P-d)<=r&&T+I<v)-(ne(D-d)<=r&&!!T),!_[f])for(var F=0;F<=f;F++)_[F]||(_[F]={});_[f].vx==b&&_[f].vy==w&&_[f].el===S||(_[f].el=S,_[f].vx=b,_[f].vy=w,clearInterval(_[f].pid),!S||0==b&&0==w||(p=!0,_[f].pid=setInterval(function(){i&&0===this.layer&&(ye.active._emulateDragOver(!0),ye.active._onTouchMove(x,!0));var t=_[this.layer].vy?_[this.layer].vy*a:0,n=_[this.layer].vx?_[this.layer].vx*a:0;"function"==typeof u&&"continue"!==u.call(o,n,t,e,x,_[this.layer].el)||ce(_[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&m!==h&&(m=se(m,!1)));N=p}},30),de=function(){_.forEach(function(e){clearInterval(e.pid)}),_=[]},he=function(e){function t(e,n){return function(i,o,r,a){var s=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,o,r,a),n)(i,o,r,a);var l=(n?i:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},i=e.group;i&&"object"==typeof i||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},pe=function(t){e&&e.parentNode&&e.parentNode[j]&&e.parentNode[j]._computeIsAligned(t)},fe=function(){!J&&n&&Ee(n,"display","none")},me=function(){!J&&n&&Ee(n,"display","")};H.addEventListener("click",function(e){if(O)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),O=!1,!1},!0);var ge,ve=function(t){if(e){var n=function(e,t){for(var n=0;n<L.length;n++)if(!Oe(L[n])){var i=$e(L[n]),o=L[n][j].options.emptyInsertThreshold,r=e>=i.left-o&&e<=i.right+o,a=t>=i.top-o&&t<=i.bottom+o;if(o&&r&&a)return L[n]}}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(n){var i={};for(var o in t)i[o]=t[o];i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[j]._onDragOver(i)}}};function ye(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, not "+{}.toString.call(e);this.el=e,this.options=t=je({},t),e[j]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0,draggable:/[uo]l/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ae(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:z(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==ye.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in n)!(i in t)&&(t[i]=n[i]);for(var o in he(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Z,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?xe(e,"pointerdown",this._onTapStart):(xe(e,"mousedown",this._onTapStart),xe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(xe(e,"dragover",this),xe(e,"dragenter",this)),L.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[])}function be(e,t,n,i){if(e){n=n||H;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Fe(e,t):Fe(e,t))||i&&e===n)return e;if(e===n)break}while(e=we(e))}return null}function we(e){return e.host&&e!==H&&e.host.nodeType?e.host:e.parentNode}function xe(e,t,n){e.addEventListener(t,n,!V&&U)}function Ce(e,t,n){e.removeEventListener(t,n,!V&&U)}function ke(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(R," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(R," ")}}function Ee(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return H.defaultView&&H.defaultView.getComputedStyle?n=H.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function Te(e){var t="";do{var n=Ee(e,"transform");n&&"none"!==n&&(t=n+" "+t)}while(e=e.parentNode);return window.DOMMatrix?new DOMMatrix(t):window.WebKitCSSMatrix?new WebKitCSSMatrix(t):window.CSSMatrix?new CSSMatrix(t):void 0}function Se(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function Ae(e,t,n,i,r,a,s,l,c,u,d){var h,p=(e=e||t[j]).options,f="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||V||X?(h=H.createEvent("Event")).initEvent(n,!0,!0):h=new CustomEvent(n,{bubbles:!0,cancelable:!0}),h.to=r||t,h.from=a||t,h.item=i||t,h.clone=o,h.oldIndex=s,h.newIndex=l,h.oldDraggableIndex=c,h.newDraggableIndex=u,h.originalEvent=d,h.pullMode=g?g.lastPutMode:void 0,t&&t.dispatchEvent(h),p[f]&&p[f].call(e,h)}function De(e,t,n,i,o,r,a,s){var l,c,u=e[j],d=u.options.onMove;return!window.CustomEvent||V||X?(l=H.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||$e(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function _e(e){e.draggable=!1}function Ne(){ee=!1}function Pe(t,i,o){for(var r=0,a=0,s=t.children;a<s.length;){if("none"!==s[a].style.display&&s[a]!==n&&s[a]!==e&&be(s[a],o.draggable,t,!1)){if(r===i)return s[a];r++}a++}return null}function Oe(e){for(var t=e.lastElementChild;t&&(t===n||"none"===Ee(t,"display"));)t=t.previousElementSibling;return t||null}function Le(t){return Ie(e)<Ie(t)?1:-1}function Me(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function Ie(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"===e.nodeName.toUpperCase()||e===o||t&&!Fe(e,t)||n++;return n}function Fe(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Re(e,t){return function(){if(!ge){var n=arguments,i=this;ge=$(function(){1===n.length?e.call(i,n[0]):e.apply(i,n),ge=void 0},t)}}}function je(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function qe(e){return W&&W.dom?W.dom(e).cloneNode(!0):B?B(e).clone(!0)[0]:e.cloneNode(!0)}function He(e){return $(e,0)}function ze(e){return clearTimeout(e)}function $e(e,t,n,i){if(e.getBoundingClientRect||e===q){var o,r,a,s,l,c,u;if(e!==q&&e!==le()?(r=(o=e.getBoundingClientRect()).top,a=o.left,s=o.bottom,l=o.right,c=o.height,u=o.width):(r=0,a=0,s=window.innerHeight,l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),i&&e!==q&&(n=n||e.parentNode,!V))do{if(n&&n.getBoundingClientRect&&"none"!==Ee(n,"transform")){var d=n.getBoundingClientRect();r-=d.top+z(Ee(n,"border-top-width")),a-=d.left+z(Ee(n,"border-left-width")),s=r+o.height,l=a+o.width;break}}while(n=n.parentNode);if(t&&e!==q){var h=Te(n||e),p=h&&h.a,f=h&&h.d;h&&(s=(r/=f)+(c/=f),l=(a/=p)+(u/=p))}return{top:r,left:a,bottom:s,right:l,width:u,height:c}}}function Be(e,t){for(var n=se(e,!0),i=$e(e)[t];n;){var o=$e(n)[t];if(!("top"===t||"left"===t?i>=o:i<=o))return n;if(n===le())break;n=se(n,!1)}return!1}function We(e){var t=0,n=0,i=le();if(e)do{var o=Te(e),r=o.a,a=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,n]}return ye.prototype={constructor:ye,_computeIsAligned:function(t){var i;if(n&&!J?(fe(),i=H.elementFromPoint(t.clientX,t.clientY),me()):i=t.target,i=be(i,this.options.draggable,this.el,!1),!te&&e&&e.parentNode===this.el){for(var o,r,a,s,l,c,u,d,h=this.el.children,p=0;p<h.length;p++)be(h[p],this.options.draggable,this.el,!1)&&h[p]!==i&&(h[p].sortableMouseAligned=(o=t.clientX,r=t.clientY,a=h[p],s=this._getDirection(t,null),this.options,l=void 0,c=void 0,u=void 0,d=void 0,l=$e(a),c="vertical"===s?l.left:l.top,u="vertical"===s?l.right:l.bottom,c<(d="vertical"===s?o:r)&&d<u));be(i,this.options.draggable,this.el,!0)||(k=null),te=!0,$(function(){te=!1},30)}},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,e):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n,i,o=this,r=this.el,a=this.options,l=a.preventOnFilter,c=t.type,u=t.touches&&t.touches[0],d=(u||t).target,h=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||d,p=a.filter;if(function(e){re.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&re.push(i)}}(r),!e&&!(/mousedown|pointerdown/.test(c)&&0!==t.button||a.disabled||h.isContentEditable||(d=be(d,a.draggable,r,!1),s===d))){if(n=Ie(d),i=Ie(d,a.draggable),"function"==typeof p){if(p.call(this,t,d,this))return Ae(o,h,"filter",d,r,r,n,void 0,i),void(l&&t.cancelable&&t.preventDefault())}else if(p&&(p=p.split(",").some(function(e){if(e=be(h,e.trim(),r,!1))return Ae(o,e,"filter",d,r,r,n,void 0,i),!0})))return void(l&&t.cancelable&&t.preventDefault());a.handle&&!be(h,a.handle,r,!1)||this._prepareDragStart(t,u,d,n,i)}}},_handleAutoScroll:function(t,n){if(e&&this.options.scroll){var i=t.clientX,o=t.clientY,r=H.elementFromPoint(i,o),a=this;if(n||X||V||Q){ue(t,a.options,r,n);var s=se(r,!0);!N||v&&i===y&&o===b||(v&&clearInterval(v),v=setInterval(function(){if(e){var r=se(H.elementFromPoint(i,o),!0);r!==s&&(s=r,de(),ue(t,a.options,s,n))}},10),y=i,b=o)}else{if(!a.options.bubbleScroll||se(r,!0)===le())return void de();ue(t,a.options,se(r,!1),!1)}}},_prepareDragStart:function(n,i,o,l,c){var u,h=this,f=h.el,g=h.options,v=f.ownerDocument;o&&!e&&o.parentNode===f&&(r=f,t=(e=o).parentNode,a=e.nextSibling,s=o,m=g.group,d=l,p=c,w={target:e,clientX:(i||n).clientX,clientY:(i||n).clientY},this._lastX=(i||n).clientX,this._lastY=(i||n).clientY,e.style["will-change"]="all",e.style.transition="",e.style.transform="",u=function(){h._disableDelayedDragEvents(),!Y&&h.nativeDraggable&&(e.draggable=!0),h._triggerDragStart(n,i),Ae(h,r,"choose",e,r,r,d,void 0,p),ke(e,g.chosenClass,!0)},g.ignore.split(",").forEach(function(t){Se(e,t.trim(),_e)}),xe(v,"dragover",ve),xe(v,"mousemove",ve),xe(v,"touchmove",ve),xe(v,"mouseup",h._onDrop),xe(v,"touchend",h._onDrop),xe(v,"touchcancel",h._onDrop),Y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,e.draggable=!0),!g.delay||g.delayOnTouchOnly&&!i||this.nativeDraggable&&(X||V)?u():(xe(v,"mouseup",h._disableDelayedDrag),xe(v,"touchend",h._disableDelayedDrag),xe(v,"touchcancel",h._disableDelayedDrag),xe(v,"mousemove",h._delayedDragTouchMoveHandler),xe(v,"touchmove",h._delayedDragTouchMoveHandler),g.supportPointer&&xe(v,"pointermove",h._delayedDragTouchMoveHandler),h._dragStartTimer=$(u,g.delay)))},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;oe(ne(t.clientX-this._lastX),ne(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){e&&_e(e),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ce(e,"mouseup",this._disableDelayedDrag),Ce(e,"touchend",this._disableDelayedDrag),Ce(e,"touchcancel",this._disableDelayedDrag),Ce(e,"mousemove",this._delayedDragTouchMoveHandler),Ce(e,"touchmove",this._delayedDragTouchMoveHandler),Ce(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||("touch"==t.pointerType?t:null),!this.nativeDraggable||n?this.options.supportPointer?xe(H,"pointermove",this._onTouchMove):xe(H,n?"touchmove":"mousemove",this._onTouchMove):(xe(e,"dragend",this),xe(r,"dragstart",this._onDragStart));try{H.selection?He(function(){H.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(t,n){if(P=!1,r&&e){this.nativeDraggable&&(xe(H,"dragover",this._handleAutoScroll),xe(H,"dragover",pe));var i=this.options;!t&&ke(e,i.dragClass,!1),ke(e,i.ghostClass,!0),Ee(e,"transform",""),ye.active=this,t&&this._appendGhost(),Ae(this,r,"start",e,r,r,d,void 0,p,void 0,n)}else this._nulling()},_emulateDragOver:function(t){if(x){if(this._lastX===x.clientX&&this._lastY===x.clientY&&!t)return;this._lastX=x.clientX,this._lastY=x.clientY,fe();for(var n=H.elementFromPoint(x.clientX,x.clientY),i=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(x.clientX,x.clientY))!==i;)i=n;if(i)do{if(i[j])if(i[j]._onDragOver({clientX:x.clientX,clientY:x.clientY,target:n,rootEl:i})&&!this.options.dragoverBubble)break;n=i}while(i=i.parentNode);e.parentNode[j]._computeIsAligned(x),me()}},_onTouchMove:function(e,t){if(w){var i=this.options,o=i.fallbackTolerance,r=i.fallbackOffset,a=e.touches?e.touches[0]:e,s=n&&Te(n),l=n&&s&&s.a,c=n&&s&&s.d,u=K&&A&&We(A),d=(a.clientX-w.clientX+r.x)/(l||1)+(u?u[0]-F[0]:0)/(l||1),h=(a.clientY-w.clientY+r.y)/(c||1)+(u?u[1]-F[1]:0)/(c||1),p=e.touches?"translate3d("+d+"px,"+h+"px,0)":"translate("+d+"px,"+h+"px)";if(!ye.active&&!P){if(o&&ie(ne(a.clientX-this._lastX),ne(a.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}!t&&this._handleAutoScroll(a,!0),C=!0,x=a,Ee(n,"webkitTransform",p),Ee(n,"mozTransform",p),Ee(n,"msTransform",p),Ee(n,"transform",p),e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!n){var t=this.options.fallbackOnBody?H.body:r,i=$e(e,!0,t,!K),o=(Ee(e),this.options);if(K){for(A=t;"static"===Ee(A,"position")&&"none"===Ee(A,"transform")&&A!==H;)A=A.parentNode;if(A!==H){var a=$e(A,!0);i.top-=a.top,i.left-=a.left}A!==H.body&&A!==H.documentElement?(A===H&&(A=le()),i.top+=A.scrollTop,i.left+=A.scrollLeft):A=le(),F=We(A)}ke(n=e.cloneNode(!0),o.ghostClass,!1),ke(n,o.fallbackClass,!0),ke(n,o.dragClass,!0),Ee(n,"box-sizing","border-box"),Ee(n,"margin",0),Ee(n,"top",i.top),Ee(n,"left",i.left),Ee(n,"width",i.width),Ee(n,"height",i.height),Ee(n,"opacity","0.8"),Ee(n,"position",K?"absolute":"fixed"),Ee(n,"zIndex","100000"),Ee(n,"pointerEvents","none"),t.appendChild(n)}},_onDragStart:function(t,n){var i=this,a=t.dataTransfer,s=i.options;(o=qe(e)).draggable=!1,o.style["will-change"]="",this._hideClone(),ke(o,i.options.chosenClass,!1),i._cloneId=He(function(){i.options.removeCloneOnHide||r.insertBefore(o,e),Ae(i,r,"clone",e)}),!n&&ke(e,s.dragClass,!0),n?(O=!0,i._loopId=setInterval(i._emulateDragOver,50)):(Ce(H,"mouseup",i._onDrop),Ce(H,"touchend",i._onDrop),Ce(H,"touchcancel",i._onDrop),a&&(a.effectAllowed="move",s.setData&&s.setData.call(i,a,e)),xe(H,"drop",i),Ee(e,"transform","translateZ(0)")),P=!0,i._dragStartId=He(i._dragStarted.bind(i,n,t)),xe(H,"selectstart",i),Q&&Ee(H.body,"user-select","none")},_onDragOver:function(n){var i,o,s,l=this.el,c=n.target,u=this.options,h=u.group,f=ye.active,v=m===h,y=u.sort,b=this;if(!ee){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),C=!0,c=be(c,u.draggable,l,!0),e.contains(n.target)||c.animated)return W(!1);if(c!==e&&(O=!1),f&&!u.disabled&&(v?y||(s=!r.contains(e)):g===this||(this.lastPutMode=m.checkPull(this,f,e,n))&&h.checkPut(this,f,e,n))){var w=this._getDirection(n,c);if(i=$e(e),s)return this._hideClone(),t=r,a?r.insertBefore(e,a):r.appendChild(e),W(!0);var x=Oe(l);if(!x||function(e,t,n){var i=$e(Oe(n)),o="vertical"===t?e.clientY:e.clientX,r="vertical"===t?e.clientX:e.clientY,a="vertical"===t?i.bottom:i.right,s="vertical"===t?i.left:i.top,l="vertical"===t?i.right:i.bottom;return"vertical"===t?r>l+10||r<=l&&o>a&&r>=s:o>a&&r>s||o<=a&&r>l+10}(n,w,l)&&!x.animated){if(x&&l===n.target&&(c=x),c&&(o=$e(c)),v?f._hideClone():f._showClone(this),!1!==De(r,l,e,i,c,o,n,!!c))return l.appendChild(e),t=l,D=null,U(),W(!0)}else if(c&&c!==e&&c.parentNode===l){var A,_=0,N=c.sortableMouseAligned,P=e.parentNode!==l,L="vertical"===w?"top":"left",F=Be(c,"top")||Be(e,"top"),R=F?F.scrollTop:void 0;if(k!==c&&(T=null,A=$e(c)[L],M=!1),function(t,n,i){var o=t===e&&D||$e(t),r=n===e&&D||$e(n),a="vertical"===i?o.left:o.top,s="vertical"===i?o.right:o.bottom,l="vertical"===i?o.width:o.height,c="vertical"===i?r.left:r.top,u="vertical"===i?r.right:r.bottom,d="vertical"===i?r.width:r.height;return a===c||s===u||a+l/2===c+d/2}(e,c,w)&&N||P||F||u.invertSwap||"insert"===T||"swap"===T?("swap"!==T&&(I=u.invertSwap||P),_=function(t,n,i,o,r,a,s){var l=$e(n),c="vertical"===i?t.clientY:t.clientX,u="vertical"===i?l.height:l.width,d="vertical"===i?l.top:l.left,h="vertical"===i?l.bottom:l.right,p=$e(e),f=!1;if(!a)if(s&&S<u*o)if(!M&&(1===E?c>d+u*r/2:c<h-u*r/2)&&(M=!0),M)f=!0;else{"vertical"===i?p.top:p.left,"vertical"===i?p.bottom:p.right;if(1===E?c<d+S:c>h-S)return-1*E}else if(c>d+u*(1-o)/2&&c<h-u*(1-o)/2)return Le(n);if((f=f||a)&&(c<d+u*r/2||c>h-u*r/2))return c>d+u/2?1:-1;return 0}(n,c,w,u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,I,k===c),T="swap"):(_=Le(c),T="insert"),0===_)return W(!1);D=null,k=c,E=_,o=$e(c);var q=c.nextElementSibling,z=!1,B=De(r,l,e,i,c,o,n,z=1===_);if(!1!==B)return 1!==B&&-1!==B||(z=1===B),ee=!0,$(Ne,30),v?f._hideClone():f._showClone(this),z&&!q?l.appendChild(e):c.parentNode.insertBefore(e,z?q:c),F&&ce(F,0,R-F.scrollTop),t=e.parentNode,void 0===A||I||(S=ne(A-$e(c)[L])),U(),W(!0)}if(l.contains(e))return W(!1)}return!1}function W(t){return t&&(v?f._hideClone():f._showClone(b),f&&(ke(e,g?g.options.ghostClass:f.options.ghostClass,!1),ke(e,u.ghostClass,!0)),g!==b&&b!==ye.active?g=b:b===ye.active&&(g=null),i&&b._animate(i,e),c&&o&&b._animate(o,c)),(c===e&&!e.animated||c===l&&!c.animated)&&(k=null),u.dragoverBubble||n.rootEl||c===H||(b._handleAutoScroll(n),e.parentNode[j]._computeIsAligned(n),!t&&ve(n)),!u.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),!0}function U(){Ae(b,r,"change",c,l,r,d,Ie(e),p,Ie(e,u.draggable),n)}},_animate:function(t,n){var i=this.options.animation;if(i){var o=$e(n);if(n===e&&(D=o),1===t.nodeType&&(t=$e(t)),t.left+t.width/2!==o.left+o.width/2||t.top+t.height/2!==o.top+o.height/2){var r=Te(this.el),a=r&&r.a,s=r&&r.d;Ee(n,"transition","none"),Ee(n,"transform","translate3d("+(t.left-o.left)/(a||1)+"px,"+(t.top-o.top)/(s||1)+"px,0)"),this._repaint(n),Ee(n,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),Ee(n,"transform","translate3d(0,0,0)")}"number"==typeof n.animated&&clearTimeout(n.animated),n.animated=$(function(){Ee(n,"transition",""),Ee(n,"transform",""),n.animated=!1},i)}},_repaint:function(e){return e.offsetWidth},_offMoveEvents:function(){Ce(H,"touchmove",this._onTouchMove),Ce(H,"pointermove",this._onTouchMove),Ce(H,"dragover",ve),Ce(H,"mousemove",ve),Ce(H,"touchmove",ve)},_offUpEvents:function(){var e=this.el.ownerDocument;Ce(e,"mouseup",this._onDrop),Ce(e,"touchend",this._onDrop),Ce(e,"pointerup",this._onDrop),Ce(e,"touchcancel",this._onDrop),Ce(H,"selectstart",this)},_onDrop:function(i){var s=this.el,l=this.options;P=!1,N=!1,I=!1,M=!1,clearInterval(this._loopId),clearInterval(v),de(),clearTimeout(ge),ge=void 0,clearTimeout(this._dragStartTimer),ze(this._cloneId),ze(this._dragStartId),Ce(H,"mousemove",this._onTouchMove),this.nativeDraggable&&(Ce(H,"drop",this),Ce(s,"dragstart",this._onDragStart),Ce(H,"dragover",this._handleAutoScroll),Ce(H,"dragover",pe)),Q&&Ee(H.body,"user-select",""),this._offMoveEvents(),this._offUpEvents(),i&&(C&&(i.cancelable&&i.preventDefault(),!l.dropBubble&&i.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),(r===t||g&&"clone"!==g.lastPutMode)&&o&&o.parentNode&&o.parentNode.removeChild(o),e&&(this.nativeDraggable&&Ce(e,"dragend",this),_e(e),e.style["will-change"]="",ke(e,g?g.options.ghostClass:this.options.ghostClass,!1),ke(e,this.options.chosenClass,!1),Ae(this,r,"unchoose",e,t,r,d,null,p,null,i),r!==t?(h=Ie(e),f=Ie(e,l.draggable),h>=0&&(Ae(null,t,"add",e,t,r,d,h,p,f,i),Ae(this,r,"remove",e,t,r,d,h,p,f,i),Ae(null,t,"sort",e,t,r,d,h,p,f,i),Ae(this,r,"sort",e,t,r,d,h,p,f,i)),g&&g.save()):e.nextSibling!==a&&(h=Ie(e),f=Ie(e,l.draggable),h>=0&&(Ae(this,r,"update",e,t,r,d,h,p,f,i),Ae(this,r,"sort",e,t,r,d,h,p,f,i))),ye.active&&(null!=h&&-1!==h||(h=d,f=p),Ae(this,r,"end",e,t,r,d,h,p,f,i),this.save()))),this._nulling()},_nulling:function(){r=e=t=n=a=o=s=l=c=_.length=v=y=b=w=x=C=h=d=k=E=D=g=m=ye.active=null,re.forEach(function(e){e.checked=!0}),re.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":e&&(this._onDragOver(t),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)be(e=n[i],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Me(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach(function(e,i){var o=n.children[i];be(o,this.options.draggable,n,!1)&&(t[e]=o)},this),e.forEach(function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return be(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];n[e]=t,"group"===e&&he(n)},destroy:function(){var e=this.el;e[j]=null,Ce(e,"mousedown",this._onTapStart),Ce(e,"touchstart",this._onTapStart),Ce(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ce(e,"dragover",this),Ce(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),L.splice(L.indexOf(this.el),1),this.el=e=null},_hideClone:function(){o.cloneHidden||(Ee(o,"display","none"),o.cloneHidden=!0,o.parentNode&&this.options.removeCloneOnHide&&o.parentNode.removeChild(o))},_showClone:function(t){"clone"===t.lastPutMode?o.cloneHidden&&(r.contains(e)&&!this.options.group.revertClone?r.insertBefore(o,e):a?r.insertBefore(o,a):r.appendChild(o),this.options.group.revertClone&&this._animate(e,o),Ee(o,"display",""),o.cloneHidden=!1):this._hideClone()}},xe(H,"touchmove",function(e){(ye.active||P)&&e.cancelable&&e.preventDefault()}),ye.utils={on:xe,off:Ce,css:Ee,find:Se,is:function(e,t){return!!be(e,t,e,!1)},extend:je,throttle:Re,closest:be,toggleClass:ke,clone:qe,index:Ie,nextTick:He,cancelNextTick:ze,detectDirection:ae,getChild:Pe},ye.create=function(e,t){return new ye(e,t)},ye.version="1.9.0",ye})}).call(this,n(36))},1073:function(e,t,n){(function(e,i,o,r){var a,s,l,c,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}}();function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}void 0===e&&(e=i=n(36)),s=[n(36)],void 0===(l=function(e){return function(e){e.easing.jswing=e.easing.swing;var t=Math.pow,n=Math.sqrt,i=Math.sin,o=Math.cos,r=Math.PI,a=1.70158,s=1.525*a,l=2*r/3,c=2*r/4.5;function u(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}e.extend(e.easing,{def:"easeOutQuad",swing:function(t){return e.easing[e.easing.def](t)},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-t(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-t(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-t(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-t(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-t(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-t(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-t(-2*e+2,5)/2},easeInSine:function(e){return 1-o(e*r/2)},easeOutSine:function(e){return i(e*r/2)},easeInOutSine:function(e){return-(o(r*e)-1)/2},easeInExpo:function(e){return 0===e?0:t(2,10*e-10)},easeOutExpo:function(e){return 1===e?1:1-t(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?t(2,20*e-10)/2:(2-t(2,-20*e+10))/2},easeInCirc:function(e){return 1-n(1-t(e,2))},easeOutCirc:function(e){return n(1-t(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-n(1-t(2*e,2)))/2:(n(1-t(-2*e+2,2))+1)/2},easeInElastic:function(e){return 0===e?0:1===e?1:-t(2,10*e-10)*i((10*e-10.75)*l)},easeOutElastic:function(e){return 0===e?0:1===e?1:t(2,-10*e)*i((10*e-.75)*l)+1},easeInOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-t(2,20*e-10)*i((20*e-11.125)*c)/2:t(2,-20*e+10)*i((20*e-11.125)*c)/2+1},easeInBack:function(e){return 2.70158*e*e*e-a*e*e},easeOutBack:function(e){return 1+2.70158*t(e-1,3)+a*t(e-1,2)},easeInOutBack:function(e){return e<.5?t(2*e,2)*(7.189819*e-s)/2:(t(2*e-2,2)*((s+1)*(2*e-2)+s)+2)/2},easeInBounce:function(e){return 1-u(1-e)},easeOutBounce:u,easeInOutBounce:function(e){return e<.5?(1-u(1-2*e))/2:(1+u(2*e-1))/2}})}(e)}.apply(t,s))||(r.exports=l),e.extend(e.easing,{easeInOutMaterial:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t+n:i/4*((t-=2)*t*t+2)+n}}),/*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
  /*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
  /*! Note that this has been modified by Materialize to confirm that Velocity is not already being imported. */
  e.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(function(e){function t(e){var t=e.length,i=n.type(e);return"function"!==i&&!n.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e))}if(!o){var n=function(e,t){return new n.fn.init(e,t)};n.isWindow=function(e){return null!=e&&e==e.window},n.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?r[s.call(e)]||"object":typeof e},n.isArray=Array.isArray||function(e){return"array"===n.type(e)},n.isPlainObject=function(e){var t;if(!e||"object"!==n.type(e)||e.nodeType||n.isWindow(e))return!1;try{if(e.constructor&&!a.call(e,"constructor")&&!a.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||a.call(e,t)},n.each=function(e,n,i){var o=0,r=e.length,a=t(e);if(i){if(a)for(;r>o&&!1!==n.apply(e[o],i);o++);else for(o in e)if(!1===n.apply(e[o],i))break}else if(a)for(;r>o&&!1!==n.call(e[o],o,e[o]);o++);else for(o in e)if(!1===n.call(e[o],o,e[o]))break;return e},n.data=function(e,t,o){if(void 0===o){var r=(a=e[n.expando])&&i[a];if(void 0===t)return r;if(r&&t in r)return r[t]}else if(void 0!==t){var a=e[n.expando]||(e[n.expando]=++n.uuid);return i[a]=i[a]||{},i[a][t]=o,o}},n.removeData=function(e,t){var o=e[n.expando],r=o&&i[o];r&&n.each(t,function(e,t){delete r[t]})},n.extend=function(){var e,t,i,o,r,a,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==n.type(s)&&(s={}),l===c&&(s=this,l--);c>l;l++)if(null!=(r=arguments[l]))for(o in r)e=s[o],s!==(i=r[o])&&(u&&i&&(n.isPlainObject(i)||(t=n.isArray(i)))?(t?(t=!1,a=e&&n.isArray(e)?e:[]):a=e&&n.isPlainObject(e)?e:{},s[o]=n.extend(u,a,i)):void 0!==i&&(s[o]=i));return s},n.queue=function(e,i,o){if(e){i=(i||"fx")+"queue";var r=n.data(e,i);return o?(!r||n.isArray(o)?r=n.data(e,i,function(e,n){var i=n||[];return null!=e&&(t(Object(e))?function(e,t){for(var n=+t.length,i=0,o=e.length;n>i;)e[o++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[o++]=t[i++];e.length=o}(i,"string"==typeof e?[e]:e):[].push.call(i,e)),i}(o)):r.push(o),r):r||[]}},n.dequeue=function(e,t){n.each(e.nodeType?[e]:e,function(e,i){t=t||"fx";var o=n.queue(i,t),r=o.shift();"inprogress"===r&&(r=o.shift()),r&&("fx"===t&&o.unshift("inprogress"),r.call(i,function(){n.dequeue(i,t)}))})},n.fn=n.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),i=this.offset(),o=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:n(e).offset();return i.top-=parseFloat(t.style.marginTop)||0,i.left-=parseFloat(t.style.marginLeft)||0,e.style&&(o.top+=parseFloat(e.style.borderTopWidth)||0,o.left+=parseFloat(e.style.borderLeftWidth)||0),{top:i.top-o.top,left:i.left-o.left}}};var i={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var r={},a=r.hasOwnProperty,s=r.toString,l="Boolean Number String Function Array Date RegExp Object Error".split(" "),c=0;c<l.length;c++)r["[object "+l[c]+"]"]=l[c].toLowerCase();n.fn.init.prototype=n.fn,e.Velocity={Utilities:n}}}(window),c=function(){return function(t,n,i,o){function r(e){return f.isWrapped(e)?e=[].slice.call(e):f.isNode(e)&&(e=[e]),e}function a(e){var t=d.data(e,"velocity");return null===t?o:t}function s(e,t,i,o){function r(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,n){return((r(t,n)*e+a(t,n))*e+s(t))*e}function c(e,t,n){return 3*r(t,n)*e*e+2*a(t,n)*e+s(t)}function u(t,n){for(var o=0;p>o;++o){var r=c(n,e,i);if(0===r)return n;n-=(l(n,e,i)-t)/r}return n}function d(t,n,o){var r,a,s=0;do{(r=l(a=n+(o-n)/2,e,i)-t)>0?o=a:n=a}while(Math.abs(r)>m&&++s<g);return a}function h(){C=!0,(e!=t||i!=o)&&function(){for(var t=0;v>t;++t)x[t]=l(t*y,e,i)}()}var p=4,f=.001,m=1e-7,g=10,v=11,y=1/(v-1),b="Float32Array"in n;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;e=Math.min(e,1),i=Math.min(i,1),e=Math.max(e,0),i=Math.max(i,0);var x=b?new Float32Array(v):new Array(v),C=!1,k=function(n){return C||h(),e===t&&i===o?n:0===n?0:1===n?1:l(function(t){for(var n=0,o=1,r=v-1;o!=r&&x[o]<=t;++o)n+=y;var a=n+(t-x[--o])/(x[o+1]-x[o])*y,s=c(a,e,i);return s>=f?u(t,a):0==s?a:d(t,n,n+y)}(n),t,o)};k.getControlPoints=function(){return[{x:e,y:t},{x:i,y:o}]};var E="generateBezier("+[e,t,i,o]+")";return k.toString=function(){return E},k}function l(e,t){var n=e;return f.isString(e)?y.Easings[e]||(n=!1):n=f.isArray(e)&&1===e.length?function(e){return function(t){return Math.round(t*e)*(1/e)}}.apply(null,e):f.isArray(e)&&2===e.length?b.apply(null,e.concat([t])):!(!f.isArray(e)||4!==e.length)&&s.apply(null,e),!1===n&&(n=y.Easings[y.defaults.easing]?y.defaults.easing:v),n}function c(e){if(e){var t=(new Date).getTime(),n=y.State.calls.length;n>1e4&&(y.State.calls=function(e){for(var t=-1,n=e?e.length:0,i=[];++t<n;){var o=e[t];o&&i.push(o)}return i}(y.State.calls));for(var i=0;n>i;i++)if(y.State.calls[i]){var r=y.State.calls[i],s=r[0],l=r[2],h=r[3],p=!!h,m=null;h||(h=y.State.calls[i][3]=t-16);for(var g=Math.min((t-h)/l.duration,1),v=0,b=s.length;b>v;v++){var x=s[v],k=x.element;if(a(k)){var E=!1;if(l.display!==o&&null!==l.display&&"none"!==l.display){if("flex"===l.display){d.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(e,t){w.setPropertyValue(k,"display",t)})}w.setPropertyValue(k,"display",l.display)}for(var T in l.visibility!==o&&"hidden"!==l.visibility&&w.setPropertyValue(k,"visibility",l.visibility),x)if("element"!==T){var S,A=x[T],D=f.isString(A.easing)?y.Easings[A.easing]:A.easing;if(1===g)S=A.endValue;else{var _=A.endValue-A.startValue;if(S=A.startValue+_*D(g,l,_),!p&&S===A.currentValue)continue}if(A.currentValue=S,"tween"===T)m=S;else{if(w.Hooks.registered[T]){var N=w.Hooks.getRoot(T),P=a(k).rootPropertyValueCache[N];P&&(A.rootPropertyValue=P)}var O=w.setPropertyValue(k,T,A.currentValue+(0===parseFloat(S)?"":A.unitType),A.rootPropertyValue,A.scrollData);w.Hooks.registered[T]&&(a(k).rootPropertyValueCache[N]=w.Normalizations.registered[N]?w.Normalizations.registered[N]("extract",null,O[1]):O[1]),"transform"===O[0]&&(E=!0)}}l.mobileHA&&a(k).transformCache.translate3d===o&&(a(k).transformCache.translate3d="(0px, 0px, 0px)",E=!0),E&&w.flushTransformCache(k)}}l.display!==o&&"none"!==l.display&&(y.State.calls[i][2].display=!1),l.visibility!==o&&"hidden"!==l.visibility&&(y.State.calls[i][2].visibility=!1),l.progress&&l.progress.call(r[1],r[1],g,Math.max(0,h+l.duration-t),h,m),1===g&&u(i)}}y.State.isTicking&&C(c)}function u(e,t){if(!y.State.calls[e])return!1;for(var n=y.State.calls[e][0],i=y.State.calls[e][1],r=y.State.calls[e][2],s=y.State.calls[e][4],l=!1,c=0,u=n.length;u>c;c++){var h=n[c].element;if(t||r.loop||("none"===r.display&&w.setPropertyValue(h,"display",r.display),"hidden"===r.visibility&&w.setPropertyValue(h,"visibility",r.visibility)),!0!==r.loop&&(d.queue(h)[1]===o||!/\.velocityQueueEntryFlag/i.test(d.queue(h)[1]))&&a(h)){a(h).isAnimating=!1,a(h).rootPropertyValueCache={};var p=!1;d.each(w.Lists.transforms3D,function(e,t){var n=/^scale/.test(t)?1:0,i=a(h).transformCache[t];a(h).transformCache[t]!==o&&new RegExp("^\\("+n+"[^.]").test(i)&&(p=!0,delete a(h).transformCache[t])}),r.mobileHA&&(p=!0,delete a(h).transformCache.translate3d),p&&w.flushTransformCache(h),w.Values.removeClass(h,"velocity-animating")}if(!t&&r.complete&&!r.loop&&c===u-1)try{r.complete.call(i,i)}catch(e){setTimeout(function(){throw e},1)}s&&!0!==r.loop&&s(i),a(h)&&!0===r.loop&&!t&&(d.each(a(h).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),y(h,"reverse",{loop:!0,delay:r.delay})),!1!==r.queue&&d.dequeue(h,r.queue)}y.State.calls[e]=!1;for(var f=0,m=y.State.calls.length;m>f;f++)if(!1!==y.State.calls[f]){l=!0;break}!1===l&&(y.State.isTicking=!1,delete y.State.calls,y.State.calls=[])}var d,h=function(){if(i.documentMode)return i.documentMode;for(var e=7;e>4;e--){var t=i.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return o}(),p=function(){var e=0;return n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||function(t){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-e)),e=i+n,setTimeout(function(){t(i+n)},n)}}(),f={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==o&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||n.Zepto&&n.Zepto.zepto.isZ(e))},isSVG:function(e){return n.SVGElement&&e instanceof n.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},m=!1;if(t.fn&&t.fn.jquery?(d=t,m=!0):d=n.Velocity.Utilities,8>=h&&!m)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(7>=h)){var g=400,v="swing",y={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:n.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:d,Redirects:{},Easings:{},Promise:n.Promise,defaults:{queue:"",duration:g,easing:v,begin:o,complete:o,progress:o,display:o,visibility:o,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){d.data(e,"velocity",{isSVG:f.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};n.pageYOffset!==o?(y.State.scrollAnchor=n,y.State.scrollPropertyLeft="pageXOffset",y.State.scrollPropertyTop="pageYOffset"):(y.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,y.State.scrollPropertyLeft="scrollLeft",y.State.scrollPropertyTop="scrollTop");var b=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,i){var o={x:t.x+i.dx*n,v:t.v+i.dv*n,tension:t.tension,friction:t.friction};return{dx:o.v,dv:e(o)}}function n(n,i){var o={dx:n.v,dv:e(n)},r=t(n,.5*i,o),a=t(n,.5*i,r),s=t(n,i,a),l=1/6*(o.dx+2*(r.dx+a.dx)+s.dx),c=1/6*(o.dv+2*(r.dv+a.dv)+s.dv);return n.x=n.x+l*i,n.v=n.v+c*i,n}return function e(t,i,o){var r,a,s,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0;for(t=parseFloat(t)||500,i=parseFloat(i)||20,o=o||null,l.tension=t,l.friction=i,(r=null!==o)?a=(u=e(t,i))/o*.016:a=.016;s=n(s||l,a),c.push(1+s.x),u+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return r?function(e){return c[e*(c.length-1)|0]}:u}}();y.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},d.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){y.Easings[t[0]]=s.apply(null,t[1])});var w=y.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<w.Lists.colors.length;e++){var t="color"===w.Lists.colors[e]?"0 0 0 1":"255 255 255 1";w.Hooks.templates[w.Lists.colors[e]]=["Red Green Blue Alpha",t]}var n,i,o;if(h)for(n in w.Hooks.templates){o=(i=w.Hooks.templates[n])[0].split(" ");var r=i[1].match(w.RegEx.valueSplit);"Color"===o[0]&&(o.push(o.shift()),r.push(r.shift()),w.Hooks.templates[n]=[o.join(" "),r.join(" ")])}for(n in w.Hooks.templates)for(var e in o=(i=w.Hooks.templates[n])[0].split(" ")){var a=n+o[e],s=e;w.Hooks.registered[a]=[n,s]}},getRoot:function(e){var t=w.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return w.RegEx.valueUnwrap.test(t)&&(t=t.match(w.RegEx.valueUnwrap)[1]),w.Values.isCSSNullValue(t)&&(t=w.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=w.Hooks.registered[e];if(n){var i=n[0],o=n[1];return(t=w.Hooks.cleanRootPropertyValue(i,t)).toString().match(w.RegEx.valueSplit)[o]}return t},injectValue:function(e,t,n){var i=w.Hooks.registered[e];if(i){var o,r=i[0],a=i[1];return(o=(n=w.Hooks.cleanRootPropertyValue(r,n)).toString().match(w.RegEx.valueSplit))[a]=t,o.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var i;return w.RegEx.wrappedValueAlreadyExtracted.test(n)?i=n:i=(i=n.toString().match(w.RegEx.valueUnwrap))?i[1].replace(/,(\s+)?/g," "):n,i;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return y.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var o=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=o?o[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(8>=h)switch(e){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return i?i[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){9>=h||y.State.isGingerbread||(w.Lists.transformsBase=w.Lists.transformsBase.concat(w.Lists.transforms3D));for(var e=0;e<w.Lists.transformsBase.length;e++)!function(){var t=w.Lists.transformsBase[e];w.Normalizations.registered[t]=function(e,n,i){switch(e){case"name":return"transform";case"extract":return a(n)===o||a(n).transformCache[t]===o?/^scale/i.test(t)?1:0:a(n).transformCache[t].replace(/[()]/g,"");case"inject":var r=!1;switch(t.substr(0,t.length-1)){case"translate":r=!/(%|px|em|rem|vw|vh|\d)$/i.test(i);break;case"scal":case"scale":y.State.isAndroid&&a(n).transformCache[t]===o&&1>i&&(i=1),r=!/(\d)$/i.test(i);break;case"skew":r=!/(deg|\d)$/i.test(i);break;case"rotate":r=!/(deg|\d)$/i.test(i)}return r||(a(n).transformCache[t]="("+i+")"),a(n).transformCache[t]}}}();for(e=0;e<w.Lists.colors.length;e++)!function(){var t=w.Lists.colors[e];w.Normalizations.registered[t]=function(e,n,i){switch(e){case"name":return t;case"extract":var r;if(w.RegEx.wrappedValueAlreadyExtracted.test(i))r=i;else{var a,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?a=s[i]!==o?s[i]:s.black:w.RegEx.isHex.test(i)?a="rgb("+w.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(a=s.black),r=(a||i).toString().match(w.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=h||3!==r.split(" ").length||(r+=" 1"),r;case"inject":return 8>=h?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(8>=h?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(h||y.State.isAndroid&&!y.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(y.State.prefixMatches[e])return[y.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,i=t.length;i>n;n++){var o;if(o=0===n?e:t[n]+e.replace(/^\w/,function(e){return e.toUpperCase()}),f.isString(y.State.prefixElement.style[o]))return y.State.prefixMatches[e]=o,[o,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t;return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,t,i,r){function s(e,t){function i(){u&&w.setPropertyValue(e,"display","none")}var l=0;if(8>=h)l=d.css(e,t);else{var c,u=!1;if(/^(width|height)$/.test(t)&&0===w.getPropertyValue(e,"display")&&(u=!0,w.setPropertyValue(e,"display",w.Values.getDisplayType(e))),!r){if("height"===t&&"border-box"!==w.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var p=e.offsetHeight-(parseFloat(w.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(w.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(w.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(w.getPropertyValue(e,"paddingBottom"))||0);return i(),p}if("width"===t&&"border-box"!==w.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var f=e.offsetWidth-(parseFloat(w.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(w.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(w.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(w.getPropertyValue(e,"paddingRight"))||0);return i(),f}}c=a(e)===o?n.getComputedStyle(e,null):a(e).computedStyle?a(e).computedStyle:a(e).computedStyle=n.getComputedStyle(e,null),"borderColor"===t&&(t="borderTopColor"),(""===(l=9===h&&"filter"===t?c.getPropertyValue(t):c[t])||null===l)&&(l=e.style[t]),i()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(t)){var m=s(e,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(t))&&(l=d(e).position()[t]+"px")}return l}var l;if(w.Hooks.registered[t]){var c=t,u=w.Hooks.getRoot(c);i===o&&(i=w.getPropertyValue(e,w.Names.prefixCheck(u)[0])),w.Normalizations.registered[u]&&(i=w.Normalizations.registered[u]("extract",e,i)),l=w.Hooks.extractValue(c,i)}else if(w.Normalizations.registered[t]){var p,f;"transform"!==(p=w.Normalizations.registered[t]("name",e))&&(f=s(e,w.Names.prefixCheck(p)[0]),w.Values.isCSSNullValue(f)&&w.Hooks.templates[t]&&(f=w.Hooks.templates[t][1])),l=w.Normalizations.registered[t]("extract",e,f)}if(!/^[\d-]/.test(l))if(a(e)&&a(e).isSVG&&w.Names.SVGAttribute(t))if(/^(height|width)$/i.test(t))try{l=e.getBBox()[t]}catch(e){l=0}else l=e.getAttribute(t);else l=s(e,w.Names.prefixCheck(t)[0]);return w.Values.isCSSNullValue(l)&&(l=0),y.debug>=2&&console.log("Get "+t+": "+l),l},setPropertyValue:function(e,t,i,o,r){var s=t;if("scroll"===t)r.container?r.container["scroll"+r.direction]=i:"Left"===r.direction?n.scrollTo(i,r.alternateValue):n.scrollTo(r.alternateValue,i);else if(w.Normalizations.registered[t]&&"transform"===w.Normalizations.registered[t]("name",e))w.Normalizations.registered[t]("inject",e,i),s="transform",i=a(e).transformCache[t];else{if(w.Hooks.registered[t]){var l=t,c=w.Hooks.getRoot(t);o=o||w.getPropertyValue(e,c),i=w.Hooks.injectValue(l,i,o),t=c}if(w.Normalizations.registered[t]&&(i=w.Normalizations.registered[t]("inject",e,i),t=w.Normalizations.registered[t]("name",e)),s=w.Names.prefixCheck(t)[0],8>=h)try{e.style[s]=i}catch(e){y.debug&&console.log("Browser does not support ["+i+"] for ["+s+"]")}else a(e)&&a(e).isSVG&&w.Names.SVGAttribute(t)?e.setAttribute(t,i):e.style[s]=i;y.debug>=2&&console.log("Set "+t+" ("+s+"): "+i)}return[s,i]},flushTransformCache:function(e){function t(t){return parseFloat(w.getPropertyValue(e,t))}var n="";if((h||y.State.isAndroid&&!y.State.isChrome)&&a(e).isSVG){var i={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};d.each(a(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),i[e]&&(n+=e+"("+i[e].join(" ")+") ",delete i[e])})}else{var o,r;d.each(a(e).transformCache,function(t){return o=a(e).transformCache[t],"transformPerspective"===t?(r=o,!0):(9===h&&"rotateZ"===t&&(t="rotate"),void(n+=t+o+" "))}),r&&(n="perspective"+r+" "+n)}w.setPropertyValue(e,"transform",n)}};w.Hooks.register(),w.Normalizations.register(),y.hook=function(e,t,n){var i=o;return e=r(e),d.each(e,function(e,r){if(a(r)===o&&y.init(r),n===o)i===o&&(i=y.CSS.getPropertyValue(r,t));else{var s=y.CSS.setPropertyValue(r,t,n);"transform"===s[0]&&y.CSS.flushTransformCache(r),i=s}}),i};var x=function(){function e(){return s?A.promise||null:h}function t(){function e(e){function h(e,t){var n=o,i=o,a=o;return f.isArray(e)?(n=e[0],!f.isArray(e[1])&&/^[\d-]/.test(e[1])||f.isFunction(e[1])||w.RegEx.isHex.test(e[1])?a=e[1]:(f.isString(e[1])&&!w.RegEx.isHex.test(e[1])||f.isArray(e[1]))&&(i=t?e[1]:l(e[1],s.duration),e[2]!==o&&(a=e[2]))):n=e,t||(i=i||s.easing),f.isFunction(n)&&(n=n.call(r,E,k)),f.isFunction(a)&&(a=a.call(r,E,k)),[n||0,i,a]}function p(e,t){var n,i;return i=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=w.Values.getUnitType(e)),[i,n]}function g(){var e={myParent:r.parentNode||i.body,position:w.getPropertyValue(r,"position"),fontSize:w.getPropertyValue(r,"fontSize")},t=e.position===M.lastPosition&&e.myParent===M.lastParent,o=e.fontSize===M.lastFontSize;M.lastParent=e.myParent,M.lastPosition=e.position,M.lastFontSize=e.fontSize;var s=100,l={};if(o&&t)l.emToPx=M.lastEmToPx,l.percentToPxWidth=M.lastPercentToPxWidth,l.percentToPxHeight=M.lastPercentToPxHeight;else{var c=a(r).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");y.init(c),e.myParent.appendChild(c),d.each(["overflow","overflowX","overflowY"],function(e,t){y.CSS.setPropertyValue(c,t,"hidden")}),y.CSS.setPropertyValue(c,"position",e.position),y.CSS.setPropertyValue(c,"fontSize",e.fontSize),y.CSS.setPropertyValue(c,"boxSizing","content-box"),d.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){y.CSS.setPropertyValue(c,t,s+"%")}),y.CSS.setPropertyValue(c,"paddingLeft",s+"em"),l.percentToPxWidth=M.lastPercentToPxWidth=(parseFloat(w.getPropertyValue(c,"width",null,!0))||1)/s,l.percentToPxHeight=M.lastPercentToPxHeight=(parseFloat(w.getPropertyValue(c,"height",null,!0))||1)/s,l.emToPx=M.lastEmToPx=(parseFloat(w.getPropertyValue(c,"paddingLeft"))||1)/s,e.myParent.removeChild(c)}return null===M.remToPx&&(M.remToPx=parseFloat(w.getPropertyValue(i.body,"fontSize"))||16),null===M.vwToPx&&(M.vwToPx=parseFloat(n.innerWidth)/100,M.vhToPx=parseFloat(n.innerHeight)/100),l.remToPx=M.remToPx,l.vwToPx=M.vwToPx,l.vhToPx=M.vhToPx,y.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),r),l}if(s.begin&&0===E)try{s.begin.call(m,m)}catch(e){setTimeout(function(){throw e},1)}if("scroll"===S){var x,C,T,D=/^x$/i.test(s.axis)?"Left":"Top",_=parseFloat(s.offset)||0;s.container?f.isWrapped(s.container)||f.isNode(s.container)?(s.container=s.container[0]||s.container,T=(x=s.container["scroll"+D])+d(r).position()[D.toLowerCase()]+_):s.container=null:(x=y.State.scrollAnchor[y.State["scrollProperty"+D]],C=y.State.scrollAnchor[y.State["scrollProperty"+("Left"===D?"Top":"Left")]],T=d(r).offset()[D.toLowerCase()]+_),u={scroll:{rootPropertyValue:!1,startValue:x,currentValue:x,endValue:T,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:D,alternateValue:C}},element:r},y.debug&&console.log("tweensContainer (scroll): ",u.scroll,r)}else if("reverse"===S){if(!a(r).tweensContainer)return void d.dequeue(r,s.queue);"none"===a(r).opts.display&&(a(r).opts.display="auto"),"hidden"===a(r).opts.visibility&&(a(r).opts.visibility="visible"),a(r).opts.loop=!1,a(r).opts.begin=null,a(r).opts.complete=null,b.easing||delete s.easing,b.duration||delete s.duration,s=d.extend({},a(r).opts,s);var N=d.extend(!0,{},a(r).tweensContainer);for(var P in N)if("element"!==P){var O=N[P].startValue;N[P].startValue=N[P].currentValue=N[P].endValue,N[P].endValue=O,f.isEmptyObject(b)||(N[P].easing=s.easing),y.debug&&console.log("reverse tweensContainer ("+P+"): "+JSON.stringify(N[P]),r)}u=N}else if("start"===S){for(var L in a(r).tweensContainer&&!0===a(r).isAnimating&&(N=a(r).tweensContainer),d.each(v,function(e,t){if(RegExp("^"+w.Lists.colors.join("$|^")+"$").test(e)){var n=h(t,!0),i=n[0],r=n[1],a=n[2];if(w.RegEx.isHex.test(i)){for(var s=["Red","Green","Blue"],l=w.Values.hexToRgb(i),c=a?w.Values.hexToRgb(a):o,u=0;u<s.length;u++){var d=[l[u]];r&&d.push(r),c!==o&&d.push(c[u]),v[e+s[u]]=d}delete v[e]}}}),v){var F=h(v[L]),R=F[0],j=F[1],q=F[2];L=w.Names.camelCase(L);var H=w.Hooks.getRoot(L),z=!1;if(a(r).isSVG||"tween"===H||!1!==w.Names.prefixCheck(H)[1]||w.Normalizations.registered[H]!==o){(s.display!==o&&null!==s.display&&"none"!==s.display||s.visibility!==o&&"hidden"!==s.visibility)&&/opacity|filter/.test(L)&&!q&&0!==R&&(q=0),s._cacheValues&&N&&N[L]?(q===o&&(q=N[L].endValue+N[L].unitType),z=a(r).rootPropertyValueCache[H]):w.Hooks.registered[L]?q===o?(z=w.getPropertyValue(r,H),q=w.getPropertyValue(r,L,z)):z=w.Hooks.templates[H][1]:q===o&&(q=w.getPropertyValue(r,L));var $,B,W,U=!1;if(q=($=p(L,q))[0],W=$[1],R=($=p(L,R))[0].replace(/^([+-\/*])=/,function(e,t){return U=t,""}),B=$[1],q=parseFloat(q)||0,R=parseFloat(R)||0,"%"===B&&(/^(fontSize|lineHeight)$/.test(L)?(R/=100,B="em"):/^scale/.test(L)?(R/=100,B=""):/(Red|Green|Blue)$/i.test(L)&&(R=R/100*255,B="")),/[\/*]/.test(U))B=W;else if(W!==B&&0!==q)if(0===R)B=W;else{t=t||g();var V=/margin|padding|left|right|width|text|word|letter/i.test(L)||/X$/.test(L)||"x"===L?"x":"y";switch(W){case"%":q*="x"===V?t.percentToPxWidth:t.percentToPxHeight;break;case"px":break;default:q*=t[W+"ToPx"]}switch(B){case"%":q*=1/("x"===V?t.percentToPxWidth:t.percentToPxHeight);break;case"px":break;default:q*=1/t[B+"ToPx"]}}switch(U){case"+":R=q+R;break;case"-":R=q-R;break;case"*":R*=q;break;case"/":R=q/R}u[L]={rootPropertyValue:z,startValue:q,currentValue:q,endValue:R,unitType:B,easing:j},y.debug&&console.log("tweensContainer ("+L+"): "+JSON.stringify(u[L]),r)}else y.debug&&console.log("Skipping ["+H+"] due to a lack of browser support.")}u.element=r}u.element&&(w.Values.addClass(r,"velocity-animating"),I.push(u),""===s.queue&&(a(r).tweensContainer=u,a(r).opts=s),a(r).isAnimating=!0,E===k-1?(y.State.calls.push([I,m,s,null,A.resolver]),!1===y.State.isTicking&&(y.State.isTicking=!0,c())):E++)}var t,r=this,s=d.extend({},y.defaults,b),u={};switch(a(r)===o&&y.init(r),parseFloat(s.delay)&&!1!==s.queue&&d.queue(r,s.queue,function(e){y.velocityQueueEntryFlag=!0,a(r).delayTimer={setTimeout:setTimeout(e,parseFloat(s.delay)),next:e}}),s.duration.toString().toLowerCase()){case"fast":s.duration=200;break;case"normal":s.duration=g;break;case"slow":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}!1!==y.mock&&(!0===y.mock?s.duration=s.delay=1:(s.duration*=parseFloat(y.mock)||1,s.delay*=parseFloat(y.mock)||1)),s.easing=l(s.easing,s.duration),s.begin&&!f.isFunction(s.begin)&&(s.begin=null),s.progress&&!f.isFunction(s.progress)&&(s.progress=null),s.complete&&!f.isFunction(s.complete)&&(s.complete=null),s.display!==o&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),"auto"===s.display&&(s.display=y.CSS.Values.getDisplayType(r))),s.visibility!==o&&null!==s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&y.State.isMobile&&!y.State.isGingerbread,!1===s.queue?s.delay?setTimeout(e,s.delay):e():d.queue(r,s.queue,function(t,n){return!0===n?(A.promise&&A.resolver(m),!0):(y.velocityQueueEntryFlag=!0,void e())}),""!==s.queue&&"fx"!==s.queue||"inprogress"===d.queue(r)[0]||d.dequeue(r)}var s,h,p,m,v,b,C=arguments[0]&&(arguments[0].p||d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||f.isString(arguments[0].properties));if(f.isWrapped(this)?(s=!1,p=0,m=this,h=this):(s=!0,p=1,m=C?arguments[0].elements||arguments[0].e:arguments[0]),m=r(m)){C?(v=arguments[0].properties||arguments[0].p,b=arguments[0].options||arguments[0].o):(v=arguments[p],b=arguments[p+1]);var k=m.length,E=0;if(!/^(stop|finish)$/i.test(v)&&!d.isPlainObject(b)){b={};for(var T=p+1;T<arguments.length;T++)f.isArray(arguments[T])||!/^(fast|normal|slow)$/i.test(arguments[T])&&!/^\d/.test(arguments[T])?f.isString(arguments[T])||f.isArray(arguments[T])?b.easing=arguments[T]:f.isFunction(arguments[T])&&(b.complete=arguments[T]):b.duration=arguments[T]}var S,A={promise:null,resolver:null,rejecter:null};switch(s&&y.Promise&&(A.promise=new y.Promise(function(e,t){A.resolver=e,A.rejecter=t})),v){case"scroll":S="scroll";break;case"reverse":S="reverse";break;case"finish":case"stop":d.each(m,function(e,t){a(t)&&a(t).delayTimer&&(clearTimeout(a(t).delayTimer.setTimeout),a(t).delayTimer.next&&a(t).delayTimer.next(),delete a(t).delayTimer)});var D=[];return d.each(y.State.calls,function(e,t){t&&d.each(t[1],function(n,i){var r=b===o?"":b;return!0!==r&&t[2].queue!==r&&(b!==o||!1!==t[2].queue)||void d.each(m,function(n,o){o===i&&((!0===b||f.isString(b))&&(d.each(d.queue(o,f.isString(b)?b:""),function(e,t){f.isFunction(t)&&t(null,!0)}),d.queue(o,f.isString(b)?b:"",[])),"stop"===v?(a(o)&&a(o).tweensContainer&&!1!==r&&d.each(a(o).tweensContainer,function(e,t){t.endValue=t.currentValue}),D.push(e)):"finish"===v&&(t[2].duration=1))})})}),"stop"===v&&(d.each(D,function(e,t){u(t,!0)}),A.promise&&A.resolver(m)),e();default:if(!d.isPlainObject(v)||f.isEmptyObject(v)){if(f.isString(v)&&y.Redirects[v]){var _=(L=d.extend({},b)).duration,N=L.delay||0;return!0===L.backwards&&(m=d.extend(!0,[],m).reverse()),d.each(m,function(e,t){parseFloat(L.stagger)?L.delay=N+parseFloat(L.stagger)*e:f.isFunction(L.stagger)&&(L.delay=N+L.stagger.call(t,e,k)),L.drag&&(L.duration=parseFloat(_)||(/^(callout|transition)/.test(v)?1e3:g),L.duration=Math.max(L.duration*(L.backwards?1-e/k:(e+1)/k),.75*L.duration,200)),y.Redirects[v].call(t,t,L||{},e,k,m,A.promise?A:o)}),e()}var P="Velocity: First argument ("+v+") was not a property map, a known action, or a registered redirect. Aborting.";return A.promise?A.rejecter(new Error(P)):console.log(P),e()}S="start"}var O,L,M={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},I=[];if(d.each(m,function(e,n){f.isNode(n)&&t.call(n)}),(L=d.extend({},y.defaults,b)).loop=parseInt(L.loop),O=2*L.loop-1,L.loop)for(var F=0;O>F;F++){var R={delay:L.delay,progress:L.progress};F===O-1&&(R.display=L.display,R.visibility=L.visibility,R.complete=L.complete),x(m,"reverse",R)}return e()}};(y=d.extend(x,y)).animate=x;var C=n.requestAnimationFrame||p;return y.State.isMobile||i.hidden===o||i.addEventListener("visibilitychange",function(){i.hidden?(C=function(e){return setTimeout(function(){e(!0)},16)},c()):C=n.requestAnimationFrame||p}),t.Velocity=y,t!==n&&(t.fn.velocity=x,t.fn.velocity.defaults=y.defaults),d.each(["Down","Up"],function(e,t){y.Redirects["slide"+t]=function(e,n,i,r,a,s){var l=d.extend({},n),c=l.begin,u=l.complete,h={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},p={};l.display===o&&(l.display="Down"===t?"inline"===y.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){for(var n in c&&c.call(a,a),h){p[n]=e.style[n];var i=y.CSS.getPropertyValue(e,n);h[n]="Down"===t?[i,0]:[0,i]}p.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in p)e.style[t]=p[t];u&&u.call(a,a),s&&s.resolver(a)},y(e,h,l)}}),d.each(["In","Out"],function(e,t){y.Redirects["fade"+t]=function(e,n,i,r,a,s){var l=d.extend({},n),c={opacity:"In"===t?1:0},u=l.complete;l.complete=i!==r-1?l.begin=null:function(){u&&u.call(a,a),s&&s.resolver(a)},l.display===o&&(l.display="In"===t?"auto":"none"),y(this,c,l)}}),y}e.fn.velocity=e.fn.animate}(o||window.Zepto||window,window,document)},"object"==typeof r.exports?r.exports=c():void 0===(l="function"==typeof(a=c)?a.call(t,n,t,r):a)||(r.exports=l)),function(e,i,o,a){"use strict";function s(e,t,n){return setTimeout(f(e,n),t)}function c(e,t,n){return!!Array.isArray(e)&&(u(e,n[t],n),!0)}function u(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function d(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&e[i[o]]===a)&&(e[i[o]]=t[i[o]]),o++;return e}function h(e,t){return d(e,t,!0)}function p(e,t,n){var i,o=t.prototype;(i=e.prototype=Object.create(o)).constructor=e,i._super=o,n&&d(i,n)}function f(e,t){return function(){return e.apply(t,arguments)}}function m(e,t){return typeof e==ie?e.apply(t&&t[0]||a,t):e}function g(e,t){return e===a?t:e}function v(e,t,n){u(x(t),function(t){e.addEventListener(t,n,!1)})}function y(e,t,n){u(x(t),function(t){e.removeEventListener(t,n,!1)})}function b(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function w(e,t){return e.indexOf(t)>-1}function x(e){return e.trim().split(/\s+/g)}function C(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function k(e){return Array.prototype.slice.call(e,0)}function E(e,t,n){for(var i=[],o=[],r=0;r<e.length;){var a=t?e[r][t]:e[r];C(o,a)<0&&i.push(e[r]),o[r]=a,r++}return n&&(i=t?i.sort(function(e,n){return e[t]>n[t]}):i.sort()),i}function T(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),r=0;r<te.length;){if((i=(n=te[r])?n+o:t)in e)return i;r++}return a}function S(e){var t=e.ownerDocument;return t.defaultView||t.parentWindow}function A(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){m(e.options.enable,[e])&&n.handler(t)},this.init()}function D(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,r=t&fe&&0==i-o,a=t&(ge|ve)&&0==i-o;n.isFirst=!!r,n.isFinal=!!a,r&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=N(t)),o>1&&!n.firstMultiple?n.firstMultiple=N(t):1===o&&(n.firstMultiple=!1);var r=n.firstInput,a=n.firstMultiple,s=a?a.center:r.center,l=t.center=P(i);t.timeStamp=ae(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=M(s,l),t.distance=L(s,l),function(e,t){var n=t.center,i=e.offsetDelta||{},o=e.prevDelta||{},r=e.prevInput||{};(t.eventType===fe||r.eventType===ge)&&(o=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=o.x+(n.x-i.x),t.deltaY=o.y+(n.y-i.y)}(n,t),t.offsetDirection=O(t.deltaX,t.deltaY),t.scale=a?function(e,t){return L(t[0],t[1],Ae)/L(e[0],e[1],Ae)}(a.pointers,i):1,t.rotation=a?function(e,t){return M(t[1],t[0],Ae)-M(e[1],e[0],Ae)}(a.pointers,i):0,_(n,t);var c=e.element;b(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function _(e,t){var n,i,o,r,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(t.eventType!=ve&&(l>pe||s.velocity===a)){var c=s.deltaX-t.deltaX,u=s.deltaY-t.deltaY,d=function(e,t,n){return{x:t/e||0,y:n/e||0}}(l,c,u);i=d.x,o=d.y,n=re(d.x)>re(d.y)?d.x:d.y,r=O(c,u),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,r=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=r}function N(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:oe(e.pointers[n].clientX),clientY:oe(e.pointers[n].clientY)},n++;return{timeStamp:ae(),pointers:t,center:P(t),deltaX:e.deltaX,deltaY:e.deltaY}}function P(e){var t=e.length;if(1===t)return{x:oe(e[0].clientX),y:oe(e[0].clientY)};for(var n=0,i=0,o=0;t>o;)n+=e[o].clientX,i+=e[o].clientY,o++;return{x:oe(n/t),y:oe(i/t)}}function O(e,t){return e===t?ye:re(e)>=re(t)?e>0?be:we:t>0?xe:Ce}function L(e,t,n){n||(n=Se);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(i*i+o*o)}function M(e,t,n){n||(n=Se);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,i)/Math.PI}function I(){this.evEl=_e,this.evWin=Ne,this.allow=!0,this.pressed=!1,A.apply(this,arguments)}function F(){this.evEl=Le,this.evWin=Me,A.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function R(){this.evTarget=Fe,this.evWin=Re,this.started=!1,A.apply(this,arguments)}function j(){this.evTarget=qe,this.targetIds={},A.apply(this,arguments)}function q(){A.apply(this,arguments);var e=f(this.handler,this);this.touch=new j(this.manager,e),this.mouse=new I(this.manager,e)}function H(e,t){this.manager=e,this.set(t)}function z(e){this.id=se++,this.manager=null,this.options=h(e||{},this.defaults),this.options.enable=g(this.options.enable,!0),this.state=Ye,this.simultaneous={},this.requireFail=[]}function $(e){return e==Ce?"down":e==xe?"up":e==be?"left":e==we?"right":""}function B(e,t){var n=t.manager;return n?n.get(e):e}function W(){z.apply(this,arguments)}function U(){W.apply(this,arguments),this.pX=null,this.pY=null}function V(){W.apply(this,arguments)}function X(){z.apply(this,arguments),this._timer=null,this._input=null}function Y(){W.apply(this,arguments)}function Q(){W.apply(this,arguments)}function K(){z.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function G(e,t){return(t=t||{}).recognizers=g(t.recognizers,G.defaults.preset),new Z(e,t)}function Z(e,t){t=t||{},this.options=h(t,G.defaults),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.element=e,this.input=function(e){var t=e.options.inputClass;return new(t||(ce?F:ue?j:le?q:I))(e,D)}(this),this.touchAction=new H(this,this.options.touchAction),J(this,!0),u(t.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function J(e,t){var n=e.element;u(e.options.cssProps,function(e,i){n.style[T(n.style,i)]=t?e:""})}function ee(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}var te=["","webkit","moz","MS","ms","o"],ne=i.createElement("div"),ie="function",oe=Math.round,re=Math.abs,ae=Date.now,se=1,le="ontouchstart"in e,ce=T(e,"PointerEvent")!==a,ue=le&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),de="touch",he="mouse",pe=25,fe=1,me=2,ge=4,ve=8,ye=1,be=2,we=4,xe=8,Ce=16,ke=be|we,Ee=xe|Ce,Te=ke|Ee,Se=["x","y"],Ae=["clientX","clientY"];A.prototype={handler:function(){},init:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(S(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(S(this.element),this.evWin,this.domHandler)}};var De={mousedown:fe,mousemove:me,mouseup:ge},_e="mousedown",Ne="mousemove mouseup";p(I,A,{handler:function(e){var t=De[e.type];t&fe&&0===e.button&&(this.pressed=!0),t&me&&1!==e.which&&(t=ge),this.pressed&&this.allow&&(t&ge&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:he,srcEvent:e}))}});var Pe={pointerdown:fe,pointermove:me,pointerup:ge,pointercancel:ve,pointerout:ve},Oe={2:de,3:"pen",4:he,5:"kinect"},Le="pointerdown",Me="pointermove pointerup pointercancel";e.MSPointerEvent&&(Le="MSPointerDown",Me="MSPointerMove MSPointerUp MSPointerCancel"),p(F,A,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),o=Pe[i],r=Oe[e.pointerType]||e.pointerType,a=r==de,s=C(t,e.pointerId,"pointerId");o&fe&&(0===e.button||a)?0>s&&(t.push(e),s=t.length-1):o&(ge|ve)&&(n=!0),0>s||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(s,1))}});var Ie={touchstart:fe,touchmove:me,touchend:ge,touchcancel:ve},Fe="touchstart",Re="touchstart touchmove touchend touchcancel";p(R,A,{handler:function(e){var t=Ie[e.type];if(t===fe&&(this.started=!0),this.started){var n=function(e,t){var n=k(e.touches),i=k(e.changedTouches);return t&(ge|ve)&&(n=E(n.concat(i),"identifier",!0)),[n,i]}.call(this,e,t);t&(ge|ve)&&0==n[0].length-n[1].length&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:de,srcEvent:e})}}});var je={touchstart:fe,touchmove:me,touchend:ge,touchcancel:ve},qe="touchstart touchmove touchend touchcancel";p(j,A,{handler:function(e){var t=je[e.type],n=function(e,t){var n=k(e.touches),i=this.targetIds;if(t&(fe|me)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,a=k(e.changedTouches),s=[],l=this.target;if(r=n.filter(function(e){return b(e.target,l)}),t===fe)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<a.length;)i[a[o].identifier]&&s.push(a[o]),t&(ge|ve)&&delete i[a[o].identifier],o++;return s.length?[E(r.concat(s),"identifier",!0),s]:void 0}.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:de,srcEvent:e})}}),p(q,A,{handler:function(e,t,n){var i=n.pointerType==de,o=n.pointerType==he;if(i)this.mouse.allow=!1;else if(o&&!this.mouse.allow)return;t&(ge|ve)&&(this.mouse.allow=!0),this.callback(e,t,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var He=T(ne.style,"touchAction"),ze=He!==a,$e="compute",Be="auto",We="manipulation",Ue="none",Ve="pan-x",Xe="pan-y";H.prototype={set:function(e){e==$e&&(e=this.compute()),ze&&(this.manager.element.style[He]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return u(this.manager.recognizers,function(t){m(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(w(e,Ue))return Ue;var t=w(e,Ve),n=w(e,Xe);return t&&n?Ve+" "+Xe:t||n?t?Ve:Xe:w(e,We)?We:Be}(e.join(" "))},preventDefaults:function(e){if(!ze){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var i=this.actions,o=w(i,Ue),r=w(i,Xe),a=w(i,Ve);return o||r&&n&ke||a&&n&Ee?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Ye=1,Qe=2,Ke=4,Ge=8,Ze=Ge,Je=16;z.prototype={defaults:{},set:function(e){return d(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(c(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=B(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return c(e,"dropRecognizeWith",this)?this:(e=B(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(c(e,"requireFailure",this))return this;var t=this.requireFail;return-1===C(t,e=B(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(c(e,"dropRequireFailure",this))return this;e=B(e,this);var t=C(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(n.options.event+(t?function(e){return e&Je?"cancel":e&Ge?"end":e&Ke?"move":e&Qe?"start":""}(i):""),e)}var n=this,i=this.state;Ge>i&&t(!0),t(),i>=Ge&&t(!0)},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=32)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|Ye)))return!1;e++}return!0},recognize:function(e){var t=d({},e);return m(this.options.enable,[this,t])?(this.state&(Ze|Je|32)&&(this.state=Ye),this.state=this.process(t),void(this.state&(Qe|Ke|Ge|Je)&&this.tryEmit(t))):(this.reset(),void(this.state=32))},process:function(){},getTouchAction:function(){},reset:function(){}},p(W,z,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=t&(Qe|Ke),o=this.attrTest(e);return i&&(n&ve||!o)?t|Je:i||o?n&ge?t|Ge:t&Qe?t|Ke:Qe:32}}),p(U,W,{defaults:{event:"pan",threshold:10,pointers:1,direction:Te},getTouchAction:function(){var e=this.options.direction,t=[];return e&ke&&t.push(Xe),e&Ee&&t.push(Ve),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,o=e.direction,r=e.deltaX,a=e.deltaY;return o&t.direction||(t.direction&ke?(o=0===r?ye:0>r?be:we,n=r!=this.pX,i=Math.abs(e.deltaX)):(o=0===a?ye:0>a?xe:Ce,n=a!=this.pY,i=Math.abs(e.deltaY))),e.direction=o,n&&i>t.threshold&&o&t.direction},attrTest:function(e){return W.prototype.attrTest.call(this,e)&&(this.state&Qe||!(this.state&Qe)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=$(e.direction);t&&this.manager.emit(this.options.event+t,e),this._super.emit.call(this,e)}}),p(V,W,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ue]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Qe)},emit:function(e){if(this._super.emit.call(this,e),1!==e.scale){var t=e.scale<1?"in":"out";this.manager.emit(this.options.event+t,e)}}}),p(X,z,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Be]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!i||!n||e.eventType&(ge|ve)&&!o)this.reset();else if(e.eventType&fe)this.reset(),this._timer=s(function(){this.state=Ze,this.tryEmit()},t.time,this);else if(e.eventType&ge)return Ze;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===Ze&&(e&&e.eventType&ge?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=ae(),this.manager.emit(this.options.event,this._input)))}}),p(Y,W,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ue]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Qe)}}),p(Q,W,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:ke|Ee,pointers:1},getTouchAction:function(){return U.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(ke|Ee)?t=e.velocity:n&ke?t=e.velocityX:n&Ee&&(t=e.velocityY),this._super.attrTest.call(this,e)&&n&e.direction&&e.distance>this.options.threshold&&re(t)>this.options.velocity&&e.eventType&ge},emit:function(e){var t=$(e.direction);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),p(K,z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[We]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),e.eventType&fe&&0===this.count)return this.failTimeout();if(i&&o&&n){if(e.eventType!=ge)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||L(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&r?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=s(function(){this.state=Ze,this.tryEmit()},t.interval,this),Qe):Ze}return 32},failTimeout:function(){return this._timer=s(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ze&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),G.VERSION="2.0.4",G.defaults={domEvents:!1,touchAction:$e,enable:!0,inputTarget:null,inputClass:null,preset:[[Y,{enable:!1}],[V,{enable:!1},["rotate"]],[Q,{direction:ke}],[U,{direction:ke},["swipe"]],[K],[K,{event:"doubletap",taps:2},["tap"]],[X]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Z.prototype={set:function(e){return d(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,i=this.recognizers,o=t.curRecognizer;(!o||o&&o.state&Ze)&&(o=t.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&n.state&(Qe|Ke|Ge)&&(o=t.curRecognizer=n),r++}},get:function(e){if(e instanceof z)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(c(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(c(e,"remove",this))return this;var t=this.recognizers;return e=this.get(e),t.splice(C(t,e),1),this.touchAction.update(),this},on:function(e,t){var n=this.handlers;return u(x(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this},off:function(e,t){var n=this.handlers;return u(x(e),function(e){t?n[e].splice(C(n[e],t),1):delete n[e]}),this},emit:function(e,t){this.options.domEvents&&ee(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&J(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},d(G,{INPUT_START:fe,INPUT_MOVE:me,INPUT_END:ge,INPUT_CANCEL:ve,STATE_POSSIBLE:Ye,STATE_BEGAN:Qe,STATE_CHANGED:Ke,STATE_ENDED:Ge,STATE_RECOGNIZED:Ze,STATE_CANCELLED:Je,STATE_FAILED:32,DIRECTION_NONE:ye,DIRECTION_LEFT:be,DIRECTION_RIGHT:we,DIRECTION_UP:xe,DIRECTION_DOWN:Ce,DIRECTION_HORIZONTAL:ke,DIRECTION_VERTICAL:Ee,DIRECTION_ALL:Te,Manager:Z,Input:A,TouchAction:H,TouchInput:j,MouseInput:I,PointerEventInput:F,TouchMouseInput:q,SingleTouchInput:R,Recognizer:z,AttrRecognizer:W,Tap:K,Pan:U,Swipe:Q,Pinch:V,Rotate:Y,Press:X,on:v,off:y,each:u,merge:h,extend:d,inherit:p,bindFn:f,prefixed:T}),"function"==ie&&n(343)?void 0===(l=function(){return G}.call(t,n,t,r))||(r.exports=l):r.exports?r.exports=G:e.Hammer=G}(window,document),s=[n(36),n(1074)],void 0===(l="function"==typeof(a=function(e,t){var n;e.fn.hammer=function(n){return this.each(function(){!function(n,i){var o=e(n);o.data("hammer")||o.data("hammer",new t(o[0],i))}(this,n)})},t.Manager.prototype.emit=(n=t.Manager.prototype.emit,function(t,i){n.call(this,t,i),e(this.element).trigger({type:t,gesture:i})})})?a.apply(t,s):a)||(r.exports=l),function(e){e.Package?Materialize={}:e.Materialize={}}(window),t.nodeType||(!r.nodeType&&r.exports&&(t=r.exports=Materialize),t.default=Materialize),function(e){for(var t=0,n=["webkit","moz"],i=e.requestAnimationFrame,o=e.cancelAnimationFrame,r=n.length;--r>=0&&!i;)i=e[n[r]+"RequestAnimationFrame"],o=e[n[r]+"CancelRequestAnimationFrame"];i&&o||(i=function(e){var n=+Date.now(),i=Math.max(t+16,n);return setTimeout(function(){e(t=i)},i-n)},o=clearTimeout),e.requestAnimationFrame=i,e.cancelAnimationFrame=o}(window),Materialize.objectSelectorString=function(e){return((e.prop("tagName")||"")+(e.attr("id")||"")+(e.attr("class")||"")).replace(/\s/g,"")},Materialize.guid=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}(),Materialize.escapeHash=function(e){return e.replace(/(:|\.|\[|\]|,|=)/g,"\\$1")},Materialize.elementOrParentIsFixed=function(e){var t=i(e),n=t.add(t.parents()),o=!1;return n.each(function(){if("fixed"===i(this).css("position"))return o=!0,!1}),o};
  /**
   * Get time in ms
   * @license https://raw.github.com/jashkenas/underscore/master/LICENSE
   * @type {function}
   * @return {number}
   */
  var h,p,f=Date.now||function(){return(new Date).getTime()};
  /**
   * Returns a function, that, when invoked, will only be triggered at most once
   * during a given window of time. Normally, the throttled function will run
   * as much as it can, without ever going more than once per `wait` duration;
   * but if you'd like to disable the execution on the leading edge, pass
   * `{leading: false}`. To disable execution on the trailing edge, ditto.
   * @license https://raw.github.com/jashkenas/underscore/master/LICENSE
   * @param {function} func
   * @param {number} wait
   * @param {Object=} options
   * @returns {Function}
   */Materialize.throttle=function(e,t,n){var i,o,r,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:f(),a=null,r=e.apply(i,o),i=o=null};return function(){var c=f();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0?(clearTimeout(a),a=null,s=c,r=e.apply(i,o),i=o=null):a||!1===n.trailing||(a=setTimeout(l,u)),r}},h=e?e.Velocity:i?i.Velocity:Velocity,Materialize.Vel=h||Velocity,function(e){e.fn.collapsible=function(t,n){var i={accordion:void 0,onOpen:void 0,onClose:void 0},o=t;return t=e.extend(i,t),this.each(function(){var i=e(this),r=e(this).find("> li > .collapsible-header"),a=i.data("collapsible");function s(n,o){o||n.toggleClass("active"),t.accordion||"accordion"===a||void 0===a?function(t){r=i.find("> li > .collapsible-header"),t.hasClass("active")?t.parent().addClass("active"):t.parent().removeClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}),r.not(t).removeClass("active").parent().removeClass("active"),r.not(t).parent().children(".collapsible-body").stop(!0,!1).each(function(){e(this).is(":visible")&&e(this).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height",""),l(e(this).siblings(".collapsible-header"))}})})}(n):function(t){t.hasClass("active")?t.parent().addClass("active"):t.parent().removeClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}})}(n),l(n)}function l(e){e.hasClass("active")?"function"==typeof t.onOpen&&t.onOpen.call(this,e.parent()):"function"==typeof t.onClose&&t.onClose.call(this,e.parent())}function c(e){return e.closest("li > .collapsible-header")}function u(){i.off("click.collapse","> li > .collapsible-header")}if("destroy"!==o)if(n>=0&&n<r.length){var d=r.eq(n);d.length&&("open"===o||"close"===o&&d.hasClass("active"))&&s(d)}else u(),i.on("click.collapse","> li > .collapsible-header",function(t){var n=e(t.target);c(n).length>0&&(n=c(n)),s(n)}),t.accordion||"accordion"===a||void 0===a?s(r.filter(".active").first(),!0):r.filter(".active").each(function(){s(e(this),!0)});else u()})},e(document).ready(function(){e(".collapsible").collapsible()})}(e),function(e){e.fn.scrollTo=function(t){return e(this).scrollTop(e(this).scrollTop()-e(this).offset().top+e(t).offset().top),this},e.fn.dropdown=function(t){var n={inDuration:300,outDuration:225,constrainWidth:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left",stopPropagation:!1};return"open"===t?(this.each(function(){e(this).trigger("open")}),!1):"close"===t?(this.each(function(){e(this).trigger("close")}),!1):void this.each(function(){var i=e(this),o=e.extend({},n,t),r=!1,a=e("#"+i.attr("data-activates"));function s(){void 0!==i.data("induration")&&(o.inDuration=i.data("induration")),void 0!==i.data("outduration")&&(o.outDuration=i.data("outduration")),void 0!==i.data("constrainwidth")&&(o.constrainWidth=i.data("constrainwidth")),void 0!==i.data("hover")&&(o.hover=i.data("hover")),void 0!==i.data("gutter")&&(o.gutter=i.data("gutter")),void 0!==i.data("beloworigin")&&(o.belowOrigin=i.data("beloworigin")),void 0!==i.data("alignment")&&(o.alignment=i.data("alignment")),void 0!==i.data("stoppropagation")&&(o.stopPropagation=i.data("stoppropagation"))}function l(t){"focus"===t&&(r=!0),s(),a.addClass("active"),i.addClass("active");var n=i[0].getBoundingClientRect().width;!0===o.constrainWidth?a.css("width",n):a.css("white-space","nowrap");var l=window.innerHeight,u=i.innerHeight(),d=i.offset().left,h=i.offset().top-e(window).scrollTop(),p=o.alignment,f=0,m=0,g=0;!0===o.belowOrigin&&(g=u);var v=0,y=0,b=i.parent();if(b.is("body")||(b[0].scrollHeight>b[0].clientHeight&&(v=b[0].scrollTop),b[0].scrollWidth>b[0].clientWidth&&(y=b[0].scrollLeft)),d+a.innerWidth()>e(window).width()?p="right":d-a.innerWidth()+i.innerWidth()<0&&(p="left"),h+a.innerHeight()>l)if(h+u-a.innerHeight()<0){var w=l-h-g;a.css("max-height",w)}else g||(g+=u),g-=a.innerHeight();if("left"===p)f=o.gutter,m=i.position().left+f;else if("right"===p){a.stop(!0,!0).css({opacity:0,left:0}),m=i.position().left+n-a.width()+(f=-o.gutter)}a.css({position:"absolute",top:i.position().top+g+v,left:m+y}),a.slideDown({queue:!1,duration:o.inDuration,easing:"easeOutCubic",complete:function(){e(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:o.inDuration,easing:"easeOutSine"}),setTimeout(function(){e(document).on("click."+a.attr("id"),function(t){c(),e(document).off("click."+a.attr("id"))})},0)}function c(){r=!1,a.fadeOut(o.outDuration),a.removeClass("active"),i.removeClass("active"),e(document).off("click."+a.attr("id")),setTimeout(function(){a.css("max-height","")},o.outDuration)}if(s(),i.after(a),o.hover){var u=!1;i.off("click."+i.attr("id")),i.on("mouseenter",function(e){!1===u&&(l(),u=!0)}),i.on("mouseleave",function(t){var n=t.toElement||t.relatedTarget;e(n).closest(".dropdown-content").is(a)||(a.stop(!0,!0),c(),u=!1)}),a.on("mouseleave",function(t){var n=t.toElement||t.relatedTarget;e(n).closest(".dropdown-button").is(i)||(a.stop(!0,!0),c(),u=!1)})}else i.off("click."+i.attr("id")),i.on("click."+i.attr("id"),function(t){r||(i[0]!=t.currentTarget||i.hasClass("active")||0!==e(t.target).closest(".dropdown-content").length?i.hasClass("active")&&(c(),e(document).off("click."+a.attr("id"))):(t.preventDefault(),o.stopPropagation&&t.stopPropagation(),l("click")))});i.on("open",function(e,t){l(t)}),i.on("close",c)})},e(document).ready(function(){e(".dropdown-button").dropdown()})}(e),function(e,t){"use strict";var n={opacity:.5,inDuration:250,outDuration:250,ready:void 0,complete:void 0,dismissible:!0,startingTop:"4%",endingTop:"10%"},i=function(){function i(t,n){d(this,i),t[0].M_Modal&&t[0].M_Modal.destroy(),this.$el=t,this.options=e.extend({},i.defaults,n),this.isOpen=!1,this.$el[0].M_Modal=this,this.id=t.attr("id"),this.openingTrigger=void 0,this.$overlay=e('<div class="modal-overlay"></div>'),i._increment++,i._count++,this.$overlay[0].style.zIndex=1e3+2*i._increment,this.$el[0].style.zIndex=1e3+2*i._increment+1,this.setupEventHandlers()}return u(i,[{key:"getInstance",value:function(){return this}},{key:"destroy",value:function(){this.removeEventHandlers(),this.$el[0].removeAttribute("style"),this.$overlay[0].parentNode&&this.$overlay[0].parentNode.removeChild(this.$overlay[0]),this.$el[0].M_Modal=void 0,i._count--}},{key:"setupEventHandlers",value:function(){this.handleOverlayClickBound=this.handleOverlayClick.bind(this),this.handleModalCloseClickBound=this.handleModalCloseClick.bind(this),1===i._count&&document.body.addEventListener("click",this.handleTriggerClick),this.$overlay[0].addEventListener("click",this.handleOverlayClickBound),this.$el[0].addEventListener("click",this.handleModalCloseClickBound)}},{key:"removeEventHandlers",value:function(){0===i._count&&document.body.removeEventListener("click",this.handleTriggerClick),this.$overlay[0].removeEventListener("click",this.handleOverlayClickBound),this.$el[0].removeEventListener("click",this.handleModalCloseClickBound)}},{key:"handleTriggerClick",value:function(t){var n=e(t.target).closest(".modal-trigger");if(t.target&&n.length){var i=n[0].getAttribute("href");i=i?i.slice(1):n[0].getAttribute("data-target");var o=document.getElementById(i).M_Modal;o&&o.open(n),t.preventDefault()}}},{key:"handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"handleModalCloseClick",value:function(t){var n=e(t.target).closest(".modal-close");t.target&&n.length&&this.close()}},{key:"handleKeydown",value:function(e){27===e.keyCode&&this.options.dismissible&&this.close()}},{key:"animateIn",value:function(){var n=this;e.extend(this.$el[0].style,{display:"block",opacity:0}),e.extend(this.$overlay[0].style,{display:"block",opacity:0}),t(this.$overlay[0],{opacity:this.options.opacity},{duration:this.options.inDuration,queue:!1,ease:"easeOutCubic"});var i={duration:this.options.inDuration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof n.options.ready&&n.options.ready.call(n,n.$el,n.openingTrigger)}};this.$el[0].classList.contains("bottom-sheet")?t(this.$el[0],{bottom:0,opacity:1},i):(t.hook(this.$el[0],"scaleX",.7),this.$el[0].style.top=this.options.startingTop,t(this.$el[0],{top:this.options.endingTop,opacity:1,scaleX:1},i))}},{key:"animateOut",value:function(){var e=this;t(this.$overlay[0],{opacity:0},{duration:this.options.outDuration,queue:!1,ease:"easeOutQuart"});var n={duration:this.options.outDuration,queue:!1,ease:"easeOutCubic",complete:function(){e.$el[0].style.display="none","function"==typeof e.options.complete&&e.options.complete.call(e,e.$el),e.$overlay[0].parentNode.removeChild(e.$overlay[0])}};this.$el[0].classList.contains("bottom-sheet")?t(this.$el[0],{bottom:"-100%",opacity:0},n):t(this.$el[0],{top:this.options.startingTop,opacity:0,scaleX:.7},n)}},{key:"open",value:function(e){if(!this.isOpen){this.isOpen=!0;var t=document.body;return t.style.overflow="hidden",this.$el[0].classList.add("open"),t.appendChild(this.$overlay[0]),this.openingTrigger=e||void 0,this.options.dismissible&&(this.handleKeydownBound=this.handleKeydown.bind(this),document.addEventListener("keydown",this.handleKeydownBound)),this.animateIn(),this}}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,this.$el[0].classList.remove("open"),document.body.style.overflow="",this.options.dismissible&&document.removeEventListener("keydown",this.handleKeydownBound),this.animateOut(),this}}],[{key:"init",value:function(t,n){var o=[];return t.each(function(){o.push(new i(e(this),n))}),o}},{key:"defaults",get:function(){return n}}]),i}();i._increment=0,i._count=0,Materialize.Modal=i,e.fn.modal=function(t){return i.prototype[t]?"get"===t.slice(0,3)?this.first()[0].M_Modal[t]():this.each(function(){this.M_Modal[t]()}):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist on jQuery.modal"):(i.init(this,arguments[0]),this)}}(e,Materialize.Vel),function(e){e.fn.materialbox=function(){return this.each(function(){if(!e(this).hasClass("initialized")){e(this).addClass("initialized");var t,n,i=!1,o=!0,r=200,a=e(this),s=e("<div></div>").addClass("material-placeholder"),l=a.attr("style");a.wrap(s),a.on("click",function(){var r=a.parent(".material-placeholder"),s=window.innerWidth,l=window.innerHeight,u=a.width(),d=a.height();if(!1===o)return c(),!1;if(i&&!0===o)return c(),!1;o=!1,a.addClass("active"),i=!0,r.css({width:r[0].getBoundingClientRect().width,height:r[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),t=void 0,n=r[0].parentNode;for(;null!==n&&!e(n).is(document);){var h=e(n);"visible"!==h.css("overflow")&&(h.css("overflow","visible"),t=void 0===t?h:t.add(h)),n=n.parentNode}a.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}).data("width",u).data("height",d);var p=e('<div id="materialbox-overlay"></div>').css({opacity:0}).click(function(){!0===o&&c()});a.before(p);var f=p[0].getBoundingClientRect();if(p.css({width:s,height:l,left:-1*f.left,top:-1*f.top}),p.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"}),""!==a.data("caption")){var m=e('<div class="materialbox-caption"></div>');m.text(a.data("caption")),e("body").append(m),m.css({display:"inline"}),m.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"})}var g=0,v=0;u/s>d/l?(g=.9*s,v=.9*s*(d/u)):(g=.9*l*(u/d),v=.9*l),a.hasClass("responsive-img")?a.velocity({"max-width":g,width:u},{duration:0,queue:!1,complete:function(){a.css({left:0,top:0}).velocity({height:v,width:g,left:e(document).scrollLeft()+s/2-a.parent(".material-placeholder").offset().left-g/2,top:e(document).scrollTop()+l/2-a.parent(".material-placeholder").offset().top-v/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){o=!0}})}}):a.css("left",0).css("top",0).velocity({height:v,width:g,left:e(document).scrollLeft()+s/2-a.parent(".material-placeholder").offset().left-g/2,top:e(document).scrollTop()+l/2-a.parent(".material-placeholder").offset().top-v/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){o=!0}}),e(window).on("scroll.materialbox",function(){i&&c()}),e(window).on("resize.materialbox",function(){i&&c()}),e(document).on("keyup.materialbox",function(e){27===e.keyCode&&!0===o&&i&&c()})})}function c(){o=!1;var n=a.parent(".material-placeholder"),s=(window.innerWidth,window.innerHeight,a.data("width")),c=a.data("height");a.velocity("stop",!0),e("#materialbox-overlay").velocity("stop",!0),e(".materialbox-caption").velocity("stop",!0),e(window).off("scroll.materialbox"),e(document).off("keyup.materialbox"),e(window).off("resize.materialbox"),e("#materialbox-overlay").velocity({opacity:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){i=!1,e(this).remove()}}),a.velocity({width:s,height:c,left:0,top:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){n.css({height:"",width:"",position:"",top:"",left:""}),a.removeAttr("style"),a.attr("style",l),a.removeClass("active"),o=!0,t&&t.css("overflow","")}}),e(".materialbox-caption").velocity({opacity:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){e(this).remove()}})}})},e(document).ready(function(){e(".materialboxed").materialbox()})}(e),function(e){e.fn.parallax=function(){var t=e(window).width();return this.each(function(n){var i=e(this);function o(n){var o;o=t<601?i.height()>0?i.height():i.children("img").height():i.height()>0?i.height():500;var r=i.children("img").first(),a=r.height()-o,s=i.offset().top+o,l=i.offset().top,c=e(window).scrollTop(),u=window.innerHeight,d=(c+u-l)/(o+u),h=Math.round(a*d);n&&r.css("display","block"),s>c&&l<c+u&&r.css("transform","translate3D(-50%,"+h+"px, 0)")}i.addClass("parallax"),i.children("img").one("load",function(){o(!0)}).each(function(){this.complete&&e(this).trigger("load")}),e(window).scroll(function(){t=e(window).width(),o(!1)}),e(window).resize(function(){t=e(window).width(),o(!1)})})}}(e),function(e){var t={init:function(t){var n={onShow:null,swipeable:!1,responsiveThreshold:1/0};t=e.extend(n,t);var i=Materialize.objectSelectorString(e(this));return this.each(function(n){var o,r,a,s,l=i+n,c=e(this),u=e(window).width(),d=c.find("li.tab a"),h=c.width(),p=e(),f=Math.max(h,c[0].scrollWidth)/d.length,m=0,g=0,v=!1,y=function(e){return Math.ceil(h-e.position().left-e[0].getBoundingClientRect().width-c.scrollLeft())},b=function(e){return Math.floor(e.position().left+c.scrollLeft())},w=function(e){m-e>=0?(s.velocity({right:y(o)},{duration:300,queue:!1,easing:"easeOutQuad"}),s.velocity({left:b(o)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(s.velocity({left:b(o)},{duration:300,queue:!1,easing:"easeOutQuad"}),s.velocity({right:y(o)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90}))};t.swipeable&&u>t.responsiveThreshold&&(t.swipeable=!1),0===(o=e(d.filter('[href="'+location.hash+'"]'))).length&&(o=e(this).find("li.tab a.active").first()),0===o.length&&(o=e(this).find("li.tab a").first()),o.addClass("active"),(m=d.index(o))<0&&(m=0),void 0!==o[0]&&(r=e(o[0].hash)).addClass("active"),c.find(".indicator").length||c.append('<li class="indicator"></li>'),s=c.find(".indicator"),c.append(s),c.is(":visible")&&setTimeout(function(){s.css({right:y(o)}),s.css({left:b(o)})},0),e(window).off("resize.tabs-"+l).on("resize.tabs-"+l,function(){h=c.width(),f=Math.max(h,c[0].scrollWidth)/d.length,m<0&&(m=0),0!==f&&0!==h&&(s.css({right:y(o)}),s.css({left:b(o)}))}),t.swipeable?(d.each(function(){var t=e(Materialize.escapeHash(this.hash));t.addClass("carousel-item"),p=p.add(t)}),a=p.wrapAll('<div class="tabs-content carousel"></div>'),p.css("display",""),e(".tabs-content.carousel").carousel({fullWidth:!0,noWrap:!0,onCycleTo:function(e){if(!v){var n=m;m=a.index(e),o.removeClass("active"),(o=d.eq(m)).addClass("active"),w(n),"function"==typeof t.onShow&&t.onShow.call(c[0],r)}}})):d.not(o).each(function(){e(Materialize.escapeHash(this.hash)).hide()}),c.off("click.tabs").on("click.tabs","a",function(n){if(e(this).parent().hasClass("disabled"))n.preventDefault();else if(!e(this).attr("target")){v=!0,h=c.width(),f=Math.max(h,c[0].scrollWidth)/d.length,o.removeClass("active");var i=r;o=e(this),r=e(Materialize.escapeHash(this.hash)),d=c.find("li.tab a");o.position();o.addClass("active"),g=m,(m=d.index(e(this)))<0&&(m=0),t.swipeable?p.length&&p.carousel("set",m,function(){"function"==typeof t.onShow&&t.onShow.call(c[0],r)}):(void 0!==r&&(r.show(),r.addClass("active"),"function"==typeof t.onShow&&t.onShow.call(this,r)),void 0===i||i.is(r)||(i.hide(),i.removeClass("active"))),setTimeout(function(){v=!1},300),w(g),n.preventDefault()}})})},select_tab:function(e){this.find('a[href="#'+e+'"]').trigger("click")}};e.fn.tabs=function(n){return t[n]?t[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.tabs"):t.init.apply(this,arguments)},e(document).ready(function(){e("ul.tabs").tabs()})}(e),function(e){e.fn.tooltip=function(n){return"remove"===n?(this.each(function(){e("#"+e(this).attr("data-tooltip-id")).remove(),e(this).removeAttr("data-tooltip-id"),e(this).off("mouseenter.tooltip mouseleave.tooltip")}),!1):(n=e.extend({delay:350,tooltip:"",position:"bottom",html:!1},n),this.each(function(){var i,o,r,a,s,l,c=Materialize.guid(),u=e(this);u.attr("data-tooltip-id")&&e("#"+u.attr("data-tooltip-id")).remove(),u.attr("data-tooltip-id",c);var d=function(){i=u.attr("data-html")?"true"===u.attr("data-html"):n.html,o=void 0===(o=u.attr("data-delay"))||""===o?n.delay:o,r=void 0===(r=u.attr("data-position"))||""===r?n.position:r,a=void 0===(a=u.attr("data-tooltip"))||""===a?n.tooltip:a};d();var h;h=e('<div class="material-tooltip"></div>'),a=i?e("<span></span>").html(a):e("<span></span>").text(a),h.append(a).appendTo(e("body")).attr("id",c),(l=e('<div class="backdrop"></div>')).appendTo(h),s=h,u.off("mouseenter.tooltip mouseleave.tooltip");var p,f=!1;u.on({"mouseenter.tooltip":function(e){p=setTimeout(function(){d(),f=!0,s.velocity("stop"),l.velocity("stop"),s.css({visibility:"visible",left:"0px",top:"0px"});var e,n,i,o,a,c,h=u.outerWidth(),p=u.outerHeight(),m=s.outerHeight(),g=s.outerWidth(),v="0px",y="0px",b=l[0].offsetWidth,w=l[0].offsetHeight;"top"===r?(o=u.offset().top-m-5,a=u.offset().left+h/2-g/2,c=t(a,o,g,m),v="-10px",l.css({bottom:0,left:0,borderRadius:"14px 14px 0 0",transformOrigin:"50% 100%",marginTop:m,marginLeft:g/2-b/2})):"left"===r?(o=u.offset().top+p/2-m/2,a=u.offset().left-g-5,c=t(a,o,g,m),y="-10px",l.css({top:"-7px",right:0,width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:m/2,marginLeft:g})):"right"===r?(o=u.offset().top+p/2-m/2,a=u.offset().left+h+5,c=t(a,o,g,m),y="+10px",l.css({top:"-7px",left:0,width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:m/2,marginLeft:"0px"})):(o=u.offset().top+u.outerHeight()+5,a=u.offset().left+h/2-g/2,c=t(a,o,g,m),v="+10px",l.css({top:0,left:0,marginLeft:g/2-b/2})),s.css({top:c.y,left:c.x}),e=Math.SQRT2*g/parseInt(b),n=Math.SQRT2*m/parseInt(w),i=Math.max(e,n),s.velocity({translateY:v,translateX:y},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1}),l.css({visibility:"visible"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scaleX:i,scaleY:i},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})},o)},"mouseleave.tooltip":function(){f=!1,clearTimeout(p),setTimeout(function(){!0!==f&&(s.velocity({opacity:0,translateY:0,translateX:0},{duration:225,queue:!1}),l.velocity({opacity:0,scaleX:1,scaleY:1},{duration:225,queue:!1,complete:function(){l.css({visibility:"hidden"}),s.css({visibility:"hidden"}),f=!1}}))},225)}})}))};var t=function(t,n,i,o){var r=t,a=n;return r<0?r=4:r+i>window.innerWidth&&(r-=r+i-window.innerWidth),a<0?a=4:a+o>window.innerHeight+e(window).scrollTop&&(a-=a+o-window.innerHeight),{x:r,y:a}};e(document).ready(function(){e(".tooltipped").tooltip()})}(e),function(e){"use strict";var t=t||{},n=document.querySelectorAll.bind(document);function i(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}var o={duration:750,show:function(e,t){if(2===e.button)return!1;var n=t||this,r=document.createElement("div");r.className="waves-ripple",n.appendChild(r);var a,s,l,c,u,d=(c={top:0,left:0},u=(a=n)&&a.ownerDocument,s=u.documentElement,void 0!==a.getBoundingClientRect&&(c=a.getBoundingClientRect()),l=function(e){return null!==(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(u),{top:c.top+l.pageYOffset-s.clientTop,left:c.left+l.pageXOffset-s.clientLeft}),h=e.pageY-d.top,p=e.pageX-d.left,f="scale("+n.clientWidth/100*10+")";"touches"in e&&(h=e.touches[0].pageY-d.top,p=e.touches[0].pageX-d.left),r.setAttribute("data-hold",Date.now()),r.setAttribute("data-scale",f),r.setAttribute("data-x",p),r.setAttribute("data-y",h);var m={top:h+"px",left:p+"px"};r.className=r.className+" waves-notransition",r.setAttribute("style",i(m)),r.className=r.className.replace("waves-notransition",""),m["-webkit-transform"]=f,m["-moz-transform"]=f,m["-ms-transform"]=f,m["-o-transform"]=f,m.transform=f,m.opacity="1",m["-webkit-transition-duration"]=o.duration+"ms",m["-moz-transition-duration"]=o.duration+"ms",m["-o-transition-duration"]=o.duration+"ms",m["transition-duration"]=o.duration+"ms",m["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",m["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",m["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",m["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",r.setAttribute("style",i(m))},hide:function(e){r.touchup(e);var t=this,n=(t.clientWidth,null),a=t.getElementsByClassName("waves-ripple");if(!(a.length>0))return!1;var s=(n=a[a.length-1]).getAttribute("data-x"),l=n.getAttribute("data-y"),c=n.getAttribute("data-scale"),u=350-(Date.now()-Number(n.getAttribute("data-hold")));u<0&&(u=0),setTimeout(function(){var e={top:l+"px",left:s+"px",opacity:"0","-webkit-transition-duration":o.duration+"ms","-moz-transition-duration":o.duration+"ms","-o-transition-duration":o.duration+"ms","transition-duration":o.duration+"ms","-webkit-transform":c,"-moz-transform":c,"-ms-transform":c,"-o-transform":c,transform:c};n.setAttribute("style",i(e)),setTimeout(function(){try{t.removeChild(n)}catch(e){return!1}},o.duration)},u)},wrapInput:function(e){for(var t=0;t<e.length;t++){var n=e[t];if("input"===n.tagName.toLowerCase()){var i=n.parentNode;if("i"===i.tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect"))continue;var o=document.createElement("i");o.className=n.className+" waves-input-wrapper";var r=n.getAttribute("style");r||(r=""),o.setAttribute("style",r),n.className="waves-button-input",n.removeAttribute("style"),i.replaceChild(o,n),o.appendChild(n)}}}},r={touches:0,allowEvent:function(e){var t=!0;return"touchstart"===e.type?r.touches+=1:"touchend"===e.type||"touchcancel"===e.type?setTimeout(function(){r.touches>0&&(r.touches-=1)},500):"mousedown"===e.type&&r.touches>0&&(t=!1),t},touchup:function(e){r.allowEvent(e)}};function a(t){var n=function(e){if(!1===r.allowEvent(e))return null;for(var t=null,n=e.target||e.srcElement;null!==n.parentNode;){if(!(n instanceof SVGElement)&&-1!==n.className.indexOf("waves-effect")){t=n;break}n=n.parentNode}return t}(t);null!==n&&(o.show(t,n),"ontouchstart"in e&&(n.addEventListener("touchend",o.hide,!1),n.addEventListener("touchcancel",o.hide,!1)),n.addEventListener("mouseup",o.hide,!1),n.addEventListener("mouseleave",o.hide,!1),n.addEventListener("dragend",o.hide,!1))}t.displayEffect=function(t){"duration"in(t=t||{})&&(o.duration=t.duration),o.wrapInput(n(".waves-effect")),"ontouchstart"in e&&document.body.addEventListener("touchstart",a,!1),document.body.addEventListener("mousedown",a,!1)},t.attach=function(t){"input"===t.tagName.toLowerCase()&&(o.wrapInput([t]),t=t.parentNode),"ontouchstart"in e&&t.addEventListener("touchstart",a,!1),t.addEventListener("mousedown",a,!1)},e.Waves=t,document.addEventListener("DOMContentLoaded",function(){t.displayEffect()},!1)}(window),function(t,n){"use strict";var i={displayLength:1/0,inDuration:300,outDuration:375,className:void 0,completeCallback:void 0,activationPercent:.8},o=function(){function o(e,n,i,r){if(d(this,o),e){this.options={displayLength:n,className:i,completeCallback:r},this.options=t.extend({},o.defaults,this.options),this.message=e,this.panning=!1,this.timeRemaining=this.options.displayLength,0===o._toasts.length&&o._createContainer(),o._toasts.push(this);var a=this.createToast();a.M_Toast=this,this.el=a,this._animateIn(),this.setTimer()}}return u(o,[{key:"createToast",value:function(){var n=document.createElement("div");if(n.classList.add("toast"),this.options.className){var i,r=this.options.className.split(" "),a=void 0;for(a=0,i=r.length;a<i;a++)n.classList.add(r[a])}return("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?n.appendChild(this.message):this.message instanceof e?t(n).append(this.message):n.innerHTML=this.message,o._container.appendChild(n),n}},{key:"_animateIn",value:function(){n(this.el,{top:0,opacity:1},{duration:300,easing:"easeOutCubic",queue:!1})}},{key:"setTimer",value:function(){var e=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval(function(){e.panning||(e.timeRemaining-=20),e.timeRemaining<=0&&e.remove()},20))}},{key:"remove",value:function(){var e=this;window.clearInterval(this.counterInterval);var t=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+t+"px)",this.el.style.opacity=0),n(this.el,{opacity:0,marginTop:"-40px"},{duration:this.options.outDuration,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof e.options.completeCallback&&e.options.completeCallback(),e.el.parentNode.removeChild(e.el),o._toasts.splice(o._toasts.indexOf(e),1),0===o._toasts.length&&o._removeContainer()}})}}],[{key:"_createContainer",value:function(){var e=document.createElement("div");e.setAttribute("id","toast-container"),e.addEventListener("touchstart",o._onDragStart),e.addEventListener("touchmove",o._onDragMove),e.addEventListener("touchend",o._onDragEnd),e.addEventListener("mousedown",o._onDragStart),document.addEventListener("mousemove",o._onDragMove),document.addEventListener("mouseup",o._onDragEnd),document.body.appendChild(e),o._container=e}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",o._onDragMove),document.removeEventListener("mouseup",o._onDragEnd),o._container.parentNode.removeChild(o._container),o._container=null}},{key:"_onDragStart",value:function(e){if(e.target&&t(e.target).closest(".toast").length){var n=t(e.target).closest(".toast")[0].M_Toast;n.panning=!0,o._draggedToast=n,n.el.classList.add("panning"),n.el.style.transition="",n.startingXPos=o._xPos(e),n.time=Date.now(),n.xPos=o._xPos(e)}}},{key:"_onDragMove",value:function(e){if(o._draggedToast){e.preventDefault();var t=o._draggedToast;t.deltaX=Math.abs(t.xPos-o._xPos(e)),t.xPos=o._xPos(e),t.velocityX=t.deltaX/(Date.now()-t.time),t.time=Date.now();var n=t.xPos-t.startingXPos,i=t.el.offsetWidth*t.options.activationPercent;t.el.style.transform="translateX("+n+"px)",t.el.style.opacity=1-Math.abs(n/i)}}},{key:"_onDragEnd",value:function(e){if(o._draggedToast){var t=o._draggedToast;t.panning=!1,t.el.classList.remove("panning");var n=t.xPos-t.startingXPos,i=t.el.offsetWidth*t.options.activationPercent;Math.abs(n)>i||t.velocityX>1?(t.wasSwiped=!0,t.remove()):(t.el.style.transition="transform .2s, opacity .2s",t.el.style.transform="",t.el.style.opacity=""),o._draggedToast=null}}},{key:"_xPos",value:function(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}},{key:"removeAll",value:function(){for(var e in o._toasts)o._toasts[e].remove()}},{key:"defaults",get:function(){return i}}]),o}();o._toasts=[],o._container=null,o._draggedToast=null,Materialize.Toast=o,Materialize.toast=function(e,t,n,i){return new o(e,t,n,i)}}(e,Materialize.Vel),function(e){var t={init:function(t){t=e.extend({menuWidth:300,edge:"left",closeOnClick:!1,draggable:!0,onOpen:null,onClose:null},t),e(this).each(function(){var n=e(this),i=n.attr("data-activates"),o=e("#"+i);300!=t.menuWidth&&o.css("width",t.menuWidth);var r=e('.drag-target[data-sidenav="'+i+'"]');t.draggable?(r.length&&r.remove(),r=e('<div class="drag-target"></div>').attr("data-sidenav",i),e("body").append(r)):r=e(),"left"==t.edge?(o.css("transform","translateX(-100%)"),r.css({left:0})):(o.addClass("right-aligned").css("transform","translateX(100%)"),r.css({right:0})),o.hasClass("fixed")&&window.innerWidth>992&&o.css("transform","translateX(0)"),o.hasClass("fixed")&&e(window).resize(function(){window.innerWidth>992?0!==e("#sidenav-overlay").length&&s?a(!0):o.css("transform","translateX(0%)"):!1===s&&("left"===t.edge?o.css("transform","translateX(-100%)"):o.css("transform","translateX(100%)"))}),!0===t.closeOnClick&&o.on("click.itemclick","a:not(.collapsible-header)",function(){window.innerWidth>992&&o.hasClass("fixed")||a()});var a=function(n){!1,s=!1,e("body").css({overflow:"",width:""}),e("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){e(this).remove()}}),"left"===t.edge?(r.css({width:"",right:"",left:"0"}),o.velocity({translateX:"-100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===n&&(o.removeAttr("style"),o.css("width",t.menuWidth))}})):(r.css({width:"",right:"0",left:""}),o.velocity({translateX:"100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===n&&(o.removeAttr("style"),o.css("width",t.menuWidth))}})),"function"==typeof t.onClose&&t.onClose.call(this,o)},s=!1;t.draggable&&(r.on("click",function(){s&&a()}),r.hammer({prevent_default:!1}).on("pan",function(n){if("touch"==n.gesture.pointerType){n.gesture.direction;var i=n.gesture.center.x,r=n.gesture.center.y;n.gesture.velocityX;if(0===i&&0===r)return;var l,c=e("body"),u=e("#sidenav-overlay"),d=c.innerWidth();if(c.css("overflow","hidden"),c.width(d),0===u.length&&((u=e('<div id="sidenav-overlay"></div>')).css("opacity",0).click(function(){a()}),"function"==typeof t.onOpen&&t.onOpen.call(this,o),e("body").append(u)),"left"===t.edge&&(i>t.menuWidth?i=t.menuWidth:i<0&&(i=0)),"left"===t.edge)i<t.menuWidth/2?s=!1:i>=t.menuWidth/2&&(s=!0),o.css("transform","translateX("+(i-t.menuWidth)+"px)");else{i<window.innerWidth-t.menuWidth/2?s=!0:i>=window.innerWidth-t.menuWidth/2&&(s=!1);var h=i-t.menuWidth/2;h<0&&(h=0),o.css("transform","translateX("+h+"px)")}"left"===t.edge?(l=i/t.menuWidth,u.velocity({opacity:l},{duration:10,queue:!1,easing:"easeOutQuad"})):(l=Math.abs((i-window.innerWidth)/t.menuWidth),u.velocity({opacity:l},{duration:10,queue:!1,easing:"easeOutQuad"}))}}).on("panend",function(n){if("touch"==n.gesture.pointerType){var i=e("#sidenav-overlay"),a=n.gesture.velocityX,l=n.gesture.center.x,c=l-t.menuWidth,u=l-t.menuWidth/2;c>0&&(c=0),u<0&&(u=0),!1,"left"===t.edge?s&&a<=.3||a<-.5?(0!==c&&o.velocity({translateX:[0,c]},{duration:300,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),r.css({width:"50%",right:0,left:""}),s=!0):(!s||a>.3)&&(e("body").css({overflow:"",width:""}),o.velocity({translateX:[-1*t.menuWidth-10,c]},{duration:200,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){"function"==typeof t.onClose&&t.onClose.call(this,o),e(this).remove()}}),r.css({width:"10px",right:"",left:0})):s&&a>=-.3||a>.5?(0!==u&&o.velocity({translateX:[0,u]},{duration:300,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),r.css({width:"50%",right:"",left:0}),s=!0):(!s||a<-.3)&&(e("body").css({overflow:"",width:""}),o.velocity({translateX:[t.menuWidth+10,u]},{duration:200,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){"function"==typeof t.onClose&&t.onClose.call(this,o),e(this).remove()}}),r.css({width:"10px",right:0,left:""}))}})),n.off("click.sidenav").on("click.sidenav",function(){if(!0===s)s=!1,!1,a();else{var n=e("body"),i=e('<div id="sidenav-overlay"></div>'),l=n.innerWidth();n.css("overflow","hidden"),n.width(l),e("body").append(r),"left"===t.edge?(r.css({width:"50%",right:0,left:""}),o.velocity({translateX:[0,-1*t.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})):(r.css({width:"50%",right:"",left:0}),o.velocity({translateX:[0,t.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})),i.css("opacity",0).click(function(){s=!1,!1,a(),i.velocity({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){e(this).remove()}})}),e("body").append(i),i.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){s=!0,!1}}),"function"==typeof t.onOpen&&t.onOpen.call(this,o)}return!1})})},destroy:function(){var t=e("#sidenav-overlay"),n=e('.drag-target[data-sidenav="'+e(this).attr("data-activates")+'"]');t.trigger("click"),n.remove(),e(this).off("click"),t.remove()},show:function(){this.trigger("click")},hide:function(){e("#sidenav-overlay").trigger("click")}};e.fn.sideNav=function(n){return t[n]?t[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.sideNav"):t.init.apply(this,arguments)}}(e),
  /**
    * Extend jquery with a scrollspy plugin.
    * This watches the window scroll and fires events when elements are scrolled into viewport.
    *
    * throttle() and getTime() taken from Underscore.js
    * https://github.com/jashkenas/underscore
    *
    * @author Copyright 2013 John Smart
    * @license https://raw.github.com/thesmart/jquery-scrollspy/master/LICENSE
    * @see https://github.com/thesmart
    * @version 0.1.2
    */
  function(e){var t=e(window),n=[],i=[],o=!1,r=0,a={top:0,right:0,bottom:0,left:0};function s(o){++r;var s=t.scrollTop(),l=t.scrollLeft(),c=l+t.width(),u=s+t.height(),d=function(t,i,o,r){var a=e();return e.each(n,function(e,n){if(n.height()>0){var s=n.offset().top,l=n.offset().left,c=l+n.width(),u=s+n.height();!(l>i||c<r||s>o||u<t)&&a.push(n)}}),a}(s+a.top+o||200,c+a.right,u+a.bottom,l+a.left);e.each(d,function(e,t){"number"!=typeof t.data("scrollSpy:ticks")&&t.triggerHandler("scrollSpy:enter"),t.data("scrollSpy:ticks",r)}),e.each(i,function(e,t){var n=t.data("scrollSpy:ticks");"number"==typeof n&&n!==r&&(t.triggerHandler("scrollSpy:exit"),t.data("scrollSpy:ticks",null))}),i=d}function l(){t.trigger("scrollSpy:winSize")}e.scrollSpy=function(i,r){r=e.extend({throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(e){return'a[href="#'+e+'"]'}},r);var l=[];(i=e(i)).each(function(t,i){n.push(e(i)),e(i).data("scrollSpy:id",t),e('a[href="#'+e(i).attr("id")+'"]').click(function(t){t.preventDefault();var n=e(Materialize.escapeHash(this.hash)).offset().top+1;e("html, body").animate({scrollTop:n-r.scrollOffset},{duration:400,queue:!1,easing:"easeOutCubic"})})}),a.top=r.offsetTop||0,a.right=r.offsetRight||0,a.bottom=r.offsetBottom||0,a.left=r.offsetLeft||0;var c=Materialize.throttle(function(){s(r.scrollOffset)},r.throttle||100),u=function(){e(document).ready(c)};return o||(t.on("scroll",u),t.on("resize",u),o=!0),setTimeout(u,0),i.on("scrollSpy:enter",function(){l=e.grep(l,function(e){return 0!=e.height()});var t=e(this);l[0]?(e(r.getActiveElement(l[0].attr("id"))).removeClass(r.activeClass),t.data("scrollSpy:id")<l[0].data("scrollSpy:id")?l.unshift(e(this)):l.push(e(this))):l.push(e(this)),e(r.getActiveElement(l[0].attr("id"))).addClass(r.activeClass)}),i.on("scrollSpy:exit",function(){if((l=e.grep(l,function(e){return 0!=e.height()}))[0]){e(r.getActiveElement(l[0].attr("id"))).removeClass(r.activeClass);var t=e(this);(l=e.grep(l,function(e){return e.attr("id")!=t.attr("id")}))[0]&&e(r.getActiveElement(l[0].attr("id"))).addClass(r.activeClass)}}),i},e.winSizeSpy=function(n){return e.winSizeSpy=function(){return t},n=n||{throttle:100},t.on("resize",Materialize.throttle(l,n.throttle||100))},e.fn.scrollSpy=function(t){return e.scrollSpy(e(this),t)}}(e),function(e){e(document).ready(function(){Materialize.updateTextFields=function(){e("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each(function(t,n){var i=e(this);e(n).val().length>0||e(n).is(":focus")||n.autofocus||void 0!==i.attr("placeholder")?i.siblings("label").addClass("active"):e(n)[0].validity?i.siblings("label").toggleClass("active",!0===e(n)[0].validity.badInput):i.siblings("label").removeClass("active")})};var t="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";e(document).on("change",t,function(){0===e(this).val().length&&void 0===e(this).attr("placeholder")||e(this).siblings("label").addClass("active"),validate_field(e(this))}),e(document).ready(function(){Materialize.updateTextFields()}),e(document).on("reset",function(n){var i=e(n.target);i.is("form")&&(i.find(t).removeClass("valid").removeClass("invalid"),i.find(t).each(function(){""===e(this).attr("value")&&e(this).siblings("label").removeClass("active")}),i.find("select.initialized").each(function(){var e=i.find("option[selected]").text();i.siblings("input.select-dropdown").val(e)}))}),e(document).on("focus",t,function(){e(this).siblings("label, .prefix").addClass("active")}),e(document).on("blur",t,function(){var t=e(this),n=".prefix";0===t.val().length&&!0!==t[0].validity.badInput&&void 0===t.attr("placeholder")&&(n+=", label"),t.siblings(n).removeClass("active"),validate_field(t)}),window.validate_field=function(e){var t=void 0!==e.attr("data-length"),n=parseInt(e.attr("data-length")),i=e.val().length;0!==e.val().length||!1!==e[0].validity.badInput||e.is(":required")?e.hasClass("validate")&&(e.is(":valid")&&t&&i<=n||e.is(":valid")&&!t?(e.removeClass("invalid"),e.addClass("valid")):(e.removeClass("valid"),e.addClass("invalid"))):e.hasClass("validate")&&(e.removeClass("valid"),e.removeClass("invalid"))};e(document).on("keyup.radio","input[type=radio], input[type=checkbox]",function(t){if(9===t.which)return e(this).addClass("tabbed"),void e(this).one("blur",function(t){e(this).removeClass("tabbed")})});var n=e(".hiddendiv").first();n.length||(n=e('<div class="hiddendiv common"></div>'),e("body").append(n));e(".materialize-textarea").each(function(){var t=e(this);t.data("original-height",t.height()),t.data("previous-length",t.val().length)}),e("body").on("keyup keydown autoresize",".materialize-textarea",function(){!function(t){var i=t.css("font-family"),o=t.css("font-size"),r=t.css("line-height"),a=t.css("padding");o&&n.css("font-size",o),i&&n.css("font-family",i),r&&n.css("line-height",r),a&&n.css("padding",a),t.data("original-height")||t.data("original-height",t.height()),"off"===t.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(t.val()+"\n");var s=n.html().replace(/\n/g,"<br>");n.html(s),t.is(":visible")?n.css("width",t.width()):n.css("width",e(window).width()/2),t.data("original-height")<=n.height()?t.css("height",n.height()):t.val().length<t.data("previous-length")&&t.css("height",t.data("original-height")),t.data("previous-length",t.val().length)}(e(this))}),e(document).on("change",'.file-field input[type="file"]',function(){for(var t=e(this).closest(".file-field").find("input.file-path"),n=e(this)[0].files,i=[],o=0;o<n.length;o++)i.push(n[o].name);t.val(i.join(", ")),t.trigger("change")});var i="input[type=range]",o=!1;e(i).each(function(){var t=e('<span class="thumb"><span class="value"></span></span>');e(this).after(t)});var r=function(e){var t=-7+parseInt(e.parent().css("padding-left"))+"px";e.velocity({height:"30px",width:"30px",top:"-30px",marginLeft:t},{duration:300,easing:"easeOutExpo"})},a=function(e){var t=e.width()-15,n=parseFloat(e.attr("max")),i=parseFloat(e.attr("min"));return(parseFloat(e.val())-i)/(n-i)*t};e(document).on("change",i,function(t){var n=e(this).siblings(".thumb");n.find(".value").html(e(this).val()),n.hasClass("active")||r(n);var i=a(e(this));n.addClass("active").css("left",i)}),e(document).on("mousedown touchstart",i,function(t){var n=e(this).siblings(".thumb");if(n.length<=0&&(n=e('<span class="thumb"><span class="value"></span></span>'),e(this).after(n)),n.find(".value").html(e(this).val()),o=!0,e(this).addClass("active"),n.hasClass("active")||r(n),"input"!==t.type){var i=a(e(this));n.addClass("active").css("left",i)}}),e(document).on("mouseup touchend",".range-field",function(){o=!1,e(this).removeClass("active")}),e(document).on("input mousemove touchmove",".range-field",function(t){var n=e(this).children(".thumb"),s=e(this).find(i);if(o){n.hasClass("active")||r(n);var l=a(s);n.addClass("active").css("left",l),n.find(".value").html(n.siblings(i).val())}}),e(document).on("mouseout touchleave",".range-field",function(){if(!o){var t=e(this).children(".thumb"),n=7+parseInt(e(this).css("padding-left"))+"px";t.hasClass("active")&&t.velocity({height:"0",width:"0",top:"10px",marginLeft:n},{duration:100}),t.removeClass("active")}}),e.fn.autocomplete=function(t){var n={data:{},limit:1/0,onAutocomplete:null,minLength:1};return t=e.extend(n,t),this.each(function(){var n,i=e(this),o=t.data,r=0,a=-1,s=i.closest(".input-field");if(e.isEmptyObject(o))i.off("keyup.autocomplete focus.autocomplete");else{var l,c=e('<ul class="autocomplete-content dropdown-content"></ul>');s.length?(l=s.children(".autocomplete-content.dropdown-content").first()).length||s.append(c):(l=i.next(".autocomplete-content.dropdown-content")).length||i.after(c),l.length&&(c=l);var u=function(){c.empty(),a=-1,c.find(".active").removeClass("active"),n=void 0};i.off("blur.autocomplete").on("blur.autocomplete",function(){u()}),i.off("keyup.autocomplete focus.autocomplete").on("keyup.autocomplete focus.autocomplete",function(a){r=0;var s=i.val().toLowerCase();if(13!==a.which&&38!==a.which&&40!==a.which){if(n!==s&&(u(),s.length>=t.minLength))for(var l in o)if(o.hasOwnProperty(l)&&-1!==l.toLowerCase().indexOf(s)){if(r>=t.limit)break;var d=e("<li></li>");o[l]?d.append('<img src="'+o[l]+'" class="right circle"><span>'+l+"</span>"):d.append("<span>"+l+"</span>"),c.append(d),h=s,f=void 0,m=void 0,g=void 0,v=void 0,y=void 0,b=void 0,f=(p=d).find("img"),m=p.text().toLowerCase().indexOf(""+h.toLowerCase()),g=m+h.length-1,v=p.text().slice(0,m),y=p.text().slice(m,g+1),b=p.text().slice(g+1),p.html("<span>"+v+"<span class='highlight'>"+y+"</span>"+b+"</span>"),f.length&&p.prepend(f),r++}var h,p,f,m,g,v,y,b;n=s}}),i.off("keydown.autocomplete").on("keydown.autocomplete",function(e){var t,n=e.which,i=c.children("li").length,o=c.children(".active").first();13===n&&a>=0?(t=c.children("li").eq(a)).length&&(t.trigger("mousedown.autocomplete"),e.preventDefault()):38!==n&&40!==n||(e.preventDefault(),38===n&&a>0&&a--,40===n&&a<i-1&&a++,o.removeClass("active"),a>=0&&c.children("li").eq(a).addClass("active"))}),c.off("mousedown.autocomplete touchstart.autocomplete").on("mousedown.autocomplete touchstart.autocomplete","li",function(){var n=e(this).text().trim();i.val(n),i.trigger("change"),u(),"function"==typeof t.onAutocomplete&&t.onAutocomplete.call(this,n)})}})}}),e.fn.material_select=function(t){function n(e,t,n){var i=e.indexOf(t),o=-1===i;return o?e.push(t):e.splice(i,1),n.siblings("ul.dropdown-content").find("li:not(.optgroup)").eq(t).toggleClass("active"),n.find("option").eq(t).prop("selected",o),function(e,t){for(var n="",i=0,o=e.length;i<o;i++){var r=t.find("option").eq(e[i]).text();n+=0===i?r:", "+r}""===n&&(n=t.find("option:disabled").eq(0).text());t.siblings("input.select-dropdown").val(n)}(e,n),o}e(this).each(function(){var i=e(this);if(!i.hasClass("browser-default")){var o=!!i.attr("multiple"),r=i.attr("data-select-id");if(r&&(i.parent().find("span.caret").remove(),i.parent().find("input").remove(),i.unwrap(),e("ul#select-options-"+r).remove()),"destroy"===t)return i.removeAttr("data-select-id").removeClass("initialized"),void e(window).off("click.select");var a=Materialize.guid();i.attr("data-select-id",a);var s=e('<div class="select-wrapper"></div>');s.addClass(i.attr("class")),i.is(":disabled")&&s.addClass("disabled");var l=e('<ul id="select-options-'+a+'" class="dropdown-content select-dropdown '+(o?"multiple-select-dropdown":"")+'"></ul>'),c=i.children("option, optgroup"),u=[],d=!1,h=i.find("option:selected").html()||i.find("option:first").html()||"",p=function(t,n,i){var r=n.is(":disabled")?"disabled ":"",a="optgroup-option"===i?"optgroup-option ":"",s=o?'<input type="checkbox"'+r+"/><label></label>":"",c=n.data("icon"),u=n.attr("class");if(c){var d="";return u&&(d=' class="'+u+'"'),l.append(e('<li class="'+r+a+'"><img alt="" src="'+c+'"'+d+"><span>"+s+n.html()+"</span></li>")),!0}l.append(e('<li class="'+r+a+'"><span>'+s+n.html()+"</span></li>"))};c.length&&c.each(function(){if(e(this).is("option"))o?p(0,e(this),"multiple"):p(0,e(this));else if(e(this).is("optgroup")){var t=e(this).children("option");l.append(e('<li class="optgroup"><span>'+e(this).attr("label")+"</span></li>")),t.each(function(){p(0,e(this),"optgroup-option")})}}),l.find("li:not(.optgroup)").each(function(r){e(this).click(function(a){if(!e(this).hasClass("disabled")&&!e(this).hasClass("optgroup")){var s=!0;o?(e('input[type="checkbox"]',this).prop("checked",function(e,t){return!t}),s=n(u,r,i),g.trigger("focus")):(l.find("li").removeClass("active"),e(this).toggleClass("active"),g.val(e(this).text())),v(l,e(this)),i.find("option").eq(r).prop("selected",s),i.trigger("change"),void 0!==t&&t()}a.stopPropagation()})}),i.wrap(s);var f=e('<span class="caret">&#9660;</span>'),m=h.replace(/"/g,"&quot;"),g=e('<input type="text" class="select-dropdown" readonly="true" '+(i.is(":disabled")?"disabled":"")+' data-activates="select-options-'+a+'" value="'+m+'"/>');i.before(g),g.before(f),g.after(l),i.is(":disabled")||g.dropdown({hover:!1}),i.attr("tabindex")&&e(g[0]).attr("tabindex",i.attr("tabindex")),i.addClass("initialized"),g.on({focus:function(){if(e("ul.select-dropdown").not(l[0]).is(":visible")&&(e("input.select-dropdown").trigger("close"),e(window).off("click.select")),!l.is(":visible")){e(this).trigger("open",["focus"]);var t=e(this).val();o&&t.indexOf(",")>=0&&(t=t.split(",")[0]);var n=l.find("li").filter(function(){return e(this).text().toLowerCase()===t.toLowerCase()})[0];v(l,n,!0),e(window).off("click.select").on("click.select",function(){o&&(d||g.trigger("close")),e(window).off("click.select")})}},click:function(e){e.stopPropagation()}}),g.on("blur",function(){o||(e(this).trigger("close"),e(window).off("click.select")),l.find("li.selected").removeClass("selected")}),l.hover(function(){d=!0},function(){d=!1}),o&&i.find("option:selected:not(:disabled)").each(function(){var e=this.index;n(u,e,i),l.find("li:not(.optgroup)").eq(e).find(":checkbox").prop("checked",!0)});var v=function(t,n,i){if(n){t.find("li.selected").removeClass("selected");var r=e(n);r.addClass("selected"),o&&!i||l.scrollTo(r)}},y=[];g.on("keydown",function(t){if(9!=t.which)if(40!=t.which||l.is(":visible")){if(13!=t.which||l.is(":visible")){t.preventDefault();var n=String.fromCharCode(t.which).toLowerCase();if(n&&-1===[9,13,27,38,40].indexOf(t.which)){y.push(n);var i=y.join(""),r=l.find("li").filter(function(){return 0===e(this).text().toLowerCase().indexOf(i)})[0];r&&v(l,r)}if(13==t.which){var a=l.find("li.selected:not(.disabled)")[0];a&&(e(a).trigger("click"),o||g.trigger("close"))}40==t.which&&(r=l.find("li.selected").length?l.find("li.selected").next("li:not(.disabled)")[0]:l.find("li:not(.disabled)")[0],v(l,r)),27==t.which&&g.trigger("close"),38==t.which&&(r=l.find("li.selected").prev("li:not(.disabled)")[0])&&v(l,r),setTimeout(function(){y=[]},1e3)}}else g.trigger("open");else g.trigger("close")})}})}}(e),function(e){var t={init:function(t){return t=e.extend({indicators:!0,height:400,transition:500,interval:6e3},t),this.each(function(){var n,i,o,r=e(this),a=r.find("ul.slides").first(),s=a.find("> li"),l=a.find(".active").index();function c(e,t){e.hasClass("center-align")?e.velocity({opacity:0,translateY:-100},{duration:t,queue:!1}):e.hasClass("right-align")?e.velocity({opacity:0,translateX:100},{duration:t,queue:!1}):e.hasClass("left-align")&&e.velocity({opacity:0,translateX:-100},{duration:t,queue:!1})}function u(e){e>=s.length?e=0:e<0&&(e=s.length-1),(l=a.find(".active").index())!=e&&(n=s.eq(l),$caption=n.find(".caption"),n.removeClass("active"),n.velocity({opacity:0},{duration:t.transition,queue:!1,easing:"easeOutQuad",complete:function(){s.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),c($caption,t.transition),t.indicators&&i.eq(l).removeClass("active"),s.eq(e).velocity({opacity:1},{duration:t.transition,queue:!1,easing:"easeOutQuad"}),s.eq(e).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:t.transition,delay:t.transition,queue:!1,easing:"easeOutQuad"}),s.eq(e).addClass("active"),t.indicators&&i.eq(e).addClass("active"))}-1!=l&&(n=s.eq(l)),r.hasClass("fullscreen")||(t.indicators?r.height(t.height+40):r.height(t.height),a.height(t.height)),s.find(".caption").each(function(){c(e(this),0)}),s.find("img").each(function(){var t="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";e(this).attr("src")!==t&&(e(this).css("background-image",'url("'+e(this).attr("src")+'")'),e(this).attr("src",t))}),t.indicators&&(i=e('<ul class="indicators"></ul>'),s.each(function(n){var r=e('<li class="indicator-item"></li>');r.click(function(){u(a.parent().find(e(this)).index()),clearInterval(o),o=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,u(l)},t.transition+t.interval)}),i.append(r)}),r.append(i),i=r.find("ul.indicators").find("li.indicator-item")),n?n.show():(s.first().addClass("active").velocity({opacity:1},{duration:t.transition,queue:!1,easing:"easeOutQuad"}),l=0,n=s.eq(l),t.indicators&&i.eq(l).addClass("active")),n.find("img").each(function(){n.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:t.transition,queue:!1,easing:"easeOutQuad"})}),o=setInterval(function(){u((l=a.find(".active").index())+1)},t.transition+t.interval);var d=!1,h=!1;r.hammer({prevent_default:!1}).on("pan",function(e){if("touch"===e.gesture.pointerType){clearInterval(o);var t,n=e.gesture.direction,i=e.gesture.deltaX,l=e.gesture.velocityX,c=e.gesture.velocityY;$curr_slide=a.find(".active"),Math.abs(l)>Math.abs(c)&&$curr_slide.velocity({translateX:i},{duration:50,queue:!1,easing:"easeOutQuad"}),4===n&&(i>r.innerWidth()/2||l<-.65)?h=!0:2===n&&(i<-1*r.innerWidth()/2||l>.65)&&(d=!0),d&&(0===(t=$curr_slide.next()).length&&(t=s.first()),t.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"})),h&&(0===(t=$curr_slide.prev()).length&&(t=s.last()),t.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).on("panend",function(e){"touch"===e.gesture.pointerType&&($curr_slide=a.find(".active"),!1,curr_index=a.find(".active").index(),!h&&!d||s.length<=1?$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}):d?(u(curr_index+1),$curr_slide.velocity({translateX:-1*r.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):h&&(u(curr_index-1),$curr_slide.velocity({translateX:r.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})),d=!1,h=!1,clearInterval(o),o=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,u(l)},t.transition+t.interval))}),r.on("sliderPause",function(){clearInterval(o)}),r.on("sliderStart",function(){clearInterval(o),o=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,u(l)},t.transition+t.interval)}),r.on("sliderNext",function(){u((l=a.find(".active").index())+1)}),r.on("sliderPrev",function(){u((l=a.find(".active").index())-1)})})},pause:function(){e(this).trigger("sliderPause")},start:function(){e(this).trigger("sliderStart")},next:function(){e(this).trigger("sliderNext")},prev:function(){e(this).trigger("sliderPrev")}};e.fn.slider=function(n){return t[n]?t[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.tooltip"):t.init.apply(this,arguments)}}(e),function(e){e(document).ready(function(){e(document).on("click.card",".card",function(t){if(e(this).find("> .card-reveal").length){var n=e(t.target).closest(".card");void 0===n.data("initialOverflow")&&n.data("initialOverflow",void 0===n.css("overflow")?"":n.css("overflow")),e(t.target).is(e(".card-reveal .card-title"))||e(t.target).is(e(".card-reveal .card-title i"))?e(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){e(this).css({display:"none"}),n.css("overflow",n.data("initialOverflow"))}}):(e(t.target).is(e(".card .activator"))||e(t.target).is(e(".card .activator i")))&&(n.css("overflow","hidden"),e(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"}))}})})}(e),function(e){var t={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{}};e(document).ready(function(){e(document).on("click",".chip .close",function(t){e(this).closest(".chips").attr("data-initialized")||e(this).closest(".chip").remove()})}),e.fn.material_chip=function(n){var i=this;if(this.$el=e(this),this.$document=e(document),this.SELS={CHIPS:".chips",CHIP:".chip",INPUT:"input",DELETE:".material-icons",SELECTED_CHIP:".selected"},"data"===n)return this.$el.data("chips");var o=e.extend({},t,n);i.hasAutocomplete=!e.isEmptyObject(o.autocompleteOptions.data),this.init=function(){var t=0;i.$el.each(function(){var n=e(this),r=Materialize.guid();i.chipId=r,o.data&&o.data instanceof Array||(o.data=[]),n.data("chips",o.data),n.attr("data-index",t),n.attr("data-initialized",!0),n.hasClass(i.SELS.CHIPS)||n.addClass("chips"),i.chips(n,r),t++})},this.handleEvents=function(){var t=i.SELS;i.$document.off("click.chips-focus",t.CHIPS).on("click.chips-focus",t.CHIPS,function(n){e(n.target).find(t.INPUT).focus()}),i.$document.off("click.chips-select",t.CHIP).on("click.chips-select",t.CHIP,function(n){var o=e(n.target);if(o.length){var r=o.hasClass("selected"),a=o.closest(t.CHIPS);e(t.CHIP).removeClass("selected"),r||i.selectChip(o.index(),a)}}),i.$document.off("keydown.chips").on("keydown.chips",function(n){if(!e(n.target).is("input, textarea")){var o,r=i.$document.find(t.CHIP+t.SELECTED_CHIP),a=r.closest(t.CHIPS),s=r.siblings(t.CHIP).length;if(r.length)if(8===n.which||46===n.which){n.preventDefault(),o=r.index(),i.deleteChip(o,a);var l=null;o+1<s?l=o:o!==s&&o+1!==s||(l=s-1),l<0&&(l=null),null!==l&&i.selectChip(l,a),s||a.find("input").focus()}else if(37===n.which){if((o=r.index()-1)<0)return;e(t.CHIP).removeClass("selected"),i.selectChip(o,a)}else if(39===n.which){if(o=r.index()+1,e(t.CHIP).removeClass("selected"),o>s)return void a.find("input").focus();i.selectChip(o,a)}}}),i.$document.off("focusin.chips",t.CHIPS+" "+t.INPUT).on("focusin.chips",t.CHIPS+" "+t.INPUT,function(n){var i=e(n.target).closest(t.CHIPS);i.addClass("focus"),i.siblings("label, .prefix").addClass("active"),e(t.CHIP).removeClass("selected")}),i.$document.off("focusout.chips",t.CHIPS+" "+t.INPUT).on("focusout.chips",t.CHIPS+" "+t.INPUT,function(n){var i=e(n.target).closest(t.CHIPS);i.removeClass("focus"),void 0!==i.data("chips")&&i.data("chips").length||i.siblings("label").removeClass("active"),i.siblings(".prefix").removeClass("active")}),i.$document.off("keydown.chips-add",t.CHIPS+" "+t.INPUT).on("keydown.chips-add",t.CHIPS+" "+t.INPUT,function(n){var o=e(n.target),r=o.closest(t.CHIPS),a=r.children(t.CHIP).length;if(13===n.which){if(i.hasAutocomplete&&r.find(".autocomplete-content.dropdown-content").length&&r.find(".autocomplete-content.dropdown-content").children().length)return;return n.preventDefault(),i.addChip({tag:o.val()},r),void o.val("")}if((8===n.keyCode||37===n.keyCode)&&""===o.val()&&a)return n.preventDefault(),i.selectChip(a-1,r),void o.blur()}),i.$document.off("click.chips-delete",t.CHIPS+" "+t.DELETE).on("click.chips-delete",t.CHIPS+" "+t.DELETE,function(n){var o=e(n.target),r=o.closest(t.CHIPS),a=o.closest(t.CHIP);n.stopPropagation(),i.deleteChip(a.index(),r),r.find("input").focus()})},this.chips=function(t,n){t.empty(),t.data("chips").forEach(function(e){t.append(i.renderChip(e))}),t.append(e('<input id="'+n+'" class="input" placeholder="">')),i.setPlaceholder(t);var r=t.next("label");r.length&&(r.attr("for",n),void 0!==t.data("chips")&&t.data("chips").length&&r.addClass("active"));var a=e("#"+n);i.hasAutocomplete&&(o.autocompleteOptions.onAutocomplete=function(e){i.addChip({tag:e},t),a.val(""),a.focus()},a.autocomplete(o.autocompleteOptions))},this.renderChip=function(t){if(t.tag){var n=e('<div class="chip"></div>');return n.text(t.tag),t.image&&n.prepend(e("<img />").attr("src",t.image)),n.append(e('<i class="material-icons close">close</i>')),n}},this.setPlaceholder=function(e){void 0!==e.data("chips")&&!e.data("chips").length&&o.placeholder?e.find("input").prop("placeholder",o.placeholder):(void 0===e.data("chips")||e.data("chips").length)&&o.secondaryPlaceholder&&e.find("input").prop("placeholder",o.secondaryPlaceholder)},this.isValid=function(e,t){for(var n=e.data("chips"),i=!1,o=0;o<n.length;o++)if(n[o].tag===t.tag)return void(i=!0);return""!==t.tag&&!i},this.addChip=function(e,t){if(i.isValid(t,e)){for(var n=i.renderChip(e),o=[],r=t.data("chips"),a=0;a<r.length;a++)o.push(r[a]);o.push(e),t.data("chips",o),n.insertBefore(t.find("input")),t.trigger("chip.add",e),i.setPlaceholder(t)}},this.deleteChip=function(e,t){var n=t.data("chips")[e];t.find(".chip").eq(e).remove();for(var o=[],r=t.data("chips"),a=0;a<r.length;a++)a!==e&&o.push(r[a]);t.data("chips",o),t.trigger("chip.delete",n),i.setPlaceholder(t)},this.selectChip=function(e,t){var n=t.find(".chip").eq(e);n&&!1===n.hasClass("selected")&&(n.addClass("selected"),t.trigger("chip.select",t.data("chips")[e]))},this.getChipsElement=function(e,t){return t.eq(e)},this.init(),this.handleEvents()}}(e),function(e){e.fn.pushpin=function(t){var n={top:0,bottom:1/0,offset:0};return"remove"===t?(this.each(function(){(id=e(this).data("pushpin-id"))&&(e(window).off("scroll."+id),e(this).removeData("pushpin-id").removeClass("pin-top pinned pin-bottom").removeAttr("style"))}),!1):(t=e.extend(n,t),$index=0,this.each(function(){var n=Materialize.guid(),i=e(this),o=e(this).offset().top;function r(e){e.removeClass("pin-top"),e.removeClass("pinned"),e.removeClass("pin-bottom")}function a(n,i){n.each(function(){t.top<=i&&t.bottom>=i&&!e(this).hasClass("pinned")&&(r(e(this)),e(this).css("top",t.offset),e(this).addClass("pinned")),i<t.top&&!e(this).hasClass("pin-top")&&(r(e(this)),e(this).css("top",0),e(this).addClass("pin-top")),i>t.bottom&&!e(this).hasClass("pin-bottom")&&(r(e(this)),e(this).addClass("pin-bottom"),e(this).css("top",t.bottom-o))})}e(this).data("pushpin-id",n),a(i,e(window).scrollTop()),e(window).on("scroll."+n,function(){var n=e(window).scrollTop()+t.offset;a(i,n)})}))}}(e),function(e){e(document).ready(function(){e.fn.reverse=[].reverse,e(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(n){var i=e(this);t(i)}),e(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(t){var i=e(this);n(i)}),e(document).on("click.fabClickToggle",".fixed-action-btn.click-to-toggle > a",function(i){var o=e(this).parent();o.hasClass("active")?n(o):t(o)}),e(document).on("click.fabToolbar",".fixed-action-btn.toolbar > a",function(t){var n=e(this).parent();i(n)})}),e.fn.extend({openFAB:function(){t(e(this))},closeFAB:function(){n(e(this))},openToolbar:function(){i(e(this))},closeToolbar:function(){o(e(this))}});var t=function(t){var n=t;if(!1===n.hasClass("active")){var i,o;!0===n.hasClass("horizontal")?o=40:i=40,n.addClass("active"),n.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:i+"px",translateX:o+"px"},{duration:0});var r=0;n.find("ul .btn-floating").reverse().each(function(){e(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:r}),r+=40})}},n=function(e){var t,n,i=e;!0===i.hasClass("horizontal")?n=40:t=40,i.removeClass("active");i.find("ul .btn-floating").velocity("stop",!0),i.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:t+"px",translateX:n+"px"},{duration:80})},i=function(t){if("true"!==t.attr("data-open")){var n,i,r,a=window.innerWidth,s=window.innerHeight,l=t[0].getBoundingClientRect(),c=t.find("> a").first(),u=t.find("> ul").first(),d=e('<div class="fab-backdrop"></div>'),h=c.css("background-color");c.append(d),n=l.left-a/2+l.width/2,i=s-l.bottom,r=a/d.width(),t.attr("data-origin-bottom",l.bottom),t.attr("data-origin-left",l.left),t.attr("data-origin-width",l.width),t.addClass("active"),t.attr("data-open",!0),t.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+n+"px)",transition:"none"}),c.css({transform:"translateY("+-i+"px)",transition:"none"}),d.css({"background-color":h}),setTimeout(function(){t.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),c.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout(function(){t.css({overflow:"hidden","background-color":h}),d.css({transform:"scale("+r+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),u.find("> li > a").css({opacity:1}),e(window).on("scroll.fabToolbarClose",function(){o(t),e(window).off("scroll.fabToolbarClose"),e(document).off("click.fabToolbarClose")}),e(document).on("click.fabToolbarClose",function(n){e(n.target).closest(u).length||(o(t),e(window).off("scroll.fabToolbarClose"),e(document).off("click.fabToolbarClose"))})},100)},0)}},o=function(e){if("true"===e.attr("data-open")){var t,n,i=window.innerWidth,o=window.innerHeight,r=e.attr("data-origin-width"),a=e.attr("data-origin-bottom"),s=e.attr("data-origin-left"),l=e.find("> .btn-floating").first(),c=e.find("> ul").first(),u=e.find(".fab-backdrop"),d=l.css("background-color");t=s-i/2+r/2,n=o-a,i/u.width(),e.removeClass("active"),e.attr("data-open",!1),e.css({"background-color":"transparent",transition:"none"}),l.css({transition:"none"}),u.css({transform:"scale(0)","background-color":d}),c.find("> li > a").css({opacity:""}),setTimeout(function(){u.remove(),e.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-t+"px,0,0)"}),l.css({overflow:"",transform:"translate3d(0,"+n+"px,0)"}),setTimeout(function(){e.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),l.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})},20)},200)}}}(e),function(e){Materialize.fadeInImage=function(t){var n;if("string"==typeof t)n=e(t);else{if("object"!=typeof t)return;n=t}n.css({opacity:0}),e(n).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),e(n).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(t,n){n.start=100;var i=t/100,o=150-(100-t)/1.75;o<100&&(o=100),t>=0&&e(this).css({"-webkit-filter":"grayscale("+i+")brightness("+o+"%)",filter:"grayscale("+i+")brightness("+o+"%)"})}})},Materialize.showStaggeredList=function(t){var n;if("string"==typeof t)n=e(t);else{if("object"!=typeof t)return;n=t}var i=0;n.find("li").velocity({translateX:"-100px"},{duration:0}),n.find("li").each(function(){e(this).velocity({opacity:"1",translateX:"0"},{duration:800,delay:i,easing:[60,10]}),i+=120})},e(document).ready(function(){var t=!1,n=!1;e(".dismissable").each(function(){e(this).hammer({prevent_default:!1}).on("pan",function(i){if("touch"===i.gesture.pointerType){var o=e(this),r=i.gesture.direction,a=i.gesture.deltaX,s=i.gesture.velocityX;o.velocity({translateX:a},{duration:50,queue:!1,easing:"easeOutQuad"}),4===r&&(a>o.innerWidth()/2||s<-.75)&&(t=!0),2===r&&(a<-1*o.innerWidth()/2||s>.75)&&(n=!0)}}).on("panend",function(i){if(Math.abs(i.gesture.deltaX)<e(this).innerWidth()/2&&(n=!1,t=!1),"touch"===i.gesture.pointerType){var o,r=e(this);if(t||n)o=t?r.innerWidth():-1*r.innerWidth(),r.velocity({translateX:o},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){r.css("border","none"),r.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){r.remove()}})}});else r.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"});t=!1,n=!1}})})})}(e),p=!1,Materialize.scrollFire=function(e){var t=Materialize.throttle(function(){!function(){for(var t=window.pageYOffset+window.innerHeight,n=0;n<e.length;n++){var i=e[n],o=i.selector,r=i.offset,a=i.callback,s=document.querySelector(o);null!==s&&t>s.getBoundingClientRect().top+window.pageYOffset+r&&!0!==i.done&&("function"==typeof a?a.call(this,s):"string"==typeof a&&new Function(a)(s),i.done=!0)}}()},e.throttle||100);p||(window.addEventListener("scroll",t),window.addEventListener("resize",t),p=!0),setTimeout(t,0)},Materialize.Picker=function(e){var t=e(window),n=e(document),i=e(document.documentElement);function o(t,s,c,u){if(!t)return o;var d=!1,h={id:t.id||"P"+Math.abs(~~(Math.random()*new Date))},p=c?e.extend(!0,{},c.defaults,u):u||{},f=e.extend({},o.klasses(),p.klass),m=e(t),g=function(){return this.start()},v=g.prototype={constructor:g,$node:m,start:function(){return h&&h.start?v:(h.methods={},h.start=!0,h.open=!1,h.type=t.type,t.autofocus=t==l(),t.readOnly=!p.editable,t.id=t.id||h.id,"text"!=t.type&&(t.type="text"),v.component=new c(v,p),v.$root=e(o._.node("div",y(),f.picker,'id="'+t.id+'_root" tabindex="0"')),v.$root.on({keydown:b,focusin:function(e){v.$root.removeClass(f.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=v.$root.children()[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),v.$root.eq(0).focus()))}}).on({focus:function(){m.addClass(f.target)},blur:function(){m.removeClass(f.target)}}).on("focus.toOpen",w).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),i=t.hasClass(f.navDisabled)||t.hasClass(f.disabled),o=l();o=o&&(o.type||o.href)&&o,(i||o&&!e.contains(v.$root[0],o))&&v.$root.eq(0).focus(),!i&&n.nav?v.set("highlight",v.component.item.highlight,{nav:n.nav}):!i&&"pick"in n?(v.set("select",n.pick),p.closeOnSelect&&v.close(!0)):n.clear?(v.clear(),p.closeOnSelect&&v.close(!0)):n.close&&v.close(!0)}),a(v.$root[0],"hidden",!0),p.formatSubmit&&(!0===p.hiddenName?(r=t.name,t.name=""):r=(r=["string"==typeof p.hiddenPrefix?p.hiddenPrefix:"","string"==typeof p.hiddenSuffix?p.hiddenSuffix:"_submit"])[0]+t.name+r[1],v._hidden=e('<input type=hidden name="'+r+'"'+(m.data("value")||t.value?' value="'+v.get("select",p.formatSubmit)+'"':"")+">")[0],m.on("change."+h.id,function(){v._hidden.value=t.value?v.get("select",p.formatSubmit):""}),p.container?e(p.container).append(v._hidden):m.before(v._hidden)),m.data(s,v).addClass(f.input).attr("tabindex",-1).val(m.data("value")?v.get("select",p.format):t.value),p.editable||m.on("focus."+h.id+" click."+h.id,function(e){e.preventDefault(),v.$root.eq(0).focus()}).on("keydown."+h.id,b),a(t,{haspopup:!0,expanded:!1,readonly:!1,owns:t.id+"_root"}),p.container?e(p.container).append(v.$root):m.before(v.$root),v.on({start:v.component.onStart,render:v.component.onRender,stop:v.component.onStop,open:v.component.onOpen,close:v.component.onClose,set:v.component.onSet}).on({start:p.onStart,render:p.onRender,stop:p.onStop,open:p.onOpen,close:p.onClose,set:p.onSet}),(n=v.$root.children()[0]).currentStyle?i=n.currentStyle.position:window.getComputedStyle&&(i=getComputedStyle(n).position),d="fixed"==i,t.autofocus&&v.open(),v.trigger("start").trigger("render"));var n,i,r},render:function(e){return e?v.$root.html(y()):v.$root.find("."+f.box).html(v.component.nodes(h.open)),v.trigger("render")},stop:function(){return h.start?(v.close(),v._hidden&&v._hidden.parentNode.removeChild(v._hidden),v.$root.remove(),m.removeClass(f.input).removeData(s),setTimeout(function(){m.off("."+h.id)},0),t.type=h.type,t.readOnly=!1,v.trigger("stop"),h.methods={},h.start=!1,v):v},open:function(s){return h.open?v:(m.addClass(f.active),a(t,"expanded",!0),setTimeout(function(){v.$root.addClass(f.opened),a(v.$root[0],"hidden",!1)},0),!1!==s&&(h.open=!0,d&&i.css("overflow","hidden").css("padding-right","+="+r()),v.$root.eq(0).focus(),n.on("click."+h.id+" focusin."+h.id,function(e){var n=e.target;n!=t&&n!=document&&3!=e.which&&v.close(n===v.$root.children()[0])}).on("keydown."+h.id,function(t){var n=t.keyCode,i=v.component.key[n],r=t.target;27==n?v.close(!0):r!=v.$root[0]||!i&&13!=n?e.contains(v.$root[0],r)&&13==n&&(t.preventDefault(),r.click()):(t.preventDefault(),i?o._.trigger(v.component.key.go,v,[o._.trigger(i)]):v.$root.find("."+f.highlighted).hasClass(f.disabled)||(v.set("select",v.component.item.highlight),p.closeOnSelect&&v.close(!0)))})),v.trigger("open"))},close:function(e){return e&&(v.$root.off("focus.toOpen").eq(0).focus(),setTimeout(function(){v.$root.on("focus.toOpen",w)},0)),m.removeClass(f.active),a(t,"expanded",!1),setTimeout(function(){v.$root.removeClass(f.opened+" "+f.focused),a(v.$root[0],"hidden",!0)},0),h.open?(h.open=!1,d&&i.css("overflow","").css("padding-right","-="+r()),n.off("."+h.id),v.trigger("close")):v},clear:function(e){return v.set("clear",null,e)},set:function(t,n,i){var o,r,a=e.isPlainObject(t),s=a?t:{};if(i=a&&e.isPlainObject(n)?n:i||{},t){for(o in a||(s[t]=n),s)r=s[o],o in v.component.item&&(void 0===r&&(r=null),v.component.set(o,r,i)),"select"!=o&&"clear"!=o||m.val("clear"==o?"":v.get(o,p.format)).trigger("change");v.render()}return i.muted?v:v.trigger("set",s)},get:function(e,n){if(null!=h[e=e||"value"])return h[e];if("valueSubmit"==e){if(v._hidden)return v._hidden.value;e="value"}if("value"==e)return t.value;if(e in v.component.item){if("string"==typeof n){var i=v.component.get(e);return i?o._.trigger(v.component.formats.toString,v.component,[n,i]):""}return v.component.get(e)}},on:function(t,n,i){var o,r,a=e.isPlainObject(t),s=a?t:{};if(t)for(o in a||(s[t]=n),s)r=s[o],i&&(o="_"+o),h.methods[o]=h.methods[o]||[],h.methods[o].push(r);return v},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in h.methods&&delete h.methods[t];return v},trigger:function(e,t){var n=function(e){var n=h.methods[e];n&&n.map(function(e){o._.trigger(e,v,[t])})};return n("_"+e),n(e),v}};function y(){return o._.node("div",o._.node("div",o._.node("div",o._.node("div",v.component.nodes(h.open),f.box),f.wrap),f.frame),f.holder)}function b(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return v.close(),!1;(32==t||n||!h.open&&v.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?v.clear().close():v.open())}function w(e){e.stopPropagation(),"focus"==e.type&&v.$root.addClass(f.focused),v.open()}return new g}function r(){if(i.height()<=t.height())return 0;var n=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),o=n[0].offsetWidth;n.css("overflow","scroll");var r=e('<div style="width:100%" />').appendTo(n),a=r[0].offsetWidth;return n.remove(),o-a}function a(t,n,i){if(e.isPlainObject(n))for(var o in n)s(t,o,n[o]);else s(t,n,i)}function s(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function l(){try{return document.activeElement}catch(e){}}return o.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},o._={group:function(e){for(var t,n="",i=o._.trigger(e.min,e);i<=o._.trigger(e.max,e,[i]);i+=e.i)t=o._.trigger(e.item,e,[i]),n+=o._.node(e.node,t[0],t[1],t[2]);return n},node:function(t,n,i,o){return n?"<"+t+(i=i?' class="'+i+'"':"")+(o=o?" "+o:"")+">"+(n=e.isArray(n)?n.join(""):n)+"</"+t+">":""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1==0},ariaAttr:function(t,n){for(var i in e.isPlainObject(t)||(t={attribute:n}),n="",t){var o=("role"==i?"":"aria-")+i,r=t[i];n+=null==r?"":o+'="'+t[i]+'"'}return n}},o.extend=function(t,n){e.fn[t]=function(i,r){var a=this.data(t);return"picker"==i?a:a&&"string"==typeof i?o._.trigger(a[i],a,[r]):this.each(function(){e(this).data(t)||new o(this,t,n,i)})},e.fn[t].defaults=n.defaults},o}(e),function(e,t){var n,i=e._;function o(e,t){var n,i=this,o=e.$node[0],r=o.value,a=e.$node.data("value"),s=a||r,l=a?t.formatSubmit:t.format,c=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};i.settings=t,i.$node=e.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(t.disable||[]).slice(0),i.item.enable=-(!0===(n=i.item.disable)[0]?n.shift():-1),i.set("min",t.min).set("max",t.max).set("now"),s?i.set("select",s,{format:l}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return c()?-1:1},37:function(){return c()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var n=this.value;n&&(e.set("highlight",[e.get("view").year,n,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var n=this.value;n&&(e.set("highlight",[n,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}o.prototype.set=function(e,t,n){var i=this,o=i.item;return null===t?("clear"==e&&(e="select"),o[e]=t,i):(o["enable"==e?"disable":"flip"==e?"enable":e]=i.queue[e].split(" ").map(function(o){return t=i[o](e,t,n)}).pop(),"select"==e?i.set("highlight",o.select,n):"highlight"==e?i.set("view",o.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(o.select&&i.disabled(o.select)&&i.set("select",o.select,n),o.highlight&&i.disabled(o.highlight)&&i.set("highlight",o.highlight,n)),i)},o.prototype.get=function(e){return this.item[e]},o.prototype.create=function(e,n,o){var r;return(n=void 0===n?e:n)==-1/0||n==1/0?r=n:t.isPlainObject(n)&&i.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=i.isDate(n)?n:this.create().obj):n=i.isInteger(n)||i.isDate(n)?this.normalize(new Date(n),o):this.now(e,n,o),{year:r||n.getFullYear(),month:r||n.getMonth(),date:r||n.getDate(),day:r||n.getDay(),obj:r||n,pick:r||n.getTime()}},o.prototype.createRange=function(e,n){var o=this,r=function(e){return!0===e||t.isArray(e)||i.isDate(e)?o.create(e):e};return i.isInteger(e)||(e=r(e)),i.isInteger(n)||(n=r(n)),i.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:i.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:r(e),to:r(n)}},o.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},o.prototype.overlapRanges=function(e,t){return e=this.createRange(e.from,e.to),t=this.createRange(t.from,t.to),this.withinRange(e,t.from)||this.withinRange(e,t.to)||this.withinRange(t,e.from)||this.withinRange(t,e.to)},o.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},o.prototype.navigate=function(e,n,i){var o,r,a,s,l=t.isArray(n),c=t.isPlainObject(n),u=this.item.view;if(l||c){for(c?(r=n.year,a=n.month,s=n.date):(r=+n[0],a=+n[1],s=+n[2]),i&&i.nav&&u&&u.month!==a&&(r=u.year,a=u.month),o=new Date(r,a+(i&&i.nav?i.nav:0),1),r=o.getFullYear(),a=o.getMonth();new Date(r,a,s).getMonth()!==a;)s-=1;n=[r,a,s]}return n},o.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},o.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):i.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},o.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},o.prototype.validate=function(e,n,o){var r,a,s,l,c=this,u=n,d=o&&o.interval?o.interval:1,h=-1===c.item.enable,p=c.item.min,f=c.item.max,m=h&&c.item.disable.filter(function(e){if(t.isArray(e)){var o=c.create(e).pick;o<n.pick?r=!0:o>n.pick&&(a=!0)}return i.isInteger(e)}).length;if((!o||!o.nav)&&(!h&&c.disabled(n)||h&&c.disabled(n)&&(m||r||a)||!h&&(n.pick<=p.pick||n.pick>=f.pick)))for(h&&!m&&(!a&&d>0||!r&&d<0)&&(d*=-1);c.disabled(n)&&(Math.abs(d)>1&&(n.month<u.month||n.month>u.month)&&(n=u,d=d>0?1:-1),n.pick<=p.pick?(s=!0,d=1,n=c.create([p.year,p.month,p.date+(n.pick===p.pick?0:-1)])):n.pick>=f.pick&&(l=!0,d=-1,n=c.create([f.year,f.month,f.date+(n.pick===f.pick?0:1)])),!s||!l);)n=c.create([n.year,n.month,n.date+d]);return n},o.prototype.disabled=function(e){var n=this,o=n.item.disable.filter(function(o){return i.isInteger(o)?e.day===(n.settings.firstDay?o:o-1)%7:t.isArray(o)||i.isDate(o)?e.pick===n.create(o).pick:t.isPlainObject(o)?n.withinRange(o,e):void 0});return o=o.length&&!o.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!o:o||e.pick<n.item.min.pick||e.pick>n.item.max.pick},o.prototype.parse=function(e,t,n){var o=this,r={};return t&&"string"==typeof t?(n&&n.format||((n=n||{}).format=o.settings.format),o.formats.toArray(n.format).map(function(e){var n=o.formats[e],a=n?i.trigger(n,o,[t,r]):e.replace(/^!/,"").length;n&&(r[e]=t.substr(0,a)),t=t.substr(a)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):t},o.prototype.formats=function(){function e(e,t,n){var i=e.match(/\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(i)+1),i.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?i.digits(e):t.date},dd:function(e,t){return e?2:i.lead(t.date)},ddd:function(e,n){return e?t(e):this.settings.weekdaysShort[n.day]},dddd:function(e,n){return e?t(e):this.settings.weekdaysFull[n.day]},m:function(e,t){return e?i.digits(e):t.month+1},mm:function(e,t){return e?2:i.lead(t.month+1)},mmm:function(t,n){var i=this.settings.monthsShort;return t?e(t,i,n):i[n.month]},mmmm:function(t,n){var i=this.settings.monthsFull;return t?e(t,i,n):i[n.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return i.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),o.prototype.isDateExact=function(e,n){return i.isInteger(e)&&i.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(i.isDate(e)||t.isArray(e))&&(i.isDate(n)||t.isArray(n))?this.create(e).pick===this.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&this.isDateExact(e.from,n.from)&&this.isDateExact(e.to,n.to)},o.prototype.isDateOverlap=function(e,n){var o=this.settings.firstDay?1:0;return i.isInteger(e)&&(i.isDate(n)||t.isArray(n))?(e=e%7+o)===this.create(n).day+1:i.isInteger(n)&&(i.isDate(e)||t.isArray(e))?(n=n%7+o)===this.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&this.overlapRanges(e,n)},o.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},o.prototype.deactivate=function(e,n){var o=this,r=o.item.disable.slice(0);return"flip"==n?o.flipEnable():!1===n?(o.flipEnable(1),r=[]):!0===n?(o.flipEnable(-1),r=[]):n.map(function(e){for(var n,a=0;a<r.length;a+=1)if(o.isDateExact(e,r[a])){n=!0;break}n||(i.isInteger(e)||i.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},o.prototype.activate=function(e,n){var o=this,r=o.item.disable,a=r.length;return"flip"==n?o.flipEnable():!0===n?(o.flipEnable(1),r=[]):!1===n?(o.flipEnable(-1),r=[]):n.map(function(e){var n,s,l,c;for(l=0;l<a;l+=1){if(s=r[l],o.isDateExact(s,e)){n=r[l]=null,c=!0;break}if(o.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[3]||n.push("inverted"):i.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(l=0;l<a;l+=1)if(o.isDateExact(r[l],e)){r[l]=null;break}if(c)for(l=0;l<a;l+=1)if(o.isDateOverlap(r[l],e)){r[l]=null;break}n&&r.push(n)}),r.filter(function(e){return null!=e})},o.prototype.nodes=function(e){var t,n,o=this,r=o.settings,a=o.item,s=a.now,l=a.select,c=a.highlight,u=a.view,d=a.disable,h=a.min,p=a.max,f=(t=(r.showWeekdaysFull?r.weekdaysFull:r.weekdaysLetter).slice(0),n=r.weekdaysFull.slice(0),r.firstDay&&(t.push(t.shift()),n.push(n.shift())),i.node("thead",i.node("tr",i.group({min:0,max:6,i:1,node:"th",item:function(e){return[t[e],r.klass.weekdays,'scope=col title="'+n[e]+'"']}})))),m=function(e){return i.node("div"," ",r.klass["nav"+(e?"Next":"Prev")]+(e&&u.year>=p.year&&u.month>=p.month||!e&&u.year<=h.year&&u.month<=h.month?" "+r.klass.navDisabled:""),"data-nav="+(e||-1)+" "+i.ariaAttr({role:"button",controls:o.$node[0].id+"_table"})+' title="'+(e?r.labelMonthNext:r.labelMonthPrev)+'"')},g=function(t){var n=r.showMonthsShort?r.monthsShort:r.monthsFull;return"short_months"==t&&(n=r.monthsShort),r.selectMonths&&null==t?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(e){return[n[e],0,"value="+e+(u.month==e?" selected":"")+(u.year==h.year&&e<h.month||u.year==p.year&&e>p.month?" disabled":"")]}}),r.klass.selectMonth+" browser-default",(e?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+r.labelMonthSelect+'"'):"short_months"==t?null!=l?n[l.month]:n[u.month]:i.node("div",n[u.month],r.klass.month)},v=function(t){var n=u.year,a=!0===r.selectYears?5:~~(r.selectYears/2);if(a){var s=h.year,c=p.year,d=n-a,f=n+a;if(s>d&&(f+=s-d,d=s),c<f){var m=d-s,g=f-c;d-=m>g?g:m,f=c}if(r.selectYears&&null==t)return i.node("select",i.group({min:d,max:f,i:1,node:"option",item:function(e){return[e,0,"value="+e+(n==e?" selected":"")]}}),r.klass.selectYear+" browser-default",(e?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+r.labelYearSelect+'"')}return"raw"===t&&null!=l?i.node("div",l.year):i.node("div",n,r.klass.year)};return createDayLabel=function(){return null!=l?l.date:s.date},createWeekdayLabel=function(){var e;e=null!=l?l.day:s.day;var t=r.weekdaysShort[e];return t},i.node("div",i.node("div",v("raw"),r.klass.year_display)+i.node("span",createWeekdayLabel()+", ","picker__weekday-display")+i.node("span",g("short_months")+" ",r.klass.month_display)+i.node("span",createDayLabel(),r.klass.day_display),r.klass.date_display)+i.node("div",i.node("div",i.node("div",(r.selectYears,g()+v()+m()+m(1)),r.klass.header)+i.node("table",f+i.node("tbody",i.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=r.firstDay&&0===o.create([u.year,u.month,1]).day?-7:0;return[i.group({min:7*e-u.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=o.create([u.year,u.month,e+(r.firstDay?1:0)]);var t,n=l&&l.pick==e.pick,a=c&&c.pick==e.pick,f=d&&o.disabled(e)||e.pick<h.pick||e.pick>p.pick,m=i.trigger(o.formats.toString,o,[r.format,e]);return[i.node("div",e.date,(t=[r.klass.day],t.push(u.month==e.month?r.klass.infocus:r.klass.outfocus),s.pick==e.pick&&t.push(r.klass.now),n&&t.push(r.klass.selected),a&&t.push(r.klass.highlighted),f&&t.push(r.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+i.ariaAttr({role:"gridcell",label:m,selected:!(!n||o.$node.val()!==m)||null,activedescendant:!!a||null,disabled:!!f||null})+" "+(f?"":'tabindex="0"')),"",i.ariaAttr({role:"presentation"})]}})]}})),r.klass.table,'id="'+o.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:o.$node[0].id,readonly:!0})),r.klass.calendar_container)+i.node("div",i.node("button",r.today,"btn-flat picker__today waves-effect","type=button data-pick="+s.pick+(e&&!o.disabled(s)?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",r.clear,"btn-flat picker__clear waves-effect","type=button data-clear=1"+(e?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",r.close,"btn-flat picker__close waves-effect","type=button data-close=true "+(e?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id})),r.klass.footer),"picker__container__wrapper")},o.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysLetter:["S","M","T","W","T","F","S"],today:"Today",clear:"Clear",close:"Ok",closeOnSelect:!1,format:"d mmmm, yyyy",klass:{table:(n=e.klasses().picker+"__")+"table",header:n+"header",date_display:n+"date-display",day_display:n+"day-display",month_display:n+"month-display",year_display:n+"year-display",calendar_container:n+"calendar-container",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}},e.extend("pickadate",o)}(Materialize.Picker,e),
  /*!
    * ClockPicker v0.0.7 (http://weareoutman.github.io/clockpicker/)
    * Copyright 2014 Wang Shenwei.
    * Licensed under MIT (https://github.com/weareoutman/clockpicker/blob/gh-pages/LICENSE)
    *
    * Further modified
    * Copyright 2015 Ching Yaw Hao.
    */
  function(e){var t,n,i,o=e(window),r=e(document),a="http://www.w3.org/2000/svg",s="SVGAngle"in window&&((n=document.createElement("div")).innerHTML="<svg/>",t=(n.firstChild&&n.firstChild.namespaceURI)==a,n.innerHTML="",t),l="transition"in(i=document.createElement("div").style)||"WebkitTransition"in i||"MozTransition"in i||"msTransition"in i||"OTransition"in i,c="ontouchstart"in window,u="mousedown"+(c?" touchstart":""),d="mousemove.clockpicker"+(c?" touchmove.clockpicker":""),h="mouseup.clockpicker"+(c?" touchend.clockpicker":""),p=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null;function f(e){return document.createElementNS(a,e)}function m(e){return(e<10?"0":"")+e}var g=0;var v=135,y=105,b=70,w=20,x=2*v,C=l?350:1,k=['<div class="clockpicker picker">','<div class="picker__holder">','<div class="picker__frame">','<div class="picker__wrap">','<div class="picker__box">','<div class="picker__date-display">','<div class="clockpicker-display">','<div class="clockpicker-display-column">','<span class="clockpicker-span-hours text-primary"></span>',":",'<span class="clockpicker-span-minutes"></span>',"</div>",'<div class="clockpicker-display-column clockpicker-display-am-pm">','<div class="clockpicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="picker__container__wrapper">','<div class="picker__calendar-container">','<div class="clockpicker-plate">','<div class="clockpicker-canvas"></div>','<div class="clockpicker-dial clockpicker-hours"></div>','<div class="clockpicker-dial clockpicker-minutes clockpicker-dial-out"></div>',"</div>",'<div class="clockpicker-am-pm-block">',"</div>","</div>",'<div class="picker__footer">',"</div>","</div>","</div>","</div>","</div>","</div>","</div>"].join("");function E(t,n){var i,o,a=e(k),l=a.find(".clockpicker-plate"),c=a.find(".picker__holder"),p=a.find(".clockpicker-hours"),E=a.find(".clockpicker-minutes"),S=a.find(".clockpicker-am-pm-block"),A="INPUT"===t.prop("tagName"),D=A?t:t.find("input"),_=e("label[for="+D.attr("id")+"]"),N=this;this.id=(o=++g+"",(i="cp")?i+o:o),this.element=t,this.holder=c,this.options=n,this.isAppended=!1,this.isShown=!1,this.currentView="hours",this.isInput=A,this.input=D,this.label=_,this.popover=a,this.plate=l,this.hoursView=p,this.minutesView=E,this.amPmBlock=S,this.spanHours=a.find(".clockpicker-span-hours"),this.spanMinutes=a.find(".clockpicker-span-minutes"),this.spanAmPm=a.find(".clockpicker-span-am-pm"),this.footer=a.find(".picker__footer"),this.amOrPm="PM",n.twelvehour&&(n.ampmclickable?(this.spanAmPm.empty(),e('<div id="click-am">AM</div>').on("click",function(){N.spanAmPm.children("#click-am").addClass("text-primary"),N.spanAmPm.children("#click-pm").removeClass("text-primary"),N.amOrPm="AM"}).appendTo(this.spanAmPm),e('<div id="click-pm">PM</div>').on("click",function(){N.spanAmPm.children("#click-pm").addClass("text-primary"),N.spanAmPm.children("#click-am").removeClass("text-primary"),N.amOrPm="PM"}).appendTo(this.spanAmPm)):(this.spanAmPm.empty(),e('<div id="click-am">AM</div>').appendTo(this.spanAmPm),e('<div id="click-pm">PM</div>').appendTo(this.spanAmPm))),e('<button type="button" class="btn-flat picker__clear" tabindex="'+(n.twelvehour?"3":"1")+'">'+n.cleartext+"</button>").click(e.proxy(this.clear,this)).appendTo(this.footer),e('<button type="button" class="btn-flat picker__close" tabindex="'+(n.twelvehour?"3":"1")+'">'+n.canceltext+"</button>").click(e.proxy(this.hide,this)).appendTo(this.footer),e('<button type="button" class="btn-flat picker__close" tabindex="'+(n.twelvehour?"3":"1")+'">'+n.donetext+"</button>").click(e.proxy(this.done,this)).appendTo(this.footer),this.spanHours.click(e.proxy(this.toggleView,this,"hours")),this.spanMinutes.click(e.proxy(this.toggleView,this,"minutes")),D.on("focus.clockpicker click.clockpicker",e.proxy(this.show,this));var P,O,L,M,I=e('<div class="clockpicker-tick"></div>');if(n.twelvehour)for(P=1;P<13;P+=1)O=I.clone(),L=P/6*Math.PI,M=y,O.css({left:v+Math.sin(L)*M-w,top:v-Math.cos(L)*M-w}),O.html(0===P?"00":P),p.append(O),O.on(u,F);else for(P=0;P<24;P+=1){O=I.clone(),L=P/6*Math.PI,M=P>0&&P<13?b:y,O.css({left:v+Math.sin(L)*M-w,top:v-Math.cos(L)*M-w}),O.html(0===P?"00":P),p.append(O),O.on(u,F)}for(P=0;P<60;P+=5)O=I.clone(),L=P/30*Math.PI,O.css({left:v+Math.sin(L)*y-w,top:v-Math.cos(L)*y-w}),O.html(m(P)),E.append(O),O.on(u,F);function F(e,t){var i=l.offset(),o=/^touch/.test(e.type),a=i.left+v,s=i.top+v,c=(o?e.originalEvent.touches[0]:e).pageX-a,u=(o?e.originalEvent.touches[0]:e).pageY-s,p=Math.sqrt(c*c+u*u),f=!1;if(!t||!(p<y-w||p>y+w)){e.preventDefault();var m=setTimeout(function(){N.popover.addClass("clockpicker-moving")},200);N.setHand(c,u,!t,!0),r.off(d).on(d,function(e){e.preventDefault();var t=/^touch/.test(e.type),n=(t?e.originalEvent.touches[0]:e).pageX-a,i=(t?e.originalEvent.touches[0]:e).pageY-s;(f||n!==c||i!==u)&&(f=!0,N.setHand(n,i,!1,!0))}),r.off(h).on(h,function(e){r.off(h),e.preventDefault();var i=/^touch/.test(e.type),o=(i?e.originalEvent.changedTouches[0]:e).pageX-a,p=(i?e.originalEvent.changedTouches[0]:e).pageY-s;(t||f)&&o===c&&p===u&&N.setHand(o,p),"hours"===N.currentView?N.toggleView("minutes",C/2):n.autoclose&&(N.minutesView.addClass("clockpicker-dial-out"),setTimeout(function(){N.done()},C/2)),l.prepend(R),clearTimeout(m),N.popover.removeClass("clockpicker-moving"),r.off(d)})}}if(l.on(u,function(t){0===e(t.target).closest(".clockpicker-tick").length&&F(t,!0)}),s){var R=a.find(".clockpicker-canvas"),j=f("svg");j.setAttribute("class","clockpicker-svg"),j.setAttribute("width",x),j.setAttribute("height",x);var q=f("g");q.setAttribute("transform","translate("+v+","+v+")");var H=f("circle");H.setAttribute("class","clockpicker-canvas-bearing"),H.setAttribute("cx",0),H.setAttribute("cy",0),H.setAttribute("r",4);var z=f("line");z.setAttribute("x1",0),z.setAttribute("y1",0);var $=f("circle");$.setAttribute("class","clockpicker-canvas-bg"),$.setAttribute("r",w),q.appendChild(z),q.appendChild($),q.appendChild(H),j.appendChild(q),R.append(j),this.hand=z,this.bg=$,this.bearing=H,this.g=q,this.canvas=R}T(this.options.init)}function T(e){e&&"function"==typeof e&&e()}E.DEFAULTS={default:"",fromnow:0,donetext:"Ok",cleartext:"Clear",canceltext:"Cancel",autoclose:!1,ampmclickable:!0,darktheme:!1,twelvehour:!0,vibrate:!0},E.prototype.toggle=function(){this[this.isShown?"hide":"show"]()},E.prototype.locate=function(){var e=this.element,t=this.popover;e.offset(),e.outerWidth(),e.outerHeight(),this.options.align;t.show()},E.prototype.show=function(t){if(!this.isShown){T(this.options.beforeShow),e(":input").each(function(){e(this).attr("tabindex",-1)});var n=this;this.input.blur(),this.popover.addClass("picker--opened"),this.input.addClass("picker__input picker__input--active"),e(document.body).css("overflow","hidden");var i=((this.input.prop("value")||this.options.default||"")+"").split(":");if(this.options.twelvehour&&void 0!==i[1]&&(i[1].indexOf("AM")>0?this.amOrPm="AM":this.amOrPm="PM",i[1]=i[1].replace("AM","").replace("PM","")),"now"===i[0]){var a=new Date(+new Date+this.options.fromnow);i=[a.getHours(),a.getMinutes()],this.options.twelvehour&&(this.amOrPm=i[0]>=12&&i[0]<24?"PM":"AM")}if(this.hours=+i[0]||0,this.minutes=+i[1]||0,this.spanHours.html(this.hours),this.spanMinutes.html(m(this.minutes)),!this.isAppended){var s=document.querySelector(this.options.container);this.options.container&&s?s.appendChild(this.popover[0]):this.popover.insertAfter(this.input),this.options.twelvehour&&("PM"===this.amOrPm?(this.spanAmPm.children("#click-pm").addClass("text-primary"),this.spanAmPm.children("#click-am").removeClass("text-primary")):(this.spanAmPm.children("#click-am").addClass("text-primary"),this.spanAmPm.children("#click-pm").removeClass("text-primary"))),o.on("resize.clockpicker"+this.id,function(){n.isShown&&n.locate()}),this.isAppended=!0}this.toggleView("hours"),this.locate(),this.isShown=!0,r.on("click.clockpicker."+this.id+" focusin.clockpicker."+this.id,function(t){var i=e(t.target);0===i.closest(n.popover.find(".picker__wrap")).length&&0===i.closest(n.input).length&&n.hide()}),r.on("keyup.clockpicker."+this.id,function(e){27===e.keyCode&&n.hide()}),T(this.options.afterShow)}},E.prototype.hide=function(){T(this.options.beforeHide),this.input.removeClass("picker__input picker__input--active"),this.popover.removeClass("picker--opened"),e(document.body).css("overflow","visible"),this.isShown=!1,e(":input").each(function(t){e(this).attr("tabindex",t+1)}),r.off("click.clockpicker."+this.id+" focusin.clockpicker."+this.id),r.off("keyup.clockpicker."+this.id),this.popover.hide(),T(this.options.afterHide)},E.prototype.toggleView=function(t,n){var i=!1;"minutes"===t&&"visible"===e(this.hoursView).css("visibility")&&(T(this.options.beforeHourSelect),i=!0);var o="hours"===t,r=o?this.hoursView:this.minutesView,a=o?this.minutesView:this.hoursView;this.currentView=t,this.spanHours.toggleClass("text-primary",o),this.spanMinutes.toggleClass("text-primary",!o),a.addClass("clockpicker-dial-out"),r.css("visibility","visible").removeClass("clockpicker-dial-out"),this.resetClock(n),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){a.css("visibility","hidden")},C),i&&T(this.options.afterHourSelect)},E.prototype.resetClock=function(e){var t=this.currentView,n=this[t],i="hours"===t,o=n*(Math.PI/(i?6:30)),r=i&&n>0&&n<13?b:y,a=Math.sin(o)*r,l=-Math.cos(o)*r,c=this;s&&e?(c.canvas.addClass("clockpicker-canvas-out"),setTimeout(function(){c.canvas.removeClass("clockpicker-canvas-out"),c.setHand(a,l)},e)):this.setHand(a,l)},E.prototype.setHand=function(t,n,i,o){var r,a=Math.atan2(t,-n),l="hours"===this.currentView,c=Math.PI/(l||i?6:30),u=Math.sqrt(t*t+n*n),d=this.options,h=l&&u<(y+b)/2,f=h?b:y;if(d.twelvehour&&(f=y),a<0&&(a=2*Math.PI+a),a=(r=Math.round(a/c))*c,d.twelvehour?l?0===r&&(r=12):(i&&(r*=5),60===r&&(r=0)):l?(12===r&&(r=0),r=h?0===r?12:r:0===r?0:r+12):(i&&(r*=5),60===r&&(r=0)),this[this.currentView]!==r&&p&&this.options.vibrate&&(this.vibrateTimer||(navigator[p](10),this.vibrateTimer=setTimeout(e.proxy(function(){this.vibrateTimer=null},this),100))),this[this.currentView]=r,l?this.spanHours.html(r):this.spanMinutes.html(m(r)),s){var g=Math.sin(a)*(f-w),v=-Math.cos(a)*(f-w),x=Math.sin(a)*f,C=-Math.cos(a)*f;this.hand.setAttribute("x2",g),this.hand.setAttribute("y2",v),this.bg.setAttribute("cx",x),this.bg.setAttribute("cy",C)}else this[l?"hoursView":"minutesView"].find(".clockpicker-tick").each(function(){var t=e(this);t.toggleClass("active",r===+t.html())})},E.prototype.done=function(){T(this.options.beforeDone),this.hide(),this.label.addClass("active");var e=this.input.prop("value"),t=m(this.hours)+":"+m(this.minutes);this.options.twelvehour&&(t+=this.amOrPm),this.input.prop("value",t),t!==e&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change")),this.options.autoclose&&this.input.trigger("blur"),T(this.options.afterDone)},E.prototype.clear=function(){this.hide(),this.label.removeClass("active");var e=this.input.prop("value");this.input.prop("value",""),""!==e&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change")),this.options.autoclose&&this.input.trigger("blur")},E.prototype.remove=function(){this.element.removeData("clockpicker"),this.input.off("focus.clockpicker click.clockpicker"),this.isShown&&this.hide(),this.isAppended&&(o.off("resize.clockpicker"+this.id),this.popover.remove())},e.fn.pickatime=function(t){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=e(this),o=i.data("clockpicker");if(o)"function"==typeof o[t]&&o[t].apply(o,n);else{var r=e.extend({},E.DEFAULTS,i.data(),"object"==typeof t&&t);i.data("clockpicker",new E(i,r))}})}}(e),function(e){function t(){var t=+e(this).attr("data-length"),n=+e(this).val().length,i=n<=t;e(this).parent().find('span[class="character-counter"]').html(n+"/"+t),function(e,t){var n=t.hasClass("invalid");e&&n?t.removeClass("invalid"):e||n||(t.removeClass("valid"),t.addClass("invalid"))}(i,e(this))}function n(){e(this).parent().find('span[class="character-counter"]').html("")}e.fn.characterCounter=function(){return this.each(function(){var i=e(this);i.parent().find('span[class="character-counter"]').length||void 0!==i.attr("data-length")&&(i.on("input",t),i.on("focus",t),i.on("blur",n),function(t){var n=t.parent().find('span[class="character-counter"]');if(n.length)return;n=e("<span/>").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1),t.parent().append(n)}(i))})},e(document).ready(function(){e("input, textarea").characterCounter()})}(e),function(e){var t={init:function(t){t=e.extend({duration:200,dist:-100,shift:0,padding:0,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},t);var n=Materialize.objectSelectorString(e(this));return this.each(function(i){var o,r,a,s,l,c,u,d,h,p,f,m,g,v,b,w,x,C,k,E=e('<ul class="indicators"></ul>'),T=null,S=null,A=e(this),D=A.find(".carousel-item").length>1,_=(A.attr("data-indicators")||t.indicators)&&D,N=A.attr("data-no-wrap")||t.noWrap||!D,P=A.attr("data-namespace")||n+i;A.attr("data-namespace",P);var O=function(t){var n=A.find(".carousel-item.active").length?A.find(".carousel-item.active").first():A.find(".carousel-item").first(),i=n.find("img").first();if(i.length)if(i[0].complete)if(i.height()>0)A.css("height",i.height());else{var o=i[0].naturalWidth,r=i[0].naturalHeight,a=A.width()/o*r;A.css("height",a)}else i.on("load",function(){A.css("height",e(this).height())});else if(!t){var s=n.height();A.css("height",s)}};if(t.fullWidth&&(t.dist=0,O(),_&&A.find(".carousel-fixed-item").addClass("with-indicators")),A.hasClass("initialized"))return e(window).trigger("resize"),A.trigger("carouselNext",[1e-6]),!0;function L(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function M(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function I(e){return e>=d?e%d:e<0?I(d+e%d):e}function F(n){var i,c,h,p,f,m,g;!0,A.hasClass("scrolling")||A.addClass("scrolling"),null!=T&&window.clearTimeout(T),T=window.setTimeout(function(){!1,A.removeClass("scrolling")},t.duration);var y=l;if(s="number"==typeof n?n:s,l=Math.floor((s+u/2)/u),f=-(p=(h=s-l*u)<0?1:-1)*h*2/u,c=d>>1,t.fullWidth?g="translateX(0)":(g="translateX("+(A[0].clientWidth-r)/2+"px) ",g+="translateY("+(A[0].clientHeight-a)/2+"px)"),_){var b=l%d,w=E.find(".indicator-item.active");w.index()!==b&&(w.removeClass("active"),E.find(".indicator-item").eq(b).addClass("active"))}for((!N||l>=0&&l<d)&&(m=o[I(l)],e(m).hasClass("active")||(A.find(".carousel-item").removeClass("active"),e(m).addClass("active")),m.style[v]=g+" translateX("+-h/2+"px) translateX("+p*t.shift*f*i+"px) translateZ("+t.dist*f+"px)",m.style.zIndex=0,t.fullWidth?tweenedOpacity=1:tweenedOpacity=1-.2*f,m.style.opacity=tweenedOpacity,m.style.display="block"),i=1;i<=c;++i)t.fullWidth?(zTranslation=t.dist,tweenedOpacity=i===c&&h<0?1-f:1):(zTranslation=t.dist*(2*i+f*p),tweenedOpacity=1-.2*(2*i+f*p)),(!N||l+i<d)&&((m=o[I(l+i)]).style[v]=g+" translateX("+(t.shift+(u*i-h)/2)+"px) translateZ("+zTranslation+"px)",m.style.zIndex=-i,m.style.opacity=tweenedOpacity,m.style.display="block"),t.fullWidth?(zTranslation=t.dist,tweenedOpacity=i===c&&h>0?1-f:1):(zTranslation=t.dist*(2*i-f*p),tweenedOpacity=1-.2*(2*i-f*p)),(!N||l-i>=0)&&((m=o[I(l-i)]).style[v]=g+" translateX("+(-t.shift+(-u*i-h)/2)+"px) translateZ("+zTranslation+"px)",m.style.zIndex=-i,m.style.opacity=tweenedOpacity,m.style.display="block");if((!N||l>=0&&l<d)&&((m=o[I(l)]).style[v]=g+" translateX("+-h/2+"px) translateX("+p*t.shift*f+"px) translateZ("+t.dist*f+"px)",m.style.zIndex=0,t.fullWidth?tweenedOpacity=1:tweenedOpacity=1-.2*f,m.style.opacity=tweenedOpacity,m.style.display="block"),y!==l&&"function"==typeof t.onCycleTo){var x=A.find(".carousel-item").eq(I(l));t.onCycleTo.call(this,x,C)}"function"==typeof S&&(S.call(this,x,C),S=null)}function R(){var e,t,n;t=(e=Date.now())-w,w=e,n=s-b,b=s,g=.8*(1e3*n/(1+t))+.2*g}function j(){var e,n;f&&(e=Date.now()-w,(n=f*Math.exp(-e/t.duration))>2||n<-2?(F(m-n),requestAnimationFrame(j)):F(m))}function q(n){if(C)return n.preventDefault(),n.stopPropagation(),!1;if(!t.fullWidth){var i=e(n.target).closest(".carousel-item").index();0!==I(l)-i&&(n.preventDefault(),n.stopPropagation()),H(i)}}function H(e){var t=l%d-e;N||(t<0?Math.abs(t+d)<Math.abs(t)&&(t+=d):t>0&&Math.abs(t-d)<t&&(t-=d)),t<0?A.trigger("carouselNext",[Math.abs(t)]):t>0&&A.trigger("carouselPrev",[t])}function z(t){"mousedown"===t.type&&e(t.target).is("img")&&t.preventDefault(),c=!0,C=!1,k=!1,h=L(t),p=M(t),g=f=0,b=s,w=Date.now(),clearInterval(x),x=setInterval(R,100)}function $(e){var t,n;if(c)if(t=L(e),y=M(e),n=h-t,Math.abs(p-y)<30&&!k)(n>2||n<-2)&&(C=!0,h=t,F(s+n));else{if(C)return e.preventDefault(),e.stopPropagation(),!1;k=!0}if(C)return e.preventDefault(),e.stopPropagation(),!1}function B(e){if(c)return c=!1,clearInterval(x),m=s,(g>10||g<-10)&&(m=s+(f=.9*g)),m=Math.round(m/u)*u,N&&(m>=u*(d-1)?m=u*(d-1):m<0&&(m=0)),f=m-s,w=Date.now(),requestAnimationFrame(j),C&&(e.preventDefault(),e.stopPropagation()),!1}A.addClass("initialized"),c=!1,s=m=0,o=[],r=A.find(".carousel-item").first().innerWidth(),a=A.find(".carousel-item").first().innerHeight(),u=2*r+t.padding,A.find(".carousel-item").each(function(t){if(o.push(e(this)[0]),_){var n=e('<li class="indicator-item"></li>');0===t&&n.addClass("active"),n.click(function(t){t.stopPropagation(),H(e(this).index())}),E.append(n)}}),_&&A.append(E),d=o.length,v="transform",["webkit","Moz","O","ms"].every(function(e){var t=e+"Transform";return void 0===document.body.style[t]||(v=t,!1)});var W=Materialize.throttle(function(){if(t.fullWidth){r=A.find(".carousel-item").first().innerWidth();A.find(".carousel-item.active").height();u=2*r+t.padding,m=s=2*l*r,O(!0)}else F()},200);e(window).off("resize.carousel-"+P).on("resize.carousel-"+P,W),void 0!==window.ontouchstart&&(A.on("touchstart.carousel",z),A.on("touchmove.carousel",$),A.on("touchend.carousel",B)),A.on("mousedown.carousel",z),A.on("mousemove.carousel",$),A.on("mouseup.carousel",B),A.on("mouseleave.carousel",B),A.on("click.carousel",q),F(s),e(this).on("carouselNext",function(e,t,n){void 0===t&&(t=1),"function"==typeof n&&(S=n),m=u*Math.round(s/u)+u*t,s!==m&&(f=m-s,w=Date.now(),requestAnimationFrame(j))}),e(this).on("carouselPrev",function(e,t,n){void 0===t&&(t=1),"function"==typeof n&&(S=n),m=u*Math.round(s/u)-u*t,s!==m&&(f=m-s,w=Date.now(),requestAnimationFrame(j))}),e(this).on("carouselSet",function(e,t,n){void 0===t&&(t=0),"function"==typeof n&&(S=n),H(t)})})},next:function(t,n){e(this).trigger("carouselNext",[t,n])},prev:function(t,n){e(this).trigger("carouselPrev",[t,n])},set:function(t,n){e(this).trigger("carouselSet",[t,n])},destroy:function(){var t=e(this).attr("data-namespace");e(this).removeAttr("data-namespace"),e(this).removeClass("initialized"),e(this).find(".indicators").remove(),e(this).off("carouselNext carouselPrev carouselSet"),e(window).off("resize.carousel-"+t),void 0!==window.ontouchstart&&e(this).off("touchstart.carousel touchmove.carousel touchend.carousel"),e(this).off("mousedown.carousel mousemove.carousel mouseup.carousel mouseleave.carousel click.carousel")}};e.fn.carousel=function(n){return t[n]?t[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.carousel"):t.init.apply(this,arguments)}}(e),function(e){var t={init:function(t){return this.each(function(){var n=e("#"+e(this).attr("data-activates")),i=(e("body"),e(this)),o=i.parent(".tap-target-wrapper"),r=o.find(".tap-target-wave"),a=o.find(".tap-target-origin"),s=i.find(".tap-target-content");o.length||(o=i.wrap(e('<div class="tap-target-wrapper"></div>')).parent()),s.length||(s=e('<div class="tap-target-content"></div>'),i.append(s)),r.length||(r=e('<div class="tap-target-wave"></div>'),a.length||((a=n.clone(!0,!0)).addClass("tap-target-origin"),a.removeAttr("id"),a.removeAttr("style"),r.append(a)),o.append(r));var l=function(){o.is(".open")&&(o.removeClass("open"),a.off("click.tapTarget"),e(document).off("click.tapTarget"),e(window).off("resize.tapTarget"))},c=function(){var t="fixed"===n.css("position");if(!t)for(var a=n.parents(),l=0;l<a.length&&!(t="fixed"==e(a[l]).css("position"));l++);var c=n.outerWidth(),u=n.outerHeight(),d=t?n.offset().top-e(document).scrollTop():n.offset().top,h=t?n.offset().left-e(document).scrollLeft():n.offset().left,p=e(window).width(),f=e(window).height(),m=p/2,g=f/2,v=h<=m,y=h>m,b=d<=g,w=d>g,x=h>=.25*p&&h<=.75*p,C=i.outerWidth(),k=i.outerHeight(),E=d+u/2-k/2,T=h+c/2-C/2,S=t?"fixed":"absolute",A=x?C:C/2+c,D=k/2,_=b?k/2:0,N=v&&!x?C/2-c:0,P=c,O=w?"bottom":"top",L=2*c,M=L,I=k/2-M/2,F=C/2-L/2,R={};R.top=b?E:"",R.right=y?p-T-C:"",R.bottom=w?f-E-k:"",R.left=v?T:"",R.position=S,o.css(R),s.css({width:A,height:D,top:_,right:0,bottom:0,left:N,padding:P,verticalAlign:O}),r.css({top:I,left:F,width:L,height:M})};"open"==t&&(c(),o.is(".open")||(o.addClass("open"),setTimeout(function(){a.off("click.tapTarget").on("click.tapTarget",function(e){l(),a.off("click.tapTarget")}),e(document).off("click.tapTarget").on("click.tapTarget",function(t){l(),e(document).off("click.tapTarget")});var t=Materialize.throttle(function(){c()},200);e(window).off("resize.tapTarget").on("resize.tapTarget",t)},0))),"close"==t&&l()})},open:function(){},close:function(){}};e.fn.tapTarget=function(n){if(t[n]||"object"==typeof n)return t.init.apply(this,arguments);e.error("Method "+n+" does not exist on jQuery.tap-target")}}(e)}).call(this,n(36),n(36),n(36),n(114)(e))},1074:function(e,t,n){var i;
  /*! Hammer.JS - v2.0.7 - 2016-04-22
   * http://hammerjs.github.io/
   *
   * Copyright (c) 2016 Jorik Tangelder;
   * Licensed under the MIT license */
  /*! Hammer.JS - v2.0.7 - 2016-04-22
   * http://hammerjs.github.io/
   *
   * Copyright (c) 2016 Jorik Tangelder;
   * Licensed under the MIT license */
  !function(o,r,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=r.createElement("div"),d="function",h=Math.round,p=Math.abs,f=Date.now;function m(e,t,n){return setTimeout(C(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(v(e,n[t],n),!0)}function v(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function y(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,i,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var b=y(function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&e[i[o]]===s)&&(e[i[o]]=t[i[o]]),o++;return e},"extend","Use `assign`."),w=y(function(e,t){return b(e,t,!0)},"merge","Use `assign`.");function x(e,t,n){var i,o=t.prototype;(i=e.prototype=Object.create(o)).constructor=e,i._super=o,n&&l(i,n)}function C(e,t){return function(){return e.apply(t,arguments)}}function k(e,t){return typeof e==d?e.apply(t&&t[0]||s,t):e}function E(e,t){return e===s?t:e}function T(e,t,n){v(_(t),function(t){e.addEventListener(t,n,!1)})}function S(e,t,n){v(_(t),function(t){e.removeEventListener(t,n,!1)})}function A(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function D(e,t){return e.indexOf(t)>-1}function _(e){return e.trim().split(/\s+/g)}function N(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function P(e){return Array.prototype.slice.call(e,0)}function O(e,t,n){for(var i=[],o=[],r=0;r<e.length;){var a=t?e[r][t]:e[r];N(o,a)<0&&i.push(e[r]),o[r]=a,r++}return n&&(i=t?i.sort(function(e,n){return e[t]>n[t]}):i.sort()),i}function L(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),r=0;r<c.length;){if((i=(n=c[r])?n+o:t)in e)return i;r++}return s}var M=1;function I(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var F="ontouchstart"in o,R=L(o,"PointerEvent")!==s,j=F&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),q=25,H=1,z=2,$=4,B=8,W=1,U=2,V=4,X=8,Y=16,Q=U|V,K=X|Y,G=Q|K,Z=["x","y"],J=["clientX","clientY"];function ee(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){k(e.options.enable,[e])&&n.handler(t)},this.init()}function te(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,r=t&H&&i-o==0,a=t&($|B)&&i-o==0;n.isFirst=!!r,n.isFinal=!!a,r&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=ne(t));o>1&&!n.firstMultiple?n.firstMultiple=ne(t):1===o&&(n.firstMultiple=!1);var r=n.firstInput,a=n.firstMultiple,l=a?a.center:r.center,c=t.center=ie(i);t.timeStamp=f(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=se(l,c),t.distance=ae(l,c),function(e,t){var n=t.center,i=e.offsetDelta||{},o=e.prevDelta||{},r=e.prevInput||{};t.eventType!==H&&r.eventType!==$||(o=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-i.x),t.deltaY=o.y+(n.y-i.y)}(n,t),t.offsetDirection=re(t.deltaX,t.deltaY);var u=oe(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=p(u.x)>p(u.y)?u.x:u.y,t.scale=a?(d=a.pointers,h=i,ae(h[0],h[1],J)/ae(d[0],d[1],J)):1,t.rotation=a?function(e,t){return se(t[1],t[0],J)+se(e[1],e[0],J)}(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,r,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=B&&(l>q||a.velocity===s)){var c=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,d=oe(l,c,u);i=d.x,o=d.y,n=p(d.x)>p(d.y)?d.x:d.y,r=re(c,u),e.lastInterval=t}else n=a.velocity,i=a.velocityX,o=a.velocityY,r=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=r}(n,t);var d,h;var m=e.element;A(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function ne(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:t,center:ie(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ie(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,i=0,o=0;o<t;)n+=e[o].clientX,i+=e[o].clientY,o++;return{x:h(n/t),y:h(i/t)}}function oe(e,t,n){return{x:t/e||0,y:n/e||0}}function re(e,t){return e===t?W:p(e)>=p(t)?e<0?U:V:t<0?X:Y}function ae(e,t,n){n||(n=Z);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(i*i+o*o)}function se(e,t,n){n||(n=Z);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,i)/Math.PI}ee.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(I(this.element),this.evWin,this.domHandler)}};var le={mousedown:H,mousemove:z,mouseup:$},ce="mousedown",ue="mousemove mouseup";function de(){this.evEl=ce,this.evWin=ue,this.pressed=!1,ee.apply(this,arguments)}x(de,ee,{handler:function(e){var t=le[e.type];t&H&&0===e.button&&(this.pressed=!0),t&z&&1!==e.which&&(t=$),this.pressed&&(t&$&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var he={pointerdown:H,pointermove:z,pointerup:$,pointercancel:B,pointerout:B},pe={2:"touch",3:"pen",4:"mouse",5:"kinect"},fe="pointerdown",me="pointermove pointerup pointercancel";function ge(){this.evEl=fe,this.evWin=me,ee.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(fe="MSPointerDown",me="MSPointerMove MSPointerUp MSPointerCancel"),x(ge,ee,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),o=he[i],r=pe[e.pointerType]||e.pointerType,a="touch"==r,s=N(t,e.pointerId,"pointerId");o&H&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):o&($|B)&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(s,1))}});var ve={touchstart:H,touchmove:z,touchend:$,touchcancel:B},ye="touchstart",be="touchstart touchmove touchend touchcancel";function we(){this.evTarget=ye,this.evWin=be,this.started=!1,ee.apply(this,arguments)}x(we,ee,{handler:function(e){var t=ve[e.type];if(t===H&&(this.started=!0),this.started){var n=function(e,t){var n=P(e.touches),i=P(e.changedTouches);t&($|B)&&(n=O(n.concat(i),"identifier",!0));return[n,i]}.call(this,e,t);t&($|B)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var xe={touchstart:H,touchmove:z,touchend:$,touchcancel:B},Ce="touchstart touchmove touchend touchcancel";function ke(){this.evTarget=Ce,this.targetIds={},ee.apply(this,arguments)}x(ke,ee,{handler:function(e){var t=xe[e.type],n=function(e,t){var n=P(e.touches),i=this.targetIds;if(t&(H|z)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,a=P(e.changedTouches),s=[],l=this.target;if(r=n.filter(function(e){return A(e.target,l)}),t===H)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;o=0;for(;o<a.length;)i[a[o].identifier]&&s.push(a[o]),t&($|B)&&delete i[a[o].identifier],o++;if(!s.length)return;return[O(r.concat(s),"identifier",!0),s]}.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var Ee=2500,Te=25;function Se(){ee.apply(this,arguments);var e=C(this.handler,this);this.touch=new ke(this.manager,e),this.mouse=new de(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Ae(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)},Ee)}}x(Se,ee,{handler:function(e,t,n){var i="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(e,t){e&H?(this.primaryTouch=t.changedPointers[0].identifier,Ae.call(this,t)):e&($|B)&&Ae.call(this,t)}).call(this,t,n);else if(o&&function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(t-o.x),a=Math.abs(n-o.y);if(r<=Te&&a<=Te)return!0}return!1}.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var De=L(u.style,"touchAction"),_e=De!==s,Ne="auto",Pe="manipulation",Oe="none",Le="pan-x",Me="pan-y",Ie=function(){if(!_e)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){e[n]=!t||o.CSS.supports("touch-action",n)}),e}();function Fe(e,t){this.manager=e,this.set(t)}Fe.prototype={set:function(e){"compute"==e&&(e=this.compute()),_e&&this.manager.element.style&&Ie[e]&&(this.manager.element.style[De]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return v(this.manager.recognizers,function(t){k(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(D(e,Oe))return Oe;var t=D(e,Le),n=D(e,Me);if(t&&n)return Oe;if(t||n)return t?Le:Me;if(D(e,Pe))return Pe;return Ne}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,o=D(i,Oe)&&!Ie[Oe],r=D(i,Me)&&!Ie[Me],a=D(i,Le)&&!Ie[Le];if(o){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!r)return o||r&&n&Q||a&&n&K?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Re=1,je=2,qe=4,He=8,ze=He,$e=16;function Be(e){this.options=l({},this.defaults,e||{}),this.id=M++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=Re,this.simultaneous={},this.requireFail=[]}function We(e){return e&$e?"cancel":e&He?"end":e&qe?"move":e&je?"start":""}function Ue(e){return e==Y?"down":e==X?"up":e==U?"left":e==V?"right":""}function Ve(e,t){var n=t.manager;return n?n.get(e):e}function Xe(){Be.apply(this,arguments)}function Ye(){Xe.apply(this,arguments),this.pX=null,this.pY=null}function Qe(){Xe.apply(this,arguments)}function Ke(){Be.apply(this,arguments),this._timer=null,this._input=null}function Ge(){Xe.apply(this,arguments)}function Ze(){Xe.apply(this,arguments)}function Je(){Be.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function et(e,t){return(t=t||{}).recognizers=E(t.recognizers,et.defaults.preset),new tt(e,t)}Be.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ve(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)?this:(e=Ve(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===N(t,e=Ve(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=Ve(e,this);var t=N(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<He&&i(t.options.event+We(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=He&&i(t.options.event+We(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|Re)))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!k(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(ze|$e|32)&&(this.state=Re),this.state=this.process(t),this.state&(je|qe|He|$e)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},x(Xe,Be,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=t&(je|qe),o=this.attrTest(e);return i&&(n&B||!o)?t|$e:i||o?n&$?t|He:t&je?t|qe:je:32}}),x(Ye,Xe,{defaults:{event:"pan",threshold:10,pointers:1,direction:G},getTouchAction:function(){var e=this.options.direction,t=[];return e&Q&&t.push(Me),e&K&&t.push(Le),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,o=e.direction,r=e.deltaX,a=e.deltaY;return o&t.direction||(t.direction&Q?(o=0===r?W:r<0?U:V,n=r!=this.pX,i=Math.abs(e.deltaX)):(o=0===a?W:a<0?X:Y,n=a!=this.pY,i=Math.abs(e.deltaY))),e.direction=o,n&&i>t.threshold&&o&t.direction},attrTest:function(e){return Xe.prototype.attrTest.call(this,e)&&(this.state&je||!(this.state&je)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ue(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),x(Qe,Xe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Oe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&je)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),x(Ke,Be,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ne]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!i||!n||e.eventType&($|B)&&!o)this.reset();else if(e.eventType&H)this.reset(),this._timer=m(function(){this.state=ze,this.tryEmit()},t.time,this);else if(e.eventType&$)return ze;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===ze&&(e&&e.eventType&$?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),x(Ge,Xe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Oe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&je)}}),x(Ze,Xe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Q|K,pointers:1},getTouchAction:function(){return Ye.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Q|K)?t=e.overallVelocity:n&Q?t=e.overallVelocityX:n&K&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&e.eventType&$},emit:function(e){var t=Ue(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),x(Je,Be,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Pe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),e.eventType&H&&0===this.count)return this.failTimeout();if(i&&o&&n){if(e.eventType!=$)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||ae(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&r?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=m(function(){this.state=ze,this.tryEmit()},t.interval,this),je):ze}return 32},failTimeout:function(){return this._timer=m(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ze&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),et.VERSION="2.0.7",et.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ge,{enable:!1}],[Qe,{enable:!1},["rotate"]],[Ze,{direction:Q}],[Ye,{direction:Q},["swipe"]],[Je],[Je,{event:"doubletap",taps:2},["tap"]],[Ke]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function tt(e,t){var n;this.options=l({},et.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?ge:j?ke:F?Se:de))(n,te),this.touchAction=new Fe(this,this.options.touchAction),nt(this,!0),v(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function nt(e,t){var n,i=e.element;i.style&&(v(e.options.cssProps,function(o,r){n=L(i.style,r),t?(e.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}tt.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,o=t.curRecognizer;(!o||o&&o.state&ze)&&(o=t.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&n.state&(je|qe|He)&&(o=t.curRecognizer=n),r++}},get:function(e){if(e instanceof Be)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(g(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=N(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return v(_(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==s){var n=this.handlers;return v(_(e),function(e){t?n[e]&&n[e].splice(N(n[e],t),1):delete n[e]}),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=r.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&nt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(et,{INPUT_START:H,INPUT_MOVE:z,INPUT_END:$,INPUT_CANCEL:B,STATE_POSSIBLE:Re,STATE_BEGAN:je,STATE_CHANGED:qe,STATE_ENDED:He,STATE_RECOGNIZED:ze,STATE_CANCELLED:$e,STATE_FAILED:32,DIRECTION_NONE:W,DIRECTION_LEFT:U,DIRECTION_RIGHT:V,DIRECTION_UP:X,DIRECTION_DOWN:Y,DIRECTION_HORIZONTAL:Q,DIRECTION_VERTICAL:K,DIRECTION_ALL:G,Manager:tt,Input:ee,TouchAction:Fe,TouchInput:ke,MouseInput:de,PointerEventInput:ge,TouchMouseInput:Se,SingleTouchInput:we,Recognizer:Be,AttrRecognizer:Xe,Tap:Je,Pan:Ye,Swipe:Ze,Pinch:Qe,Rotate:Ge,Press:Ke,on:T,off:S,each:v,merge:w,extend:b,assign:l,inherit:x,bindFn:C,prefixed:L}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=et,(i=function(){return et}.call(t,n,t,e))===s||(e.exports=i)}(window,document)},1075:function(e,t,n){},1076:function(e,t,n){"use strict";(function(e){var t=n(189);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e(document).on("click",".form-async button[type=submit]",function(t){var n=e(t.currentTarget),i=n.parents(".form-async");e("button[type=submit]",i).removeAttr("clicked"),n.attr("clicked","true")}).on("submit",".form-async",function(n){var o=e(n.currentTarget),r=o.attr("action"),a=o.find("button[type=submit][clicked=true]").attr("formaction");"undefined"!==i(a)&&!1!==a&&(r=a),e.ajax({url:r,method:"POST",data:o.serialize(),complete:function(n){400===n.status?(o.parent().html(n.responseText),Object(t.a)()):e(".modal-close").click()},success:function(e){e.redirectUrl?window.location.href=e.redirectUrl:location.reload()}}),n.preventDefault()}).on("click",".modal-close",function(){return e(".modal").modal("close")})}).call(this,n(36))},1077:function(e,t,n){(function(i){var o,r,a;r=[n(36)],void 0===(a="function"==typeof(o=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,o,r;return t&&t.requirejs||(t?o=t:t={},function(e){var t,i,a,s,l={},c={},u={},d={},h=Object.prototype.hasOwnProperty,p=[].slice,f=/\.js$/;function m(e,t){return h.call(e,t)}function g(e,t){var n,i,o,r,a,s,l,c,d,h,p,m,g=t&&t.split("/"),v=u.map,y=v&&v["*"]||{};if(e){for(e=e.split("/"),a=e.length-1,u.nodeIdCompat&&f.test(e[a])&&(e[a]=e[a].replace(f,"")),"."===e[0].charAt(0)&&g&&(m=g.slice(0,g.length-1),e=m.concat(e)),d=0;d<e.length;d++)if("."===(p=e[d]))e.splice(d,1),d-=1;else if(".."===p){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((g||y)&&v){for(n=e.split("/"),d=n.length;d>0;d-=1){if(i=n.slice(0,d).join("/"),g)for(h=g.length;h>0;h-=1)if((o=v[g.slice(0,h).join("/")])&&(o=o[i])){r=o,s=d;break}if(r)break;!l&&y&&y[i]&&(l=y[i],c=d)}!r&&l&&(r=l,s=c),r&&(n.splice(0,s,r),e=n.join("/"))}return e}function v(t,n){return function(){var o=p.call(arguments,0);return"string"!=typeof o[0]&&1===o.length&&o.push(null),i.apply(e,o.concat([t,n]))}}function y(e){return function(t){l[e]=t}}function b(n){if(m(c,n)){var i=c[n];delete c[n],d[n]=!0,t.apply(e,i)}if(!m(l,n)&&!m(d,n))throw new Error("No "+n);return l[n]}function w(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 x(e){return e?w(e):[]}function C(e){return function(){return u&&u.config&&u.config[e]||{}}}a=function(e,t){var n,i,o=w(e),r=o[0],a=t[1];return e=o[1],r&&(r=g(r,a),n=b(r)),r?e=n&&n.normalize?n.normalize(e,(i=a,function(e){return g(e,i)})):g(e,a):(e=g(e,a),o=w(e),r=o[0],e=o[1],r&&(n=b(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},s={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:C(e)}}},t=function(t,n,i,o){var r,u,h,p,f,g,w,C=[],k=typeof i;if(g=x(o=o||t),"undefined"===k||"function"===k){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if(p=a(n[f],g),"require"===(u=p.f))C[f]=s.require(t);else if("exports"===u)C[f]=s.exports(t),w=!0;else if("module"===u)r=C[f]=s.module(t);else if(m(l,u)||m(c,u)||m(d,u))C[f]=b(u);else{if(!p.p)throw new Error(t+" missing "+u);p.p.load(p.n,v(o,!0),y(u),{}),C[f]=l[u]}h=i?i.apply(l[t],C):void 0,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:h===e&&w||(l[t]=h))}else t&&(l[t]=i)},n=o=i=function(n,o,r,l,c){if("string"==typeof n)return s[n]?s[n](o):b(a(n,x(o)).f);if(!n.splice){if((u=n).deps&&i(u.deps,u.callback),!o)return;o.splice?(n=o,o=r,r=null):n=e}return o=o||function(){},"function"==typeof r&&(r=l,l=c),l?t(e,n,o,r):setTimeout(function(){t(e,n,o,r)},4),i},i.config=function(e){return i(e)},n._defined=l,(r=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=[]),m(l,e)||m(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=o,t.define=r),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||i;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){var t={};function n(e){var t=e.prototype,n=[];for(var i in t){var o=t[i];"function"==typeof o&&"constructor"!==i&&n.push(i)}return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),o=n(e);function r(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,o=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),o=t.prototype.constructor),o.apply(this,arguments)}t.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var a=0;a<o.length;a++){var s=o[a];r.prototype[s]=e.prototype[s]}for(var l=function(e){var n=function(){};e in r.prototype&&(n=r.prototype[e]);var i=t.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,n),i.apply(this,arguments)}},c=0;c<i.length;c++){var u=i[c];r.prototype[u]=l(u)}return r};var i=function(){this.listeners={}};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)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++){var i=Math.floor(36*Math.random());t+=i.toString(36)}return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},t.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]})},t.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)},t.__cache={};var o=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++o),t=o.toString())),t},t.StoreData=function(e,n,i){var o=t.GetUniqueElementId(e);t.__cache[o]||(t.__cache[o]={}),t.__cache[o][n]=i},t.GetData=function(n,i){var o=t.GetUniqueElementId(n);return i?t.__cache[o]&&null!=t.__cache[o][i]?t.__cache[o][i]:e(n).data(i):t.__cache[o]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n]},t}),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>'),o=this.options.get("translations").get(t.message);i.append(n(o(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){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},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 n=this;this.data.current(function(i){var o=e.map(i,function(e){return e.id.toString()}),r=n.$results.find(".select2-results__option[aria-selected]");r.each(function(){var n=e(this),i=t.GetData(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(r,o)>-1?n.attr("aria-selected","true"):n.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(n){var i=document.createElement("li");i.className="select2-results__option";var o={role:"treeitem","aria-selected":"false"};for(var r in n.disabled&&(delete o["aria-selected"],o["aria-disabled"]="true"),null==n.id&&delete o["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(o.role="group",o["aria-label"]=n.text,delete o["aria-selected"]),o){var a=o[r];i.setAttribute(r,a)}if(n.children){var s=e(i),l=document.createElement("strong");l.className="select2-results__group",e(l),this.template(n,l);for(var c=[],u=0;u<n.children.length;u++){var d=n.children[u],h=this.option(d);c.push(h)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(c),s.append(l),s.append(p)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var o=this,r=n.id+"-results";this.$results.attr("id",r),n.on("results:all",function(e){o.clear(),o.append(e.data),n.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),n.on("results:append",function(e){o.append(e.data),n.isOpen()&&o.setClasses()}),n.on("query",function(e){o.hideMessages(),o.showLoading(e)}),n.on("select",function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())}),n.on("open",function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()}),n.on("close",function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=o.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?o.trigger("close",{}):o.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=o.getHighlightedResults(),t=o.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var a=o.$results.offset().top,s=r.offset().top,l=o.$results.scrollTop()+(s-a);0===i?o.$results.scrollTop(0):s-a<0&&o.$results.scrollTop(l)}}),n.on("results:next",function(){var e=o.getHighlightedResults(),t=o.$results.find("[aria-selected]"),n=t.index(e),i=n+1;if(!(i>=t.length)){var r=t.eq(i);r.trigger("mouseenter");var a=o.$results.offset().top+o.$results.outerHeight(!1),s=r.offset().top+r.outerHeight(!1),l=o.$results.scrollTop()+s-a;0===i?o.$results.scrollTop(0):s>a&&o.$results.scrollTop(l)}}),n.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),n.on("results:message",function(e){o.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=o.$results.scrollTop(),n=o.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=o.$results.height();i?(o.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var i=e(this),r=t.GetData(this,"data");"true"!==i.attr("aria-selected")?o.trigger("select",{originalEvent:n,data:r}):o.options.get("multiple")?o.trigger("unselect",{originalEvent:n,data:r}):o.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(n){var i=t.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted"),o.trigger("results:focus",{data:i,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,o=e.offset().top,r=this.$results.scrollTop()+(o-i),a=o-i;r-=2*e.outerHeight(!1),n<=2?this.$results.scrollTop(0):(a>this.$results.outerHeight()||a<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):e(n).append(r)},n}),t.define("select2/keys",[],function(){return{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}}),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 n=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,o=(e.id,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",o),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),window.setTimeout(function(){i.$selection.focus()},0),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(n){e(document.body).on("mousedown.select2."+n.id,function(n){var i=e(n.target),o=i.closest(".select2"),r=e(".select2.select2-container--open");r.each(function(){if(e(this),this!=o[0]){var n=t.GetData(this,"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 o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__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},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),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()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.attr("title",t.title||t.text)}else this.clear()},o}),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,o){var r=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!r.options.get("disabled")){var i=e(this),o=i.parent(),a=n.GetData(o[0],"data");r.trigger("unselect",{originalEvent:t,data:a})}})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},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 o=e[i],r=this.selectionContainer(),a=this.display(o,r);r.append(a),r.attr("title",o.title||o.text),n.StoreData(r[0],"data",o),t.push(r)}var s=this.$selection.find(".select2-selection__rendered");n.appendMany(s,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 o=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(o)},t}),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,n){function i(){}return i.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)})},i.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var o=n.GetData(i[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var a={data:o};if(this.trigger("clear",a),a.prevented)this.$element.val(r);else{for(var s=0;s<o.length;s++)if(a={data:o[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(r);this.$element.trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var o=this.options.get("translations").get("removeAllItems"),r=e('<span class="select2-selection__clear" title="'+o()+'">&times;</span>');n.StoreData(r[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(r)}},i}),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="none" 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,i,o){var r=this;e.call(this,i,o),i.on("open",function(){r.$search.trigger("focus")}),i.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),i.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),i.on("disable",function(){r.$search.prop("disabled",!0)}),i.on("focus",function(e){r.$search.trigger("focus")}),i.on("results:focus",function(e){r.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented();var i=e.which;if(i===n.BACKSPACE&&""===r.$search.val()){var o=r.$searchContainer.prev(".select2-selection__choice");if(o.length>0){var a=t.GetData(o[0],"data");r.searchRemoveChoice(a),e.preventDefault()}}});var a=document.documentMode,s=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&r.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;if(this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n){var i=this.$element.find("[data-select2-tag]").length;i?this.$element.focus():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 o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,r)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==e.inArray(t,a)&&(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(){return{"Ⓐ":"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","Œ":"OE","Ƣ":"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","œ":"oe","ƣ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),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),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},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),o=i.item(e);t.push(o)}),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 o=[];(e=[e]).push.apply(e,i);for(var r=0;r<e.length;r++){var a=e[r].id;-1===n.inArray(a,o)&&o.push(a)}t.$element.val(o),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")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current(function(i){for(var o=[],r=0;r<i.length;r++){var a=i[r].id;a!==e.id&&-1===n.inArray(a,o)&&o.push(a)}t.$element.val(o),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(){t.RemoveData(this)})},i.prototype.query=function(e,t){var i=[],o=this,r=this.$element.children();r.each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var r=o.item(t),a=o.matches(e,r);null!==a&&i.push(a)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var o=n(i),r=this._normalizeItem(e);return r.element=i,t.StoreData(i,"data",r),o},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;if(e.is("option"))i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var o=e.children("option"),r=[],a=0;a<o.length;a++){var s=n(o[a]),l=this.item(s);r.push(l)}i.children=r}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=n.extend({},{text:""},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({},{selected:!1,disabled:!1},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){var i=this,o=this.$element.find("option"),r=o.map(function(){return i.item(n(this)).id}).get(),a=[];function s(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,r)>=0){var u=o.filter(s(c)),d=this.item(u),h=n.extend(!0,{},c,d),p=this.option(h);u.replaceWith(p)}else{var f=this.option(c);if(c.children){var m=this.convertToOptions(c.children);t.appendMany(f,m)}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 o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);function r(){var r=o.transport(o,function(o){var r=i.processResults(o,e);i.options.get("debug")&&window.console&&console.error&&(r&&r.results&&n.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)},function(){"status"in r&&(0===r.status||"0"===r.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=r}"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(r,this.ajaxOptions.delay)):r()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var o=i.get("tags"),r=i.get("createTag");void 0!==r&&(this.createTag=r);var a=i.get("insertTag");if(void 0!==a&&(this.insertTag=a),t.call(this,n,i),e.isArray(o))for(var s=0;s<o.length;s++){var l=o[s],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function e(o,r){for(var a=o.results,s=0;s<a.length;s++){var l=a[s],c=null!=l.children&&!e({results:l.children},!0),u=(l.text||"").toUpperCase(),d=(t.term||"").toUpperCase(),h=u===d;if(h||c)return!r&&(o.data=a,void n(o))}if(r)return!0;var p=i.createTag(t);if(null!=p){var f=i.option(p);f.attr("data-select2-tag",!0),i.addOptions([f]),i.insertTag(a,p)}o.results=a,n(o)}):e.call(this,t,n)},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){this._lastTag;var n=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){var o=this;n.term=n.term||"";var r=this.tokenizer(n,this.options,function(t){var n=o._normalizeItem(t);if(!o.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}!function(e){o.trigger("select",{data:e})}(n)});r.term!==n.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.focus()),n.term=r.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<a.length;){var c=a[s];if(-1!==e.inArray(c,r)){var u=a.substr(0,s),d=e.extend({},n,{term:u}),h=l(d);null!=h?(o(h),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},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){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):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){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):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(o){var r=null!=o?o.length:0;i.maximumSelectionLength>0&&r>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):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="none" 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 o=this;t.call(this,n,i),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val(""),o.$search.blur()}),n.on("focus",function(){n.isOpen()||o.$search.focus()}),n.on("results:all",function(e){if(null==e.query.term||""===e.query.term){var t=o.showSearch(e);t?o.$searchContainer.removeClass("select2-search--hide"):o.$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 o=t[i];this.placeholder.id===o.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 o=this;t.call(this,n,i),n.on("query",function(e){o.lastParams=e,o.loading=!0}),n.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);if(!o.loading&&t){var n=o.$results.offset().top+o.$results.outerHeight(!1),i=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1);n+50>=i&&o.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,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!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 o=this,r="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(r,function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)}),e(window).on(r+" "+a+" "+s,function(e){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id,s=this.$container.parents().filter(t.hasScroll);s.off(o),e(window).off(o+" "+r+" "+a)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=r.top,a.bottom=r.top+a.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<r.top-s.height,u=l.bottom>r.bottom+s.height,d={left:r.left,top:a.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||(o="below"),u||!c||n?!c&&u&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(d.top=a.top-p.top-s.height),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),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(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),t.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var r=e.GetData(o[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t}),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||n.metaKey)||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…"},removeAllItems:function(){return"Remove all items"}}}),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,o,r,a,s,l,c,u,d,h,p,f,m,g,v,y,b,w,x,C,k,E,T,S,A,D){function _(){this.reset()}_.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=p:d.dataAdapter=h,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,b)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null!=d.query){var D=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,D)}if(null!=d.initSelection){var _=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,_)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,k)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,C)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,S))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=w;else{var N=c.Decorate(w,x);d.dropdownAdapter=N}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,T)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,A)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var P=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,P)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,E)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=o:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var O=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,O)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var L=d.language.split("-"),M=L[0];d.language=[d.language,M]}else d.language=[d.language];if(e.isArray(d.language)){var I=new u;d.language.push("en");for(var F=d.language,R=0;R<F.length;R++){var j=F[R],q={};try{q=u.loadPath(j)}catch(e){try{j=this.defaults.amdLanguageBase+j,q=u.loadPath(j)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+j+'" could not be automatically loaded. A fallback will be used instead.');continue}}I.extend(q)}d.translations=I}else{var H=u.loadPath(this.defaults.amdLanguageBase+"en"),z=new u(d.language);z.extend(H),d.translations=z}return d},_.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return d[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:D,matcher:function n(i,o){if(""===e.trim(i.term))return o;if(o.children&&o.children.length>0){for(var r=e.extend(!0,{},o),a=o.children.length-1;a>=0;a--){var s=o.children[a],l=n(i,s);null==l&&r.children.splice(a,1)}return r.children.length>0?r:n(i,r)}var c=t(o.text).toUpperCase(),u=t(i.term).toUpperCase();return c.indexOf(u)>-1?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},_.prototype.set=function(t,n){var i=e.camelCase(t),o={};o[i]=n;var r=c._convertData(o);e.extend(!0,this.defaults,r)};var N=new _;return N}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return o.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),i.GetData(e[0],"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.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"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",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var o={};function r(e,t){return t.toUpperCase()}for(var a=0;a<e[0].attributes.length;a++){var s=e[0].attributes[a].name;if("data-"==s.substr(0,"data-".length)){var l=s.substring("data-".length),c=i.GetData(e[0],l),u=l.replace(/-([a-z])/g,r);o[u]=c}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(o=t.extend(!0,{},e[0].dataset,o));var d=t.extend(!0,{},i.GetData(e[0]),o);for(var h in d=i._convertData(d))t.inArray(h,n)>-1||(t.isPlainObject(this.options[h])?t.extend(this.options[h],d[h]):this.options[h]=d[h]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var o=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),o.__super__.constructor.call(this);var r=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",r),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);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 d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){d.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.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 o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var a=r.split(";"),s=0,l=a.length;s<l;s+=1){var c=a[s].replace(/\s/g,""),u=c.match(n);if(null!==u&&u.length>=1)return u[1]}return null}return t},o.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)},o.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))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.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,o){-1===e.inArray(i,n)&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.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())})},o.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",{})},o.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 o=0;o<t.addedNodes.length;o++){var r=t.addedNodes[o];r.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})})}},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],a={prevented:!1,name:e,args:t};if(n.call(this,r,a),a.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger("query",{})},o.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.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)},o.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},o.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")},o.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",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),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},o.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")),n.StoreData(t[0],"element",this.$element),t},o}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,n,i,o){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,a=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,a)}),e.inArray(t,r)>-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})?o.apply(t,r):o)||(e.exports=a)}).call(this,n(36))},1078:function(e,t,n){(function(e){function t(){e(".select-item:checked:not(#select-all-items)").each(function(t,n){e(n).parent().parent().addClass("highlight")}),e(".select-item:not(:checked):not(#select-all-items)").each(function(t,n){e(n).parent().parent().removeClass("highlight")})}function n(t){var n=e(".select-item:checked").length-e("#select-all-items:checked").length,i=e(".select-item").length-1,o=e(t.currentTarget);o.parent().parent().toggleClass("highlight",o.checked),r(n===i)}function i(n){var i=e(n.currentTarget);i.parents("form").find(".select-item:not(.select-all)").prop("checked",i[0].checked),t(),i.off("change"),r(i[0].checked)}function o(t){var n=e(t.currentTarget);t.preventDefault(),e("#bulk-action").val(n.attr("data-action")),e("#bulk-actions-form").submit()}function r(t){var n=e(".select-item:checked").length-e("#select-all-items:checked").length,o=e(".data-table-bulk-actions__selected-items"),r=e(".data-table-bulk-actions"),a=ngettext("item selected","items selected",n);n&&o.html("".concat(n," ").concat(a)),r.toggleClass("show",n>0),function(t,n){var o=e("#select-all-items").parent()[0].innerHTML,r=e("thead .bulk-checkbox"),a=e(".data-table-bulk-actions__select-all");t?(r.html(""),a[0].innerHTML=o):(a.html(""),r[0].innerHTML=o),a.find("#select-all-items").prop("checked",n),e(".select-all").on("change",i)}(n>0,t)}document.querySelector("#bulk-action")&&(t(),r(),e(".select-all").on("change",i),e(".select-item").on("change",n),e(".data-table-bulk-actions__action-choice a").on("click",o),e(".data-table-bulk-actions__dropdown-container .dropdown-content a").on("click",o))}).call(this,n(36))},1079:function(e,t,n){(function(e){e(".datepicker").pickadate({labelMonthNext:pgettext("Datepicker option","Next month"),labelMonthPrev:pgettext("Datepicker option","Previous month"),labelMonthSelect:pgettext("Datepicker option","Select a month"),labelYearSelect:pgettext("Datepicker option","Select a year"),monthsFull:[pgettext("Datepicker month","January"),pgettext("Datepicker month","February"),pgettext("Datepicker month","March"),pgettext("Datepicker month","April"),pgettext("Datepicker month","May"),pgettext("Datepicker month","June"),pgettext("Datepicker month","July"),pgettext("Datepicker month","August"),pgettext("Datepicker month","September"),pgettext("Datepicker month","October"),pgettext("Datepicker month","November"),pgettext("Datepicker month","December")],monthsShort:[pgettext("Datepicker month shortcut","Jan"),pgettext("Datepicker month shortcut","Feb"),pgettext("Datepicker month shortcut","Mar"),pgettext("Datepicker month shortcut","Apr"),pgettext("Datepicker month shortcut","May"),pgettext("Datepicker month shortcut","Jun"),pgettext("Datepicker month shortcut","Jul"),pgettext("Datepicker month shortcut","Aug"),pgettext("Datepicker month shortcut","Sep"),pgettext("Datepicker month shortcut","Oct"),pgettext("Datepicker month shortcut","Nov"),pgettext("Datepicker month shortcut","Dec")],weekdaysFull:[pgettext("Datepicker weekday","Sunday"),pgettext("Datepicker weekday","Monday"),pgettext("Datepicker weekday","Tuesday"),pgettext("Datepicker weekday","Wednesday"),pgettext("Datepicker weekday","Thursday"),pgettext("Datepicker weekday","Friday"),pgettext("Datepicker weekday","Saturday")],weekdaysShort:[pgettext("Datepicker weekday shortcut","Sun"),pgettext("Datepicker weekday shortcut","Mon"),pgettext("Datepicker weekday shortcut","Tue"),pgettext("Datepicker weekday shortcut","Wed"),pgettext("Datepicker weekday shortcut","Thu"),pgettext("Datepicker weekday shortcut","Fri"),pgettext("Datepicker weekday shortcut","Sat")],weekdaysLetter:[pgettext("Sunday shortcut","S"),pgettext("Monday shortcut","M"),pgettext("Tuesday shortcut","T"),pgettext("Wednesday shortcut","W"),pgettext("Thursday shortcut","T"),pgettext("Friday shortcut","F"),pgettext("Saturday shortcut","S")],today:pgettext("Datepicker option","Today"),clear:pgettext("Datepicker option","Clear"),close:pgettext("Datepicker option","Close"),format:"d mmmm yyyy",formatSubmit:"yyyy-mm-dd",selectMonths:!0,hiddenName:!0,onClose:function(){return e(document.activeElement).blur()}})}).call(this,n(36))},1080:function(e,t,n){"use strict";(function(e){var t=n(1039),i=n.n(t),o=n(1040),r=n.n(o),a=n(1041),s=n.n(a),l=n(1042),c=n.n(l),u=n(1043),d=n.n(u),h=n(1044),p=n.n(h),f=n(1045),m=n.n(f),g=n(1046),v=n.n(g),y=n(1047),b=n.n(y),w=n(1048),x=n.n(w),C=n(1049),k=n.n(C);e(".rich-text-editor").removeClass("materialize-textarea");new i.a(".rich-text-editor",{paste:{forcePlainText:!0},toolbar:{buttons:[{name:"bold",aria:pgettext("Rich text editor option","Bold text")},{name:"italic",aria:pgettext("Rich text editor option","Italic text")},{name:"h2",aria:pgettext("Rich text editor option","Header"),tagNames:["h2"],contentDefault:"<b>T</b>",classList:["custom-class-h1"]},{name:"h3",aria:pgettext("Rich text editor option","Subheader"),tagNames:["h3"],contentDefault:'<b style="font-size: .75rem">T</b>',classList:["custom-class-h2"]},{name:"quote",aria:pgettext("Rich text editor option","Quote"),contentDefault:'<img src="'.concat(v.a,'">')},{name:"anchor",aria:pgettext("Rich text editor option","Link"),contentDefault:'<img src="'.concat(p.a,'">'),formSaveLabel:'<img src="'.concat(x.a,'"'),formCloseLabel:'<img src="'.concat(k.a,'">')},{name:"image",aria:pgettext("Rich text editor option","Image (converts selected text to an image tag)"),contentDefault:'<img src="'.concat(m.a,'">')},{name:"justifyLeft",aria:pgettext("Rich text editor option","Left align"),contentDefault:'<img src="'.concat(c.a,'">')},{name:"justifyCenter",aria:pgettext("Rich text editor option","Center align"),contentDefault:'<img src="'.concat(r.a,'">')},{name:"justifyRight",aria:pgettext("Rich text editor option","Right align"),contentDefault:'<img src="'.concat(d.a,'">')},{name:"justifyFull",aria:pgettext("Rich text editor option","Justify"),contentDefault:'<img src="'.concat(s.a,'">')},{name:"removeFormat",aria:pgettext("Rich text editor option","Remove formatting"),contentDefault:'<img src="'.concat(b.a,'">')}]},keyboardCommands:{commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1}]}})}).call(this,n(36))},1081:function(e,t,n){"use strict";(function(e){var t=n(269),i=null,o=!1,r=null,a=e("#filters"),s=function(){if(i!==window.innerWidth){var n=e(".collapse");i=window.innerWidth,window.innerWidth<t.a.md?(r.before(a),o||(n.addClass("collapsed"),o=!0)):(r.after(a),n.removeClass("collapsed"))}};r=a.prev(),a.length&&(s(),e(window).on("resize",s)),e(".collapse-activate").on("click",function(t){var n=e(".collapse");n.hasClass("collapsed")?n.removeClass("collapsed"):n.addClass("collapsed")})}).call(this,n(36))},1082:function(e,t,n){(function(e){var t=e("#id_seo_title"),n=t.data("bind"),i=e("#".concat(n)),o=e("#id_seo_description"),r=o.data("materialize"),a="",s=o.data("bind");r?a=e(".materialize-textarea[name='".concat(r,"']")).not(s).first():s&&(a=e("#".concat(s)));var l=e("#google-preview-title"),c=e("#google-preview-description"),u=e("#google-preview"),d="input propertychange cut paste copy change";function h(e,t,n){var i=m(e.text()||e.val(),t);t.attr("placeholder",i),n.text(t.val()||i)}function p(t){var n=t.attr("id"),i=e("span[data-bind=".concat(n,"]")),o=t.val().length||t.text().length;!o&&t.attr("placeholder")&&(o=t.attr("placeholder").length);var r=t.data("min-recommended-length"),a=i.parent();o<r?(a.addClass("orange-text"),a.removeClass("green-text"),a.attr("title",gettext("Your input might be a little too short, think of something more descriptive"))):(a.removeClass("orange-text"),a.addClass("green-text"),a.attr("title",gettext("Your input fits between the recommended lengths"))),i.text(o)}function f(){var e=c.text(),t=l.text();e&&t?u.show():u.hide()}function m(e,t){var n=t.prop("maxLength");return e&&e.length>n?e.substring(e,n):e}function g(t,n,i){t.on(d,function(t){var o=e(t.currentTarget),r=o.val()||o.text();n.attr("placeholder",m(r,n)),n.val()||i.text(m(r,n)),f(),p(n)})}function v(t,n){t.on(d,function(i){var o=e(i.currentTarget).val();if(o)n.text(m(o,t));else{var r=t.attr("placeholder");n.text(m(r,t))}f(),p(t)})}t.length&&(i&&(h(i,t,l),g(i,t,l)),v(t,l),p(t)),o.length&&(a&&(h(a,o,c),g(a,o,c)),v(o,c),p(o)),f()}).call(this,n(36))},1083:function(e,t,n){"use strict";(function(e){n(1084);function t(e,t,n){var i=e.attr("data-href-template").split("/");return i[i.length+t]=n,i.join("/")}e("#product-image-form").dropzone({paramName:"image_0",maxFilesize:20,previewsContainer:".product-gallery",thumbnailWidth:400,thumbnailHeight:400,previewTemplate:e("#template").html(),method:"POST",clickable:".dropzone-message",init:function(){this.on("success",function(n,i){var o=e(n.previewElement);o.find(".product-gallery-item-desc").html(i.image),o.attr("data-id",i.id);var r=o.find(".card-action-edit"),a=t(r,-2,i.id);r.attr("href",a);var s=o.find(".card-action-delete"),l=t(s,-3,i.id);s.attr("data-href",l),e(".no-images").addClass("hide")})}})}).call(this,n(36))},1084:function(e,t,n){"use strict";(function(e,t){var n=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}}();function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(){o(this,e)}return n(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];for(var r=0,a=a=t;;){if(r>=a.length)break;a[r++].apply(this,i)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var i=0;i<n.length;i++){if(n[i]===t){n.splice(i,1);break}}return this}}]),e}(),a=function(e){function t(e,n){o(this,t);var r,a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),s=void 0;if(a.element=e,a.version=t.version,a.defaultOptions.previewTemplate=a.defaultOptions.previewTemplate.replace(/\n*/g,""),a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");t.instances.push(a),a.element.dropzone=a;var l,c=null!=(r=t.optionsForElement(a.element))?r:{};if(a.options=t.extend({},a.defaultOptions,c,null!=n?n:{}),a.options.forceFallback||!t.isBrowserSupported())return l=a.options.fallback.call(a),i(a,l);if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(e){return a.options.renameFilename.call(a,e.name,e)}),a.options.method=a.options.method.toUpperCase(),(s=a.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=t.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=t.getElements(a.options.clickable,"clickable")),a.init(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r),n(t,null,[{key:"initClass",value:function(){this.prototype.Emitter=r,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var n=0,i=i=this.element.getElementsByTagName("div");;){if(n>=i.length)break;var o=i[n++];if(/(^| )dz-message($| )/.test(o.className)){e=o,o.className="dz-message";break}}e||(e=t.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var r=e.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,i){var o={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},r=e.width/e.height;null==t&&null==n?(t=o.srcWidth,n=o.srcHeight):null==t?t=n*r:null==n&&(n=t/r);var a=(t=Math.min(t,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>t||o.srcHeight>n)if("crop"===i)r>a?(o.srcHeight=e.height,o.srcWidth=o.srcHeight*a):(o.srcWidth=e.width,o.srcHeight=o.srcWidth/a);else{if("contain"!==i)throw new Error("Unknown resizeMethod '"+i+"'");r>a?n=t/r:t=n*r}return o.srcX=(e.width-o.srcWidth)/2,o.srcY=(e.height-o.srcHeight)/2,o.trgWidth=t,o.trgHeight=n,o},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var i=0,o=o=e.previewElement.querySelectorAll("[data-dz-name]");;){if(i>=o.length)break;var r=o[i++];r.textContent=e.name}for(var a=0,s=s=e.previewElement.querySelectorAll("[data-dz-size]");!(a>=s.length);)(r=s[a++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=t.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var l=function(i){return i.preventDefault(),i.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)},c=0,u=u=e.previewElement.querySelectorAll("[data-dz-remove]");;){if(c>=u.length)break;u[c++].addEventListener("click",l)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,i=i=e.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(n>=i.length)break;var o=i[n++];o.alt=e.name,o.src=t}return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,i=i=e.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(n>=i.length)break;i[n++].textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var i=0,o=o=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(i>=o.length)break;var r=o[i++];"PROGRESS"===r.nodeName?r.value=t:r.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var o=0,r=r=n;;){if(o>=r.length)break;var a=r[o++];for(var s in a){var l=a[s];e[s]=l}}return e}}]),n(t,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(e){return e.accepted}).map(function(e){return e})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(e){return!e.accepted}).map(function(e){return e})}},{key:"getFilesWithStatus",value:function(e){return this.files.filter(function(t){return t.status===e}).map(function(e){return e})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(t.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(t.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(t.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(e){return e.status===t.UPLOADING||e.status===t.QUEUED}).map(function(e){return e})}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(t.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function n(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",t.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t=e.hiddenFileInput.files;if(t.length)for(var i=0,o=o=t;!(i>=o.length);){var r=o[i++];e.addFile(r)}return e.emit("addedfiles",t),n()})}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var n=0,i=i=this.events;;){if(n>=i.length)break;var o=i[n++];this.on(o,this.options[o])}this.on("uploadprogress",function(){return e.updateTotalUploadProgress()}),this.on("removedfile",function(){return e.updateTotalUploadProgress()}),this.on("canceled",function(t){return e.emit("complete",t)}),this.on("complete",function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout(function(){return e.emit("queuecomplete")},0)});var r=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return r(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",r(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return r(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach(function(n){return e.listeners.push({element:n,events:{click:function(i){return(n!==e.element||i.target===e.element||t.elementInside(i.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,t.instances.splice(t.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var i=0,o=o=this.getActiveFiles();;){if(i>=o.length)break;var r=o[i++];t+=r.upload.bytesSent,n+=r.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,n=void 0;if(e=this.getExistingFallback())return e;var i='<div class="dz-fallback">';this.options.dictFallbackText&&(i+="<p>"+this.options.dictFallbackText+"</p>"),i+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var o=t.createElement(i);return"FORM"!==this.element.tagName?(n=t.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(o):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=n?n:o}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var i=n[t++];if(/(^| )fallback($| )/.test(i.className))return i}},t=["div","form"],n=0;n<t.length;n++){var i,o=t[n];if(i=e(this.element.getElementsByTagName(o)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var n in e.events){var i=e.events[n];t.push(e.element.addEventListener(n,i,!1))}return t}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var n in e.events){var i=e.events[n];t.push(e.element.removeEventListener(n,i,!1))}return t}()})}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(t){return e.cancelUpload(t)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var i=["tb","gb","mb","kb","b"],o=0;o<i.length;o++){var r=i[o];if(e>=Math.pow(this.options.filesizeBase,4-o)/10){t=e/Math.pow(this.options.filesizeBase,4-o),n=r;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var i=e.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var i=e.clipboardData.items;return i.length?this._addFilesFromItems(i):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var i=n[t++];this.addFile(i)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],i=0,o=o=e;;){if(i>=o.length)break;var r,a=o[i++];null!=a.webkitGetAsEntry&&(r=a.webkitGetAsEntry())?r.isFile?n.push(t.addFile(a.getAsFile())):r.isDirectory?n.push(t._addFilesFromDirectory(r,r.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(t.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,i=e.createReader(),o=function(e){return t=console,n="log",i=function(t){return t.log(e)},null!=t&&"function"==typeof t[n]?i(t,n):void 0;var t,n,i};return function e(){return i.readEntries(function(i){if(i.length>0){for(var o=0,r=r=i;!(o>=r.length);){var a=r[o++];a.isFile?a.file(function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)}):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null},o)}()}},{key:"accept",value:function(e,n){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):t.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,n):n(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var n=this;return e.upload={uuid:t.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=t.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return t?(e.accepted=!1,n._errorProcessing([e],t)):(e.accepted=!0,n.options.autoQueue&&n.enqueueFile(e)),n._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var i=n[t++];this.enqueueFile(i)}return null}},{key:"enqueueFile",value:function(e){var n=this;if(e.status!==t.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=t.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return n.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()})}}},{key:"removeFile",value:function(e){if(e.status===t.UPLOADING&&this.cancelUpload(e),this.files=s(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var n=0,i=i=this.files.slice();;){if(n>=i.length)break;var o=i[n++];(o.status!==t.UPLOADING||e)&&this.removeFile(o)}return null}},{key:"resizeImage",value:function(e,n,i,o,r){var a=this;return this.createThumbnail(e,n,i,o,!0,function(n,i){if(null==i)return r(e);var o=a.options.resizeMimeType;null==o&&(o=e.type);var s=i.toDataURL(o,a.options.resizeQuality);return"image/jpeg"!==o&&"image/jpg"!==o||(s=u.restore(e.dataURL,s)),r(t.dataURItoBlob(s))})}},{key:"createThumbnail",value:function(e,t,n,i,o,r){var a=this,s=new FileReader;return s.onload=function(){if(e.dataURL=s.result,"image/svg+xml"!==e.type)return a.createThumbnailFromUrl(e,t,n,i,o,r);null!=r&&r(s.result)},s.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,i,o,r,a){var s=this,l=document.createElement("img");return a&&(l.crossOrigin=a),l.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(a=function(e){return EXIF.getData(l,function(){return e(EXIF.getTag(this,"Orientation"))})}),a(function(o){e.width=l.width,e.height=l.height;var a=s.options.resize.call(s,e,t,n,i),u=document.createElement("canvas"),d=u.getContext("2d");switch(u.width=a.trgWidth,u.height=a.trgHeight,o>4&&(u.width=a.trgHeight,u.height=a.trgWidth),o){case 2:d.translate(u.width,0),d.scale(-1,1);break;case 3:d.translate(u.width,u.height),d.rotate(Math.PI);break;case 4:d.translate(0,u.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-u.width);break;case 7:d.rotate(.5*Math.PI),d.translate(u.height,-u.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-u.height,0)}c(d,l,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var h=u.toDataURL("image/png");if(null!=r)return r(h,u)})},null!=r&&(l.onerror=r),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var i=this.getQueuedFiles();if(i.length>0){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,e-t));for(;n<e;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var n=0,i=i=e;;){if(n>=i.length)break;var o=i[n++];o.processing=!0,o.status=t.UPLOADING,this.emit("processing",o)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter(function(t){return t.xhr===e}).map(function(e){return e})}},{key:"cancelUpload",value:function(e){if(e.status===t.UPLOADING){for(var n=this._getFilesWithXhr(e.xhr),i=0,o=o=n;;){if(i>=o.length)break;o[i++].status=t.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var r=0,a=a=n;;){if(r>=a.length)break;var s=a[r++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",n)}else e.status!==t.ADDED&&e.status!==t.QUEUED||(e.status=t.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var n=this;this._transformFiles(e,function(i){if(e[0].upload.chunked){var o=e[0],r=i[0];o.upload.chunks=[];var a=function(){for(var i=0;void 0!==o.upload.chunks[i];)i++;if(!(i>=o.upload.totalChunkCount)){0;var a=i*n.options.chunkSize,s=Math.min(a+n.options.chunkSize,o.size),l={name:n._getParamName(0),data:r.webkitSlice?r.webkitSlice(a,s):r.slice(a,s),filename:o.upload.filename,chunkIndex:i};o.upload.chunks[i]={file:o,index:i,dataBlock:l,status:t.UPLOADING,progress:0,retries:0},n._uploadData(e,[l])}};if(o.upload.finishedChunkUpload=function(i){var r=!0;i.status=t.SUCCESS,i.dataBlock=null,i.xhr=null;for(var s=0;s<o.upload.totalChunkCount;s++){if(void 0===o.upload.chunks[s])return a();o.upload.chunks[s].status!==t.SUCCESS&&(r=!1)}r&&n.options.chunksUploaded(o,function(){n._finished(e,"",null)})},n.options.parallelChunkUploads)for(var s=0;s<o.upload.totalChunkCount;s++)a();else a()}else{for(var l=[],c=0;c<e.length;c++)l[c]={name:n._getParamName(c),data:i[c],filename:e[c].upload.filename};n._uploadData(e,l)}})}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,n){for(var i=this,o=new XMLHttpRequest,r=0,a=a=e;;){if(r>=a.length)break;a[r++].xhr=o}e[0].upload.chunked&&(e[0].upload.chunks[n[0].chunkIndex].xhr=o);var s=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);o.open(s,l,!0),o.timeout=this.resolveOption(this.options.timeout,e),o.withCredentials=!!this.options.withCredentials,o.onload=function(t){i._finishedUploading(e,o,t)},o.onerror=function(){i._handleUploadError(e,o)},(null!=o.upload?o.upload:o).onprogress=function(t){return i._updateFilesUploadProgress(e,o,t)};var c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var u in this.options.headers&&t.extend(c,this.options.headers),c){var d=c[u];d&&o.setRequestHeader(u,d)}var h=new FormData;if(this.options.params){var p=this.options.params;for(var f in"function"==typeof p&&(p=p.call(this,e,o,e[0].upload.chunked?this._getChunk(e[0],o):null)),p){var m=p[f];h.append(f,m)}}for(var g=0,v=v=e;;){if(g>=v.length)break;var y=v[g++];this.emit("sending",y,o,h)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,o,h),this._addFormElementData(h);for(var b=0;b<n.length;b++){var w=n[b];h.append(w.name,w.data,w.filename)}this.submitRequest(o,h,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,i=[],o=0,r=function(r){n.options.transformFile.call(n,e[r],function(n){i[r]=n,++o===e.length&&t(i)})},a=0;a<e.length;a++)r(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");;){if(t>=n.length)break;var i=n[t++],o=i.getAttribute("name"),r=i.getAttribute("type");if(r&&(r=r.toLowerCase()),null!=o)if("SELECT"===i.tagName&&i.hasAttribute("multiple"))for(var a=0,s=s=i.options;;){if(a>=s.length)break;var l=s[a++];l.selected&&e.append(o,l.value)}else(!r||"checkbox"!==r&&"radio"!==r||i.checked)&&e.append(o,i.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var i=void 0;if(void 0!==n){if(i=100*n.loaded/n.total,e[0].upload.chunked){var o=e[0],r=this._getChunk(o,t);r.progress=i,r.total=n.total,r.bytesSent=n.loaded;o.upload.progress=0,o.upload.total=0,o.upload.bytesSent=0;for(var a=0;a<o.upload.totalChunkCount;a++)void 0!==o.upload.chunks[a]&&void 0!==o.upload.chunks[a].progress&&(o.upload.progress+=o.upload.chunks[a].progress,o.upload.total+=o.upload.chunks[a].total,o.upload.bytesSent+=o.upload.chunks[a].bytesSent);o.upload.progress=o.upload.progress/o.upload.totalChunkCount}else for(var s=0,l=l=e;;){if(s>=l.length)break;var c=l[s++];c.upload.progress=i,c.upload.total=n.total,c.upload.bytesSent=n.loaded}for(var u=0,d=d=e;;){if(u>=d.length)break;var h=d[u++];this.emit("uploadprogress",h,h.upload.progress,h.upload.bytesSent)}}else{var p=!0;i=100;for(var f=0,m=m=e;;){if(f>=m.length)break;var g=m[f++];100===g.upload.progress&&g.upload.bytesSent===g.upload.total||(p=!1),g.upload.progress=i,g.upload.bytesSent=g.upload.total}if(p)return;for(var v=0,y=y=e;;){if(v>=y.length)break;var b=y[v++];this.emit("uploadprogress",b,i,b.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,n,i){var o=void 0;if(e[0].status!==t.CANCELED&&4===n.readyState){if("arraybuffer"!==n.responseType&&"blob"!==n.responseType&&(o=n.responseText,n.getResponseHeader("content-type")&&~n.getResponseHeader("content-type").indexOf("application/json")))try{o=JSON.parse(o)}catch(e){i=e,o="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=n.status&&n.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],n)):this._finished(e,o,i):this._handleUploadError(e,n,o)}}},{key:"_handleUploadError",value:function(e,n,i){if(e[0].status!==t.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var o=this._getChunk(e[0],n);if(o.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[o.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var r=0,a=a=e;;){if(r>=a.length)break;a[r++];this._errorProcessing(e,i||this.options.dictResponseError.replace("{{statusCode}}",n.status),n)}}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,n,i){for(var o=0,r=r=e;;){if(o>=r.length)break;var a=r[o++];a.status=t.SUCCESS,this.emit("success",a,n,i),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,n,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,n,i){for(var o=0,r=r=e;;){if(o>=r.length)break;var a=r[o++];a.status=t.ERROR,this.emit("error",a,n,i),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,n,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}]),t}();a.initClass(),a.version="5.5.1",a.options={},a.optionsForElement=function(e){return e.getAttribute("id")?a.options[l(e.getAttribute("id"))]:void 0},a.instances=[],a.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},a.autoDiscover=!0,a.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],i=0,o=o=t;;){if(i>=o.length)break;var r=o[i++];/(^| )dropzone($| )/.test(r.className)?n.push(e.push(r)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,i=i=e;;){if(n>=i.length)break;var o=i[n++];!1!==a.optionsForElement(o)?t.push(new a(o)):t.push(void 0)}return t}()},a.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],a.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=a.blacklistedBrowsers;;){if(t>=n.length)break;n[t++].test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},a.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),o=new Uint8Array(i),r=0,a=t.length,s=0<=a;s?r<=a:r>=a;s?r++:r--)o[r]=t.charCodeAt(r);return new Blob([i],{type:n})};var s=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},l=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};a.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},a.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},a.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},a.getElements=function(e,t){var n=void 0,i=void 0;if(e instanceof Array){i=[];try{for(var o=0,r=r=e;!(o>=r.length);)n=r[o++],i.push(this.getElement(n,t))}catch(e){i=null}}else if("string"==typeof e){i=[];for(var a=0,s=s=document.querySelectorAll(e);!(a>=s.length);)n=s[a++],i.push(n)}else null!=e.nodeType&&(i=[e]);if(null==i||!i.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return i},a.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},a.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,i=n.replace(/\/.*$/,""),o=0,r=r=t;;){if(o>=r.length)break;var a=r[o++];if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(i===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},null!=e&&(e.fn.dropzone=function(e){return this.each(function(){return new a(this,e)})}),null!==t?t.exports=a:window.Dropzone=a,a.ADDED="added",a.QUEUED="queued",a.ACCEPTED=a.QUEUED,a.UPLOADING="uploading",a.PROCESSING=a.UPLOADING,a.CANCELED="canceled",a.ERROR="error",a.SUCCESS="success";var c=function(e,t,n,i,o,r,a,s,l,c){var u=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var i=n.getContext("2d");i.drawImage(e,0,0);for(var o=i.getImageData(1,0,1,t).data,r=0,a=t,s=t;s>r;)0===o[4*(s-1)+3]?a=s:r=s,s=a+r>>1;var l=s/t;return 0===l?1:l}(t);return e.drawImage(t,n,i,o,r,a,s,l,c/u)},u=function(){function e(){o(this,e)}return n(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,i=void 0,o="",r=void 0,a=void 0,s=void 0,l="",c=0;r=(n=e[c++])>>2,a=(3&n)<<4|(i=e[c++])>>4,s=(15&i)<<2|(o=e[c++])>>6,l=63&o,isNaN(i)?s=l=64:isNaN(o)&&(l=64),t=t+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),n=i=o="",r=a=s=l="",c<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),i=this.slice2Segments(n),o=this.exifManipulation(t,i);return"data:image/jpeg;base64,"+this.encode64(o)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),i=this.insertExif(e,n);return new Uint8Array(i)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),i=this.decode64(n),o=i.indexOf(255,3),r=i.slice(0,o),a=i.slice(o),s=r;return s=(s=s.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var i=t+(256*e[t+2]+e[t+3])+2,o=e.slice(t,i);n.push(o),t=i}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,i="",o=void 0,r=void 0,a="",s=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(o=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&o)<<4|(r=this.KEY_STR.indexOf(e.charAt(s++)))>>2,i=(3&r)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),l.push(t),64!==r&&l.push(n),64!==a&&l.push(i),t=n=i="",o=r=a="",s<e.length;);return l}}]),e}();u.initClass();a._autoDiscoverFunction=function(){if(a.autoDiscover)return a.discover()},function(e,t){var n=!1,i=!0,o=e.document,r=o.documentElement,a=o.addEventListener?"addEventListener":"attachEvent",s=o.addEventListener?"removeEventListener":"detachEvent",l=o.addEventListener?"":"on",c=function i(r){if("readystatechange"!==r.type||"complete"===o.readyState)return("load"===r.type?e:o)[s](l+r.type,i,!1),!n&&(n=!0)?t.call(e,r.type||r):void 0};if("complete"!==o.readyState){if(o.createEventObject&&r.doScroll){try{i=!e.frameElement}catch(e){}i&&function e(){try{r.doScroll("left")}catch(t){return void setTimeout(e,50)}return c("poll")}()}o[a](l+"DOMContentLoaded",c,!1),o[a](l+"readystatechange",c,!1),e[a](l+"load",c,!1)}}(window,a._autoDiscoverFunction)}).call(this,n(36),n(114)(e))},1085:function(e,t,n){(function(e){function t(e){e.preventDefault()}e(".load-action").on("click",function(n){e("body").css("cursor","progress"),e(n.target).on("click",t)})}).call(this,n(36))},1086:function(e,t,n){(function(e){var t=e("#messages-container").data("messages"),n=e(".message");t&&Object.keys(t).forEach(function(e){Materialize.toast(t[e],5e3)}),setTimeout(function(){var e=0;n.each(function(t,n){setTimeout(function(){n.removeClass("toast--hidden")},e+100),e+=3e3,setTimeout(function(){n.addClass("toast--hidden")},e-100)})},250)}).call(this,n(36))},1087:function(e,t,n){"use strict";(function(e){var t=n(269),i=n(189),o=["textarea",'input[type="text"]:not(.select-dropdown)','input[type="number"]'];e("body").on("click",".modal-trigger-custom",function(n){var r=n.currentTarget;n.preventDefault(),e.ajax({url:r.dataset.href,method:"GET",success:function(n){var a=e(r.getAttribute("href"));a.html(n).modal("open"),Object(i.a)(),a.find(o.join(",")).length&&a.find(o.join(","))[0].focus(),e(".image_select-item-overlay").on("click",function(t){var n=t.currentTarget.getAttribute("id"),i=document.querySelector("input#"+n),o=i.getAttribute("checked");i.setAttribute("checked",!o),e(t.target).toggleClass("checked",!i)}),t.b.inject(document.querySelectorAll(".modal-content svg[data-src]:not(.injected-svg)"))}})})}).call(this,n(36))},1088:function(e,t,n){(function(e){e("#btn-search").on("click",function(t){t.preventDefault();var n=e(t.currentTarget);e(".search").toggleClass("expanded",!n.hasClass("expanded"))}),e("#btn-search-close").on("click",function(t){var n=e(t.currentTarget),i=n.hasClass("expanded");e(".search").toggleClass("expanded",i),n.toggleClass("active",!i)}),e("#btn-search-submit").on("click",function(t){t.preventDefault(),e(t.currentTarget).parent().submit()})}).call(this,n(36))},1089:function(e,t,n){"use strict";(function(e){var t=n(333);var i=e(".side-nav"),o=e("#toggle-menu");if(i.length){var r=i.offset().top;o.on("click",function(t){t.preventDefault(),e("body").toggleClass("nav-toggled")}),i.length>0&&Object(t.a)(function(){var t=Math.floor(e(window).scrollTop())>Math.ceil(r);e("body").toggleClass("sticky-nav",t)})}}).call(this,n(36))},1090:function(e,t,n){"use strict";(function(e){var t=n(1051),i=n.n(t);e(".sortable-items").each(function(t,n){var o=e(n);i.a.create(n,{handle:".sortable__drag-area",animation:150,onUpdate:function(){var t=o.find(".sortable-item[data-id]").map(function(e,t){return t.dataset.id}).toArray(),n={};n[o.data("post-name")]=t,e.ajax({method:"POST",url:o.data("post-url"),data:n,traditional:!0,headers:{"X-CSRFToken":e.cookie("csrftoken")}})}})})}).call(this,n(36))},1091:function(e,t,n){(function(e){var t=e("ul.tabs");t.length&&(t.find(".tab").on("click",function(t){var n=e(t.currentTarget).find("a").attr("href");e(".btn-fab").addClass("btn-fab-hidden"),e(n+"-btn").removeClass("btn-fab-hidden")}),t.find("a.active").parent().click())}).call(this,n(36))},1092:function(e,t,n){(function(e){e('[name="discount_value_type"]').on("change",function(t){var n=e(t.currentTarget);e('[name="product-apply_to"], [name="category-apply_to"]').parents(".input").toggleClass("hide","percentage"===n.val())}).trigger("change"),e('[name="type"]').on("change",function(t){var n=e(t.currentTarget);e(".voucher-form").each(function(t,i){var o=e(i);o.toggleClass("hide",o.data("type")!==n.val())})}).trigger("change")}).call(this,n(36))},114:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},120:function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},189:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});n(1077);function i(){var t=e(".attribute-select-or-create select");t.select2({tags:!0,width:"100%"}),t.addClass("select2-enabled"),e("select:not(.browser-default):not(.enable-ajax-select2):not([multiple])").material_select(),e("select[multiple]:not(.browser-default):not(.enable-ajax-select2)").select2({width:"100%"}),e("select.enable-ajax-select2:not(.select2-enabled)").each(function(t,n){var i=e(n),o=i.data("initial");if(o){var r=(o instanceof Array?o:[o]).map(function(t){return function(t,n){t.append(e("<option></option>").attr("value",n.id).text(n.text))}(i,t),t.id});i.val(r)}i.select2({ajax:{url:i.data("url"),delay:250},width:"100%",minimumInputLength:i.data("min-input")}),i.addClass("select2-enabled")})}}).call(this,n(36))},2044:function(e,t,n){"use strict";n.r(t);n(1073),n(344),n(1075),n(1076),n(1078),n(1079),n(1080),n(1081),n(1082),n(1083),n(1085),n(1086),n(269),n(1087),n(1088),n(189),n(1089),n(1090),n(1091),n(1092)},225:function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty,o=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(n[i]=e[i]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var r=t[i],a=r.obj[r.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var i=[],r=0;r<n.length;++r)void 0!==n[r]&&i.push(n[r]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var i=e.replace(/\+/g," ");if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(e,t,n){if(0===e.length)return e;var i="string"==typeof e?e:String(e);if("iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var o="",a=0;a<i.length;++a){var s=i.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=i.charAt(a):s<128?o+=r[s]:s<2048?o+=r[192|s>>6]+r[128|63&s]:s<55296||s>=57344?o+=r[224|s>>12]+r[128|s>>6&63]+r[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&i.charCodeAt(a)),o+=r[240|s>>18]+r[128|s>>12&63]+r[128|s>>6&63]+r[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return o(t)&&!o(n)&&(s=a(t,r)),o(t)&&o(n)?(n.forEach(function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t},s)}}},226:function(e,t,n){"use strict";var i=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return i.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},269:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var i=n(270),o=n.n(i),r=n(189),a=n(333),s={sm:600,md:992,lg:1200},l=new o.a;l.inject(document.querySelectorAll("svg[data-src]")),Object(r.a)(),e(".modal").modal(),e(".btn-print").click(function(e){window.print()}),e(document).on("mouseup","tr[data-action-go] > td:not(.ignore-link)",function(t){var n=e(t.currentTarget),i=getSelection().toString();""===i||i===n.data("ignore-text")?window.location.href=n.parent().data("action-go"):n.data("ignore-text",i)});["#product-is-published","#collection-is-published"].forEach(function(t){e(t).on("click",function(t){var n=e(t.currentTarget).closest("#toggle-publish-form"),i=n.find("#toggle-publish-switch")[0];if(t.target===i){var o=n.attr("action");fetch(o,{method:"POST",credentials:"same-origin",headers:{"X-CSRFToken":e("[name=csrfmiddlewaretoken]").val()}}).then(function(){window.location.reload()}).catch(function(){window.location.reload()})}})}),Object(a.a)(function(){return e(".styleguide__menu").toggleClass("fixed",e(window).scrollTop()>100)})}).call(this,n(36))},270:function(e,t,n){var i;
  /*!
   * SVGInjector v2.1.3 - Fast, caching, dynamic inline SVG DOM injection library
   * https://github.com/flobacher/SVGInjector2
   * forked from:
   * https://github.com/iconic/SVGInjector
   *
   * Copyright (c) 2015 flobacher <flo@digital-fuse.net>
   * @license MIT
   *
   * original Copyright (c) 2014 Waybury <hello@waybury.com>
   * @license MIT
   */!function(o,r){"use strict";var a=function(){function e(t){e.instanceCounter++,this.init(t)}var t,n,i,a,s,l,c,u,d,h,p,f,m,g,v,y,b,w,x,C,k,E,T,S,A,D,_,N,P,O,L="http://www.w3.org/2000/svg",M="http://www.w3.org/1999/xlink",I=["sprite"];return i=[],e.instanceCounter=0,e.prototype.init=function(e){e=e||{},t={},(l={}).isLocal="file:"===o.location.protocol,l.hasSvgSupport=r.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),n={count:0,elements:[]},a={},(s={}).evalScripts=e.evalScripts||"always",s.pngFallback=e.pngFallback||!1,s.svgFallbackDir=e.svgFallbackDir||!1,s.onlyInjectVisiblePart=e.onlyInjectVisiblePart||!0,s.keepStylesClass=void 0===e.keepStylesClass?"":e.keepStylesClass,s.spriteClassName=void 0===e.spriteClassName?"sprite":e.spriteClassName,s.spriteClassIdName=void 0===e.spriteClassIdName?"sprite--":e.spriteClassIdName,s.removeStylesClass=void 0===e.removeStylesClass?"icon":e.removeStylesClass,s.removeAllStyles=void 0!==e.removeAllStyles&&e.removeAllStyles,s.fallbackClassName=void 0===e.fallbackClassName?I:e.fallbackClassName,s.prefixStyleTags=void 0===e.prefixStyleTags||e.prefixStyleTags,s.spritesheetURL=void 0!==e.spritesheetURL&&""!==e.spritesheetURL&&e.spritesheetURL,s.prefixFragIdClass=s.spriteClassIdName,s.forceFallbacks=void 0!==e.forceFallbacks&&e.forceFallbacks,s.forceFallbacks&&(l.hasSvgSupport=!1),k(r.querySelector("html"),"no-svg",l.hasSvgSupport),l.hasSvgSupport&&void 0===e.removeStylesClass&&C(s.removeStylesClass)},e.prototype.inject=function(e,t,n){if(void 0!==e.length){var i=0,o=this;_.call(e,function(r){o.injectElement(r,function(o){n&&"function"==typeof n&&n(o),t&&e.length===++i&&t(i)})})}else e?this.injectElement(e,function(i){n&&"function"==typeof n&&n(i),t&&t(1),e=null}):t&&t(0)},O=e.prototype.injectElement=function(e,t){var i,o=e.getAttribute("data-src")||e.getAttribute("src");if(!o){if(!s.spritesheetURL)return;if(""===(i=v(e)))return;o=s.spritesheetURL+"#"+i}e.setAttribute("data-src",o);var r,a=o.split("#");if(1===a.length&&a.push(""),/\.svg/i.test(o))if(l.hasSvgSupport)A(s.fallbackClassName)&&u(e,a[1],s.fallbackClassName),-1===n.elements.indexOf(e)&&(n.elements.push(e),x(t,o,e));else{var d=e.getAttribute("data-fallback")||e.getAttribute("data-png");d?(e.setAttribute("src",d),t(null)):s.pngFallback?(a.length>1&&a[1]?(r=a[1]+".png",A(s.fallbackClassName)?c(e,a[1],s.fallbackClassName):S(s.fallbackClassName)?s.fallbackClassName(e,a[1]):"string"==typeof s.fallbackClassName?D(e,s.fallbackClassName):e.setAttribute("src",s.pngFallback+"/"+r)):(r=o.split("/").pop().replace(".svg",".png"),e.setAttribute("src",s.pngFallback+"/"+r)),t(null)):t("This browser does not support SVG and no PNG fallback was defined.")}else t("Attempted to inject a file with a non-svg extension: "+o)},e.prototype.getEnv=function(){return l},e.prototype.getConfig=function(){return s},c=function(e,t,n){var i=void 0===n?I:n.slice(0);_.call(i,function(e,n){i[n]=e.replace("%s",t)}),D(e,i)},u=function(e,t,n){n=void 0===n?I.slice(0):n.slice(0);var i,o,r=e.getAttribute("class");null!=r&&(o=r.split(" "))&&(_.call(n,function(e){e=e.replace("%s",t),(i=o.indexOf(e))>=0&&(o[i]="")}),e.setAttribute("class",T(o.join(" "))))},h=function(e,t,n,i){var o=0;return e.textContent=e.textContent.replace(/url\(('|")*#.+('|")*(?=\))/g,function(e){return o++,e+"-"+t}),o},d=function(e,t){var n,i,o,r,a,s,l,c,u,d,h,p,f,m,g,v;_.call([{def:"linearGradient",attrs:["fill","stroke"]},{def:"radialGradient",attrs:["fill","stroke"]},{def:"clipPath",attrs:["clip-path"]},{def:"mask",attrs:["mask"]},{def:"filter",attrs:["filter"]},{def:"color-profile",attrs:["color-profile"]},{def:"cursor",attrs:["cursor"]},{def:"marker",attrs:["marker","marker-start","marker-mid","marker-end"]}],function(y){for(i=e.querySelectorAll(y.def+"[id]"),r=0,o=i.length;r<o;r++){for(n=i[r].id+"-"+t,c=y.attrs,d=0,u=c.length;d<u;d++)for(a=e.querySelectorAll("["+c[d]+'="url(#'+i[r].id+')"]'),l=0,s=a.length;l<s;l++)a[l].setAttribute(c[d],"url(#"+n+")");for(h=e.querySelectorAll("[*|href]"),m=[],f=0,p=h.length;f<p;f++)h[f].getAttributeNS(M,"href").toString()==="#"+i[r].id&&m.push(h[f]);for(v=0,g=m.length;v<g;v++)m[v].setAttributeNS(M,"href","#"+n);i[r].id=n}})},p=function(e,t,n){var i;void 0===n&&(n=["id","viewBox"]);for(var o=0;o<e.attributes.length;o++)i=e.attributes.item(o),n.indexOf(i.name)<0&&t.setAttribute(i.name,i.value)},f=function(e){var t=r.createElementNS(L,"svg");return _.call(e.childNodes,function(e){t.appendChild(e.cloneNode(!0))}),p(e,t),t},m=function(e,t,n){var i,o,r,a,s,l,c=n.getAttribute("data-src").split("#"),u=e.textContent,d="",h=function(e,t,n){n[t]="."+r+" "+e};if(c.length>1)o=c[1],r=o+"-"+t,i=new RegExp("\\."+o+" ","g"),e.textContent=u.replace(i,"."+r+" ");else{for(a=c[0].split("/"),r=a[a.length-1].replace(".svg","")+"-"+t,i=new RegExp("([\\s\\S]*?){([\\s\\S]*?)}","g");null!==(s=i.exec(u));)(l=s[1].trim().split(", ")).forEach(h),d+=l.join(", ")+"{"+s[2]+"}\n";e.textContent=d}n.setAttribute("class",n.getAttribute("class")+" "+r)},g=function(e){var t=e.getAttribute("class");return t?t.trim().split(" "):[]},v=function(e){var t=g(e),n="";return _.call(t,function(e){e.indexOf(s.spriteClassIdName)>=0&&(n=e.replace(s.spriteClassIdName,""))}),n},y=function(e,t,n){var i,o,r,a,s,l=null,c=!1,u=!1,d=null;if(void 0===n)i=l=t.cloneNode(!0),l.getAttribute("width")||t.getAttribute("width")||(u=!0);else if(!(i=t.getElementById(n)))return;if(o=i.getAttribute("viewBox").split(" "),!l){if(i instanceof SVGSymbolElement)l=f(i),u=c=!0;else if(i instanceof SVGViewElement){if(d=null,e.onlyInjectVisiblePart){var h='*[width="'+o[2]+'"][height="'+o[3]+'"]';r={},0===Math.abs(parseInt(o[0]))?h+=":not([x])":(r.x=o[0],h+='[x="'+o[0]+'"]'),0===Math.abs(parseInt(o[1]))?h+=":not([y])":(r.y=o[1],h+='[y="'+o[1]+'"]'),(s=t.querySelectorAll(h)).length,d=s[0]}if(d&&d instanceof SVGSVGElement)for(var p in l=d.cloneNode(!0),r)"width"!==p&&"height"!==p&&l.removeAttribute(p);else if(d&&d instanceof SVGUseElement){var m=t.getElementById(d.getAttributeNS(M,"href").substr(1));l=f(m),o=m.getAttribute("viewBox").split(" "),u=c=!0}else u=c=!0,l=t.cloneNode(!0)}a=g(l);var v=e.prefixFragIdClass+n;a.indexOf(v)<0&&(a.push(v),l.setAttribute("class",a.join(" ")))}return c&&l.setAttribute("viewBox",o.join(" ")),u&&(l.setAttribute("width",o[2]+"px"),l.setAttribute("height",o[3]+"px")),l.setAttribute("xmlns",L),l.setAttribute("xmlns:xlink",M),l},b=function(e,t,n,o){i[e]=i[e]||[],i[e].push({callback:n,fragmentId:t,element:o,name:name})},w=function(e){for(var t,n=0,o=i[e].length;n<o;n++)!function(n){setTimeout(function(){t=i[e][n],E(e,t.fragmentId,t.callback,t.element,t.name)},0)}(n)},x=function(e,n,i){var r,a,s,c,u;if(r=n.split("#"),a=r[0],void 0!==(s=2===r.length?r[1]:void 0)&&(c=(u=a.split("/"))[u.length-1].replace(".svg","")),void 0!==t[a])t[a]instanceof SVGSVGElement?E(a,s,e,i,c):b(a,s,e,i);else{if(!o.XMLHttpRequest)return e("Browser does not support XMLHttpRequest"),!1;t[a]={},b(a,s,e,i);var d=new XMLHttpRequest;d.onreadystatechange=function(){if(4===d.readyState){if(404===d.status||null===d.responseXML)return e("Unable to load SVG file: "+a),!1;if(!(200===d.status||l.isLocal&&0===d.status))return e("There was a problem injecting the SVG: "+d.status+" "+d.statusText),!1;if(d.responseXML instanceof Document)t[a]=d.responseXML.documentElement;else if(DOMParser&&DOMParser instanceof Function){var i;try{i=(new DOMParser).parseFromString(d.responseText,"text/xml")}catch(e){i=void 0}if(!i||i.getElementsByTagName("parsererror").length)return e("Unable to parse SVG file: "+n),!1;t[a]=i.documentElement}w(a)}},d.open("GET",a),d.overrideMimeType&&d.overrideMimeType("text/xml"),d.send()}},C=function(e){var t="svg."+e+" {fill: currentColor;}",n=r.head||r.getElementsByTagName("head")[0],i=r.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(r.createTextNode(t)),n.appendChild(i)},k=function(e,t,n){n?e.className.replace(t,""):e.className+=" "+t},E=function(e,i,r,l,c){var u,f,v,b,w,x,C;if(void 0===(u=y(s,t[e],i))||"string"==typeof u)return(b=!(!(b=l.getAttribute("data-fallback-svg"))&&!s.svgFallbackDir)&&s.svgFallbackDir+"/"+i+".svg")?(l.setAttribute("data-src",b),n.elements.splice(n.elements.indexOf(l),1),O(l,r)):r(u),!1;u.setAttribute("role","img"),_.call(u.children||[],function(e){e instanceof SVGDefsElement||e instanceof SVGTitleElement||e instanceof SVGDescElement||e.setAttribute("role","presentation")}),l.getAttribute("aria-hidden")||u.getAttribute("aria-hidden")?(u.setAttribute("aria-hidden","true"),x=u.querySelector("title"),C=u.querySelector("desc"),x&&u.removeChild(x),C&&u.removeChild(C)):(v=N("desc",u,l,i,!1),f=N("title",u,l,i,!1),(v.length>0||f.length>0)&&(w=f+" "+v,u.setAttribute("aria-labelledby",w.trim()))),p(l,u,["class"]);var k=[].concat(u.getAttribute("class")||[],"injected-svg",l.getAttribute("class")||[]).join(" ");u.setAttribute("class",T(k)),d(u,n.count),u.removeAttribute("xmlns:a");for(var E,S,A=u.querySelectorAll("script"),D=[],P=0,L=A.length;P<L;P++)(S=A[P].getAttribute("type"))&&"application/ecmascript"!==S&&"application/javascript"!==S||(E=A[P].innerText||A[P].textContent,D.push(E),u.removeChild(A[P]));if(D.length>0&&("always"===s.evalScripts||"once"===s.evalScripts&&!a[e])){for(var M=0,I=D.length;M<I;M++)new Function(D[M])(o);a[e]=!0}var F=u.querySelectorAll("style");_.call(F,function(e){var t=g(u),i=!0;(t.indexOf(s.removeStylesClass)>=0||s.removeAllStyles)&&t.indexOf(s.keepStylesClass)<0?e.parentNode.removeChild(e):(h(e,n.count)>0&&(i=!1),s.prefixStyleTags&&(m(e,n.count,u),i=!1),i&&(e.textContent+=""))}),l.parentNode.replaceChild(u,l),delete n.elements[n.elements.indexOf(l)],n.count++,r(u)},T=function(e){for(var t={},n=(e=e.split(" ")).length,i=[];n--;)t.hasOwnProperty(e[n])||(t[e[n]]=1,i.unshift(e[n]));return i.join(" ")},S=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},A=function(e){return"[object Array]"===Object.prototype.toString.call(e)},D=function(e,t){var n=e.getAttribute("class");n=n||"",A(t)&&(t=t.join(" ")),t=n+" "+t,e.setAttribute("class",T(t))},_=Array.prototype.forEach||function(e,t){if(null==this||"function"!=typeof e)throw new TypeError;var n,i=this.length>>>0;for(n=0;n<i;++n)n in this&&e.call(t,this[n],n,this)},N=function(e,t,i,o,r){var a,s=o?o+"-":"";return s+=e+"-"+n.count,(a=i.querySelector(e))?P(e,t,a.textContent,s,t.firstChild):(a=t.querySelector(e))?a.setAttribute("id",s):r?P(e,t,o,s,t.firstChild):s="",s},P=function(e,t,n,i,o){var a,s=t.querySelector(e);return(a=r.createElementNS(L,e)).appendChild(r.createTextNode(n)),a.setAttribute("id",i),t.insertBefore(a,o),s&&s.parentNode.removeChild(s),a},e}();"object"==typeof angular?angular.module("svginjector",[]).provider("svgInjectorOptions",function(){var e={};return{set:function(t){e=t},$get:function(){return e}}}).factory("svgInjectorFactory",["svgInjectorOptions",function(e){return new a(e)}]).directive("svg",["svgInjectorFactory",function(e){var t=e.getConfig();return{restrict:"E",link:function(n,i,o){o.class&&o.class.indexOf(t.spriteClassIdName)>=0?o.$observe("class",function(){e.inject(i[0])}):(o.dataSrc||o.src)&&e.inject(i[0])}}}]):"object"==typeof e.exports?e.exports=a:void 0===(i=function(){return a}.call(t,n,t,e))||(e.exports=i)}(window,document)},333:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(1050),o=n.n(i);n(47);function r(e){window.addEventListener("scroll",e,!!o.a.hasSupport&&{passive:!0})}},343:function(e,t){(function(t){e.exports=t}).call(this,{})},344:function(e,t,n){var i,o,r;
  /*!
   * jQuery Cookie Plugin v1.4.1
   * https://github.com/carhartl/jquery-cookie
   *
   * Copyright 2013 Klaus Hartl
   * Released under the MIT license
   */o=[n(36)],void 0===(r="function"==typeof(i=function(e){var t=/\+/g;function n(e){return r.raw?e:encodeURIComponent(e)}function i(e){return n(r.json?JSON.stringify(e):String(e))}function o(n,i){var o=r.raw?n:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),r.json?JSON.parse(e):e}catch(e){}}(n);return e.isFunction(i)?i(o):o}var r=e.cookie=function(t,a,s){if(void 0!==a&&!e.isFunction(a)){if("number"==typeof(s=e.extend({},r.defaults,s)).expires){var l=s.expires,c=s.expires=new Date;c.setTime(+c+864e5*l)}return document.cookie=[n(t),"=",i(a),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}for(var u,d=t?void 0:{},h=document.cookie?document.cookie.split("; "):[],p=0,f=h.length;p<f;p++){var m=h[p].split("="),g=(u=m.shift(),r.raw?u:decodeURIComponent(u)),v=m.join("=");if(t&&t===g){d=o(v,a);break}t||void 0===(v=o(v))||(d[g]=v)}return d};r.defaults={},e.removeCookie=function(t,n){return void 0!==e.cookie(t)&&(e.cookie(t,"",e.extend({},n,{expires:-1})),!e.cookie(t))}})?i.apply(t,o):i)||(e.exports=r)},345:function(e,t,n){"use strict";var i=n(225),o=n(226),r=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},h=function e(t,n,o,r,a,l,u,h,p,f,m,g,v){var y=t;if("function"==typeof u?y=u(n,y):y instanceof Date?y=f(y):"comma"===o&&s(y)&&(y=y.join(",")),null===y){if(r)return l&&!g?l(n,d.encoder,v):n;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||i.isBuffer(y))return l?[m(g?n:l(n,d.encoder,v))+"="+m(l(y,d.encoder,v))]:[m(n)+"="+m(String(y))];var b,w=[];if(void 0===y)return w;if(s(u))b=u;else{var x=Object.keys(y);b=h?x.sort(h):x}for(var C=0;C<b.length;++C){var k=b[C];a&&null===y[k]||(s(y)?c(w,e(y[k],"function"==typeof o?o(n,k):n,o,r,a,l,u,h,p,f,m,g,v)):c(w,e(y[k],n+(p?"."+k:"["+k+"]"),o,r,a,l,u,h,p,f,m,g,v)))}return w};e.exports=function(e,t){var n,i=e,l=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!r.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=o.formatters[n],a=d.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof l.filter?i=(0,l.filter)("",i):s(l.filter)&&(n=l.filter);var u,p=[];if("object"!=typeof i||null===i)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=a[u];n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var m=0;m<n.length;++m){var g=n[m];l.skipNulls&&null===i[g]||c(p,h(i[g],g,f,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=p.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},346:function(e,t,n){"use strict";var i=n(225),o=Object.prototype.hasOwnProperty,r={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(i),s=a?i.slice(0,a.index):i,l=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var c=0;null!==(a=r.exec(i))&&c<n.depth;){if(c+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,n){for(var i=t,o=e.length-1;o>=0;--o){var r,a=e[o];if("[]"===a&&n.parseArrays)r=[].concat(i);else{r=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&a!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(r=[])[l]=i:r[s]=i:r={0:i}}i=r}return i}(l,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return r;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?r.charset:e.charset;return{allowDots:void 0===e.allowDots?r.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:r.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:r.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:r.comma,decoder:"function"==typeof e.decoder?e.decoder:r.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:r.delimiter,depth:"number"==typeof e.depth?e.depth:r.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:r.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:r.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,c),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<u.length;++n)0===u[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[n]?h="utf-8":"utf8=%26%2310003%3B"===u[n]&&(h="iso-8859-1"),d=n,n=u.length);for(n=0;n<u.length;++n)if(n!==d){var p,f,m=u[n],g=m.indexOf("]="),v=-1===g?m.indexOf("="):g+1;-1===v?(p=t.decoder(m,r.decoder,h),f=t.strictNullHandling?null:""):(p=t.decoder(m.slice(0,v),r.decoder,h),f=t.decoder(m.slice(v+1),r.decoder,h)),f&&t.interpretNumericEntities&&"iso-8859-1"===h&&(f=a(f)),f&&t.comma&&f.indexOf(",")>-1&&(f=f.split(",")),o.call(s,p)?s[p]=i.combine(s[p],f):s[p]=f}return s}(e,n):e,c=n.plainObjects?Object.create(null):{},u=Object.keys(l),d=0;d<u.length;++d){var h=u[d],p=s(h,l[h],n);c=i.merge(c,p,n)}return i.compact(c)}},36:function(e,t,n){var i;
  /*!
   * jQuery JavaScript Library v3.4.1
   * https://jquery.com/
   *
   * Includes Sizzle.js
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2019-05-01T21:04Z
   */
  /*!
   * jQuery JavaScript Library v3.4.1
   * https://jquery.com/
   *
   * Includes Sizzle.js
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2019-05-01T21:04Z
   */
  !function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){"use strict";var r=[],a=n.document,s=Object.getPrototypeOf,l=r.slice,c=r.concat,u=r.push,d=r.indexOf,h={},p=h.toString,f=h.hasOwnProperty,m=f.toString,g=m.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},w={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var i,o,r=(n=n||a).createElement("script");if(r.text=e,t)for(i in w)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function C(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[p.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.4.1",constructor:k,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:r.sort,splice:r.splice},k.extend=k.fn.extend=function(){var e,t,n,i,o,r,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(c&&i&&(k.isPlainObject(i)||(o=Array.isArray(i)))?(n=a[t],r=o&&!Array.isArray(n)?[]:o||k.isPlainObject(n)?n:{},o=!1,a[t]=k.extend(c,r,i)):void 0!==i&&(a[t]=i));return a},k.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=s(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&m.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){x(e,{nonce:t&&t.nonce})},each:function(e,t){var n,i=0;if(T(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(E,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,a=!n;o<r;o++)!t(e[o],o)!==a&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,a=[];if(T(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&a.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&a.push(o);return c.apply([],a)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=r[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){h["[object "+t+"]"]=t.toLowerCase()});var S=
  /*!
   * Sizzle CSS Selector Engine v2.3.4
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://js.foundation/
   *
   * Date: 2019-04-08
   */
  function(e){var t,n,i,o,r,a,s,l,c,u,d,h,p,f,m,g,v,y,b,w="sizzle"+1*new Date,x=e.document,C=0,k=0,E=le(),T=le(),S=le(),A=le(),D=function(e,t){return e===t&&(d=!0),0},_={}.hasOwnProperty,N=[],P=N.pop,O=N.push,L=N.push,M=N.slice,I=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",q="\\["+R+"*("+j+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+R+"*\\]",H=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",z=new RegExp(R+"+","g"),$=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),B=new RegExp("^"+R+"*,"+R+"*"),W=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),U=new RegExp(R+"|>"),V=new RegExp(H),X=new RegExp("^"+j+"$"),Y={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){h()},ae=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(N=M.call(x.childNodes),x.childNodes),N[x.childNodes.length].nodeType}catch(e){L={apply:N.length?function(e,t){O.apply(e,M.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(e,t,i,o){var r,s,c,u,d,f,v,y=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!o&&((t?t.ownerDocument||t:x)!==p&&h(t),t=t||p,m)){if(11!==C&&(d=J.exec(e)))if(r=d[1]){if(9===C){if(!(c=t.getElementById(r)))return i;if(c.id===r)return i.push(c),i}else if(y&&(c=y.getElementById(r))&&b(t,c)&&c.id===r)return i.push(c),i}else{if(d[2])return L.apply(i,t.getElementsByTagName(e)),i;if((r=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!A[e+" "]&&(!g||!g.test(e))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===C&&U.test(e)){for((u=t.getAttribute("id"))?u=u.replace(ie,oe):t.setAttribute("id",u=w),s=(f=a(e)).length;s--;)f[s]="#"+u+" "+be(f[s]);v=f.join(","),y=ee.test(e)&&ve(t.parentNode)||t}try{return L.apply(i,y.querySelectorAll(v)),i}catch(t){A(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace($,"$1"),t,i,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[w]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce(function(t){return t=+t,ce(function(n,i){for(var o,r=e([],n.length,t),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},r=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},h=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:x;return a!==p&&9===a.nodeType&&a.documentElement?(f=(p=a).documentElement,m=!r(p),x!==p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ue(function(e){return f.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Z.test(p.querySelectorAll))&&(ue(function(e){f.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Z.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",H)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(f.compareDocumentPosition),b=t||Z.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===p||e.ownerDocument===x&&b(x,e)?-1:t===p||t.ownerDocument===x&&b(x,t)?1:u?I(u,e)-I(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,a=[e],s=[t];if(!o||!r)return e===p?-1:t===p?1:o?-1:r?1:u?I(u,e)-I(u,t):0;if(o===r)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?he(a[i],s[i]):a[i]===x?-1:s[i]===x?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),n.matchesSelector&&m&&!A[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){A(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var o=i.attrHandle[t.toLowerCase()],r=o&&_.call(i.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==r?r:n.attributes||!m?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(ie,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,i=[],o=0,r=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(D),d){for(;t=e[r++];)t===e[r]&&(o=i.push(r));for(;o--;)e.splice(i[o],1)}return u=null,e},o=se.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(i=se.selectors={cacheLength:50,createPseudo:ce,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=se.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,p,f,m=r!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(r){for(;m;){for(h=t;h=h[m];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(b=(p=(c=(u=(d=(h=g)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===C&&c[1])&&c[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(b=p=0)||f.pop();)if(1===h.nodeType&&++b&&h===t){u[e]=[C,p,b];break}}else if(y&&(b=p=(c=(u=(d=(h=t)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===C&&c[1]),!1===b)for(;(h=++p&&h&&h[m]||(b=p=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((u=(d=h[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[C,b]),h!==t)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[w]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,n){for(var i,r=o(e,t),a=r.length;a--;)e[i=I(e,r[a])]=!(n[i]=r[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ce(function(e){var t=[],n=[],i=s(e.replace($,"$1"));return i[w]?ce(function(e,t,n,o){for(var r,a=i(e,null,o,[]),s=e.length;s--;)(r=a[s])&&(e[s]=!(t[s]=r))}):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:ce(function(e){return function(t){return se(e,t).length>0}}),contains:ce(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}}),lang:ce(function(e){return X.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:ge(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=fe(t);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function we(e,t,n){var i=t.dir,o=t.next,r=o||i,a=n&&"parentNode"===r,s=k++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,l){var c,u,d,h=[C,s];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(u=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[r])&&c[0]===C&&c[1]===s)return h[2]=c[2];if(u[r]=h,h[2]=e(t,n,l))return!0}return!1}}function xe(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function Ce(e,t,n,i,o){for(var r,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(r=e[s])&&(n&&!n(r,i,o)||(a.push(r),c&&t.push(s)));return a}function ke(e,t,n,i,o,r){return i&&!i[w]&&(i=ke(i)),o&&!o[w]&&(o=ke(o,r)),ce(function(r,a,s,l){var c,u,d,h=[],p=[],f=a.length,m=r||function(e,t,n){for(var i=0,o=t.length;i<o;i++)se(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!r&&t?m:Ce(m,h,e,s,l),v=n?o||(r?e:f||i)?[]:a:g;if(n&&n(g,v,s,l),i)for(c=Ce(v,p),i(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[p[u]]=!(g[p[u]]=d));if(r){if(o||e){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?I(r,d):h[u])>-1&&(r[c]=!(a[c]=d))}}else v=Ce(v===a?v.splice(f,v.length):v),o?o(null,a,v,l):L.apply(a,v)})}function Ee(e){for(var t,n,o,r=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],l=a?1:0,u=we(function(e){return e===t},s,!0),d=we(function(e){return I(t,e)>-1},s,!0),h=[function(e,n,i){var o=!a&&(i||n!==c)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,o}];l<r;l++)if(n=i.relative[e[l].type])h=[we(xe(h),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[w]){for(o=++l;o<r&&!i.relative[e[o].type];o++);return ke(l>1&&xe(h),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace($,"$1"),n,l<o&&Ee(e.slice(l,o)),o<r&&Ee(e=e.slice(o)),o<r&&be(e))}h.push(n)}return xe(h)}return ye.prototype=i.filters=i.pseudos,i.setFilters=new ye,a=se.tokenize=function(e,t){var n,o,r,a,s,l,c,u=T[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=i.preFilter;s;){for(a in n&&!(o=B.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),n=!1,(o=W.exec(s))&&(n=o.shift(),r.push({value:n,type:o[0].replace($," ")}),s=s.slice(n.length)),i.filter)!(o=Y[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),r.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):T(e,l).slice(0)},s=se.compile=function(e,t){var n,o=[],r=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ee(t[n]))[w]?o.push(s):r.push(s);(s=S(e,function(e,t){var n=t.length>0,o=e.length>0,r=function(r,a,s,l,u){var d,f,g,v=0,y="0",b=r&&[],w=[],x=c,k=r||o&&i.find.TAG("*",u),E=C+=null==x?1:Math.random()||.1,T=k.length;for(u&&(c=a===p||a||u);y!==T&&null!=(d=k[y]);y++){if(o&&d){for(f=0,a||d.ownerDocument===p||(h(d),s=!m);g=e[f++];)if(g(d,a||p,s)){l.push(d);break}u&&(C=E)}n&&((d=!g&&d)&&v--,r&&b.push(d))}if(v+=y,n&&y!==v){for(f=0;g=t[f++];)g(b,w,a,s);if(r){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=P.call(l));w=Ce(w)}L.apply(l,w),u&&!r&&w.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(C=E,c=x),b};return n?ce(r):r}(r,o))).selector=e}return s},l=se.select=function(e,t,n,o){var r,l,c,u,d,h="function"==typeof e&&e,p=!o&&a(e=h.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=Y.needsContext.test(e)?0:l.length;r--&&(c=l[r],!i.relative[u=c.type]);)if((d=i.find[u])&&(o=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(r,1),!(e=o.length&&be(l)))return L.apply(n,o),n;break}}return(h||s(e,p))(o,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=w.split("").sort(D).join("")===w,n.detectDuplicates=!!d,h(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de(F,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),se}(n);k.find=S,k.expr=S.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=S.uniqueSort,k.text=S.getText,k.isXMLDoc=S.isXML,k.contains=S.contains,k.escapeSelector=S.escape;var A=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&k(e).is(n))break;i.push(e)}return i},D=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},_=k.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return y(t)?k.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?k.grep(e,function(e){return e===t!==n}):"string"!=typeof t?k.grep(e,function(e){return d.call(t,e)>-1!==n}):k.filter(t,e,n)}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<i;t++)if(k.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)k.find(e,o[t],n);return i>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&_.test(e)?k(e):e||[],!1).length}});var L,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),P.test(i[1])&&k.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=a.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,L=k(a);var I=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],a="string"!=typeof e&&k(e);if(!_.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?k.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?d.call(k(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return D((e.parentNode||{}).firstChild,e)},children:function(e){return D(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(N(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(e,t){k.fn[e]=function(n,i){var o=k.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=k.filter(i,o)),this.length>1&&(F[e]||k.uniqueSort(o),I.test(e)&&o.reverse()),this.pushStack(o)}});var j=/[^\x20\t\r\n\f]+/g;function q(e){return e}function H(e){throw e}function z(e,t,n,i){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(n):e&&y(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(j)||[],function(e,n){t[n]=!0}),t}(e):k.extend({},e);var t,n,i,o,r=[],a=[],s=-1,l=function(){for(o=o||e.once,i=t=!0;a.length;s=-1)for(n=a.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=r.length,n=!1);e.memory||(n=!1),t=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!t&&(s=r.length-1,a.push(n)),function t(n){k.each(n,function(n,i){y(i)?e.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==C(i)&&t(i)})}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;(n=k.inArray(t,r,n))>-1;)r.splice(n,1),n<=s&&s--}),this},has:function(e){return e?k.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=a=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=a=[],n||t||(r=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return k.Deferred(function(n){k.each(t,function(t,i){var o=y(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=o&&o.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(e,i,o){var r=0;function a(e,t,i,o){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<r)){if((n=i.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(c)?o?c.call(n,a(r,t,q,o),a(r,t,H,o)):(r++,c.call(n,a(r,t,q,o),a(r,t,H,o),a(r,t,q,t.notifyWith))):(i!==q&&(s=void 0,l=[n]),(o||t.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.stackTrace),e+1>=r&&(i!==H&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(k.Deferred.getStackHook&&(u.stackTrace=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred(function(n){t[0][3].add(a(0,n,y(o)?o:q,n.notifyWith)),t[1][3].add(a(0,n,y(e)?e:q)),t[2][3].add(a(0,n,y(i)?i:H))}).promise()},promise:function(e){return null!=e?k.extend(e,o):o}},r={};return k.each(t,function(e,n){var a=n[2],s=n[5];o[n[1]]=a.add,s&&a.add(function(){i=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),r[n[0]]=function(){return r[n[0]+"With"](this===r?void 0:this,arguments),this},r[n[0]+"With"]=a.fireWith}),o.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),o=l.call(arguments),r=k.Deferred(),a=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?l.call(arguments):n,--t||r.resolveWith(i,o)}};if(t<=1&&(z(e,r.done(a(n)).resolve,r.reject,!t),"pending"===r.state()||y(o[n]&&o[n].then)))return r.then();for(;n--;)z(o[n],a(n),r.reject);return r.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&$.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout(function(){throw e})};var B=k.Deferred();function W(){a.removeEventListener("DOMContentLoaded",W),n.removeEventListener("load",W),k.ready()}k.fn.ready=function(e){return B.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||B.resolveWith(a,[k]))}}),k.ready.then=B.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(k.ready):(a.addEventListener("DOMContentLoaded",W),n.addEventListener("load",W));var U=function(e,t,n,i,o,r,a){var s=0,l=e.length,c=null==n;if("object"===C(n))for(s in o=!0,n)U(e,t,s,n[s],!0,r,a);else if(void 0!==i&&(o=!0,y(i)||(a=!0),c&&(a?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):r},V=/^-ms-/,X=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function Q(e){return e.replace(V,"ms-").replace(X,Y)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=k.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[Q(t)]=n;else for(i in t)o[Q(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Q(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(Q):(t=Q(t))in i?[t]:t.match(j)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||k.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var Z=new G,J=new G,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return J.hasData(e)||Z.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0===e){if(this.length&&(o=J.get(r),1===r.nodeType&&!Z.get(r,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=Q(i.slice(5)),ne(r,i,o[i]));Z.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){J.set(this,e)}):U(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=J.get(r,e))?n:void 0!==(n=ne(r,e))?n:void 0;this.each(function(){J.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),k.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Z.get(e,t),n&&(!i||Array.isArray(n)?i=Z.access(e,t,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,o=n.shift(),r=k._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){k.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:k.Callbacks("once memory").add(function(){Z.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each(function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=k.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(r[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(t)}});var ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+ie+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ae=a.documentElement,se=function(e){return k.contains(e.ownerDocument,e)},le={composed:!0};ae.getRootNode&&(se=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===k.css(e,"display")},ue=function(e,t,n,i){var o,r,a={};for(r in t)a[r]=e.style[r],e.style[r]=t[r];for(r in o=n.apply(e,i||[]),t)e.style[r]=a[r];return o};function de(e,t,n,i){var o,r,a=20,s=i?function(){return i.cur()}:function(){return k.css(e,t,"")},l=s(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&oe.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)k.style(e,t,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),u/=r;u*=2,k.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}var he={};function pe(e){var t,n=e.ownerDocument,i=e.nodeName,o=he[i];return o||(t=n.body.appendChild(n.createElement(i)),o=k.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),he[i]=o,o)}function fe(e,t){for(var n,i,o=[],r=0,a=e.length;r<a;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(o[r]=Z.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&ce(i)&&(o[r]=pe(i))):"none"!==n&&(o[r]="none",Z.set(i,"display",n)));for(r=0;r<a;r++)null!=o[r]&&(e[r].style.display=o[r]);return e}k.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ce(this)?k(this).show():k(this).hide()})}});var me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?k.merge([e],n):n}function we(e,t){for(var n=0,i=e.length;n<i;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ye.optgroup=ye.option,ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td;var xe,Ce,ke=/<|&#?\w+;/;function Ee(e,t,n,i,o){for(var r,a,s,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((r=e[p])||0===r)if("object"===C(r))k.merge(h,r.nodeType?[r]:r);else if(ke.test(r)){for(a=a||d.appendChild(t.createElement("div")),s=(ge.exec(r)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,a.innerHTML=l[1]+k.htmlPrefilter(r)+l[2],u=l[0];u--;)a=a.lastChild;k.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(r));for(d.textContent="",p=0;r=h[p++];)if(i&&k.inArray(r,i)>-1)o&&o.push(r);else if(c=se(r),a=be(d.appendChild(r),"script"),c&&we(a),n)for(u=0;r=a[u++];)ve.test(r.type||"")&&n.push(r);return d}xe=a.createDocumentFragment().appendChild(a.createElement("div")),(Ce=a.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),xe.appendChild(Ce),v.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ae=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function _e(){return!1}function Ne(e,t){return e===function(){try{return a.activeElement}catch(e){}}()==("focus"===t)}function Pe(e,t,n,i,o,r){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Pe(e,s,n,i,t[s],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=_e;else if(!o)return e;return 1===r&&(a=o,(o=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,o,i,n)})}function Oe(e,t,n){n?(Z.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var i,o,r=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=l.call(arguments),Z.set(this,t,r),i=n(this,t),this[t](),r!==(o=Z.get(this,t))||i?Z.set(this,t,!1):o={},r!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else r.length&&(Z.set(this,t,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&k.event.add(e,t,De)}k.event={global:{},add:function(e,t,n,i,o){var r,a,s,l,c,u,d,h,p,f,m,g=Z.get(e);if(g)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&k.find.matchesSelector(ae,o),n.guid||(n.guid=k.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(j)||[""]).length;c--;)p=m=(s=Ae.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=k.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=k.event.special[p]||{},u=k.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:f.join(".")},r),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),k.event.global[p]=!0)},remove:function(e,t,n,i,o){var r,a,s,l,c,u,d,h,p,f,m,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(j)||[""]).length;c--;)if(p=m=(s=Ae.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=k.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=h.length;r--;)u=h[r],!o&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||k.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[c],n,i,!0);k.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,a,s=k.event.fix(e),l=new Array(arguments.length),c=(Z.get(this,"events")||{})[s.type]||[],u=k.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=k.event.handlers.call(this,s,c),t=0;(o=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==r.namespace&&!s.rnamespace.test(r.namespace)||(s.handleObj=r,s.data=r.data,void 0!==(i=((k.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,i,o,r,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],a={},n=0;n<l;n++)void 0===a[o=(i=t[n]).selector+" "]&&(a[o]=i.needsContext?k(o,this).index(c)>-1:k.find(o,this,null,[c]).length),a[o]&&r.push(i);r.length&&s.push({elem:c,handlers:r})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&N(t,"input")&&Oe(t,"click",De),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&N(t,"input")&&Oe(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&N(t,"input")&&Z.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?De:_e,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:_e,isPropagationStopped:_e,isImmediatePropagationStopped:_e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=De,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=De,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=De,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Se.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){k.event.special[e]={setup:function(){return Oe(this,e,Ne),!1},trigger:function(){return Oe(this,e),!0},delegateType:t}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||k.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),k.fn.extend({on:function(e,t,n,i){return Pe(this,e,t,n,i)},one:function(e,t,n,i){return Pe(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=_e),this.each(function(){k.event.remove(this,e,n,t)})}});var Le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Me=/<script|<style|<link/i,Ie=/checked\s*(?:[^=]|=\s*.checked.)/i,Fe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Re(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,i,o,r,a,s,l,c;if(1===t.nodeType){if(Z.hasData(e)&&(r=Z.access(e),a=Z.set(t,r),c=r.events))for(o in delete a.handle,a.events={},c)for(n=0,i=c[o].length;n<i;n++)k.event.add(t,o,c[o][n]);J.hasData(e)&&(s=J.access(e),l=k.extend({},s),J.set(t,l))}}function ze(e,t,n,i){t=c.apply([],t);var o,r,a,s,l,u,d=0,h=e.length,p=h-1,f=t[0],m=y(f);if(m||h>1&&"string"==typeof f&&!v.checkClone&&Ie.test(f))return e.each(function(o){var r=e.eq(o);m&&(t[0]=f.call(this,o,r.html())),ze(r,t,n,i)});if(h&&(r=(o=Ee(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(s=(a=k.map(be(o,"script"),je)).length;d<h;d++)l=o,d!==p&&(l=k.clone(l,!0,!0),s&&k.merge(a,be(l,"script"))),n.call(e[d],l,d);if(s)for(u=a[a.length-1].ownerDocument,k.map(a,qe),d=0;d<s;d++)l=a[d],ve.test(l.type||"")&&!Z.access(l,"globalEval")&&k.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?k._evalUrl&&!l.noModule&&k._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):x(l.textContent.replace(Fe,""),l,u))}return e}function $e(e,t,n){for(var i,o=t?k.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||k.cleanData(be(i)),i.parentNode&&(n&&se(i)&&we(be(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e.replace(Le,"<$1></$2>")},clone:function(e,t,n){var i,o,r,a,s,l,c,u=e.cloneNode(!0),d=se(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=be(u),i=0,o=(r=be(e)).length;i<o;i++)s=r[i],l=a[i],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&me.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(r=r||be(e),a=a||be(u),i=0,o=r.length;i<o;i++)He(r[i],a[i]);else He(e,u);return(a=be(u,"script")).length>0&&we(a,!d&&be(e,"script")),u},cleanData:function(e){for(var t,n,i,o=k.event.special,r=0;void 0!==(n=e[r]);r++)if(K(n)){if(t=n[Z.expando]){if(t.events)for(i in t.events)o[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[Z.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),k.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return U(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return ze(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return ze(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ze(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ze(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return U(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Me.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(be(this)),n&&n.replaceChild(t,this))},e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){k.fn[e]=function(e){for(var n,i=[],o=k(e),r=o.length-1,a=0;a<=r;a++)n=a===r?this:this.clone(!0),k(o[a])[t](n),u.apply(i,n.get());return this.pushStack(i)}});var Be=new RegExp("^("+ie+")(?!px)[a-z%]+$","i"),We=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ue=new RegExp(re.join("|"),"i");function Ve(e,t,n){var i,o,r,a,s=e.style;return(n=n||We(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||se(e)||(a=k.style(e,t)),!v.pixelBoxStyles()&&Be.test(a)&&Ue.test(t)&&(i=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=o,s.maxWidth=r)),void 0!==a?a+"":a}function Xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);i="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),o=36===t(e.width),u.style.position="absolute",r=12===t(u.offsetWidth/3),ae.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var i,o,r,s,l,c=a.createElement("div"),u=a.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(v,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r}}))}();var Ye=["Webkit","Moz","ms"],Qe=a.createElement("div").style,Ke={};function Ge(e){var t=k.cssProps[e]||Ke[e];return t||(e in Qe?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Qe)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Je=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var i=oe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function it(e,t,n,i,o,r){var a="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=k.css(e,n+re[a],!0,o)),i?("content"===n&&(l-=k.css(e,"padding"+re[a],!0,o)),"margin"!==n&&(l-=k.css(e,"border"+re[a]+"Width",!0,o))):(l+=k.css(e,"padding"+re[a],!0,o),"padding"!==n?l+=k.css(e,"border"+re[a]+"Width",!0,o):s+=k.css(e,"border"+re[a]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-s-.5))||0),l}function ot(e,t,n){var i=We(e),o=(!v.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,i),r=o,a=Ve(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Be.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&o||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===k.css(e,"boxSizing",!1,i),(r=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(o?"border":"content"),r,i,a)+"px"}function rt(e,t,n,i,o){return new rt.prototype.init(e,t,n,i,o)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,a,s=Q(t),l=Je.test(t),c=e.style;if(l||(t=Ge(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,i))?o:c[t];"string"===(r=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=de(e,t,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(k.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var o,r,a,s=Q(t);return Je.test(t)||(t=Ge(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ve(e,t,i)),"normal"===o&&t in tt&&(o=tt[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),k.each(["height","width"],function(e,t){k.cssHooks[t]={get:function(e,n,i){if(n)return!Ze.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,i):ue(e,et,function(){return ot(e,t,i)})},set:function(e,n,i){var o,r=We(e),a=!v.scrollboxSize()&&"absolute"===r.position,s=(a||i)&&"border-box"===k.css(e,"boxSizing",!1,r),l=i?it(e,t,i,s,r):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-it(e,t,"border",!1,r)-.5)),l&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),nt(0,n,l)}}}),k.cssHooks.marginLeft=Xe(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(e,t){k.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+re[i]+t]=r[i]||r[i-2]||r[0];return o}},"margin"!==e&&(k.cssHooks[e+t].set=nt)}),k.fn.extend({css:function(e,t){return U(this,function(e,t,n){var i,o,r={},a=0;if(Array.isArray(t)){for(i=We(e),o=t.length;a<o;a++)r[t[a]]=k.css(e,t[a],!1,i);return r}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,arguments.length>1)}}),k.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(k.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=rt.prototype.init,k.fx.step={};var at,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ut):n.setTimeout(ut,k.fx.interval),k.fx.tick())}function dt(){return n.setTimeout(function(){at=void 0}),at=Date.now()}function ht(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=re[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function pt(e,t,n){for(var i,o=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,t,e))return i}function ft(e,t,n){var i,o,r=0,a=ft.prefilters.length,s=k.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=at||dt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),r=0,a=c.tweens.length;r<a;r++)c.tweens[r].run(i);return s.notifyWith(e,[c,i,n]),i<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=k.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,o,r,a;for(n in e)if(o=t[i=Q(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(a=k.cssHooks[i])&&"expand"in a)for(n in r=a.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=o);else t[i]=o}(u,c.opts.specialEasing);r<a;r++)if(i=ft.prefilters[r].call(c,e,u,c.opts))return y(i.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return k.map(u,pt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return de(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(j);for(var n,i=0,o=e.length;i<o;i++)n=e[i],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,a,s,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&ce(e),g=Z.get(e,"fxshow");for(i in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[i],lt.test(o)){if(delete t[i],r=r||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||k.style(e,i)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(i in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=Z.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(fe([e],!0),c=e.style.display||c,u=k.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(h.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Z.access(e,"fxshow",{display:c}),r&&(g.hidden=!m),m&&fe([e],!0),h.done(function(){for(i in m||fe([e]),Z.remove(e,"fxshow"),p)k.style(e,i,p[i])})),l=pt(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),k.speed=function(e,t,n){var i=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=k.isEmptyObject(e),r=k.speed(t,n,i),a=function(){var t=ft(this,k.extend({},e),r);(o||Z.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=k.timers,a=Z.get(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&ct.test(o)&&i(a[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||k.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Z.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=k.timers,a=i?i.length:0;for(n.finish=!0,k.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),k.each(["toggle","show","hide"],function(e,t){var n=k.fn[t];k.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ht(t,!0),e,i,o)}}),k.each({slideDown:ht("show"),slideUp:ht("hide"),slideToggle:ht("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){k.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),at=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){st||(st=!0,ut())},k.fx.stop=function(){st=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,i){var o=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(o)}})},function(){var e=a.createElement("input"),t=a.createElement("select").appendChild(a.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=a.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var mt,gt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return U(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?k.prop(e,t,n):(1===r&&k.isXMLDoc(e)||(o=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(j);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var n=gt[t]||k.find.attr;gt[t]=function(e,t,i){var o,r,a=t.toLowerCase();return i||(r=gt[a],gt[a]=o,o=null!=n(e,t,i)?a:null,gt[a]=r),o}});var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function bt(e){return(e.match(j)||[]).join(" ")}function wt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}k.fn.extend({prop:function(e,t){return U(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&k.isXMLDoc(e)||(t=k.propFix[t]||t,o=k.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,i,o,r,a,s,l=0;if(y(e))return this.each(function(t){k(this).addClass(e.call(this,t,wt(this)))});if((t=xt(e)).length)for(;n=this[l++];)if(o=wt(n),i=1===n.nodeType&&" "+bt(o)+" "){for(a=0;r=t[a++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(s=bt(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,o,r,a,s,l=0;if(y(e))return this.each(function(t){k(this).removeClass(e.call(this,t,wt(this)))});if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)for(;n=this[l++];)if(o=wt(n),i=1===n.nodeType&&" "+bt(o)+" "){for(a=0;r=t[a++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(s=bt(i))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){k(this).toggleClass(e.call(this,n,wt(this),t),t)}):this.each(function(){var t,o,r,a;if(i)for(o=0,r=k(this),a=xt(e);t=a[o++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=wt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+bt(wt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ct=/\r/g;k.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=y(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,k(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=k.map(o,function(e){return null==e?"":e+""})),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Ct,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:bt(k.text(e))}},select:{get:function(e){var t,n,i,o=e.options,r=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?r+1:o.length;for(i=r<0?l:a?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,i,o=e.options,r=k.makeArray(t),a=o.length;a--;)((i=o[a]).selected=k.inArray(k.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},v.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var kt=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,i,o){var r,s,l,c,u,d,h,p,m=[i||a],g=f.call(e,"type")?e.type:e,v=f.call(e,"namespace")?e.namespace.split("."):[];if(s=p=l=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!kt.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[k.expando]?e:new k.Event(g,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:k.makeArray(t,[e]),h=k.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(i,t))){if(!o&&!h.noBubble&&!b(i)){for(c=h.delegateType||g,kt.test(c+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),l=s;l===(i.ownerDocument||a)&&m.push(l.defaultView||l.parentWindow||n)}for(r=0;(s=m[r++])&&!e.isPropagationStopped();)p=s,e.type=r>1?c:h.bindType||g,(d=(Z.get(s,"events")||{})[e.type]&&Z.get(s,"handle"))&&d.apply(s,t),(d=u&&s[u])&&d.apply&&K(s)&&(e.result=d.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),t)||!K(i)||u&&y(i[g])&&!b(i)&&((l=i[u])&&(i[u]=null),k.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,Et),i[g](),e.isPropagationStopped()&&p.removeEventListener(g,Et),k.event.triggered=void 0,l&&(i[u]=l)),e.result}},simulate:function(e,t,n){var i=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(i,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),v.focusin||k.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=Z.access(i,t);o||i.addEventListener(e,n,!0),Z.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=Z.access(i,t)-1;o?Z.access(i,t,o):(i.removeEventListener(e,n,!0),Z.remove(i,t))}}});var Tt=n.location,St=Date.now(),At=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Dt=/\[\]$/,_t=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,i){var o;if(Array.isArray(t))k.each(t,function(t,o){n||Dt.test(e)?i(e,o):Ot(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==C(t))i(e,t);else for(o in t)Ot(e+"["+o+"]",t[o],n,i)}k.param=function(e,t){var n,i=[],o=function(e,t){var n=y(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){o(this.name,this.value)});else for(n in e)Ot(n,e[n],t,o);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Pt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!me.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(_t,"\r\n")}}):{name:t.name,value:n.replace(_t,"\r\n")}}).get()}});var Lt=/%20/g,Mt=/#.*$/,It=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,jt=/^\/\//,qt={},Ht={},zt="*/".concat("*"),$t=a.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(j)||[];if(y(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Wt(e,t,n,i){var o={},r=e===Ht;function a(s){var l;return o[s]=!0,k.each(e[s]||[],function(e,s){var c=s(t,n,i);return"string"!=typeof c||r||o[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ut(e,t){var n,i,o=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&k.extend(!0,e,i),e}$t.href=Tt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,k.ajaxSettings),t):Ut(k.ajaxSettings,e)},ajaxPrefilter:Bt(qt),ajaxTransport:Bt(Ht),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,o,r,s,l,c,u,d,h,p,f=k.ajaxSetup({},t),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?k(m):k.event,v=k.Deferred(),y=k.Callbacks("once memory"),b=f.statusCode||{},w={},x={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=Ft.exec(r);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)E.always(e[E.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),T(0,t),this}};if(v.promise(E),f.url=((e||f.url||Tt.href)+"").replace(jt,Tt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(j)||[""],null==f.crossDomain){c=a.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=$t.protocol+"//"+$t.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),Wt(qt,f,t,E),u)return E;for(h in(d=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Rt.test(f.type),o=f.url.replace(Mt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Lt,"+")):(p=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(At.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(It,"$1"),p=(At.test(o)?"&":"?")+"_="+St+++p),f.url=o+p),f.ifModified&&(k.lastModified[o]&&E.setRequestHeader("If-Modified-Since",k.lastModified[o]),k.etag[o]&&E.setRequestHeader("If-None-Match",k.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+zt+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(m,E,f)||u))return E.abort();if(C="abort",y.add(f.complete),E.done(f.success),E.fail(f.error),i=Wt(Ht,f,t,E)){if(E.readyState=1,d&&g.trigger("ajaxSend",[E,f]),u)return E;f.async&&f.timeout>0&&(l=n.setTimeout(function(){E.abort("timeout")},f.timeout));try{u=!1,i.send(w,T)}catch(e){if(u)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,a,s){var c,h,p,w,x,C=t;u||(u=!0,l&&n.clearTimeout(l),i=void 0,r=s||"",E.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var i,o,r,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,E,a)),w=function(e,t,n,i){var o,r,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=c[l+" "+r]||c["* "+r]))for(o in c)if((s=o.split(" "))[1]===r&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(r=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(f,w,E,c),c?(f.ifModified&&((x=E.getResponseHeader("Last-Modified"))&&(k.lastModified[o]=x),(x=E.getResponseHeader("etag"))&&(k.etag[o]=x)),204===e||"HEAD"===f.type?C="nocontent":304===e?C="notmodified":(C=w.state,h=w.data,c=!(p=w.error))):(p=C,!e&&C||(C="error",e<0&&(e=0))),E.status=e,E.statusText=(t||C)+"",c?v.resolveWith(m,[h,C,E]):v.rejectWith(m,[E,C,p]),E.statusCode(b),b=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[E,f,c?h:p]),y.fireWith(m,[E,C]),d&&(g.trigger("ajaxComplete",[E,f]),--k.active||k.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,t){k[t]=function(e,n,i,o){return y(n)&&(o=o||i,i=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:o,data:n,success:i},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e,t){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){k(this).wrapInner(e.call(this,t))}):this.each(function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){k(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Xt=k.ajaxSettings.xhr();v.cors=!!Xt&&"withCredentials"in Xt,v.ajax=Xt=!!Xt,k.ajaxTransport(function(e){var t,i;if(v.cors||Xt&&!e.crossDomain)return{send:function(o,r){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),i=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&i()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var Yt,Qt=[],Kt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||k.expando+"_"+St++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,i){var o,r,a,s=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Kt,"$1"+o):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||k.error(o+" was not called"),a[0]},e.dataTypes[0]="json",r=n[o],n[o]=function(){a=arguments},i.always(function(){void 0===r?k(n).removeProp(o):n[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,Qt.push(o)),a&&y(r)&&r(a[0]),a=r=void 0}),"script"}),v.createHTMLDocument=((Yt=a.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Yt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((i=(t=a.implementation.createHTMLDocument("")).createElement("base")).href=a.location.href,t.head.appendChild(i)):t=a),r=!n&&[],(o=P.exec(e))?[t.createElement(o[1])]:(o=Ee([e],t,r),r&&r.length&&k(r).remove(),k.merge([],o.childNodes)));var i,o,r},k.fn.load=function(e,t,n){var i,o,r,a=this,s=e.indexOf(" ");return s>-1&&(i=bt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&k.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,a.html(i?k("<div>").append(k.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(e,t,n){var i,o,r,a,s,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),r=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(a=(i=u.position()).top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),y(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===k.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),o.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-k.css(i,"marginTop",!0),left:t.left-o.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||ae})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;k.fn[e]=function(i){return U(this,function(e,i,o){var r;if(b(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[i]=o},e,i,arguments.length)}}),k.each(["top","left"],function(e,t){k.cssHooks[t]=Xe(v.pixelPosition,function(e,n){if(n)return n=Ve(e,t),Be.test(n)?k(e).position()[t]+"px":n})}),k.each({Height:"height",Width:"width"},function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){k.fn[i]=function(o,r){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===r?"margin":"border");return U(this,function(t,n,o){var r;return b(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?k.css(t,n,s):k.style(t,n,o,s)},t,a?o:void 0,a)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),k.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return i=l.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(l.call(arguments)))}).guid=e.guid=e.guid||k.guid++,o},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=N,k.isFunction=y,k.isWindow=b,k.camelCase=Q,k.type=C,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(i=function(){return k}.apply(t,[]))||(e.exports=i);var Gt=n.jQuery,Zt=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=Zt),e&&n.jQuery===k&&(n.jQuery=Gt),k},o||(n.jQuery=n.$=k),k})},47:function(e,t,n){"use strict";var i=n(345),o=n(346),r=n(226);e.exports={formats:r,parse:o,stringify:i}}});