material-sass 4.0.0.beta2 → 4.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +3 -3
  4. data/Rakefile +11 -9
  5. data/assets/javascripts/material.js +3278 -825
  6. data/assets/javascripts/material.min.js +17 -1
  7. data/assets/javascripts/material/{initializers/picker.js → addons/pickadate.js} +5 -23
  8. data/assets/javascripts/material/components/expansion-panel.js +9 -18
  9. data/assets/javascripts/material/components/floating-label.js +21 -24
  10. data/assets/javascripts/material/components/{navdrawer.js → nav-drawer.js} +51 -55
  11. data/assets/javascripts/material/components/selection-control-focus.js +15 -21
  12. data/assets/javascripts/material/components/tab-switch.js +13 -20
  13. data/assets/javascripts/material/components/util.js +31 -41
  14. data/assets/stylesheets/material/_functions.scss +1 -1
  15. data/assets/stylesheets/material/_print.scss +13 -2
  16. data/assets/stylesheets/material/_utilities.scss +0 -1
  17. data/assets/stylesheets/material/_variables.scss +0 -1
  18. data/assets/stylesheets/material/base/_base.scss +1 -16
  19. data/assets/stylesheets/material/bootstrap/_close.scss +4 -0
  20. data/assets/stylesheets/material/bootstrap/_code.scss +6 -0
  21. data/assets/stylesheets/material/bootstrap/_custom-form.scss +26 -28
  22. data/assets/stylesheets/material/bootstrap/_form.scss +7 -36
  23. data/assets/stylesheets/material/bootstrap/_pagination.scss +7 -2
  24. data/assets/stylesheets/material/bootstrap/_popover.scss +18 -14
  25. data/assets/stylesheets/material/material.scss +0 -1
  26. data/assets/stylesheets/material/material/_button-flat.scss +8 -8
  27. data/assets/stylesheets/material/material/_button-group.scss +26 -63
  28. data/assets/stylesheets/material/material/_button.scss +18 -18
  29. data/assets/stylesheets/material/material/_dialog.scss +6 -6
  30. data/assets/stylesheets/material/material/_expansion-panel.scss +4 -4
  31. data/assets/stylesheets/material/material/_menu.scss +2 -2
  32. data/assets/stylesheets/material/material/_picker.scss +3 -3
  33. data/assets/stylesheets/material/material/_progress.scss +2 -1
  34. data/assets/stylesheets/material/material/_selection-control.scss +88 -67
  35. data/assets/stylesheets/material/material/_text-field-input-group.scss +49 -82
  36. data/assets/stylesheets/material/material/_text-field.scss +36 -6
  37. data/assets/stylesheets/material/material/_toolbar.scss +4 -0
  38. data/assets/stylesheets/material/material/_tooltip.scss +1 -1
  39. data/assets/stylesheets/material/mixins/_breakpoint.scss +1 -1
  40. data/assets/stylesheets/material/mixins/_form.scss +79 -17
  41. data/assets/stylesheets/material/mixins/_grid-framework.scss +9 -3
  42. data/assets/stylesheets/material/mixins/_grid.scss +3 -1
  43. data/assets/stylesheets/material/mixins/_hover.scss +14 -55
  44. data/assets/stylesheets/material/mixins/_material-icons.scss +2 -4
  45. data/assets/stylesheets/material/mixins/_text-alignment.scss +2 -2
  46. data/assets/stylesheets/material/mixins/_text-hide.scss +1 -1
  47. data/assets/stylesheets/material/utilities/_border.scss +20 -0
  48. data/assets/stylesheets/material/variables/_palette.scss +2 -0
  49. data/assets/stylesheets/material/variables/_variable-bootstrap.scss +17 -0
  50. data/assets/stylesheets/material/variables/_variable-material.scss +2 -6
  51. data/lib/material-sass/version.rb +1 -1
  52. metadata +4 -12
  53. data/assets/javascripts/material/addons/picker.date.js +0 -234
  54. data/assets/javascripts/material/addons/picker.js +0 -172
  55. data/assets/javascripts/material/addons/textarea-autosize.js +0 -23
  56. data/assets/javascripts/material/addons/waves.js +0 -127
  57. data/assets/javascripts/material/initializers/textarea-autosize.js +0 -10
  58. data/assets/javascripts/material/initializers/waves.js +0 -13
  59. data/assets/stylesheets/material/material/_text-field-textarea.scss +0 -15
  60. data/assets/stylesheets/material/utilities/_waves.scss +0 -41
@@ -1 +1,17 @@
1
- function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}if("undefined"==typeof jQuery)throw new Error("Material's JavaScript requires jQuery");+function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<3||t[0]>=4)throw new Error("Material's JavaScript requires at least jQuery v3.0.0 but less than v4.0.0")}(),function(e){this.Picker=e(jQuery)}(function(e){function t(a,s,u,f){function p(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",D.component.nodes(w.open),O.box),O.wrap),O.frame),O.holder,'tabindex="-1"')}function h(){E.data(s,D).addClass(O.input).val(E.data("value")?D.get("select",S.format):a.value),S.editable||E.on("focus."+w.id+" click."+w.id,function(e){e.preventDefault(),D.open()}).on("keydown."+w.id,_),i(a,{haspopup:!0,expanded:!1,readonly:!1,owns:a.id+"_root"})}function m(){i(D.$root[0],"hidden",!0)}function v(){D.$holder.on({keydown:_,"focus.toOpen":b,blur:function(){E.removeClass(O.target)},focusin:function(e){D.$root.removeClass(O.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=D.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),D.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),o=t.hasClass(O.navDisabled)||t.hasClass(O.disabled),i=r();i=i&&(i.type||i.href),(o||i&&!e.contains(D.$root[0],i))&&D.$holder[0].focus(),!o&&n.nav?D.set("highlight",D.component.item.highlight,{nav:n.nav}):!o&&"pick"in n?(D.set("select",n.pick),S.closeOnSelect&&D.close(!0)):n.clear?(D.clear(),S.closeOnClear&&D.close(!0)):n.close&&D.close(!0)})}function y(){var t;!0===S.hiddenName?(t=a.name,a.name=""):(t=["string"==typeof S.hiddenPrefix?S.hiddenPrefix:"","string"==typeof S.hiddenSuffix?S.hiddenSuffix:"_submit"],t=t[0]+a.name+t[1]),D._hidden=e('<input type=hidden name="'+t+'"'+(E.data("value")||a.value?' value="'+D.get("select",S.formatSubmit)+'"':"")+">")[0],E.on("change."+w.id,function(){D._hidden.value=a.value?D.get("select",S.formatSubmit):""})}function g(){k&&d?D.$holder.find("."+O.frame).one("transitionend",function(){D.$holder[0].focus()}):D.$holder[0].focus()}function b(e){e.stopPropagation(),E.addClass(O.target),D.$root.addClass(O.focused),D.open()}function _(e){var t=e.keyCode,n=/^(8|46)$/.test(t);return 27==t?(D.close(!0),!1):void((32==t||n||!w.open&&D.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?D.clear().close():D.open()))}if(!a)return t;var k=!1,w={id:a.id||"P"+Math.abs(~~(Math.random()*new Date))},S=u?e.extend(!0,{},u.defaults,f):f||{},O=e.extend({},t.klasses(),S.klass),E=e(a),C=function(){return this.start()},D=C.prototype={constructor:C,$node:E,start:function(){return w&&w.start?D:(w.methods={},w.start=!0,w.open=!1,w.type=a.type,a.autofocus=a==r(),a.readOnly=!S.editable,a.id=a.id||w.id,"text"!=a.type&&(a.type="text"),D.component=new u(D,S),D.$root=e('<div class="'+O.picker+'" id="'+a.id+'_root" />'),m(),D.$holder=e(p()).appendTo(D.$root),v(),S.formatSubmit&&y(),h(),S.containerHidden?e(S.containerHidden).append(D._hidden):E.after(D._hidden),S.container?e(S.container).append(D.$root):E.after(D.$root),D.on({start:D.component.onStart,render:D.component.onRender,stop:D.component.onStop,open:D.component.onOpen,close:D.component.onClose,set:D.component.onSet}).on({start:S.onStart,render:S.onRender,stop:S.onStop,open:S.onOpen,close:S.onClose,set:S.onSet}),k=n(D.$holder[0]),a.autofocus&&D.open(),D.trigger("start").trigger("render"))},render:function(t){return t?(D.$holder=e(p()),v(),D.$root.html(D.$holder)):D.$root.find("."+O.box).html(D.component.nodes(w.open)),D.trigger("render")},stop:function(){return w.start?(D.close(),D._hidden&&D._hidden.parentNode.removeChild(D._hidden),D.$root.remove(),E.removeClass(O.input).removeData(s),setTimeout(function(){E.off("."+w.id)},0),a.type=w.type,a.readOnly=!1,D.trigger("stop"),w.methods={},w.start=!1,D):D},open:function(n){return w.open?D:(E.addClass(O.active),i(a,"expanded",!0),setTimeout(function(){D.$root.addClass(O.opened),i(D.$root[0],"hidden",!1)},0),!1!==n&&(w.open=!0,k&&l.css("overflow","hidden").css("padding-right","+="+o()),g(),c.on("click."+w.id+" focusin."+w.id,function(e){var t=e.target;t!=a&&t!=document&&3!=e.which&&D.close(t===D.$holder[0])}).on("keydown."+w.id,function(n){var o=n.keyCode,i=D.component.key[o],a=n.target;27==o?D.close(!0):a!=D.$holder[0]||!i&&13!=o?e.contains(D.$root[0],a)&&13==o&&(n.preventDefault(),a.click()):(n.preventDefault(),i?t._.trigger(D.component.key.go,D,[t._.trigger(i)]):D.$root.find("."+O.highlighted).hasClass(O.disabled)||(D.set("select",D.component.item.highlight),S.closeOnSelect&&D.close(!0)))})),D.trigger("open"))},close:function(e){return e&&(S.editable?a.focus():(D.$holder.off("focus.toOpen").focus(),setTimeout(function(){D.$holder.on("focus.toOpen",b)},0))),E.removeClass(O.active),i(a,"expanded",!1),setTimeout(function(){D.$root.removeClass(O.opened+" "+O.focused),i(D.$root[0],"hidden",!0)},0),w.open?(w.open=!1,k&&l.css("overflow","").css("padding-right","-="+o()),c.off("."+w.id),D.trigger("close")):D},clear:function(e){return D.set("clear",null,e)},set:function(t,n,o){var i,a,r=e.isPlainObject(t),s=r?t:{};if(o=r&&e.isPlainObject(n)?n:o||{},t){r||(s[t]=n);for(i in s)a=s[i],i in D.component.item&&(void 0===a&&(a=null),D.component.set(i,a,o)),("select"==i||"clear"==i)&&E.val("clear"==i?"":D.get(i,S.format)).trigger("change");D.render()}return o.muted?D:D.trigger("set",s)},get:function(e,n){if(e=e||"value",null!=w[e])return w[e];if("valueSubmit"==e){if(D._hidden)return D._hidden.value;e="value"}if("value"==e)return a.value;if(e in D.component.item){if("string"==typeof n){var o=D.component.get(e);return o?t._.trigger(D.component.formats.toString,D.component,[n,o]):""}return D.component.get(e)}},on:function(t,n,o){var i,a,r=e.isPlainObject(t),s=r?t:{};if(t){r||(s[t]=n);for(i in s)a=s[i],o&&(i="_"+i),w.methods[i]=w.methods[i]||[],w.methods[i].push(a)}return D},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in w.methods&&delete w.methods[t];return D},trigger:function(e,n){var o=function(e){var o=w.methods[e];o&&o.map(function(e){t._.trigger(e,D,[n])})};return o("_"+e),o(e),D}};return new C}function n(e){var t,n="position";return e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]),"fixed"==t}function o(){if(l.height()<=s.height())return 0;var t=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),n=t[0].offsetWidth;t.css("overflow","scroll");var o=e('<div style="width:100%" />').appendTo(t)[0].offsetWidth;return t.remove(),n-o}function i(t,n,o){if(e.isPlainObject(n))for(var i in n)a(t,i,n[i]);else a(t,n,o)}function a(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function r(){try{return document.activeElement}catch(e){}}var s=e(window),c=e(document),l=e(document.documentElement),d=null!=document.documentElement.style.transition;return t.klasses=function(e){return e=e||"picker",{picker:e,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"}},t._={group:function(e){for(var n,o="",i=t._.trigger(e.min,e);i<=t._.trigger(e.max,e,[i]);i+=e.i)n=t._.trigger(e.item,e,[i]),o+=t._.node(e.node,n[0],n[1],n[2]);return o},node:function(t,n,o,i){return n?(n=e.isArray(n)?n.join(""):n,o=o?' class="'+o+'"':"",i=i?" "+i:"","<"+t+o+i+">"+n+"</"+t+">"):""},lead:function(e){return(10>e?"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){e.isPlainObject(t)||(t={attribute:n}),n="";for(var o in t){var i=("role"==o?"":"aria-")+o;n+=null==t[o]?"":i+'="'+t[o]+'"'}return n}},t.extend=function(n,o){e.fn[n]=function(i,a){var r=this.data(n);return"picker"==i?r:r&&"string"==typeof i?t._.trigger(r[i],r,[a]):this.each(function(){e(this).data(n)||new t(this,n,o,i)})},e.fn[n].defaults=o.defaults},t}),function(e){e(Picker,jQuery)}(function(e,t){function n(e,t){var n=this,o=e.$node[0],i=o.value,a=e.$node.data("value"),r=a||i,s=a?t.formatSubmit:t.format,c=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};n.settings=t,n.$node=e.$node,n.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"},n.item={},n.item.clear=null,n.item.disable=(t.disable||[]).slice(0),n.item.enable=-function(e){return!0===e[0]?e.shift():-1}(n.item.disable),n.set("min",t.min).set("max",t.max).set("now"),r?n.set("select",r,{format:s,defaultValue:!0}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return c()?-1:1},37:function(){return c()?1:-1},go:function(e){var t=n.item.highlight,o=new Date(t.year,t.month,t.date+e);n.set("highlight",o,{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 o="";n.disabled(n.get("now"))&&(o=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+o+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}var o=e._;n.prototype.set=function(e,t,n){var o=this,i=o.item;return null===t?("clear"==e&&(e="select"),i[e]=t,o):(i["enable"==e?"disable":"flip"==e?"enable":e]=o.queue[e].split(" ").map(function(i){return t=o[i](e,t,n)}).pop(),"select"==e?o.set("highlight",i.select,n):"highlight"==e?o.set("view",i.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(i.select&&o.disabled(i.select)&&o.set("select",i.select,n),i.highlight&&o.disabled(i.highlight)&&o.set("highlight",i.highlight,n)),o)},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,n,i){var a,r=this;return(n=void 0===n?e:n)==-1/0||n==1/0?a=n:t.isPlainObject(n)&&o.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=o.isDate(n)?n:r.create().obj):n=o.isInteger(n)||o.isDate(n)?r.normalize(new Date(n),i):r.now(e,n,i),{year:a||n.getFullYear(),month:a||n.getMonth(),date:a||n.getDate(),day:a||n.getDay(),obj:a||n,pick:a||n.getTime()}},n.prototype.createRange=function(e,n){var i=this,a=function(e){return!0===e||t.isArray(e)||o.isDate(e)?i.create(e):e};return o.isInteger(e)||(e=a(e)),o.isInteger(n)||(n=a(n)),o.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:o.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:a(e),to:a(n)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},n.prototype.navigate=function(e,n,o){var i,a,r,s,c=t.isArray(n),l=t.isPlainObject(n),d=this.item.view;if(c||l){for(l?(a=n.year,r=n.month,s=n.date):(a=+n[0],r=+n[1],s=+n[2]),o&&o.nav&&d&&d.month!==r&&(a=d.year,r=d.month),a=(i=new Date(a,r+(o&&o.nav?o.nav:0),1)).getFullYear(),r=i.getMonth();new Date(a,r,s).getMonth()!==r;)s-=1;n=[a,r,s]}return n},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){var n=this;return t?"string"==typeof t?t=n.parse(e,t):o.isInteger(t)&&(t=n.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,i){var a,r,s,c,l=this,d=n,u=i&&i.interval?i.interval:1,f=-1===l.item.enable,p=l.item.min,h=l.item.max,m=f&&l.item.disable.filter(function(e){if(t.isArray(e)){var i=l.create(e).pick;i<n.pick?a=!0:i>n.pick&&(r=!0)}return o.isInteger(e)}).length;if((!i||!i.nav&&!i.defaultValue)&&(!f&&l.disabled(n)||f&&l.disabled(n)&&(m||a||r)||!f&&(n.pick<=p.pick||n.pick>=h.pick)))for(f&&!m&&(!r&&u>0||!a&&0>u)&&(u*=-1);l.disabled(n)&&(Math.abs(u)>1&&(n.month<d.month||n.month>d.month)&&(n=d,u=u>0?1:-1),n.pick<=p.pick?(s=!0,u=1,n=l.create([p.year,p.month,p.date+(n.pick===p.pick?0:-1)])):n.pick>=h.pick&&(c=!0,u=-1,n=l.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!s||!c);)n=l.create([n.year,n.month,n.date+u]);return n},n.prototype.disabled=function(e){var n=this,i=n.item.disable.filter(function(i){return o.isInteger(i)?e.day===(n.settings.firstDay?i:i-1)%7:t.isArray(i)||o.isDate(i)?e.pick===n.create(i).pick:t.isPlainObject(i)?n.withinRange(i,e):void 0});return i=i.length&&!i.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!i:i||e.pick<n.item.min.pick||e.pick>n.item.max.pick},n.prototype.parse=function(e,t,n){var i=this,a={};return t&&"string"==typeof t?(n&&n.format||(n=n||{},n.format=i.settings.format),i.formats.toArray(n.format).map(function(e){var n=i.formats[e],r=n?o.trigger(n,i,[t,a]):e.replace(/^!/,"").length;n&&(a[e]=t.substr(0,r)),t=t.substr(r)}),[a.yyyy||a.yy,+(a.mm||a.m)-1,a.dd||a.d]):t},n.prototype.formats=function(){function e(e,t,n){var o=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(o)+1),o.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?o.digits(e):t.date},dd:function(e,t){return e?2:o.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?o.digits(e):t.month+1},mm:function(e,t){return e?2:o.lead(t.month+1)},mmm:function(t,n){var o=this.settings.monthsShort;return t?e(t,o,n):o[n.month]},mmmm:function(t,n){var o=this.settings.monthsFull;return t?e(t,o,n):o[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 o.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.isDateExact=function(e,n){var i=this;return o.isInteger(e)&&o.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(o.isDate(e)||t.isArray(e))&&(o.isDate(n)||t.isArray(n))?i.create(e).pick===i.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&(i.isDateExact(e.from,n.from)&&i.isDateExact(e.to,n.to))},n.prototype.isDateOverlap=function(e,n){var i=this,a=i.settings.firstDay?1:0;return o.isInteger(e)&&(o.isDate(n)||t.isArray(n))?(e=e%7+a)===i.create(n).day+1:o.isInteger(n)&&(o.isDate(e)||t.isArray(e))?(n=n%7+a)===i.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&i.overlapRanges(e,n)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,n){var i=this,a=i.item.disable.slice(0);return"flip"==n?i.flipEnable():!1===n?(i.flipEnable(1),a=[]):!0===n?(i.flipEnable(-1),a=[]):n.map(function(e){for(var n,r=0;r<a.length;r+=1)if(i.isDateExact(e,a[r])){n=!0;break}n||(o.isInteger(e)||o.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&a.push(e)}),a},n.prototype.activate=function(e,n){var i=this,a=i.item.disable,r=a.length;return"flip"==n?i.flipEnable():!0===n?(i.flipEnable(1),a=[]):!1===n?(i.flipEnable(-1),a=[]):n.map(function(e){var n,s,c,l;for(c=0;r>c;c+=1){if(s=a[c],i.isDateExact(s,e)){n=a[c]=null,l=!0;break}if(i.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[3]||n.push("inverted"):o.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(c=0;r>c;c+=1)if(i.isDateExact(a[c],e)){a[c]=null;break}if(l)for(c=0;r>c;c+=1)if(i.isDateOverlap(a[c],e)){a[c]=null;break}n&&a.push(n)}),a.filter(function(e){return null!=e})},n.prototype.nodes=function(e){var t=this,n=t.settings,i=t.item,a=i.now,r=i.select,s=i.highlight,c=i.view,l=i.disable,d=i.min,u=i.max,f=function(e,t){return n.firstDay&&(e.push(e.shift()),t.push(t.shift())),o.node("thead",o.node("tr",o.group({min:0,max:6,i:1,node:"th",item:function(o){return[e[o],n.klass.weekdays,'scope=col title="'+t[o]+'"']}})))}((n.showWeekdaysFull?n.weekdaysFull:n.weekdaysShort).slice(0),n.weekdaysFull.slice(0)),p=function(e){return o.node("div"," ",n.klass["nav"+(e?"Next":"Prev")]+(e&&c.year>=u.year&&c.month>=u.month||!e&&c.year<=d.year&&c.month<=d.month?" "+n.klass.navDisabled:""),"data-nav="+(e||-1)+" "+o.ariaAttr({role:"button",controls:t.$node[0].id+"_table"})+' title="'+(e?n.labelMonthNext:n.labelMonthPrev)+'"')},h=function(){var i=n.showMonthsShort?n.monthsShort:n.monthsFull;return n.selectMonths?o.node("select",o.group({min:0,max:11,i:1,node:"option",item:function(e){return[i[e],0,"value="+e+(c.month==e?" selected":"")+(c.year==d.year&&e<d.month||c.year==u.year&&e>u.month?" disabled":"")]}}),n.klass.selectMonth,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelMonthSelect+'"'):o.node("div",i[c.month],n.klass.month)},m=function(){var i=c.year,a=!0===n.selectYears?5:~~(n.selectYears/2);if(a){var r=d.year,s=u.year,l=i-a,f=i+a;if(r>l&&(f+=r-l,l=r),f>s){var p=l-r,h=f-s;l-=p>h?h:p,f=s}return o.node("select",o.group({min:l,max:f,i:1,node:"option",item:function(e){return[e,0,"value="+e+(i==e?" selected":"")]}}),n.klass.selectYear,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelYearSelect+'"')}return o.node("div",i,n.klass.year)};return o.node("div",(n.selectYears?m()+h():h()+m())+p()+p(1),n.klass.header)+o.node("table",f+o.node("tbody",o.group({min:0,max:5,i:1,node:"tr",item:function(e){var i=n.firstDay&&0===t.create([c.year,c.month,1]).day?-7:0;return[o.group({min:7*e-c.day+i+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=t.create([c.year,c.month,e+(n.firstDay?1:0)]);var i=r&&r.pick==e.pick,f=s&&s.pick==e.pick,p=l&&t.disabled(e)||e.pick<d.pick||e.pick>u.pick,h=o.trigger(t.formats.toString,t,[n.format,e]);return[o.node("div",e.date,function(t){return t.push(c.month==e.month?n.klass.infocus:n.klass.outfocus),a.pick==e.pick&&t.push(n.klass.now),i&&t.push(n.klass.selected),f&&t.push(n.klass.highlighted),p&&t.push(n.klass.disabled),t.join(" ")}([n.klass.day]),"data-pick="+e.pick+" "+o.ariaAttr({role:"gridcell",label:h,selected:!(!i||t.$node.val()!==h)||null,activedescendant:!!f||null,disabled:!!p||null})),"",o.ariaAttr({role:"presentation"})]}})]}})),n.klass.table,'id="'+t.$node[0].id+'_table" '+o.ariaAttr({role:"grid",controls:t.$node[0].id,readonly:!0}))+o.node("div",o.node("button",n.today,n.klass.buttonToday,"type=button data-pick="+a.pick+(e&&!t.disabled(a)?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.clear,n.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.close,n.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id})),n.klass.footer)},n.defaults=function(e){return{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"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:e+"table",header:e+"header",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}}}(e.klasses().picker+"__"),e.extend("pickadate",n)}),function(e,t,n,o){function i(t,n){this.element=t,this.$element=e(t),this.init()}var a="textareaAutoSize",r="plugin_"+a,s=function(e){return e.replace(/\s/g,"").length>0};i.prototype={init:function(){var n=parseInt(this.$element.css("paddingBottom"))+parseInt(this.$element.css("paddingTop"))+parseInt(this.$element.css("borderTopWidth"))+parseInt(this.$element.css("borderBottomWidth"))||0;s(this.element.value)&&this.$element.height(this.element.scrollHeight-n),this.$element.on("input keyup",function(o){var i=e(t),a=i.scrollTop();e(this).height(0).height(this.scrollHeight-n),i.scrollTop(a)})}},e.fn[a]=function(t){return this.each(function(){e.data(this,r)||e.data(this,r,new i(this,t))}),this}}(jQuery,window,document),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return t.apply(e)}):"object"==typeof exports?module.exports=t.call(e):e.Waves=t.call(e)}("object"==typeof global?global:this,function(){"use strict";function e(e){return null!==e&&e===e.window}function t(t){return e(t)?t:9===t.nodeType&&t.defaultView}function n(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function o(e){return n(e)&&e.nodeType>0}function i(e){var t=f.call(e);return"[object String]"===t?u(e):n(e)&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(t)&&e.hasOwnProperty("length")?e:o(e)?[e]:[]}function a(e){var n,o,i={top:0,left:0},a=e&&e.ownerDocument;return n=a.documentElement,void 0!==e.getBoundingClientRect&&(i=e.getBoundingClientRect()),o=t(a),{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}}function r(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}function s(e,t,n,o){if(n){o.classList.remove("waves-wrapping"),n.classList.remove("waves-rippling");var i=n.getAttribute("data-x"),a=n.getAttribute("data-y"),s=n.getAttribute("data-scale"),c=n.getAttribute("data-translate"),l=350-(Date.now()-Number(n.getAttribute("data-hold")));0>l&&(l=0),"mousemove"===e.type&&(l=150);var d="mousemove"===e.type?2500:h.duration;setTimeout(function(){var e={top:a+"px",left:i+"px",opacity:"0","-webkit-transition-duration":d+"ms","-moz-transition-duration":d+"ms","-o-transition-duration":d+"ms","transition-duration":d+"ms","-webkit-transform":s+" "+c,"-moz-transform":s+" "+c,"-ms-transform":s+" "+c,"-o-transform":s+" "+c,transform:s+" "+c};n.setAttribute("style",r(e)),setTimeout(function(){try{o.removeChild(n),t.removeChild(o)}catch(e){return!1}},d)},l)}}function c(e){if(!1===v.allowEvent(e))return null;for(var t=null,n=e.target||e.srcElement;null!==n.parentElement;){if(n.classList.contains("waves-effect")&&!(n instanceof SVGElement)){t=n;break}n=n.parentElement}return t}function l(e){var t=c(e);if(null!==t){if(t.disabled||t.getAttribute("disabled")||t.classList.contains("disabled"))return;if(v.registerEvent(e),"touchstart"===e.type&&h.delay){var n=!1,o=setTimeout(function(){o=null,h.show(e,t)},h.delay),i=function(i){o&&(clearTimeout(o),o=null,h.show(e,t)),n||(n=!0,h.hide(i,t))};t.addEventListener("touchmove",function(e){o&&(clearTimeout(o),o=null),i(e)},!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1)}else h.show(e,t),p&&(t.addEventListener("touchend",h.hide,!1),t.addEventListener("touchcancel",h.hide,!1)),t.addEventListener("mouseup",h.hide,!1),t.addEventListener("mouseleave",h.hide,!1)}}var d=d||{},u=document.querySelectorAll.bind(document),f=Object.prototype.toString,p="ontouchstart"in window,h={duration:750,delay:200,show:function(e,t,n){if(2===e.button)return!1;t=t||this;var o=document.createElement("div");o.className="waves-wrap waves-wrapping",t.appendChild(o);var i=document.createElement("div");i.className="waves-ripple waves-rippling",o.appendChild(i);var s=a(t),c=0,l=0;"touches"in e&&e.touches.length?(c=e.touches[0].pageY-s.top,l=e.touches[0].pageX-s.left):(c=e.pageY-s.top,l=e.pageX-s.left),l=l>=0?l:0,c=c>=0?c:0;var d="scale("+t.clientWidth/100*3+")",u="translate(0,0)";n&&(u="translate("+n.x+"px, "+n.y+"px)"),i.setAttribute("data-hold",Date.now()),i.setAttribute("data-x",l),i.setAttribute("data-y",c),i.setAttribute("data-scale",d),i.setAttribute("data-translate",u);var f={top:c+"px",left:l+"px"};i.classList.add("waves-notransition"),i.setAttribute("style",r(f)),i.classList.remove("waves-notransition"),f["-webkit-transform"]=d+" "+u,f["-moz-transform"]=d+" "+u,f["-ms-transform"]=d+" "+u,f["-o-transform"]=d+" "+u,f.transform=d+" "+u,f.opacity="1";var p="mousemove"===e.type?2500:h.duration;f["-webkit-transition-duration"]=p+"ms",f["-moz-transition-duration"]=p+"ms",f["-o-transition-duration"]=p+"ms",f["transition-duration"]=p+"ms",i.setAttribute("style",r(f))},hide:function(e,t){for(var n=(t=t||this).getElementsByClassName("waves-wrapping"),o=t.getElementsByClassName("waves-rippling"),i=0,a=o.length;a>i;i++)s(e,t,o[i],n[i])}},m={input:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");n.className=e.className+" waves-input-wrapper",e.className="waves-button-input",t.replaceChild(n,e),n.appendChild(e);var o=window.getComputedStyle(e,null),i=o.color,a=o.backgroundColor;n.setAttribute("style","color:"+i+";background:"+a),e.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");t.replaceChild(n,e),n.appendChild(e)}}},v={touches:0,allowEvent:function(e){var t=!0;return/^(mousedown|mousemove)$/.test(e.type)&&v.touches&&(t=!1),t},registerEvent:function(e){var t=e.type;"touchstart"===t?v.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){v.touches&&(v.touches-=1)},500)}};return d.init=function(e){var t=document.body;"duration"in(e=e||{})&&(h.duration=e.duration),"delay"in e&&(h.delay=e.delay),p&&(t.addEventListener("touchstart",l,!1),t.addEventListener("touchcancel",v.registerEvent,!1),t.addEventListener("touchend",v.registerEvent,!1)),t.addEventListener("mousedown",l,!1)},d.attach=function(e,t){e=i(e),"[object Array]"===f.call(t)&&(t=t.join(" ")),t=t?" "+t:"";for(var n,o,a=0,r=e.length;r>a;a++)n=e[a],o=n.tagName.toLowerCase(),-1!==["input","img"].indexOf(o)&&(m[o](n),n=n.parentElement),-1===n.className.indexOf("waves-effect")&&(n.className+=" waves-effect"+t)},d.ripple=function(e,t){var n=(e=i(e)).length;if(t=t||{},t.wait=t.wait||0,t.position=t.position||null,n)for(var o,r,s,c={},l=0,d={type:"mousedown",button:1};n>l;l++)if(o=e[l],r=t.position||{x:o.clientWidth/2,y:o.clientHeight/2},s=a(o),c.x=s.left+r.x,c.y=s.top+r.y,d.pageX=c.x,d.pageY=c.y,h.show(d,o),t.wait>=0&&null!==t.wait){var u={type:"mouseup",button:1};setTimeout(function(e,t){return function(){h.hide(e,t)}}(u,o),t.wait)}},d.calm=function(e){for(var t={type:"mouseup",button:1},n=0,o=(e=i(e)).length;o>n;n++)h.hide(t,e[n])},d.displayEffect=function(e){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),d.init(e)},d}),function(e){"use strict";var t=function(e,t){this._element=e,this._options=t};if(void 0===e.fn.pickadate)throw new Error("Material's JavaScript requires pickadate.js");t.DEFAULTS={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"body",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},max:!1,min:!1,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"],ok:"OK",onClose:!1,onOpen:!1,onRender:!1,onSet:!1,onStart:!1,onStop:!1,selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},t.prototype.display=function(t,n,o){e(".picker-date-display",n).remove(),e(".picker-wrap",n).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+t.get(o,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+t.get(o,"dddd")+'</span><span class="picker-day-display">'+t.get(o,"d")+'</span><span class="picker-month-display">'+t.get(o,"mmm")+"</span></div></div>")},t.prototype.show=function(){var t=this;e(this._element).pickadate({clear:t._options.cancel,close:t._options.ok,closeOnClear:t._options.closeOnCancel,closeOnSelect:t._options.closeOnSelect,container:t._options.container,disable:t._options.disable,firstDay:t._options.firstDay,format:t._options.format,formatSubmit:t._options.formatSubmit,klass:t._options.klass,max:t._options.max,min:t._options.min,monthsFull:t._options.monthsFull,monthsShort:t._options.monthsShort,onClose:t._options.onClose,onOpen:t._options.onOpen,onRender:t._options.onRender,onSet:t._options.onSet,onStart:t._options.onStart,onStop:t._options.onStop,selectMonths:t._options.selectMonths,selectYears:t._options.selectYears,today:t._options.today,weekdaysFull:t._options.weekdaysFull,weekdaysShort:t._options.weekdaysShort});var n=e(this._element).pickadate("picker"),o=(n.$node,n.$root);n.on({close:function(){e(document.activeElement).blur()},open:function(){e(".picker__date-display",o).length||t.display(n,o,"highlight")},set:function(){null!==n.get("select")&&t.display(n,o,"select")}})};var n=e.fn.pickdate;e.fn.pickdate=function(n){return this.each(function(){var o=e(this).data("bs.pickdate"),i=e.extend({},t.DEFAULTS,e(this).data(),"object"==typeof n&&n);o||e(this).data("bs.pickdate",o=new t(this,i)),o.show()})},e.fn.pickdate.Constructor=t,e.fn.pickdate.noConflict=function(){return e.fn.pickdate=n,this}}(jQuery),$(function(){$(".textarea-autosize").length&&void 0!==$.fn.textareaAutoSize&&$(".textarea-autosize").textareaAutoSize()}),$(function(){$(".waves-attach").length&&"undefined"!=typeof Waves&&(Waves.attach(".waves-attach"),Waves.init({duration:300}))});var _typeof="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},_createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();+function(){(function(e){var t={SHOW:"show",SHOW_PREDECESSOR:"show-predecessor"},n={HIDE:"hide.bs.collapse",SHOW:"show.bs.collapse"},o={PANEL:".expansion-panel",PANEL_BODY:".expansion-panel .collapse"};e(document).on(""+n.HIDE,o.PANEL_BODY,function(n){var i=e(n.target).closest(o.PANEL);i.removeClass(t.SHOW);var a=i.prev(o.PANEL);a.length&&a.removeClass(t.SHOW_PREDECESSOR)}).on(""+n.SHOW,o.PANEL_BODY,function(n){var i=e(n.target).closest(o.PANEL);i.addClass(t.SHOW);var a=i.prev(o.PANEL);a.length&&a.addClass(t.SHOW_PREDECESSOR)})})(jQuery),function(e){var t="md.floatinglabel",n="floatinglabel",o=e.fn[n],i={IS_FOCUSED:"is-focused",HAS_VALUE:"has-value"},a={CHANGE:"change.md.floatinglabel",FOCUSIN:"focusin.md.floatinglabel",FOCUSOUT:"focusout.md.floatinglabel"},r={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .form-control"},s=function(){function n(e){_classCallCheck(this,n),this._element=e}return n.prototype.change=function(t){e(this._element).val()||e(this._element).is("select")&&""!==e("option:first-child",e(this._element)).html().replace(" ","")?e(t).addClass(i.HAS_VALUE):e(t).removeClass(i.HAS_VALUE)},n.prototype.focusin=function(t){e(t).addClass(i.IS_FOCUSED)},n.prototype.focusout=function(t){e(t).removeClass(i.IS_FOCUSED)},n._jQueryInterface=function(o){return this.each(function(){var i=o||"change",a=e(this).data(t);if(a||(a=new n(this),e(this).data(t,a)),"string"==typeof i){if(void 0===a[i])throw new Error('No method named "'+i+'"');a[i](e(this).closest(r.DATA_PARENT))}})},n}();e(document).on(a.CHANGE+" "+a.FOCUSIN+" "+a.FOCUSOUT,r.DATA_TOGGLE,function(t){s._jQueryInterface.call(e(this),t.type)}),e.fn[n]=s._jQueryInterface,e.fn[n].Constructor=s,e.fn[n].noConflict=function(){return e.fn[n]=o,s._jQueryInterface}}(jQuery),function(t){var n=".md.navdrawer",o="navdrawer",i=t.fn[o],a={BACKDROP:"navdrawer-backdrop",OPEN:"navdrawer-open",SHOW:"show"},r={breakpoint:1280,keyboard:!0,show:!0,type:"default"},s={keyboard:"boolean",show:"boolean",type:"string"},c={CLICK_DATA_API:"click.md.navdrawer.data-api",CLICK_DISMISS:"click.dismiss"+n,FOCUSIN:"focusin"+n,HIDDEN:"hidden"+n,HIDE:"hide"+n,KEYDOWN_DISMISS:"keydown.dismiss"+n,MOUSEDOWN_DISMISS:"mousedown.dismiss"+n,MOUSEUP_DISMISS:"mouseup.dismiss"+n,SHOW:"show"+n,SHOWN:"shown"+n},l={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},d=function(){function n(e,o){_classCallCheck(this,n),this._backdrop=null,this._config=this._getConfig(o),this._content=t(e).find(l.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1}return n.prototype.hide=function(e){e&&e.preventDefault();var n=a.OPEN+"-"+this._config.type,o=t.Event(c.HIDE);t(this._element).trigger(o),this._isShown&&!o.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),t(document).off(c.FOCUSIN),t(this._content).off(c.MOUSEDOWN_DISMISS),t(this._element).off(c.CLICK_DISMISS).removeClass(a.SHOW),this._hideNavdrawer(n))},n.prototype.show=function(e){var n=this,i=t.Event(c.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,t(document.body).addClass(a.OPEN+"-"+this._config.type),this._setEscapeEvent(),t(this._element).addClass(o+"-"+this._config.type),t(this._element).on(c.CLICK_DISMISS,l.DATA_DISMISS,t.proxy(this.hide,this)),t(this._content).on(c.MOUSEDOWN_DISMISS,function(){t(n._element).one(c.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))},n.prototype.toggle=function(e){return this._isShown?this.hide():this.show(e)},n.prototype._enforceFocus=function(){var e=this;t(document).off(c.FOCUSIN).on(c.FOCUSIN,function(n){("default"===e._config.type||t(window).width()<=e._config.breakpoint)&&(e._element===n.target||t(e._element).has(n.target).length||e._element.focus())})},n.prototype._getConfig=function(n){return n=t.extend({},r,n),e.typeCheckConfig(o,n,s),n},n.prototype._hideNavdrawer=function(e){var n=this;this._showBackdrop(function(){t(document.body).removeClass(e),n._element.setAttribute("aria-hidden","true"),n._element.style.display="none",t(n._element).trigger(c.HIDDEN)})},n.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(c.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||t(this._element).off(c.KEYDOWN_DISMISS)},n.prototype._showBackdrop=function(n){var o=this,i=e.supportsTransitionEnd();if(this._isShown){if(this._backdrop=document.createElement("div"),t(this._backdrop).addClass(a.BACKDROP).addClass(a.BACKDROP+"-"+this._config.type).appendTo(document.body),t(this._element).on(c.CLICK_DISMISS,function(e){o._ignoreBackdropClick?o._ignoreBackdropClick=!1:e.target===e.currentTarget&&o.hide()}),i&&e.reflow(this._backdrop),t(this._backdrop).addClass(a.SHOW),!n)return;if(!i)return void n();t(this._backdrop).one(e.TRANSITION_END,n).emulateTransitionEnd(487.5)}else if(this._backdrop&&!this._isShown){t(this._backdrop).removeClass(a.SHOW);var r=function(){o._removeBackdrop(),n&&n()};i?t(this._backdrop).one(e.TRANSITION_END,r).emulateTransitionEnd(487.5):r()}else n&&n()},n.prototype._showElement=function(n){var o=this,i=e.supportsTransitionEnd();this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.removeAttribute("aria-hidden"),this._element.style.display="block",i&&e.reflow(this._element),t(this._element).addClass(a.SHOW),this._enforceFocus();var r=t.Event(c.SHOWN,{relatedTarget:n}),s=function(){o._element.focus(),t(o._element).trigger(r)};i?t(this._content).one(e.TRANSITION_END,s).emulateTransitionEnd(292.5):s()},n._jQueryInterface=function(e,o){return this.each(function(){var i=t.extend({},n.Default,t(this).data(),"object"===(void 0===e?"undefined":_typeof(e))&&e),a=t(this).data("md.navdrawer");if(a||(a=new n(this,i),t(this).data("md.navdrawer",a)),"string"==typeof e){if(void 0===a[e])throw new Error('No method named "'+e+'"');a[e](o)}else i.show&&a.show(o)})},_createClass(n,null,[{key:"Default",get:function(){return r}}]),n}();t(document).on(c.CLICK_DATA_API,l.DATA_TOGGLE,function(n){var o=this,i=e.getSelectorFromElement(this),a=void 0;i&&(a=t(i)[0]);var r=t(a).data("md.navdrawer")?"toggle":t.extend({},t(a).data(),t(this).data());"A"===this.tagName&&n.preventDefault();var s=t(a).one(c.SHOW,function(e){e.isDefaultPrevented()||s.one(c.HIDDEN,function(){t(o).is(":visible")&&o.focus()})});d._jQueryInterface.call(t(a),r,this)}),t.fn[o]=d._jQueryInterface,t.fn[o].Constructor=d,t.fn[o].noConflict=function(){return t.fn[o]=i,d._jQueryInterface}}(jQuery),function(e){var t=".md.controlfocus",n={FOCUS:"focus"},o={IS_MOUSEDOWN:!1},i={BLUR:"blur"+t,FOCUS:"focus"+t,MOUSEDOWN:"mousedown"+t,MOUSEUP:"mouseup"+t},a={CONTROL:".custom-control",INPUT:".custom-control-input"};e(document).on(""+i.BLUR,a.INPUT,function(t){e(t.target).removeClass(n.FOCUS)}).on(""+i.FOCUS,a.INPUT,function(t){!1===o.IS_MOUSEDOWN&&e(t.target).addClass(n.FOCUS)}).on(""+i.MOUSEDOWN,a.CONTROL,function(){o.IS_MOUSEDOWN=!0}).on(""+i.MOUSEUP,a.CONTROL,function(){setTimeout(function(){o.IS_MOUSEDOWN=!1},1)})}(jQuery),function(t){var n="tabswitch",o=t.fn[n],i={ANIMATE:"animate",DROPDOWN_ITEM:"dropdown-item",INDICATOR:"nav-tabs-indicator",MATERIAL:"nav-tabs-material",SCROLLABLE:"nav-tabs-scrollable",SHOW:"show"},a={SHOW_BS_TAB:"show.bs.tab"},r={DATA_TOGGLE:'.nav-tabs [data-toggle="tab"]',DROPDOWN:".dropdown",NAV:".nav-tabs"},s=function(){function n(e){if(_classCallCheck(this,n),void 0===t.fn.tab)throw new Error("Material's JavaScript requires Bootstrap's tab.js");this._nav=e,this._navindicator=null}return n.prototype.switch=function(n,o){var a=this,s=t(this._nav).offset().left,c=t(this._nav).scrollLeft(),l=t(this._nav).outerWidth(),d=e.supportsTransitionEnd();this._navindicator||this._createIndicator(s,c,l,o),t(n).hasClass(i.DROPDOWN_ITEM)&&(n=t(n).closest(r.DROPDOWN));var u=t(n).offset().left,f=t(n).outerWidth();t(this._navindicator).addClass(i.SHOW),e.reflow(this._navindicator),d&&t(this._nav).addClass(i.ANIMATE),t(this._navindicator).css({left:u+c-s,right:l-(u+c-s+f)});var p=function(){t(a._nav).removeClass(i.ANIMATE),t(a._navindicator).removeClass(i.SHOW)};d?t(this._navindicator).one(e.TRANSITION_END,p).emulateTransitionEnd(390):p()},n.prototype._createIndicator=function(e,n,o,a){if(this._navindicator=document.createElement("div"),t(this._navindicator).addClass(i.INDICATOR).appendTo(this._nav),void 0!==a){t(a).hasClass(i.DROPDOWN_ITEM)&&(a=t(a).closest(r.DROPDOWN));var s=t(a).offset().left,c=t(a).outerWidth();t(this._navindicator).css({left:s+n-e,right:o-(s+n-e+c)})}t(this._nav).addClass(i.MATERIAL)},n._jQueryInterface=function(e){return this.each(function(){var o=t(this).closest(r.NAV)[0];if(o){var i=t(o).data("md.tabswitch");i||(i=new n(o),t(o).data("md.tabswitch",i)),i.switch(this,e)}})},n}();t(document).on(a.SHOW_BS_TAB,r.DATA_TOGGLE,function(e){s._jQueryInterface.call(t(e.target),e.relatedTarget)}),t.fn[n]=s._jQueryInterface,t.fn[n].Constructor=s,t.fn[n].noConflict=function(){return t.fn[n]=o,s._jQueryInterface}}(jQuery);var e=function(e){function t(){return{bindType:r.end,delegateType:r.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function n(e){return(e[0]||e).nodeType}function o(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function i(t){var n=this,o=!1;return e(this).one(c.TRANSITION_END,function(){o=!0}),setTimeout(function(){o||c.triggerTransitionEnd(n)},t),this}function a(){if(window.QUnit)return!1;var e=document.createElement("material");for(var t in s)if(void 0!==e.style[t])return{end:s[t]};return!1}var r=!1,s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},c={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(e){var t=e.getAttribute("data-target");return t||(t=e.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},reflow:function(e){new Function("md","return md")(e.offsetHeight)},supportsTransitionEnd:function(){return Boolean(r)},triggerTransitionEnd:function(t){e(t).trigger(r.end)},typeCheckConfig:function(e,t,i){for(var a in i)if(i.hasOwnProperty(a)){var r=i[a],s=t[a],c=s&&n(s)?"element":o(s);if(!new RegExp(r).test(c))throw new Error(e.toUpperCase()+': Option "'+a+'" provided type "'+c+'" but expected type "'+r+'".')}}};return r=a(),e.fn.emulateTransitionEnd=i,c.supportsTransitionEnd()&&(e.event.special[c.TRANSITION_END]=t()),c}(jQuery)}();
1
+ /*!
2
+ * Daemonite Material v4.0.0-beta (http://daemonite.github.io/material/)
3
+ * Copyright 2011-2018 Daemon Pty Ltd
4
+ * Licensed under MIT (https://github.com/Daemonite/material/blob/master/LICENSE)
5
+ */
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.material={},e.jQuery)}(this,function(e,t){"use strict";function n(e,t){return e(t={exports:{}},t.exports),t.exports}t=t&&t.hasOwnProperty("default")?t.default:t;var o=n(function(e,n){
7
+ /*!
8
+ * pickadate.js v3.5.6, 2015/04/20
9
+ * By Amsul, http://amsul.ca
10
+ * Hosted on http://amsul.github.io/pickadate.js
11
+ * Licensed under MIT
12
+ */var o;o=function(e){var t=e(window),n=e(document),o=e(document.documentElement),i=null!=document.documentElement.style.transition;function r(t,c,d,u){if(!t)return r;var h=!1,f={id:t.id||"P"+Math.abs(~~(Math.random()*new Date))},p=d?e.extend(!0,{},d.defaults,u):u||{},m=e.extend({},r.klasses(),p.klass),y=e(t),g=function(){return this.start()},v=g.prototype={constructor:g,$node:y,start:function(){return f&&f.start?v:(f.methods={},f.start=!0,f.open=!1,f.type=t.type,t.autofocus=t==l(),t.readOnly=!p.editable,t.id=t.id||f.id,"text"!=t.type&&(t.type="text"),v.component=new d(v,p),v.$root=e('<div class="'+m.picker+'" id="'+t.id+'_root" />'),s(v.$root[0],"hidden",!0),v.$holder=e(b()).appendTo(v.$root),_(),p.formatSubmit&&function(){var n;!0===p.hiddenName?(n=t.name,t.name=""):n=(n=["string"==typeof p.hiddenPrefix?p.hiddenPrefix:"","string"==typeof p.hiddenSuffix?p.hiddenSuffix:"_submit"])[0]+t.name+n[1];v._hidden=e('<input type=hidden name="'+n+'"'+(y.data("value")||t.value?' value="'+v.get("select",p.formatSubmit)+'"':"")+">")[0],y.on("change."+f.id,function(){v._hidden.value=t.value?v.get("select",p.formatSubmit):""})}(),function(){y.data(c,v).addClass(m.input).val(y.data("value")?v.get("select",p.format):t.value),p.editable||y.on("focus."+f.id+" click."+f.id,function(e){e.preventDefault(),v.open()}).on("keydown."+f.id,S);s(t,{haspopup:!0,expanded:!1,readonly:!1,owns:t.id+"_root"})}(),p.containerHidden?e(p.containerHidden).append(v._hidden):y.after(v._hidden),p.container?e(p.container).append(v.$root):y.after(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}),h=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(v.$holder[0]),t.autofocus&&v.open(),v.trigger("start").trigger("render"))},render:function(t){return t?(v.$holder=e(b()),_(),v.$root.html(v.$holder)):v.$root.find("."+m.box).html(v.component.nodes(f.open)),v.trigger("render")},stop:function(){return f.start?(v.close(),v._hidden&&v._hidden.parentNode.removeChild(v._hidden),v.$root.remove(),y.removeClass(m.input).removeData(c),setTimeout(function(){y.off("."+f.id)},0),t.type=f.type,t.readOnly=!1,v.trigger("stop"),f.methods={},f.start=!1,v):v},open:function(c){return f.open?v:(y.addClass(m.active),s(t,"expanded",!0),setTimeout(function(){v.$root.addClass(m.opened),s(v.$root[0],"hidden",!1)},0),!1!==c&&(f.open=!0,h&&o.css("overflow","hidden").css("padding-right","+="+a()),h&&i?v.$holder.find("."+m.frame).one("transitionend",function(){v.$holder[0].focus()}):v.$holder[0].focus(),n.on("click."+f.id+" focusin."+f.id,function(e){var n=e.target;n!=t&&n!=document&&3!=e.which&&v.close(n===v.$holder[0])}).on("keydown."+f.id,function(t){var n=t.keyCode,o=v.component.key[n],i=t.target;27==n?v.close(!0):i!=v.$holder[0]||!o&&13!=n?e.contains(v.$root[0],i)&&13==n&&(t.preventDefault(),i.click()):(t.preventDefault(),o?r._.trigger(v.component.key.go,v,[r._.trigger(o)]):v.$root.find("."+m.highlighted).hasClass(m.disabled)||(v.set("select",v.component.item.highlight),p.closeOnSelect&&v.close(!0)))})),v.trigger("open"))},close:function(e){return e&&(p.editable?t.focus():(v.$holder.off("focus.toOpen").focus(),setTimeout(function(){v.$holder.on("focus.toOpen",k)},0))),y.removeClass(m.active),s(t,"expanded",!1),setTimeout(function(){v.$root.removeClass(m.opened+" "+m.focused),s(v.$root[0],"hidden",!0)},0),f.open?(f.open=!1,h&&o.css("overflow","").css("padding-right","-="+a()),n.off("."+f.id),v.trigger("close")):v},clear:function(e){return v.set("clear",null,e)},set:function(t,n,o){var i,r,a=e.isPlainObject(t),s=a?t:{};if(o=a&&e.isPlainObject(n)?n:o||{},t){a||(s[t]=n);for(i in s)r=s[i],i in v.component.item&&(void 0===r&&(r=null),v.component.set(i,r,o)),"select"!=i&&"clear"!=i||y.val("clear"==i?"":v.get(i,p.format)).trigger("change");v.render()}return o.muted?v:v.trigger("set",s)},get:function(e,n){if(null!=f[e=e||"value"])return f[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 o=v.component.get(e);return o?r._.trigger(v.component.formats.toString,v.component,[n,o]):""}return v.component.get(e)}},on:function(t,n,o){var i,r,a=e.isPlainObject(t),s=a?t:{};if(t){a||(s[t]=n);for(i in s)r=s[i],o&&(i="_"+i),f.methods[i]=f.methods[i]||[],f.methods[i].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 f.methods&&delete f.methods[t];return v},trigger:function(e,t){var n=function(e){var n=f.methods[e];n&&n.map(function(e){r._.trigger(e,v,[t])})};return n("_"+e),n(e),v}};function b(){return r._.node("div",r._.node("div",r._.node("div",r._.node("div",v.component.nodes(f.open),m.box),m.wrap),m.frame),m.holder,'tabindex="-1"')}function _(){v.$holder.on({keydown:S,"focus.toOpen":k,blur:function(){y.removeClass(m.target)},focusin:function(e){v.$root.removeClass(m.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=v.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),v.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),o=t.hasClass(m.navDisabled)||t.hasClass(m.disabled),i=l();i=i&&(i.type||i.href),(o||i&&!e.contains(v.$root[0],i))&&v.$holder[0].focus(),!o&&n.nav?v.set("highlight",v.component.item.highlight,{nav:n.nav}):!o&&"pick"in n?(v.set("select",n.pick),p.closeOnSelect&&v.close(!0)):n.clear?(v.clear(),p.closeOnClear&&v.close(!0)):n.close&&v.close(!0)})}function k(e){e.stopPropagation(),y.addClass(m.target),v.$root.addClass(m.focused),v.open()}function S(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return v.close(!0),!1;(32==t||n||!f.open&&v.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?v.clear().close():v.open())}return new g}function a(){if(o.height()<=t.height())return 0;var n=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=n[0].offsetWidth;n.css("overflow","scroll");var r=e('<div style="width:100%" />').appendTo(n)[0].offsetWidth;return n.remove(),i-r}function s(t,n,o){if(e.isPlainObject(n))for(var i in n)c(t,i,n[i]);else c(t,n,o)}function c(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function l(){try{return document.activeElement}catch(e){}}return r.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"}},r._={group:function(e){for(var t,n="",o=r._.trigger(e.min,e);o<=r._.trigger(e.max,e,[o]);o+=e.i)t=r._.trigger(e.item,e,[o]),n+=r._.node(e.node,t[0],t[1],t[2]);return n},node:function(t,n,o,i){return n?(n=e.isArray(n)?n.join(""):n,"<"+t+(o=o?' class="'+o+'"':"")+(i=i?" "+i:"")+">"+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){e.isPlainObject(t)||(t={attribute:n});n="";for(var o in t){var i=("role"==o?"":"aria-")+o,r=t[o];n+=null==r?"":i+'="'+t[o]+'"'}return n}},r.extend=function(t,n){e.fn[t]=function(o,i){var a=this.data(t);return"picker"==o?a:a&&"string"==typeof o?r._.trigger(a[o],a,[i]):this.each(function(){e(this).data(t)||new r(this,t,n,o)})},e.fn[t].defaults=n.defaults},r},e.exports=o(t)});n(function(e,n){
13
+ /*!
14
+ * Date picker for pickadate.js v3.5.6
15
+ * http://amsul.github.io/pickadate.js/date.htm
16
+ */var i;i=function(e,t){var n,o=e._;function i(e,t){var n,o=this,i=e.$node[0],r=i.value,a=e.$node.data("value"),s=a||r,c=a?t.formatSubmit:t.format,l=function(){return i.currentStyle?"rtl"==i.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};o.settings=t,o.$node=e.$node,o.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"},o.item={},o.item.clear=null,o.item.disable=(t.disable||[]).slice(0),o.item.enable=-(!0===(n=o.item.disable)[0]?n.shift():-1),o.set("min",t.min).set("max",t.max).set("now"),s?o.set("select",s,{format:c,defaultValue:!0}):o.set("select",null).set("highlight",o.item.now),o.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=o.item.highlight,n=new Date(t.year,t.month,t.date+e);o.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="";o.disabled(o.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)}i.prototype.set=function(e,t,n){var o=this,i=o.item;return null===t?("clear"==e&&(e="select"),i[e]=t,o):(i["enable"==e?"disable":"flip"==e?"enable":e]=o.queue[e].split(" ").map(function(i){return t=o[i](e,t,n)}).pop(),"select"==e?o.set("highlight",i.select,n):"highlight"==e?o.set("view",i.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(i.select&&o.disabled(i.select)&&o.set("select",i.select,n),i.highlight&&o.disabled(i.highlight)&&o.set("highlight",i.highlight,n)),o)},i.prototype.get=function(e){return this.item[e]},i.prototype.create=function(e,n,i){var r;return(n=void 0===n?e:n)==-1/0||n==1/0?r=n:t.isPlainObject(n)&&o.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=o.isDate(n)?n:this.create().obj):n=o.isInteger(n)||o.isDate(n)?this.normalize(new Date(n),i):this.now(e,n,i),{year:r||n.getFullYear(),month:r||n.getMonth(),date:r||n.getDate(),day:r||n.getDay(),obj:r||n,pick:r||n.getTime()}},i.prototype.createRange=function(e,n){var i=this,r=function(e){return!0===e||t.isArray(e)||o.isDate(e)?i.create(e):e};return o.isInteger(e)||(e=r(e)),o.isInteger(n)||(n=r(n)),o.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:o.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:r(e),to:r(n)}},i.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},i.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},i.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},i.prototype.navigate=function(e,n,o){var i,r,a,s,c=t.isArray(n),l=t.isPlainObject(n),d=this.item.view;if(c||l){for(l?(r=n.year,a=n.month,s=n.date):(r=+n[0],a=+n[1],s=+n[2]),o&&o.nav&&d&&d.month!==a&&(r=d.year,a=d.month),r=(i=new Date(r,a+(o&&o.nav?o.nav:0),1)).getFullYear(),a=i.getMonth();new Date(r,a,s).getMonth()!==a;)s-=1;n=[r,a,s]}return n},i.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},i.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):o.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},i.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},i.prototype.validate=function(e,n,i){var r,a,s,c,l=this,d=n,u=i&&i.interval?i.interval:1,h=-1===l.item.enable,f=l.item.min,p=l.item.max,m=h&&l.item.disable.filter(function(e){if(t.isArray(e)){var i=l.create(e).pick;i<n.pick?r=!0:i>n.pick&&(a=!0)}return o.isInteger(e)}).length;if((!i||!i.nav&&!i.defaultValue)&&(!h&&l.disabled(n)||h&&l.disabled(n)&&(m||r||a)||!h&&(n.pick<=f.pick||n.pick>=p.pick)))for(h&&!m&&(!a&&u>0||!r&&u<0)&&(u*=-1);l.disabled(n)&&(Math.abs(u)>1&&(n.month<d.month||n.month>d.month)&&(n=d,u=u>0?1:-1),n.pick<=f.pick?(s=!0,u=1,n=l.create([f.year,f.month,f.date+(n.pick===f.pick?0:-1)])):n.pick>=p.pick&&(c=!0,u=-1,n=l.create([p.year,p.month,p.date+(n.pick===p.pick?0:1)])),!s||!c);)n=l.create([n.year,n.month,n.date+u]);return n},i.prototype.disabled=function(e){var n=this,i=n.item.disable.filter(function(i){return o.isInteger(i)?e.day===(n.settings.firstDay?i:i-1)%7:t.isArray(i)||o.isDate(i)?e.pick===n.create(i).pick:t.isPlainObject(i)?n.withinRange(i,e):void 0});return i=i.length&&!i.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!i:i||e.pick<n.item.min.pick||e.pick>n.item.max.pick},i.prototype.parse=function(e,t,n){var i=this,r={};return t&&"string"==typeof t?(n&&n.format||((n=n||{}).format=i.settings.format),i.formats.toArray(n.format).map(function(e){var n=i.formats[e],a=n?o.trigger(n,i,[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},i.prototype.formats=function(){function e(e,t,n){var o=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(o)+1),o.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?o.digits(e):t.date},dd:function(e,t){return e?2:o.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?o.digits(e):t.month+1},mm:function(e,t){return e?2:o.lead(t.month+1)},mmm:function(t,n){var o=this.settings.monthsShort;return t?e(t,o,n):o[n.month]},mmmm:function(t,n){var o=this.settings.monthsFull;return t?e(t,o,n):o[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 o.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),i.prototype.isDateExact=function(e,n){return o.isInteger(e)&&o.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(o.isDate(e)||t.isArray(e))&&(o.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))},i.prototype.isDateOverlap=function(e,n){var i=this.settings.firstDay?1:0;return o.isInteger(e)&&(o.isDate(n)||t.isArray(n))?(e=e%7+i)===this.create(n).day+1:o.isInteger(n)&&(o.isDate(e)||t.isArray(e))?(n=n%7+i)===this.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&this.overlapRanges(e,n)},i.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},i.prototype.deactivate=function(e,n){var i=this,r=i.item.disable.slice(0);return"flip"==n?i.flipEnable():!1===n?(i.flipEnable(1),r=[]):!0===n?(i.flipEnable(-1),r=[]):n.map(function(e){for(var n,a=0;a<r.length;a+=1)if(i.isDateExact(e,r[a])){n=!0;break}n||(o.isInteger(e)||o.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},i.prototype.activate=function(e,n){var i=this,r=i.item.disable,a=r.length;return"flip"==n?i.flipEnable():!0===n?(i.flipEnable(1),r=[]):!1===n?(i.flipEnable(-1),r=[]):n.map(function(e){var n,s,c,l;for(c=0;c<a;c+=1){if(s=r[c],i.isDateExact(s,e)){n=r[c]=null,l=!0;break}if(i.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[3]||n.push("inverted"):o.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(c=0;c<a;c+=1)if(i.isDateExact(r[c],e)){r[c]=null;break}if(l)for(c=0;c<a;c+=1)if(i.isDateOverlap(r[c],e)){r[c]=null;break}n&&r.push(n)}),r.filter(function(e){return null!=e})},i.prototype.nodes=function(e){var t,n,i=this,r=i.settings,a=i.item,s=a.now,c=a.select,l=a.highlight,d=a.view,u=a.disable,h=a.min,f=a.max,p=(t=(r.showWeekdaysFull?r.weekdaysFull:r.weekdaysShort).slice(0),n=r.weekdaysFull.slice(0),r.firstDay&&(t.push(t.shift()),n.push(n.shift())),o.node("thead",o.node("tr",o.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 o.node("div"," ",r.klass["nav"+(e?"Next":"Prev")]+(e&&d.year>=f.year&&d.month>=f.month||!e&&d.year<=h.year&&d.month<=h.month?" "+r.klass.navDisabled:""),"data-nav="+(e||-1)+" "+o.ariaAttr({role:"button",controls:i.$node[0].id+"_table"})+' title="'+(e?r.labelMonthNext:r.labelMonthPrev)+'"')},y=function(){var t=r.showMonthsShort?r.monthsShort:r.monthsFull;return r.selectMonths?o.node("select",o.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(d.month==e?" selected":"")+(d.year==h.year&&e<h.month||d.year==f.year&&e>f.month?" disabled":"")]}}),r.klass.selectMonth,(e?"":"disabled")+" "+o.ariaAttr({controls:i.$node[0].id+"_table"})+' title="'+r.labelMonthSelect+'"'):o.node("div",t[d.month],r.klass.month)},g=function(){var t=d.year,n=!0===r.selectYears?5:~~(r.selectYears/2);if(n){var a=h.year,s=f.year,c=t-n,l=t+n;if(a>c&&(l+=a-c,c=a),s<l){var u=c-a,p=l-s;c-=u>p?p:u,l=s}return o.node("select",o.group({min:c,max:l,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),r.klass.selectYear,(e?"":"disabled")+" "+o.ariaAttr({controls:i.$node[0].id+"_table"})+' title="'+r.labelYearSelect+'"')}return o.node("div",t,r.klass.year)};return o.node("div",(r.selectYears?g()+y():y()+g())+m()+m(1),r.klass.header)+o.node("table",p+o.node("tbody",o.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=r.firstDay&&0===i.create([d.year,d.month,1]).day?-7:0;return[o.group({min:7*e-d.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=i.create([d.year,d.month,e+(r.firstDay?1:0)]);var t,n=c&&c.pick==e.pick,a=l&&l.pick==e.pick,p=u&&i.disabled(e)||e.pick<h.pick||e.pick>f.pick,m=o.trigger(i.formats.toString,i,[r.format,e]);return[o.node("div",e.date,(t=[r.klass.day],t.push(d.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),p&&t.push(r.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+o.ariaAttr({role:"gridcell",label:m,selected:!(!n||i.$node.val()!==m)||null,activedescendant:!!a||null,disabled:!!p||null})),"",o.ariaAttr({role:"presentation"})]}})]}})),r.klass.table,'id="'+i.$node[0].id+'_table" '+o.ariaAttr({role:"grid",controls:i.$node[0].id,readonly:!0}))+o.node("div",o.node("button",r.today,r.klass.buttonToday,"type=button data-pick="+s.pick+(e&&!i.disabled(s)?"":" disabled")+" "+o.ariaAttr({controls:i.$node[0].id}))+o.node("button",r.clear,r.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+o.ariaAttr({controls:i.$node[0].id}))+o.node("button",r.close,r.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+o.ariaAttr({controls:i.$node[0].id})),r.klass.footer)},i.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"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:(n=e.klasses().picker+"__")+"table",header:n+"header",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",i)},e.exports=i(o,t)});function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}!function(e){var t=function(e,t){this._element=e,this._options=t};t.DEFAULTS={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"body",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},max:!1,min:!1,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"],ok:"OK",onClose:!1,onOpen:!1,onRender:!1,onSet:!1,onStart:!1,onStop:!1,selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},t.prototype.display=function(t,n,o){e(".picker-date-display",n).remove(),e(".picker-wrap",n).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+t.get(o,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+t.get(o,"dddd")+'</span><span class="picker-day-display">'+t.get(o,"d")+'</span><span class="picker-month-display">'+t.get(o,"mmm")+"</span></div></div>")},t.prototype.show=function(){var t=this;e(this._element).pickadate({clear:t._options.cancel,close:t._options.ok,closeOnClear:t._options.closeOnCancel,closeOnSelect:t._options.closeOnSelect,container:t._options.container,disable:t._options.disable,firstDay:t._options.firstDay,format:t._options.format,formatSubmit:t._options.formatSubmit,klass:t._options.klass,max:t._options.max,min:t._options.min,monthsFull:t._options.monthsFull,monthsShort:t._options.monthsShort,onClose:t._options.onClose,onOpen:t._options.onOpen,onRender:t._options.onRender,onSet:t._options.onSet,onStart:t._options.onStart,onStop:t._options.onStop,selectMonths:t._options.selectMonths,selectYears:t._options.selectYears,today:t._options.today,weekdaysFull:t._options.weekdaysFull,weekdaysShort:t._options.weekdaysShort});var n=e(this._element).pickadate("picker"),o=(n.$node,n.$root);n.on({close:function(){e(document.activeElement).blur()},open:function(){e(".picker__date-display",o).length||t.display(n,o,"highlight")},set:function(){null!==n.get("select")&&t.display(n,o,"select")}})};var n=e.fn.pickdate;e.fn.pickdate=function(n){return this.each(function(){var o=e(this).data("bs.pickdate"),i=e.extend({},t.DEFAULTS,e(this).data(),"object"==typeof n&&n);o||e(this).data("bs.pickdate",o=new t(this,i)),o.show()})},e.fn.pickdate.Constructor=t,e.fn.pickdate.noConflict=function(){return e.fn.pickdate=n,this}}(jQuery);var r,a,s,c,l,d,u,h,f,p,m,y,g,v,b,_,k,S,w,D,C,O,I,E,x,T,N,A,M,$,j,P,F,R,W,U,Y,Q,H,L,J,B,K,q,z,G,V,Z,X,ee,te,ne,oe,ie,re,ae,se,ce=(s="show",c="show-predecessor",l="hide"+(a=".bs.collapse"),d="show"+a,u=".expansion-panel",h=".expansion-panel .collapse",void(r=t)(document).on(""+l,h,function(e){var t=r(e.target).closest(u);t.removeClass(s);var n=t.prev(u);n.length&&n.removeClass(c)}).on(""+d,h,function(e){var t=r(e.target).closest(u);t.addClass(s);var n=t.prev(u);n.length&&n.addClass(c)})),le=(m="."+(p="md.floatinglabel"),y="floatinglabel",g=(f=t).fn[y],v="is-focused",b="has-value",_="change"+m,k="focusin"+m,S="focusout"+m,w=".floating-label",D=".floating-label .form-control",C=function(){function e(e){this._element=e}var t=e.prototype;return t.change=function(e){f(this._element).val()||f(this._element).is("select")&&""!==f("option:first-child",f(this._element)).html().replace(" ","")?f(e).addClass(b):f(e).removeClass(b)},t.focusin=function(e){f(e).addClass(v)},t.focusout=function(e){f(e).removeClass(v)},e._jQueryInterface=function(t){return this.each(function(){var n=t||"change",o=f(this).data(p);if(o||(o=new e(this),f(this).data(p,o)),"string"==typeof n){if("undefined"===o[n])throw new Error('No method named "'+n+'"');o[n](f(this).closest(w))}})},e}(),f(document).on(_+" "+k+" "+S,D,function(e){C._jQueryInterface.call(f(this),e.type)}),f.fn[y]=C._jQueryInterface,f.fn[y].Constructor=C,f.fn[y].noConflict=function(){return f.fn[y]=g,C._jQueryInterface},C),de=function(e){var t=!1;function n(t){var n=this,i=!1;return e(this).one(o.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||o.triggerTransitionEnd(n)},t),this}var o={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(t){var n,o=t.getAttribute("data-target");o&&"#"!==o||(o=t.getAttribute("href")||""),"#"===o.charAt(0)&&(n=o,o=n="function"==typeof e.escapeSelector?e.escapeSelector(n).substr(1):n.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return e(document).find(o).length>0?o:null}catch(e){return null}},getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},isElement:function(e){return(e[0]||e).nodeType},reflow:function(e){return e.offsetHeight},supportsTransitionEnd:function(){return Boolean(t)},triggerTransitionEnd:function(n){e(n).trigger(t.end)},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],a=t[i],s=a&&o.isElement(a)?"element":(c=a,{}.toString.call(c).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+r+'".')}var c}};return t=!window.QUnit&&{end:"transitionend"},e.fn.emulateTransitionEnd=n,o.supportsTransitionEnd()&&(e.event.special[o.TRANSITION_END]={bindType:t.end,delegateType:t.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),o}(t),ue=(E="."+(I="md.navdrawer"),x="navdrawer",T=(O=t).fn[x],N="navdrawer-backdrop",A="navdrawer-open",M="show",$={breakpoint:1280,keyboard:!0,show:!0,type:"default"},j={keyboard:"boolean",show:"boolean",type:"string"},P={CLICK_DATA_API:"click"+E+".data-api",CLICK_DISMISS:"click.dismiss"+E,FOCUSIN:"focusin"+E,HIDDEN:"hidden"+E,HIDE:"hide"+E,KEYDOWN_DISMISS:"keydown.dismiss"+E,MOUSEDOWN_DISMISS:"mousedown.dismiss"+E,MOUSEUP_DISMISS:"mouseup.dismiss"+E,SHOW:"show"+E,SHOWN:"shown"+E},F={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},R=function(){function e(e,t){this._backdrop=null,this._config=this._getConfig(t),this._content=O(e).find(F.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1}var t,n,o,r=e.prototype;return r.hide=function(e){e&&e.preventDefault();var t=A+"-"+this._config.type,n=O.Event(P.HIDE);O(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),O(document).off(P.FOCUSIN),O(this._content).off(P.MOUSEDOWN_DISMISS),O(this._element).off(P.CLICK_DISMISS).removeClass(M),this._hideNavdrawer(t))},r.show=function(e){var t=this,n=O.Event(P.SHOW,{relatedTarget:e});O(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,O(document.body).addClass(A+"-"+this._config.type),this._setEscapeEvent(),O(this._element).addClass(x+"-"+this._config.type),O(this._element).on(P.CLICK_DISMISS,F.DATA_DISMISS,O.proxy(this.hide,this)),O(this._content).on(P.MOUSEDOWN_DISMISS,function(){O(t._element).one(P.MOUSEUP_DISMISS,function(e){O(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))},r.toggle=function(e){return this._isShown?this.hide():this.show(e)},r._enforceFocus=function(){var e=this;O(document).off(P.FOCUSIN).on(P.FOCUSIN,function(t){("default"===e._config.type||O(window).width()<=e._config.breakpoint)&&(e._element===t.target||O(e._element).has(t.target).length||e._element.focus())})},r._getConfig=function(e){return e=O.extend({},$,e),de.typeCheckConfig(x,e,j),e},r._hideNavdrawer=function(e){var t=this;this._showBackdrop(function(){O(document.body).removeClass(e),t._element.setAttribute("aria-hidden","true"),t._element.style.display="none",O(t._element).trigger(P.HIDDEN)})},r._removeBackdrop=function(){this._backdrop&&(O(this._backdrop).remove(),this._backdrop=null)},r._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?O(this._element).on(P.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||O(this._element).off(P.KEYDOWN_DISMISS)},r._showBackdrop=function(e){var t=this,n=de.supportsTransitionEnd();if(this._isShown){if(this._backdrop=document.createElement("div"),O(this._backdrop).addClass(N).addClass(N+"-"+this._config.type).appendTo(document.body),O(this._element).on(P.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t.hide()}),n&&de.reflow(this._backdrop),O(this._backdrop).addClass(M),!e)return;if(!n)return void e();O(this._backdrop).one(de.TRANSITION_END,e).emulateTransitionEnd(487.5)}else if(this._backdrop&&!this._isShown){O(this._backdrop).removeClass(M);var o=function(){t._removeBackdrop(),e&&e()};n?O(this._backdrop).one(de.TRANSITION_END,o).emulateTransitionEnd(487.5):o()}else e&&e()},r._showElement=function(e){var t=this,n=de.supportsTransitionEnd();this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.removeAttribute("aria-hidden"),this._element.style.display="block",n&&de.reflow(this._element),O(this._element).addClass(M),this._enforceFocus();var o=O.Event(P.SHOWN,{relatedTarget:e}),i=function(){t._element.focus(),O(t._element).trigger(o)};n?O(this._content).one(de.TRANSITION_END,i).emulateTransitionEnd(292.5):i()},e._jQueryInterface=function(t,n){return this.each(function(){var o=O.extend({},e.Default,O(this).data(),"object"==typeof t&&t),i=O(this).data(I);if(i||(i=new e(this,o),O(this).data(I,i)),"string"==typeof t){if("undefined"===i[t])throw new Error('No method named "'+t+'"');i[t](n)}else o.show&&i.show(n)})},t=e,o=[{key:"Default",get:function(){return $}}],(n=null)&&i(t.prototype,n),o&&i(t,o),e}(),O(document).on(P.CLICK_DATA_API,F.DATA_TOGGLE,function(e){var t,n=this,o=de.getSelectorFromElement(this);o&&(t=O(o)[0]);var i=O(t).data(I)?"toggle":O.extend({},O(t).data(),O(this).data());"A"===this.tagName&&e.preventDefault();var r=O(t).one(P.SHOW,function(e){e.isDefaultPrevented()||r.one(P.HIDDEN,function(){O(n).is(":visible")&&n.focus()})});R._jQueryInterface.call(O(t),i,this)}),O.fn[x]=R._jQueryInterface,O.fn[x].Constructor=R,O.fn[x].noConflict=function(){return O.fn[x]=T,R._jQueryInterface},R),he=(Y="focus",Q={IS_MOUSEDOWN:!1},H="blur"+(U=".md.selectioncontrolfocus"),L="focus"+U,J="mousedown"+U,B="mouseup"+U,K=".custom-control",q=".custom-control-input",void(W=t)(document).on(""+H,q,function(e){W(e.target).removeClass(Y)}).on(""+L,q,function(e){!1===Q.IS_MOUSEDOWN&&W(e.target).addClass(Y)}).on(""+J,K,function(){Q.IS_MOUSEDOWN=!0}).on(""+B,K,function(){setTimeout(function(){Q.IS_MOUSEDOWN=!1},1)})),fe=(G="md.tabswitch",V="tabswitch",Z=(z=t).fn[V],X="animate",ee="dropdown-item",te="nav-tabs-indicator",ne="nav-tabs-material",oe="show",ie='.nav-tabs [data-toggle="tab"]',re=".dropdown",ae=".nav-tabs",se=function(){function e(e){if("undefined"==typeof z.fn.tab)throw new Error("Material's JavaScript requires Bootstrap's tab.js");this._nav=e,this._navindicator=null}var t=e.prototype;return t.switch=function(e,t){var n=this,o=z(this._nav).offset().left,i=z(this._nav).scrollLeft(),r=z(this._nav).outerWidth(),a=de.supportsTransitionEnd();this._navindicator||this._createIndicator(o,i,r,t),z(e).hasClass(ee)&&(e=z(e).closest(re));var s=z(e).offset().left,c=z(e).outerWidth();z(this._navindicator).addClass(oe),de.reflow(this._navindicator),a&&z(this._nav).addClass(X),z(this._navindicator).css({left:s+i-o,right:r-(s+i-o+c)});var l=function(){z(n._nav).removeClass(X),z(n._navindicator).removeClass(oe)};a?z(this._navindicator).one(de.TRANSITION_END,l).emulateTransitionEnd(390):l()},t._createIndicator=function(e,t,n,o){if(this._navindicator=document.createElement("div"),z(this._navindicator).addClass(te).appendTo(this._nav),"undefined"!==o){z(o).hasClass(ee)&&(o=z(o).closest(re));var i=z(o).offset().left,r=z(o).outerWidth();z(this._navindicator).css({left:i+t-e,right:n-(i+t-e+r)})}z(this._nav).addClass(ne)},e._jQueryInterface=function(t){return this.each(function(){var n=z(this).closest(ae)[0];if(n){var o=z(n).data(G);o||(o=new e(n),z(n).data(G,o)),o.switch(this,t)}})},e}(),z(document).on("show.bs.tab",ie,function(e){se._jQueryInterface.call(z(e.target),e.relatedTarget)}),z.fn[V]=se._jQueryInterface,z.fn[V].Constructor=se,z.fn[V].noConflict=function(){return z.fn[V]=Z,se._jQueryInterface},se);e.Util=de,e.ExpansionPanel=ce,e.FloatingLabel=le,e.NavDrawer=ue,e.SelectionControlFocus=he,e.TabSwitch=fe,Object.defineProperty(e,"__esModule",{value:!0})});
17
+ //# sourceMappingURL=material.min.js.map
@@ -1,12 +1,7 @@
1
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2
-
3
1
  /*
4
- * customise pickadate js for material
5
- * requires addons/picker.js and addons/picker.date.js
2
+ * Customise pickadate JavaScript for Material
6
3
  */
7
-
8
- +function ($) {
9
-
4
+ (function ($) {
10
5
  'use strict';
11
6
 
12
7
  var Datepicker = function Datepicker(element, options) {
@@ -14,10 +9,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
14
9
  this._options = options;
15
10
  };
16
11
 
17
- if (typeof $.fn.pickadate === 'undefined') {
18
- throw new Error('Material\'s JavaScript requires pickadate.js');
19
- }
20
-
21
12
  Datepicker.DEFAULTS = {
22
13
  cancel: 'Cancel',
23
14
  closeOnCancel: true,
@@ -32,7 +23,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
32
23
  buttonClear: 'btn btn-outline-primary picker-button-clear',
33
24
  buttonClose: 'btn btn-outline-primary picker-button-close',
34
25
  buttonToday: 'btn btn-outline-primary picker-button-today',
35
-
36
26
  // day
37
27
  day: 'picker-day',
38
28
  disabled: 'picker-day-disabled',
@@ -42,7 +32,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
42
32
  outfocus: 'picker-day-outfocus',
43
33
  selected: 'picker-day-selected',
44
34
  weekdays: 'picker-weekday',
45
-
46
35
  // element
47
36
  box: 'picker-box',
48
37
  footer: 'picker-footer',
@@ -51,11 +40,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
51
40
  holder: 'picker-holder',
52
41
  table: 'picker-table',
53
42
  wrap: 'picker-wrap',
54
-
55
43
  // input element
56
44
  active: 'picker-input-active',
57
45
  input: 'picker-input',
58
-
59
46
  // month and year nav
60
47
  month: 'picker-month',
61
48
  navDisabled: 'picker-nav-disabled',
@@ -64,7 +51,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
64
51
  selectMonth: 'picker-select-month',
65
52
  selectYear: 'picker-select-year',
66
53
  year: 'picker-year',
67
-
68
54
  // root picker
69
55
  focused: 'picker-focused',
70
56
  opened: 'picker-opened',
@@ -90,13 +76,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
90
76
 
91
77
  Datepicker.prototype.display = function (datepickerApi, datepickerRoot, datepickerValue) {
92
78
  $('.picker-date-display', datepickerRoot).remove();
93
-
94
79
  $('.picker-wrap', datepickerRoot).prepend('<div class="picker-date-display">' + '<div class="picker-date-display-top">' + '<span class="picker-year-display">' + datepickerApi.get(datepickerValue, 'yyyy') + '</span>' + '</div>' + '<div class="picker-date-display-bottom">' + '<span class="picker-weekday-display">' + datepickerApi.get(datepickerValue, 'dddd') + '</span>' + '<span class="picker-day-display">' + datepickerApi.get(datepickerValue, 'd') + '</span>' + '<span class="picker-month-display">' + datepickerApi.get(datepickerValue, 'mmm') + '</span>' + '</div>' + '</div>');
95
80
  };
96
81
 
97
82
  Datepicker.prototype.show = function () {
98
83
  var that = this;
99
-
100
84
  $(this._element).pickadate({
101
85
  clear: that._options.cancel,
102
86
  close: that._options.ok,
@@ -124,11 +108,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
124
108
  weekdaysFull: that._options.weekdaysFull,
125
109
  weekdaysShort: that._options.weekdaysShort
126
110
  });
127
-
128
111
  var datepickerApi = $(this._element).pickadate('picker'),
129
112
  datepickerNode = datepickerApi.$node,
130
113
  datepickerRoot = datepickerApi.$root;
131
-
132
114
  datepickerApi.on({
133
115
  close: function close() {
134
116
  $(document.activeElement).blur();
@@ -149,7 +131,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
149
131
  function Plugin(option) {
150
132
  return this.each(function () {
151
133
  var data = $(this).data('bs.pickdate');
152
- var options = $.extend({}, Datepicker.DEFAULTS, $(this).data(), (typeof option === 'undefined' ? 'undefined' : _typeof(option)) == 'object' && option);
134
+ var options = $.extend({}, Datepicker.DEFAULTS, $(this).data(), typeof option == 'object' && option);
153
135
 
154
136
  if (!data) {
155
137
  $(this).data('bs.pickdate', data = new Datepicker(this, options));
@@ -160,7 +142,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
160
142
  }
161
143
 
162
144
  var old = $.fn.pickdate;
163
-
164
145
  $.fn.pickdate = Plugin;
165
146
  $.fn.pickdate.Constructor = Datepicker;
166
147
 
@@ -168,4 +149,5 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
168
149
  $.fn.pickdate = old;
169
150
  return this;
170
151
  };
171
- }(jQuery);
152
+ })(jQuery);
153
+ //# sourceMappingURL=pickadate.js.map
@@ -3,48 +3,39 @@
3
3
  * upon selecting the collapsed panel,
4
4
  * it expands to display in full
5
5
  */
6
-
7
6
  var ExpansionPanel = function ($) {
8
-
9
7
  // constants >>>
10
8
  var DATA_KEY = 'bs.collapse';
11
- var EVENT_KEY = '.' + DATA_KEY;
12
-
9
+ var EVENT_KEY = "." + DATA_KEY;
13
10
  var ClassName = {
14
11
  SHOW: 'show',
15
12
  SHOW_PREDECESSOR: 'show-predecessor'
16
13
  };
17
-
18
14
  var Event = {
19
- HIDE: 'hide' + EVENT_KEY,
20
- SHOW: 'show' + EVENT_KEY
15
+ HIDE: "hide" + EVENT_KEY,
16
+ SHOW: "show" + EVENT_KEY
21
17
  };
22
-
23
18
  var Selector = {
24
19
  PANEL: '.expansion-panel',
25
- PANEL_BODY: '.expansion-panel .collapse'
26
- };
27
- // <<< constants
20
+ PANEL_BODY: '.expansion-panel .collapse' // <<< constants
28
21
 
29
- $(document).on('' + Event.HIDE, Selector.PANEL_BODY, function (event) {
22
+ };
23
+ $(document).on("" + Event.HIDE, Selector.PANEL_BODY, function (event) {
30
24
  var target = $(event.target).closest(Selector.PANEL);
31
-
32
25
  target.removeClass(ClassName.SHOW);
33
-
34
26
  var predecessor = target.prev(Selector.PANEL);
35
27
 
36
28
  if (predecessor.length) {
37
29
  predecessor.removeClass(ClassName.SHOW_PREDECESSOR);
38
30
  }
39
- }).on('' + Event.SHOW, Selector.PANEL_BODY, function (event) {
31
+ }).on("" + Event.SHOW, Selector.PANEL_BODY, function (event) {
40
32
  var target = $(event.target).closest(Selector.PANEL);
41
-
42
33
  target.addClass(ClassName.SHOW);
43
-
44
34
  var predecessor = target.prev(Selector.PANEL);
45
35
 
46
36
  if (predecessor.length) {
47
37
  predecessor.addClass(ClassName.SHOW_PREDECESSOR);
48
38
  }
49
39
  });
50
- }(jQuery);
40
+ }($);
41
+ //# sourceMappingURL=expansion-panel.js.map
@@ -1,44 +1,39 @@
1
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2
-
3
1
  /*
4
2
  * floating label
5
3
  * when a user engages with the text input field,
6
4
  * the floating inline labels move to float above the field
7
5
  */
8
-
9
6
  var FloatingLabel = function ($) {
10
-
11
7
  // constants >>>
12
8
  var DATA_KEY = 'md.floatinglabel';
13
- var EVENT_KEY = '.' + DATA_KEY;
9
+ var EVENT_KEY = "." + DATA_KEY;
14
10
  var NAME = 'floatinglabel';
15
11
  var NO_CONFLICT = $.fn[NAME];
16
-
17
12
  var ClassName = {
18
13
  IS_FOCUSED: 'is-focused',
19
14
  HAS_VALUE: 'has-value'
20
15
  };
21
-
22
16
  var Event = {
23
- CHANGE: 'change' + EVENT_KEY,
24
- FOCUSIN: 'focusin' + EVENT_KEY,
25
- FOCUSOUT: 'focusout' + EVENT_KEY
17
+ CHANGE: "change" + EVENT_KEY,
18
+ FOCUSIN: "focusin" + EVENT_KEY,
19
+ FOCUSOUT: "focusout" + EVENT_KEY
26
20
  };
27
-
28
21
  var Selector = {
29
22
  DATA_PARENT: '.floating-label',
30
- DATA_TOGGLE: '.floating-label .form-control'
23
+ DATA_TOGGLE: '.floating-label .form-control' // <<< constants
24
+
31
25
  };
32
- // <<< constants
33
26
 
34
- var FloatingLabel = function () {
27
+ var FloatingLabel =
28
+ /*#__PURE__*/
29
+ function () {
35
30
  function FloatingLabel(element) {
36
- _classCallCheck(this, FloatingLabel);
37
-
38
31
  this._element = element;
39
32
  }
40
33
 
41
- FloatingLabel.prototype.change = function change(relatedTarget) {
34
+ var _proto = FloatingLabel.prototype;
35
+
36
+ _proto.change = function change(relatedTarget) {
42
37
  if ($(this._element).val() || $(this._element).is('select') && $('option:first-child', $(this._element)).html().replace(' ', '') !== '') {
43
38
  $(relatedTarget).addClass(ClassName.HAS_VALUE);
44
39
  } else {
@@ -46,17 +41,18 @@ var FloatingLabel = function ($) {
46
41
  }
47
42
  };
48
43
 
49
- FloatingLabel.prototype.focusin = function focusin(relatedTarget) {
44
+ _proto.focusin = function focusin(relatedTarget) {
50
45
  $(relatedTarget).addClass(ClassName.IS_FOCUSED);
51
46
  };
52
47
 
53
- FloatingLabel.prototype.focusout = function focusout(relatedTarget) {
48
+ _proto.focusout = function focusout(relatedTarget) {
54
49
  $(relatedTarget).removeClass(ClassName.IS_FOCUSED);
55
50
  };
56
51
 
57
52
  FloatingLabel._jQueryInterface = function _jQueryInterface(event) {
58
53
  return this.each(function () {
59
54
  var _event = event ? event : 'change';
55
+
60
56
  var data = $(this).data(DATA_KEY);
61
57
 
62
58
  if (!data) {
@@ -65,8 +61,8 @@ var FloatingLabel = function ($) {
65
61
  }
66
62
 
67
63
  if (typeof _event === 'string') {
68
- if (data[_event] === undefined) {
69
- throw new Error('No method named "' + _event + '"');
64
+ if (data[_event] === 'undefined') {
65
+ throw new Error("No method named \"" + _event + "\"");
70
66
  }
71
67
 
72
68
  data[_event]($(this).closest(Selector.DATA_PARENT));
@@ -77,16 +73,17 @@ var FloatingLabel = function ($) {
77
73
  return FloatingLabel;
78
74
  }();
79
75
 
80
- $(document).on(Event.CHANGE + ' ' + Event.FOCUSIN + ' ' + Event.FOCUSOUT, Selector.DATA_TOGGLE, function (event) {
76
+ $(document).on(Event.CHANGE + " " + Event.FOCUSIN + " " + Event.FOCUSOUT, Selector.DATA_TOGGLE, function (event) {
81
77
  FloatingLabel._jQueryInterface.call($(this), event.type);
82
78
  });
83
-
84
79
  $.fn[NAME] = FloatingLabel._jQueryInterface;
85
80
  $.fn[NAME].Constructor = FloatingLabel;
81
+
86
82
  $.fn[NAME].noConflict = function () {
87
83
  $.fn[NAME] = NO_CONFLICT;
88
84
  return FloatingLabel._jQueryInterface;
89
85
  };
90
86
 
91
87
  return FloatingLabel;
92
- }(jQuery);
88
+ }($);
89
+ //# sourceMappingURL=floating-label.js.map
@@ -1,69 +1,60 @@
1
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
1
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2
2
 
3
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4
-
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6
4
 
7
5
  /*
8
6
  * navigation drawer
9
7
  * based on bootstrap's (v4.0.0-beta) modal.js
10
8
  */
11
-
12
9
  var NavDrawer = function ($) {
13
-
14
10
  // constants >>>
15
11
  var DATA_API_KEY = '.data-api';
16
12
  var DATA_KEY = 'md.navdrawer';
17
13
  var ESCAPE_KEYCODE = 27;
18
- var EVENT_KEY = '.' + DATA_KEY;
14
+ var EVENT_KEY = "." + DATA_KEY;
19
15
  var NAME = 'navdrawer';
20
16
  var NO_CONFLICT = $.fn[NAME];
21
17
  var TRANSITION_DURATION = 292.5;
22
18
  var TRANSITION_DURATION_BACKDROP = 487.5;
23
-
24
19
  var ClassName = {
25
20
  BACKDROP: 'navdrawer-backdrop',
26
21
  OPEN: 'navdrawer-open',
27
22
  SHOW: 'show'
28
23
  };
29
-
30
24
  var Default = {
31
25
  breakpoint: 1280,
32
26
  keyboard: true,
33
27
  show: true,
34
28
  type: 'default'
35
29
  };
36
-
37
30
  var DefaultType = {
38
31
  keyboard: 'boolean',
39
32
  show: 'boolean',
40
33
  type: 'string'
41
34
  };
42
-
43
35
  var Event = {
44
- CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,
45
- CLICK_DISMISS: 'click.dismiss' + EVENT_KEY,
46
- FOCUSIN: 'focusin' + EVENT_KEY,
47
- HIDDEN: 'hidden' + EVENT_KEY,
48
- HIDE: 'hide' + EVENT_KEY,
49
- KEYDOWN_DISMISS: 'keydown.dismiss' + EVENT_KEY,
50
- MOUSEDOWN_DISMISS: 'mousedown.dismiss' + EVENT_KEY,
51
- MOUSEUP_DISMISS: 'mouseup.dismiss' + EVENT_KEY,
52
- SHOW: 'show' + EVENT_KEY,
53
- SHOWN: 'shown' + EVENT_KEY
36
+ CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
37
+ CLICK_DISMISS: "click.dismiss" + EVENT_KEY,
38
+ FOCUSIN: "focusin" + EVENT_KEY,
39
+ HIDDEN: "hidden" + EVENT_KEY,
40
+ HIDE: "hide" + EVENT_KEY,
41
+ KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY,
42
+ MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY,
43
+ MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY,
44
+ SHOW: "show" + EVENT_KEY,
45
+ SHOWN: "shown" + EVENT_KEY
54
46
  };
55
-
56
47
  var Selector = {
57
48
  CONTENT: '.navdrawer-content',
58
49
  DATA_DISMISS: '[data-dismiss="navdrawer"]',
59
- DATA_TOGGLE: '[data-toggle="navdrawer"]'
50
+ DATA_TOGGLE: '[data-toggle="navdrawer"]' // <<< constants
51
+
60
52
  };
61
- // <<< constants
62
53
 
63
- var NavDrawer = function () {
54
+ var NavDrawer =
55
+ /*#__PURE__*/
56
+ function () {
64
57
  function NavDrawer(element, config) {
65
- _classCallCheck(this, NavDrawer);
66
-
67
58
  this._backdrop = null;
68
59
  this._config = this._getConfig(config);
69
60
  this._content = $(element).find(Selector.CONTENT)[0];
@@ -72,14 +63,15 @@ var NavDrawer = function ($) {
72
63
  this._isShown = false;
73
64
  }
74
65
 
75
- NavDrawer.prototype.hide = function hide(event) {
66
+ var _proto = NavDrawer.prototype;
67
+
68
+ _proto.hide = function hide(event) {
76
69
  if (event) {
77
70
  event.preventDefault();
78
71
  }
79
72
 
80
- var hideClassName = ClassName.OPEN + '-' + this._config.type;
73
+ var hideClassName = ClassName.OPEN + "-" + this._config.type;
81
74
  var hideEvent = $.Event(Event.HIDE);
82
-
83
75
  $(this._element).trigger(hideEvent);
84
76
 
85
77
  if (!this._isShown || hideEvent.isDefaultPrevented()) {
@@ -87,22 +79,22 @@ var NavDrawer = function ($) {
87
79
  }
88
80
 
89
81
  this._isShown = false;
82
+
90
83
  this._setEscapeEvent();
84
+
91
85
  $(document).off(Event.FOCUSIN);
92
86
  $(this._content).off(Event.MOUSEDOWN_DISMISS);
93
-
94
87
  $(this._element).off(Event.CLICK_DISMISS).removeClass(ClassName.SHOW);
95
88
 
96
89
  this._hideNavdrawer(hideClassName);
97
90
  };
98
91
 
99
- NavDrawer.prototype.show = function show(relatedTarget) {
92
+ _proto.show = function show(relatedTarget) {
100
93
  var _this = this;
101
94
 
102
95
  var showEvent = $.Event(Event.SHOW, {
103
96
  relatedTarget: relatedTarget
104
97
  });
105
-
106
98
  $(this._element).trigger(showEvent);
107
99
 
108
100
  if (this._isShown || showEvent.isDefaultPrevented()) {
@@ -110,11 +102,12 @@ var NavDrawer = function ($) {
110
102
  }
111
103
 
112
104
  this._isShown = true;
113
- $(document.body).addClass(ClassName.OPEN + '-' + this._config.type);
105
+ $(document.body).addClass(ClassName.OPEN + "-" + this._config.type);
106
+
114
107
  this._setEscapeEvent();
115
- $(this._element).addClass(NAME + '-' + this._config.type);
116
- $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, $.proxy(this.hide, this));
117
108
 
109
+ $(this._element).addClass(NAME + "-" + this._config.type);
110
+ $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, $.proxy(this.hide, this));
118
111
  $(this._content).on(Event.MOUSEDOWN_DISMISS, function () {
119
112
  $(_this._element).one(Event.MOUSEUP_DISMISS, function (event) {
120
113
  if ($(event.target).is(_this._element)) {
@@ -124,14 +117,15 @@ var NavDrawer = function ($) {
124
117
  });
125
118
 
126
119
  this._showBackdrop();
120
+
127
121
  this._showElement(relatedTarget);
128
122
  };
129
123
 
130
- NavDrawer.prototype.toggle = function toggle(relatedTarget) {
124
+ _proto.toggle = function toggle(relatedTarget) {
131
125
  return this._isShown ? this.hide() : this.show(relatedTarget);
132
126
  };
133
127
 
134
- NavDrawer.prototype._enforceFocus = function _enforceFocus() {
128
+ _proto._enforceFocus = function _enforceFocus() {
135
129
  var _this2 = this;
136
130
 
137
131
  $(document).off(Event.FOCUSIN).on(Event.FOCUSIN, function (event) {
@@ -143,33 +137,33 @@ var NavDrawer = function ($) {
143
137
  });
144
138
  };
145
139
 
146
- NavDrawer.prototype._getConfig = function _getConfig(config) {
140
+ _proto._getConfig = function _getConfig(config) {
147
141
  config = $.extend({}, Default, config);
148
142
  Util.typeCheckConfig(NAME, config, DefaultType);
149
143
  return config;
150
144
  };
151
145
 
152
- NavDrawer.prototype._hideNavdrawer = function _hideNavdrawer(className) {
146
+ _proto._hideNavdrawer = function _hideNavdrawer(className) {
153
147
  var _this3 = this;
154
148
 
155
149
  this._showBackdrop(function () {
156
150
  $(document.body).removeClass(className);
157
151
 
158
152
  _this3._element.setAttribute('aria-hidden', 'true');
159
- _this3._element.style.display = 'none';
160
153
 
154
+ _this3._element.style.display = 'none';
161
155
  $(_this3._element).trigger(Event.HIDDEN);
162
156
  });
163
157
  };
164
158
 
165
- NavDrawer.prototype._removeBackdrop = function _removeBackdrop() {
159
+ _proto._removeBackdrop = function _removeBackdrop() {
166
160
  if (this._backdrop) {
167
161
  $(this._backdrop).remove();
168
162
  this._backdrop = null;
169
163
  }
170
164
  };
171
165
 
172
- NavDrawer.prototype._setEscapeEvent = function _setEscapeEvent() {
166
+ _proto._setEscapeEvent = function _setEscapeEvent() {
173
167
  var _this4 = this;
174
168
 
175
169
  if (this._isShown && this._config.keyboard) {
@@ -183,16 +177,14 @@ var NavDrawer = function ($) {
183
177
  }
184
178
  };
185
179
 
186
- NavDrawer.prototype._showBackdrop = function _showBackdrop(callback) {
180
+ _proto._showBackdrop = function _showBackdrop(callback) {
187
181
  var _this5 = this;
188
182
 
189
183
  var supportsTransition = Util.supportsTransitionEnd();
190
184
 
191
185
  if (this._isShown) {
192
186
  this._backdrop = document.createElement('div');
193
-
194
- $(this._backdrop).addClass(ClassName.BACKDROP).addClass(ClassName.BACKDROP + '-' + this._config.type).appendTo(document.body);
195
-
187
+ $(this._backdrop).addClass(ClassName.BACKDROP).addClass(ClassName.BACKDROP + "-" + this._config.type).appendTo(document.body);
196
188
  $(this._element).on(Event.CLICK_DISMISS, function (event) {
197
189
  if (_this5._ignoreBackdropClick) {
198
190
  _this5._ignoreBackdropClick = false;
@@ -243,7 +235,7 @@ var NavDrawer = function ($) {
243
235
  }
244
236
  };
245
237
 
246
- NavDrawer.prototype._showElement = function _showElement(relatedTarget) {
238
+ _proto._showElement = function _showElement(relatedTarget) {
247
239
  var _this6 = this;
248
240
 
249
241
  var supportsTransition = Util.supportsTransitionEnd();
@@ -253,6 +245,7 @@ var NavDrawer = function ($) {
253
245
  }
254
246
 
255
247
  this._element.removeAttribute('aria-hidden');
248
+
256
249
  this._element.style.display = 'block';
257
250
 
258
251
  if (supportsTransition) {
@@ -260,6 +253,7 @@ var NavDrawer = function ($) {
260
253
  }
261
254
 
262
255
  $(this._element).addClass(ClassName.SHOW);
256
+
263
257
  this._enforceFocus();
264
258
 
265
259
  var shownEvent = $.Event(Event.SHOWN, {
@@ -268,6 +262,7 @@ var NavDrawer = function ($) {
268
262
 
269
263
  var transitionComplete = function transitionComplete() {
270
264
  _this6._element.focus();
265
+
271
266
  $(_this6._element).trigger(shownEvent);
272
267
  };
273
268
 
@@ -280,7 +275,7 @@ var NavDrawer = function ($) {
280
275
 
281
276
  NavDrawer._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
282
277
  return this.each(function () {
283
- var _config = $.extend({}, NavDrawer.Default, $(this).data(), (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config);
278
+ var _config = $.extend({}, NavDrawer.Default, $(this).data(), typeof config === 'object' && config);
284
279
 
285
280
  var data = $(this).data(DATA_KEY);
286
281
 
@@ -290,8 +285,8 @@ var NavDrawer = function ($) {
290
285
  }
291
286
 
292
287
  if (typeof config === 'string') {
293
- if (data[config] === undefined) {
294
- throw new Error('No method named "' + config + '"');
288
+ if (data[config] === 'undefined') {
289
+ throw new Error("No method named \"" + config + "\"");
295
290
  }
296
291
 
297
292
  data[config](relatedTarget);
@@ -302,7 +297,7 @@ var NavDrawer = function ($) {
302
297
  };
303
298
 
304
299
  _createClass(NavDrawer, null, [{
305
- key: 'Default',
300
+ key: "Default",
306
301
  get: function get() {
307
302
  return Default;
308
303
  }
@@ -315,7 +310,7 @@ var NavDrawer = function ($) {
315
310
  var _this7 = this;
316
311
 
317
312
  var selector = Util.getSelectorFromElement(this);
318
- var target = void 0;
313
+ var target;
319
314
 
320
315
  if (selector) {
321
316
  target = $(selector)[0];
@@ -341,13 +336,14 @@ var NavDrawer = function ($) {
341
336
 
342
337
  NavDrawer._jQueryInterface.call($(target), config, this);
343
338
  });
344
-
345
339
  $.fn[NAME] = NavDrawer._jQueryInterface;
346
340
  $.fn[NAME].Constructor = NavDrawer;
341
+
347
342
  $.fn[NAME].noConflict = function () {
348
343
  $.fn[NAME] = NO_CONFLICT;
349
344
  return NavDrawer._jQueryInterface;
350
345
  };
351
346
 
352
347
  return NavDrawer;
353
- }(jQuery);
348
+ }($);
349
+ //# sourceMappingURL=nav-drawer.js.map