104 lines
549 KiB
JavaScript
104 lines
549 KiB
JavaScript
/*!
|
||
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2016
|
||
* @version 1.3.4
|
||
*
|
||
* Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format.
|
||
* @see http://php.net/manual/en/function.date.php
|
||
*
|
||
* For more JQuery plugins visit http://plugins.krajee.com
|
||
* For more Yii related demos visit http://demos.krajee.com
|
||
*/
|
||
var DateFormatter;(function(){(function(){(function(){this.Turbolinks={supported:null!=window.history.pushState&&null!=window.requestAnimationFrame&&null!=window.addEventListener,visit:function(e,n){return t.controller.visit(e,n)},clearCache:function(){return t.controller.clearCache()},setProgressBarDelay:function(e){return t.controller.setProgressBarDelay(e)}}}).call(this)}).call(this);var t=this.Turbolinks;(function(){(function(){var e,n,i,o=[].slice;t.copyObject=function(t){var e,n,i;for(e in n={},t)i=t[e],n[e]=i;return n},t.closest=function(t,n){return e.call(t,n)},e=function(){var t;return null!=(t=document.documentElement.closest)?t:function(t){var e;for(e=this;e;){if(e.nodeType===Node.ELEMENT_NODE&&n.call(e,t))return e;e=e.parentNode}}}(),t.defer=function(t){return setTimeout(t,1)},t.throttle=function(t){var e;return e=null,function(){var n;return n=1<=arguments.length?o.call(arguments,0):[],null!=e?e:e=requestAnimationFrame(function(i){return function(){return e=null,t.apply(i,n)}}(this))}},t.dispatch=function(t,e){var n,o,r,a,s,l;return l=(s=null!=e?e:{}).target,n=s.cancelable,o=s.data,(r=document.createEvent("Events")).initEvent(t,!0,!0===n),r.data=null!=o?o:{},r.cancelable&&!i&&(a=r.preventDefault,r.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),a.call(this)}),(null!=l?l:document).dispatchEvent(r),r},i=function(){var t;return(t=document.createEvent("Events")).initEvent("test",!0,!0),t.preventDefault(),t.defaultPrevented}(),t.match=function(t,e){return n.call(t,e)},n=function(){var t,e,n,i;return null!=(e=null!=(n=null!=(i=(t=document.documentElement).matchesSelector)?i:t.webkitMatchesSelector)?n:t.msMatchesSelector)?e:t.mozMatchesSelector}(),t.uuid=function(){var t,e,n;for(n="",t=e=1;36>=e;t=++e)n+=9===t||14===t||19===t||24===t?"-":15===t?"4":20===t?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return n}}).call(this),function(){t.Location=function(){function t(t){var e,n;null==t&&(t=""),(n=document.createElement("a")).href=t.toString(),this.absoluteURL=n.href,2>(e=n.hash.length)?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-e),this.anchor=n.hash.slice(1))}var e,n,i,o;return t.wrap=function(t){return t instanceof this?t:new this(t)},t.prototype.getOrigin=function(){return this.absoluteURL.split("/",3).join("/")},t.prototype.getPath=function(){var t,e;return null!=(t=null!=(e=this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/))?e[1]:void 0)?t:"/"},t.prototype.getPathComponents=function(){return this.getPath().split("/").slice(1)},t.prototype.getLastPathComponent=function(){return this.getPathComponents().slice(-1)[0]},t.prototype.getExtension=function(){var t,e;return null!=(t=null!=(e=this.getLastPathComponent().match(/\.[^.]*$/))?e[0]:void 0)?t:""},t.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},t.prototype.isPrefixedBy=function(t){var e;return e=n(t),this.isEqualTo(t)||o(this.absoluteURL,e)},t.prototype.isEqualTo=function(t){return this.absoluteURL===(null!=t?t.absoluteURL:void 0)},t.prototype.toCacheKey=function(){return this.requestURL},t.prototype.toJSON=function(){return this.absoluteURL},t.prototype.toString=function(){return this.absoluteURL},t.prototype.valueOf=function(){return this.absoluteURL},n=function(t){return e(t.getOrigin()+t.getPath())},e=function(t){return i(t,"/")?t:t+"/"},o=function(t,e){return t.slice(0,e.length)===e},i=function(t,e){return t.slice(-e.length)===e},t}()}.call(this),function(){var e=function(t,e){return function(){return t.apply(e,arguments)}};t.HttpRequest=function(){function n(n,i,o){this.delegate=n,this.requestCanceled=e(this.requestCanceled,this),this.requestTimedOut=e(this.requestTimedOut,this),this.requestFailed=e(this.requestFailed,this),this.requestLoaded=e(this.requestLoaded,this),this.requestProgressed=e(this.requestProgressed,this),this.url=t.Location.wrap(i).requestURL,this.referrer=t.Location.wrap(o).absoluteURL,this.createXHR()}return n.NETWORK_FAILURE=0,n.TIMEOUT_FAILURE=-1,n.timeout=60,n.prototype.send=function(){var t;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,"function"==typeof(t=this.delegate).requestStarted?t.requestStarted():void 0):void 0},n.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},n.prototype.requestProgressed=function(t){return t.lengthComputable?this.setProgress(t.loaded/t.total):void 0},n.prototype.requestLoaded=function(){return this.endRequest(function(t){return function(){var e;return 200<=(e=t.xhr.status)&&300>e?t.delegate.requestCompletedWithResponse(t.xhr.responseText,t.xhr.getResponseHeader("Turbolinks-Location")):(t.failed=!0,t.delegate.requestFailedWithStatusCode(t.xhr.status,t.xhr.responseText))}}(this))},n.prototype.requestFailed=function(){return this.endRequest(function(t){return function(){return t.failed=!0,t.delegate.requestFailedWithStatusCode(t.constructor.NETWORK_FAILURE)}}(this))},n.prototype.requestTimedOut=function(){return this.endRequest(function(t){return function(){return t.failed=!0,t.delegate.requestFailedWithStatusCode(t.constructor.TIMEOUT_FAILURE)}}(this))},n.prototype.requestCanceled=function(){return this.endRequest()},n.prototype.notifyApplicationBeforeRequestStart=function(){return t.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},n.prototype.notifyApplicationAfterRequestEnd=function(){return t.dispatch("turbolinks:request-end",{data:{url:this.url,xhr:this.xhr}})},n.prototype.createXHR=function(){return this.xhr=new XMLHttpRequest,this.xhr.open("GET",this.url,!0),this.xhr.timeout=1e3*this.constructor.timeout,this.xhr.setRequestHeader("Accept","text/html, application/xhtml+xml"),this.xhr.setRequestHeader("Turbolinks-Referrer",this.referrer),this.xhr.onprogress=this.requestProgressed,this.xhr.onload=this.requestLoaded,this.xhr.onerror=this.requestFailed,this.xhr.ontimeout=this.requestTimedOut,this.xhr.onabort=this.requestCanceled},n.prototype.endRequest=function(t){return this.xhr?(this.notifyApplicationAfterRequestEnd(),null!=t&&t.call(this),this.destroy()):void 0},n.prototype.setProgress=function(t){var e;return this.progress=t,"function"==typeof(e=this.delegate).requestProgressed?e.requestProgressed(this.progress):void 0},n.prototype.destroy=function(){var t;return this.setProgress(1),"function"==typeof(t=this.delegate).requestFinished&&t.requestFinished(),this.delegate=null,this.xhr=null},n}()}.call(this),function(){t.ProgressBar=function(){function t(){this.trickle=function(t,e){return function(){return t.apply(e,arguments)}}(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var e;return e=300,t.defaultCSS=".turbolinks-progress-bar {\n position: fixed;\n display: block;\n top: 0;\n left: 0;\n height: 3px;\n background: #0076ff;\n z-index: 9999;\n transition: width 300ms ease-out, opacity 150ms 150ms ease-in;\n transform: translate3d(0, 0, 0);\n}",t.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},t.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement(function(t){return function(){return t.uninstallProgressElement(),t.stopTrickling(),t.visible=!1,t.hiding=!1}}(this))):void 0},t.prototype.setValue=function(t){return this.value=t,this.refresh()},t.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},t.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},t.prototype.fadeProgressElement=function(t){return this.progressElement.style.opacity=0,setTimeout(t,450)},t.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement):void 0},t.prototype.startTrickling=function(){return null!=this.trickleInterval?this.trickleInterval:this.trickleInterval=setInterval(this.trickle,e)},t.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},t.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},t.prototype.refresh=function(){return requestAnimationFrame(function(t){return function(){return t.progressElement.style.width=10+90*t.value+"%"}}(this))},t.prototype.createStylesheetElement=function(){var t;return(t=document.createElement("style")).type="text/css",t.textContent=this.constructor.defaultCSS,t},t.prototype.createProgressElement=function(){var t;return(t=document.createElement("div")).className="turbolinks-progress-bar",t},t}()}.call(this),function(){t.BrowserAdapter=function(){function e(e){this.controller=e,this.showProgressBar=function(t,e){return function(){return t.apply(e,arguments)}}(this.showProgressBar,this),this.progressBar=new t.ProgressBar}var n,i,o;return o=t.HttpRequest,n=o.NETWORK_FAILURE,i=o.TIMEOUT_FAILURE,e.prototype.visitProposedToLocationWithAction=function(t,e){return this.controller.startVisitToLocationWithAction(t,e)},e.prototype.visitStarted=function(t){return t.issueRequest(),t.changeHistory(),t.loadCachedSnapshot()},e.prototype.visitRequestStarted=function(t){return this.progressBar.setValue(0),t.hasCachedSnapshot()||"restore"!==t.action?this.showProgressBarAfterDelay():this.showProgressBar()},e.prototype.visitRequestProgressed=function(t){return this.progressBar.setValue(t.progress)},e.prototype.visitRequestCompleted=function(t){return t.loadResponse()},e.prototype.visitRequestFailedWithStatusCode=function(t,e){switch(e){case n:case i:return this.reload();default:return t.loadResponse()}},e.prototype.visitRequestFinished=function(t){return this.hideProgressBar()},e.prototype.visitCompleted=function(t){return t.followRedirect()},e.prototype.pageInvalidated=function(){return this.reload()},e.prototype.showProgressBarAfterDelay=function(){return this.progressBarTimeout=setTimeout(this.showProgressBar,this.controller.progressBarDelay)},e.prototype.showProgressBar=function(){return this.progressBar.show()},e.prototype.hideProgressBar=function(){return this.progressBar.hide(),clearTimeout(this.progressBarTimeout)},e.prototype.reload=function(){return window.location.reload()},e}()}.call(this),function(){var e=function(t,e){return function(){return t.apply(e,arguments)}};t.History=function(){function n(t){this.delegate=t,this.onPageLoad=e(this.onPageLoad,this),this.onPopState=e(this.onPopState,this)}return n.prototype.start=function(){return this.started?void 0:(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0)},n.prototype.stop=function(){return this.started?(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},n.prototype.push=function(e,n){return e=t.Location.wrap(e),this.update("push",e,n)},n.prototype.replace=function(e,n){return e=t.Location.wrap(e),this.update("replace",e,n)},n.prototype.onPopState=function(e){var n,i,o,r;return this.shouldHandlePopState()&&(r=null!=(i=e.state)?i.turbolinks:void 0)?(n=t.Location.wrap(window.location),o=r.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(n,o)):void 0},n.prototype.onPageLoad=function(e){return t.defer(function(t){return function(){return t.pageLoaded=!0}}(this))},n.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},n.prototype.pageIsLoaded=function(){return this.pageLoaded||"complete"===document.readyState},n.prototype.update=function(t,e,n){var i;return i={turbolinks:{restorationIdentifier:n}},history[t+"State"](i,null,e)},n}()}.call(this),function(){t.HeadDetails=function(){function t(t){var e,n,i,a,s;for(this.elements={},n=0,a=t.length;a>n;n++)(s=t[n]).nodeType===Node.ELEMENT_NODE&&(i=s.outerHTML,(null!=(e=this.elements)[i]?e[i]:e[i]={type:r(s),tracked:o(s),elements:[]}).elements.push(s))}var e,n,i,o,r;return t.fromHeadElement=function(t){var e;return new this(null!=(e=null!=t?t.childNodes:void 0)?e:[])},t.prototype.hasElementWithKey=function(t){return t in this.elements},t.prototype.getTrackedElementSignature=function(){var t;return function(){var e,n;for(t in n=[],e=this.elements)e[t].tracked&&n.push(t);return n}.call(this).join("")},t.prototype.getScriptElementsNotInDetails=function(t){return this.getElementsMatchingTypeNotInDetails("script",t)},t.prototype.getStylesheetElementsNotInDetails=function(t){return this.getElementsMatchingTypeNotInDetails("stylesheet",t)},t.prototype.getElementsMatchingTypeNotInDetails=function(t,e){var n,i,o,r,a,s;for(i in a=[],o=this.elements)s=(r=o[i]).type,n=r.elements,s!==t||e.hasElementWithKey(i)||a.push(n[0]);return a},t.prototype.getProvisionalElements=function(){var t,e,n,i,o,r,a;for(e in n=[],i=this.elements)a=(o=i[e]).type,r=o.tracked,t=o.elements,null!=a||r?t.length>1&&n.push.apply(n,t.slice(1)):n.push.apply(n,t);return n},t.prototype.getMetaValue=function(t){var e;return null!=(e=this.findMetaElementByName(t))?e.getAttribute("content"):void 0},t.prototype.findMetaElementByName=function(t){var n,i,o,r;for(o in n=void 0,r=this.elements)i=r[o].elements,e(i[0],t)&&(n=i[0]);return n},r=function(t){return n(t)?"script":i(t)?"stylesheet":void 0},o=function(t){return"reload"===t.getAttribute("data-turbolinks-track")},n=function(t){return"script"===t.tagName.toLowerCase()},i=function(t){var e;return"style"===(e=t.tagName.toLowerCase())||"link"===e&&"stylesheet"===t.getAttribute("rel")},e=function(t,e){return"meta"===t.tagName.toLowerCase()&&t.getAttribute("name")===e},t}()}.call(this),function(){t.Snapshot=function(){function e(t,e){this.headDetails=t,this.bodyElement=e}return e.wrap=function(t){return t instanceof this?t:"string"==typeof t?this.fromHTMLString(t):this.fromHTMLElement(t)},e.fromHTMLString=function(t){var e;return(e=document.createElement("html")).innerHTML=t,this.fromHTMLElement(e)},e.fromHTMLElement=function(e){var n,i,o;return i=e.querySelector("head"),n=null!=(o=e.querySelector("body"))?o:document.createElement("body"),new this(t.HeadDetails.fromHeadElement(i),n)},e.prototype.clone=function(){return new this.constructor(this.headDetails,this.bodyElement.cloneNode(!0))},e.prototype.getRootLocation=function(){var e,n;return n=null!=(e=this.getSetting("root"))?e:"/",new t.Location(n)},e.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},e.prototype.getElementForAnchor=function(t){try{return this.bodyElement.querySelector("[id='"+t+"'], a[name='"+t+"']")}catch(t){}},e.prototype.getPermanentElements=function(){return this.bodyElement.querySelectorAll("[id][data-turbolinks-permanent]")},e.prototype.getPermanentElementById=function(t){return this.bodyElement.querySelector("#"+t+"[data-turbolinks-permanent]")},e.prototype.getPermanentElementsPresentInSnapshot=function(t){var e,n,i,o,r;for(r=[],n=0,i=(o=this.getPermanentElements()).length;i>n;n++)e=o[n],t.getPermanentElementById(e.id)&&r.push(e);return r},e.prototype.findFirstAutofocusableElement=function(){return this.bodyElement.querySelector("[autofocus]")},e.prototype.hasAnchor=function(t){return null!=this.getElementForAnchor(t)},e.prototype.isPreviewable=function(){return"no-preview"!==this.getCacheControlValue()},e.prototype.isCacheable=function(){return"no-cache"!==this.getCacheControlValue()},e.prototype.isVisitable=function(){return"reload"!==this.getSetting("visit-control")},e.prototype.getSetting=function(t){return this.headDetails.getMetaValue("turbolinks-"+t)},e}()}.call(this),function(){var e=[].slice;t.Renderer=function(){function t(){}var n;return t.render=function(){var t,n,i;return n=arguments[0],t=arguments[1],(i=function(t,e,n){n.prototype=t.prototype;var i=new n,o=t.apply(i,e);return Object(o)===o?o:i}(this,3<=arguments.length?e.call(arguments,2):[],(function(){}))).delegate=n,i.render(t),i},t.prototype.renderView=function(t){return this.delegate.viewWillRender(this.newBody),t(),this.delegate.viewRendered(this.newBody)},t.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},t.prototype.createScriptElement=function(t){var e;return"false"===t.getAttribute("data-turbolinks-eval")?t:((e=document.createElement("script")).textContent=t.textContent,e.async=!1,n(e,t),e)},n=function(t,e){var n,i,o,r,a,s,l;for(s=[],n=0,i=(r=e.attributes).length;i>n;n++)o=(a=r[n]).name,l=a.value,s.push(t.setAttribute(o,l));return s},t}()}.call(this),function(){var e,n,i=function(t,e){function n(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;t.SnapshotRenderer=function(t){function o(t,e,n){this.currentSnapshot=t,this.newSnapshot=e,this.isPreview=n,this.currentHeadDetails=this.currentSnapshot.headDetails,this.newHeadDetails=this.newSnapshot.headDetails,this.currentBody=this.currentSnapshot.bodyElement,this.newBody=this.newSnapshot.bodyElement}return i(o,t),o.prototype.render=function(t){return this.shouldRender()?(this.mergeHead(),this.renderView(function(e){return function(){return e.replaceBody(),e.isPreview||e.focusFirstAutofocusableElement(),t()}}(this))):this.invalidateView()},o.prototype.mergeHead=function(){return this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()},o.prototype.replaceBody=function(){var t;return t=this.relocateCurrentBodyPermanentElements(),this.activateNewBodyScriptElements(),this.assignNewBody(),this.replacePlaceholderElementsWithClonedPermanentElements(t)},o.prototype.shouldRender=function(){return this.newSnapshot.isVisitable()&&this.trackedElementsAreIdentical()},o.prototype.trackedElementsAreIdentical=function(){return this.currentHeadDetails.getTrackedElementSignature()===this.newHeadDetails.getTrackedElementSignature()},o.prototype.copyNewHeadStylesheetElements=function(){var t,e,n,i,o;for(o=[],e=0,n=(i=this.getNewHeadStylesheetElements()).length;n>e;e++)t=i[e],o.push(document.head.appendChild(t));return o},o.prototype.copyNewHeadScriptElements=function(){var t,e,n,i,o;for(o=[],e=0,n=(i=this.getNewHeadScriptElements()).length;n>e;e++)t=i[e],o.push(document.head.appendChild(this.createScriptElement(t)));return o},o.prototype.removeCurrentHeadProvisionalElements=function(){var t,e,n,i,o;for(o=[],e=0,n=(i=this.getCurrentHeadProvisionalElements()).length;n>e;e++)t=i[e],o.push(document.head.removeChild(t));return o},o.prototype.copyNewHeadProvisionalElements=function(){var t,e,n,i,o;for(o=[],e=0,n=(i=this.getNewHeadProvisionalElements()).length;n>e;e++)t=i[e],o.push(document.head.appendChild(t));return o},o.prototype.relocateCurrentBodyPermanentElements=function(){var t,i,o,r,a,s,l;for(l=[],t=0,i=(s=this.getCurrentBodyPermanentElements()).length;i>t;t++)r=s[t],a=e(r),o=this.newSnapshot.getPermanentElementById(r.id),n(r,a.element),n(o,r),l.push(a);return l},o.prototype.replacePlaceholderElementsWithClonedPermanentElements=function(t){var e,i,o,r,a,s;for(s=[],o=0,r=t.length;r>o;o++)i=(a=t[o]).element,e=a.permanentElement.cloneNode(!0),s.push(n(i,e));return s},o.prototype.activateNewBodyScriptElements=function(){var t,e,i,o,r,a;for(a=[],e=0,o=(r=this.getNewBodyScriptElements()).length;o>e;e++)i=r[e],t=this.createScriptElement(i),a.push(n(i,t));return a},o.prototype.assignNewBody=function(){return document.body=this.newBody},o.prototype.focusFirstAutofocusableElement=function(){var t;return null!=(t=this.newSnapshot.findFirstAutofocusableElement())?t.focus():void 0},o.prototype.getNewHeadStylesheetElements=function(){return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails)},o.prototype.getNewHeadScriptElements=function(){return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails)},o.prototype.getCurrentHeadProvisionalElements=function(){return this.currentHeadDetails.getProvisionalElements()},o.prototype.getNewHeadProvisionalElements=function(){return this.newHeadDetails.getProvisionalElements()},o.prototype.getCurrentBodyPermanentElements=function(){return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot)},o.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll("script")},o}(t.Renderer),e=function(t){var e;return(e=document.createElement("meta")).setAttribute("name","turbolinks-permanent-placeholder"),e.setAttribute("content",t.id),{element:e,permanentElement:t}},n=function(t,e){var n;return(n=t.parentNode)?n.replaceChild(e,t):void 0}}.call(this),function(){var e=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&&(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;t.ErrorRenderer=function(t){function n(t){var e;(e=document.createElement("html")).innerHTML=t,this.newHead=e.querySelector("head"),this.newBody=e.querySelector("body")}return e(n,t),n.prototype.render=function(t){return this.renderView(function(e){return function(){return e.replaceHeadAndBody(),e.activateBodyScriptElements(),t()}}(this))},n.prototype.replaceHeadAndBody=function(){var t,e;return e=document.head,t=document.body,e.parentNode.replaceChild(this.newHead,e),t.parentNode.replaceChild(this.newBody,t)},n.prototype.activateBodyScriptElements=function(){var t,e,n,i,o,r;for(r=[],e=0,n=(i=this.getScriptElements()).length;n>e;e++)o=i[e],t=this.createScriptElement(o),r.push(o.parentNode.replaceChild(t,o));return r},n.prototype.getScriptElements=function(){return document.documentElement.querySelectorAll("script")},n}(t.Renderer)}.call(this),function(){t.View=function(){function e(t){this.delegate=t,this.htmlElement=document.documentElement}return e.prototype.getRootLocation=function(){return this.getSnapshot().getRootLocation()},e.prototype.getElementForAnchor=function(t){return this.getSnapshot().getElementForAnchor(t)},e.prototype.getSnapshot=function(){return t.Snapshot.fromHTMLElement(this.htmlElement)},e.prototype.render=function(t,e){var n,i,o;return o=t.snapshot,n=t.error,i=t.isPreview,this.markAsPreview(i),null!=o?this.renderSnapshot(o,i,e):this.renderError(n,e)},e.prototype.markAsPreview=function(t){return t?this.htmlElement.setAttribute("data-turbolinks-preview",""):this.htmlElement.removeAttribute("data-turbolinks-preview")},e.prototype.renderSnapshot=function(e,n,i){return t.SnapshotRenderer.render(this.delegate,i,this.getSnapshot(),t.Snapshot.wrap(e),n)},e.prototype.renderError=function(e,n){return t.ErrorRenderer.render(this.delegate,n,e)},e}()}.call(this),function(){t.ScrollManager=function(){function e(e){this.delegate=e,this.onScroll=function(t,e){return function(){return t.apply(e,arguments)}}(this.onScroll,this),this.onScroll=t.throttle(this.onScroll)}return e.prototype.start=function(){return this.started?void 0:(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)},e.prototype.stop=function(){return this.started?(removeEventListener("scroll",this.onScroll,!1),this.started=!1):void 0},e.prototype.scrollToElement=function(t){return t.scrollIntoView()},e.prototype.scrollToPosition=function(t){var e,n;return e=t.x,n=t.y,window.scrollTo(e,n)},e.prototype.onScroll=function(t){return this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},e.prototype.updatePosition=function(t){var e;return this.position=t,null!=(e=this.delegate)?e.scrollPositionChanged(this.position):void 0},e}()}.call(this),function(){t.SnapshotCache=function(){function e(t){this.size=t,this.keys=[],this.snapshots={}}var n;return e.prototype.has=function(t){return n(t)in this.snapshots},e.prototype.get=function(t){var e;if(this.has(t))return e=this.read(t),this.touch(t),e},e.prototype.put=function(t,e){return this.write(t,e),this.touch(t),e},e.prototype.read=function(t){var e;return e=n(t),this.snapshots[e]},e.prototype.write=function(t,e){var i;return i=n(t),this.snapshots[i]=e},e.prototype.touch=function(t){var e,i;return i=n(t),(e=this.keys.indexOf(i))>-1&&this.keys.splice(e,1),this.keys.unshift(i),this.trim()},e.prototype.trim=function(){var t,e,n,i,o;for(o=[],t=0,n=(i=this.keys.splice(this.size)).length;n>t;t++)e=i[t],o.push(delete this.snapshots[e]);return o},n=function(e){return t.Location.wrap(e).toCacheKey()},e}()}.call(this),function(){t.Visit=function(){function e(e,n,i){this.controller=e,this.action=i,this.performScroll=function(t,e){return function(){return t.apply(e,arguments)}}(this.performScroll,this),this.identifier=t.uuid(),this.location=t.Location.wrap(n),this.adapter=this.controller.adapter,this.state="initialized",this.timingMetrics={}}var n;return e.prototype.start=function(){return"initialized"===this.state?(this.recordTimingMetric("visitStart"),this.state="started",this.adapter.visitStarted(this)):void 0},e.prototype.cancel=function(){var t;return"started"===this.state?(null!=(t=this.request)&&t.cancel(),this.cancelRender(),this.state="canceled"):void 0},e.prototype.complete=function(){var t;return"started"===this.state?(this.recordTimingMetric("visitEnd"),this.state="completed","function"==typeof(t=this.adapter).visitCompleted&&t.visitCompleted(this),this.controller.visitCompleted(this)):void 0},e.prototype.fail=function(){var t;return"started"===this.state?(this.state="failed","function"==typeof(t=this.adapter).visitFailed?t.visitFailed(this):void 0):void 0},e.prototype.changeHistory=function(){var t,e;return this.historyChanged?void 0:(t=this.location.isEqualTo(this.referrer)?"replace":this.action,e=n(t),this.controller[e](this.location,this.restorationIdentifier),this.historyChanged=!0)},e.prototype.issueRequest=function(){return this.shouldIssueRequest()&&null==this.request?(this.progress=0,this.request=new t.HttpRequest(this,this.location,this.referrer),this.request.send()):void 0},e.prototype.getCachedSnapshot=function(){var t;return!(t=this.controller.getCachedSnapshotForLocation(this.location))||null!=this.location.anchor&&!t.hasAnchor(this.location.anchor)||"restore"!==this.action&&!t.isPreviewable()?void 0:t},e.prototype.hasCachedSnapshot=function(){return null!=this.getCachedSnapshot()},e.prototype.loadCachedSnapshot=function(){var t,e;return(e=this.getCachedSnapshot())?(t=this.shouldIssueRequest(),this.render((function(){var n;return this.cacheSnapshot(),this.controller.render({snapshot:e,isPreview:t},this.performScroll),"function"==typeof(n=this.adapter).visitRendered&&n.visitRendered(this),t?void 0:this.complete()}))):void 0},e.prototype.loadResponse=function(){return null!=this.response?this.render((function(){var t,e;return this.cacheSnapshot(),this.request.failed?(this.controller.render({error:this.response},this.performScroll),"function"==typeof(t=this.adapter).visitRendered&&t.visitRendered(this),this.fail()):(this.controller.render({snapshot:this.response},this.performScroll),"function"==typeof(e=this.adapter).visitRendered&&e.visitRendered(this),this.complete())})):void 0},e.prototype.followRedirect=function(){return this.redirectedToLocation&&!this.followedRedirect?(this.location=this.redirectedToLocation,this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation,this.restorationIdentifier),this.followedRedirect=!0):void 0},e.prototype.requestStarted=function(){var t;return this.recordTimingMetric("requestStart"),"function"==typeof(t=this.adapter).visitRequestStarted?t.visitRequestStarted(this):void 0},e.prototype.requestProgressed=function(t){var e;return this.progress=t,"function"==typeof(e=this.adapter).visitRequestProgressed?e.visitRequestProgressed(this):void 0},e.prototype.requestCompletedWithResponse=function(e,n){return this.response=e,null!=n&&(this.redirectedToLocation=t.Location.wrap(n)),this.adapter.visitRequestCompleted(this)},e.prototype.requestFailedWithStatusCode=function(t,e){return this.response=e,this.adapter.visitRequestFailedWithStatusCode(this,t)},e.prototype.requestFinished=function(){var t;return this.recordTimingMetric("requestEnd"),"function"==typeof(t=this.adapter).visitRequestFinished?t.visitRequestFinished(this):void 0},e.prototype.performScroll=function(){return this.scrolled?void 0:("restore"===this.action?this.scrollToRestoredPosition()||this.scrollToTop():this.scrollToAnchor()||this.scrollToTop(),this.scrolled=!0)},e.prototype.scrollToRestoredPosition=function(){var t,e;return null!=(t=null!=(e=this.restorationData)?e.scrollPosition:void 0)?(this.controller.scrollToPosition(t),!0):void 0},e.prototype.scrollToAnchor=function(){return null!=this.location.anchor?(this.controller.scrollToAnchor(this.location.anchor),!0):void 0},e.prototype.scrollToTop=function(){return this.controller.scrollToPosition({x:0,y:0})},e.prototype.recordTimingMetric=function(t){var e;return null!=(e=this.timingMetrics)[t]?e[t]:e[t]=(new Date).getTime()},e.prototype.getTimingMetrics=function(){return t.copyObject(this.timingMetrics)},n=function(t){switch(t){case"replace":return"replaceHistoryWithLocationAndRestorationIdentifier";case"advance":case"restore":return"pushHistoryWithLocationAndRestorationIdentifier"}},e.prototype.shouldIssueRequest=function(){return"restore"!==this.action||!this.hasCachedSnapshot()},e.prototype.cacheSnapshot=function(){return this.snapshotCached?void 0:(this.controller.cacheSnapshot(),this.snapshotCached=!0)},e.prototype.render=function(t){return this.cancelRender(),this.frame=requestAnimationFrame(function(e){return function(){return e.frame=null,t.call(e)}}(this))},e.prototype.cancelRender=function(){return this.frame?cancelAnimationFrame(this.frame):void 0},e}()}.call(this),function(){var e=function(t,e){return function(){return t.apply(e,arguments)}};t.Controller=function(){function n(){this.clickBubbled=e(this.clickBubbled,this),this.clickCaptured=e(this.clickCaptured,this),this.pageLoaded=e(this.pageLoaded,this),this.history=new t.History(this),this.view=new t.View(this),this.scrollManager=new t.ScrollManager(this),this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}return n.prototype.start=function(){return t.supported&&!this.started?(addEventListener("click",this.clickCaptured,!0),addEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.start(),this.startHistory(),this.started=!0,this.enabled=!0):void 0},n.prototype.disable=function(){return this.enabled=!1},n.prototype.stop=function(){return this.started?(removeEventListener("click",this.clickCaptured,!0),removeEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.stop(),this.stopHistory(),this.started=!1):void 0},n.prototype.clearCache=function(){return this.cache=new t.SnapshotCache(10)},n.prototype.visit=function(e,n){var i,o;return null==n&&(n={}),e=t.Location.wrap(e),this.applicationAllowsVisitingLocation(e)?this.locationIsVisitable(e)?(i=null!=(o=n.action)?o:"advance",this.adapter.visitProposedToLocationWithAction(e,i)):window.location=e:void 0},n.prototype.startVisitToLocationWithAction=function(e,n,i){var o;return t.supported?(o=this.getRestorationDataForIdentifier(i),this.startVisit(e,n,{restorationData:o})):window.location=e},n.prototype.setProgressBarDelay=function(t){return this.progressBarDelay=t},n.prototype.startHistory=function(){return this.location=t.Location.wrap(window.location),this.restorationIdentifier=t.uuid(),this.history.start(),this.history.replace(this.location,this.restorationIdentifier)},n.prototype.stopHistory=function(){return this.history.stop()},n.prototype.pushHistoryWithLocationAndRestorationIdentifier=function(e,n){return this.restorationIdentifier=n,this.location=t.Location.wrap(e),this.history.push(this.location,this.restorationIdentifier)},n.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(e,n){return this.restorationIdentifier=n,this.location=t.Location.wrap(e),this.history.replace(this.location,this.restorationIdentifier)},n.prototype.historyPoppedToLocationWithRestorationIdentifier=function(e,n){var i;return this.restorationIdentifier=n,this.enabled?(i=this.getRestorationDataForIdentifier(this.restorationIdentifier),this.startVisit(e,"restore",{restorationIdentifier:this.restorationIdentifier,restorationData:i,historyChanged:!0}),this.location=t.Location.wrap(e)):this.adapter.pageInvalidated()},n.prototype.getCachedSnapshotForLocation=function(t){var e;return null!=(e=this.cache.get(t))?e.clone():void 0},n.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable()},n.prototype.cacheSnapshot=function(){var e,n;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),n=this.view.getSnapshot(),e=this.lastRenderedLocation,t.defer(function(t){return function(){return t.cache.put(e,n.clone())}}(this))):void 0},n.prototype.scrollToAnchor=function(t){var e;return(e=this.view.getElementForAnchor(t))?this.scrollToElement(e):this.scrollToPosition({x:0,y:0})},n.prototype.scrollToElement=function(t){return this.scrollManager.scrollToElement(t)},n.prototype.scrollToPosition=function(t){return this.scrollManager.scrollToPosition(t)},n.prototype.scrollPositionChanged=function(t){return this.getCurrentRestorationData().scrollPosition=t},n.prototype.render=function(t,e){return this.view.render(t,e)},n.prototype.viewInvalidated=function(){return this.adapter.pageInvalidated()},n.prototype.viewWillRender=function(t){return this.notifyApplicationBeforeRender(t)},n.prototype.viewRendered=function(){return this.lastRenderedLocation=this.currentVisit.location,this.notifyApplicationAfterRender()},n.prototype.pageLoaded=function(){return this.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()},n.prototype.clickCaptured=function(){return removeEventListener("click",this.clickBubbled,!1),addEventListener("click",this.clickBubbled,!1)},n.prototype.clickBubbled=function(t){var e,n,i;return this.enabled&&this.clickEventIsSignificant(t)&&(n=this.getVisitableLinkForNode(t.target))&&(i=this.getVisitableLocationForLink(n))&&this.applicationAllowsFollowingLinkToLocation(n,i)?(t.preventDefault(),e=this.getActionForLink(n),this.visit(i,{action:e})):void 0},n.prototype.applicationAllowsFollowingLinkToLocation=function(t,e){return!this.notifyApplicationAfterClickingLinkToLocation(t,e).defaultPrevented},n.prototype.applicationAllowsVisitingLocation=function(t){return!this.notifyApplicationBeforeVisitingLocation(t).defaultPrevented},n.prototype.notifyApplicationAfterClickingLinkToLocation=function(e,n){return t.dispatch("turbolinks:click",{target:e,data:{url:n.absoluteURL},cancelable:!0})},n.prototype.notifyApplicationBeforeVisitingLocation=function(e){return t.dispatch("turbolinks:before-visit",{data:{url:e.absoluteURL},cancelable:!0})},n.prototype.notifyApplicationAfterVisitingLocation=function(e){return t.dispatch("turbolinks:visit",{data:{url:e.absoluteURL}})},n.prototype.notifyApplicationBeforeCachingSnapshot=function(){return t.dispatch("turbolinks:before-cache")},n.prototype.notifyApplicationBeforeRender=function(e){return t.dispatch("turbolinks:before-render",{data:{newBody:e}})},n.prototype.notifyApplicationAfterRender=function(){return t.dispatch("turbolinks:render")},n.prototype.notifyApplicationAfterPageLoad=function(e){return null==e&&(e={}),t.dispatch("turbolinks:load",{data:{url:this.location.absoluteURL,timing:e}})},n.prototype.startVisit=function(t,e,n){var i;return null!=(i=this.currentVisit)&&i.cancel(),this.currentVisit=this.createVisit(t,e,n),this.currentVisit.start(),this.notifyApplicationAfterVisitingLocation(t)},n.prototype.createVisit=function(e,n,i){var o,r,a,s,l;return s=(r=null!=i?i:{}).restorationIdentifier,a=r.restorationData,o=r.historyChanged,(l=new t.Visit(this,e,n)).restorationIdentifier=null!=s?s:t.uuid(),l.restorationData=t.copyObject(a),l.historyChanged=o,l.referrer=this.location,l},n.prototype.visitCompleted=function(t){return this.notifyApplicationAfterPageLoad(t.getTimingMetrics())},n.prototype.clickEventIsSignificant=function(t){return!(t.defaultPrevented||t.target.isContentEditable||t.which>1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)},n.prototype.getVisitableLinkForNode=function(e){return this.nodeIsVisitable(e)?t.closest(e,"a[href]:not([target]):not([download])"):void 0},n.prototype.getVisitableLocationForLink=function(e){var n;return n=new t.Location(e.getAttribute("href")),this.locationIsVisitable(n)?n:void 0},n.prototype.getActionForLink=function(t){var e;return null!=(e=t.getAttribute("data-turbolinks-action"))?e:"advance"},n.prototype.nodeIsVisitable=function(e){var n;return!(n=t.closest(e,"[data-turbolinks]"))||"false"!==n.getAttribute("data-turbolinks")},n.prototype.locationIsVisitable=function(t){return t.isPrefixedBy(this.view.getRootLocation())&&t.isHTML()},n.prototype.getCurrentRestorationData=function(){return this.getRestorationDataForIdentifier(this.restorationIdentifier)},n.prototype.getRestorationDataForIdentifier=function(t){var e;return null!=(e=this.restorationData)[t]?e[t]:e[t]={}},n}()}.call(this),function(){!function(){var t,e;if((t=e=document.currentScript)&&!e.hasAttribute("data-turbolinks-suppress-warning"))for(;t=t.parentNode;)if(t===document.body)return console.warn("You are loading Turbolinks from a <script> element inside the <body> element. This is probably not what you meant to do!\n\nLoad your application’s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.\n\nFor more information, see: https://github.com/turbolinks/turbolinks#working-with-script-elements\n\n——\nSuppress this warning by adding a `data-turbolinks-suppress-warning` attribute to: %s",e.outerHTML)}()}.call(this),function(){var e,n,i;t.start=function(){return n()?(null==t.controller&&(t.controller=e()),t.controller.start()):void 0},n=function(){return null==window.Turbolinks&&(window.Turbolinks=t),i()},e=function(){var e;return(e=new t.Controller).adapter=new t.BrowserAdapter(e),e},(i=function(){return window.Turbolinks===t})()&&t.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd&&define(t)}).call(this),
|
||
/*!
|
||
* jQuery JavaScript Library v3.6.0
|
||
* https://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright OpenJS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2021-03-02T17:08Z
|
||
*/
|
||
function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var n=[],i=Object.getPrototypeOf,o=n.slice,r=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},a=n.push,s=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,d=c.toString,h=d.call(Object),f={},p=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},m=t.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,n){var i,o,r=(n=n||m).createElement("script");if(r.text=t,e)for(i in g)(o=e[i]||e.getAttribute&&e.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[u.call(t)]||"object":typeof t}var _=function(t,e){return new _.fn.init(t,e)};function w(t){var e=!!t&&"length"in t&&t.length,n=b(t);return!p(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}_.fn=_.prototype={jquery:"3.6.0",constructor:_,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},_.extend=_.fn.extend=function(){var t,e,n,i,o,r,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||p(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(u&&i&&(_.isPlainObject(i)||(o=Array.isArray(i)))?(n=a[e],r=o&&!Array.isArray(n)?[]:o||_.isPlainObject(n)?n:{},o=!1,a[e]=_.extend(u,r,i)):void 0!==i&&(a[e]=i));return a},_.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==u.call(t))&&(!(e=i(t))||"function"==typeof(n=c.call(e,"constructor")&&e.constructor)&&d.call(n)===h)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){y(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(w(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(w(Object(t))?_.merge(n,"string"==typeof t?[t]:t):a.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:s.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,a=!n;o<r;o++)!e(t[o],o)!==a&&i.push(t[o]);return i},map:function(t,e,n){var i,o,a=0,s=[];if(w(t))for(i=t.length;a<i;a++)null!=(o=e(t[a],a,n))&&s.push(o);else for(a in t)null!=(o=e(t[a],a,n))&&s.push(o);return r(s)},guid:1,support:f}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=n[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var C=
|
||
/*!
|
||
* Sizzle CSS Selector Engine v2.3.6
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright JS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://js.foundation/
|
||
*
|
||
* Date: 2021-02-16
|
||
*/
|
||
function(t){var e,n,i,o,r,a,s,l,u,c,d,h,f,p,v,m,g,y,b,_="sizzle"+1*new Date,w=t.document,C=0,k=0,x=lt(),S=lt(),T=lt(),D=lt(),E=function(t,e){return t===e&&(d=!0),0},O={}.hasOwnProperty,M=[],L=M.pop,A=M.push,P=M.push,R=M.slice,I=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",j="(?:\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+B+"*("+j+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+B+"*\\]",W=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",F=new RegExp(B+"+","g"),$=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),q=new RegExp("^"+B+"*,"+B+"*"),Y=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),z=new RegExp(B+"|>"),X=new RegExp(W),V=new RegExp("^"+j+"$"),U={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){h()},at=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(M=R.call(w.childNodes),w.childNodes),M[w.childNodes.length].nodeType}catch(t){P={apply:M.length?function(t,e){A.apply(t,R.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,i,o){var r,s,u,c,d,p,g,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return i;if(!o&&(h(e),e=e||f,v)){if(11!==w&&(d=Z.exec(t)))if(r=d[1]){if(9===w){if(!(u=e.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(y&&(u=y.getElementById(r))&&b(e,u)&&u.id===r)return i.push(u),i}else{if(d[2])return P.apply(i,e.getElementsByTagName(t)),i;if((r=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return P.apply(i,e.getElementsByClassName(r)),i}if(n.qsa&&!D[t+" "]&&(!m||!m.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(g=t,y=e,1===w&&(z.test(t)||Y.test(t))){for((y=tt.test(t)&>(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(it,ot):e.setAttribute("id",c=_)),s=(p=a(t)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+bt(p[s]);g=p.join(",")}try{return P.apply(i,y.querySelectorAll(g)),i}catch(e){D(t,!0)}finally{c===_&&e.removeAttribute("id")}}}return l(t.replace($,"$1"),e,i,o)}function lt(){var t=[];return function e(n,o){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=o}}function ut(t){return t[_]=!0,t}function ct(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var n=t.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function vt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ut((function(e){return e=+e,ut((function(n,i){for(var o,r=t([],n.length,e),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))}))}))}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},r=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!J.test(e||n&&n.nodeName||"HTML")},h=st.setDocument=function(t){var e,o,a=t?t.ownerDocument||t:w;return a!=f&&9===a.nodeType&&a.documentElement?(p=(f=a).documentElement,v=!r(f),w!=f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",rt,!1):o.attachEvent&&o.attachEvent("onunload",rt)),n.scope=ct((function(t){return p.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=G.test(f.getElementsByClassName),n.getById=ct((function(t){return p.appendChild(t).id=_,!f.getElementsByName||!f.getElementsByName(_).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&v)return e.getElementsByClassName(t)},g=[],m=[],(n.qsa=G.test(f.querySelectorAll))&&(ct((function(t){var e;p.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+B+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+B+"*(?:value|"+H+")"),t.querySelectorAll("[id~="+_+"-]").length||m.push("~="),(e=f.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+B+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=G.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),g.push("!=",W)})),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),e=G.test(p.compareDocumentPosition),b=e||G.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},E=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t==f||t.ownerDocument==w&&b(w,t)?-1:e==f||e.ownerDocument==w&&b(w,e)?1:c?I(c,t)-I(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,a=[t],s=[e];if(!o||!r)return t==f?-1:e==f?1:o?-1:r?1:c?I(c,t)-I(c,e):0;if(o===r)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ht(a[i],s[i]):a[i]==w?-1:s[i]==w?1:0},f):f},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&v&&!D[e+" "]&&(!g||!g.test(e))&&(!m||!m.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){D(e,!0)}return st(e,f,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=f&&h(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=f&&h(t);var o=i.attrHandle[e.toLowerCase()],r=o&&O.call(i.attrHandle,e.toLowerCase())?o(t,e,!v):void 0;return void 0!==r?r:n.attributes||!v?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},st.escape=function(t){return(t+"").replace(it,ot)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,i=[],o=0,r=0;if(d=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(E),d){for(;e=t[r++];)e===t[r]&&(o=i.push(r));for(;o--;)t.splice(i[o],1)}return c=null,t},o=st.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(i=st.selectors={cacheLength:50,createPseudo:ut,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return U.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&X.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+B+")"+t+"("+B+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var o=st.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(F," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p,v=r!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(r){for(;v;){for(h=e;h=h[v];)if(s?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;p=v="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(b=(f=(u=(c=(d=(h=m)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===C&&u[1])&&u[2],h=f&&m.childNodes[f];h=++f&&h&&h[v]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[C,f,b];break}}else if(y&&(b=f=(u=(c=(d=(h=e)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===C&&u[1]),!1===b)for(;(h=++f&&h&&h[v]||(b=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++b||(y&&((c=(d=h[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[C,b]),h!==e)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var n,o=i.pseudos[t]||i.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return o[_]?o(e):o.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ut((function(t,n){for(var i,r=o(t,e),a=r.length;a--;)t[i=I(t,r[a])]=!(n[i]=r[a])})):function(t){return o(t,0,n)}):o}},pseudos:{not:ut((function(t){var e=[],n=[],i=s(t.replace($,"$1"));return i[_]?ut((function(t,e,n,o){for(var r,a=i(t,null,o,[]),s=t.length;s--;)(r=a[s])&&(t[s]=!(e[s]=r))})):function(t,o,r){return e[0]=t,i(e,null,r,n),e[0]=null,!n.pop()}})),has:ut((function(t){return function(e){return st(t,e).length>0}})),contains:ut((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||o(e)).indexOf(t)>-1}})),lang:ut((function(t){return V.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:vt(!1),disabled:vt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,n){return[n<0?n+e:n]})),even:mt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:mt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:mt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:mt((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=ft(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=pt(e);function yt(){}function bt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function _t(t,e,n){var i=e.dir,o=e.next,r=o||i,a=n&&"parentNode"===r,s=k++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,o);return!1}:function(e,n,l){var u,c,d,h=[C,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(c=(d=e[_]||(e[_]={}))[e.uniqueID]||(d[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[i]||e;else{if((u=c[r])&&u[0]===C&&u[1]===s)return h[2]=u[2];if(c[r]=h,h[2]=t(e,n,l))return!0}return!1}}function wt(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function Ct(t,e,n,i,o){for(var r,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(r=t[s])&&(n&&!n(r,i,o)||(a.push(r),u&&e.push(s)));return a}function kt(t,e,n,i,o,r){return i&&!i[_]&&(i=kt(i)),o&&!o[_]&&(o=kt(o,r)),ut((function(r,a,s,l){var u,c,d,h=[],f=[],p=a.length,v=r||function(t,e,n){for(var i=0,o=e.length;i<o;i++)st(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),m=!t||!r&&e?v:Ct(v,h,t,s,l),g=n?o||(r?t:p||i)?[]:a:m;if(n&&n(m,g,s,l),i)for(u=Ct(g,f),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(g[f[c]]=!(m[f[c]]=d));if(r){if(o||t){if(o){for(u=[],c=g.length;c--;)(d=g[c])&&u.push(m[c]=d);o(null,g=[],u,l)}for(c=g.length;c--;)(d=g[c])&&(u=o?I(r,d):h[c])>-1&&(r[u]=!(a[u]=d))}}else g=Ct(g===a?g.splice(p,g.length):g),o?o(null,a,g,l):P.apply(a,g)}))}function xt(t){for(var e,n,o,r=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],l=a?1:0,c=_t((function(t){return t===e}),s,!0),d=_t((function(t){return I(e,t)>-1}),s,!0),h=[function(t,n,i){var o=!a&&(i||n!==u)||((e=n).nodeType?c(t,n,i):d(t,n,i));return e=null,o}];l<r;l++)if(n=i.relative[t[l].type])h=[_t(wt(h),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[_]){for(o=++l;o<r&&!i.relative[t[o].type];o++);return kt(l>1&&wt(h),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace($,"$1"),n,l<o&&xt(t.slice(l,o)),o<r&&xt(t=t.slice(o)),o<r&&bt(t))}h.push(n)}return wt(h)}return yt.prototype=i.filters=i.pseudos,i.setFilters=new yt,a=st.tokenize=function(t,e){var n,o,r,a,s,l,u,c=S[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=i.preFilter;s;){for(a in n&&!(o=q.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),n=!1,(o=Y.exec(s))&&(n=o.shift(),r.push({value:n,type:o[0].replace($," ")}),s=s.slice(n.length)),i.filter)!(o=U[a].exec(s))||u[a]&&!(o=u[a](o))||(n=o.shift(),r.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):S(t,l).slice(0)},s=st.compile=function(t,e){var n,o=[],r=[],s=T[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=xt(e[n]))[_]?o.push(s):r.push(s);(s=T(t,function(t,e){var n=e.length>0,o=t.length>0,r=function(r,a,s,l,c){var d,p,m,g=0,y="0",b=r&&[],_=[],w=u,k=r||o&&i.find.TAG("*",c),x=C+=null==w?1:Math.random()||.1,S=k.length;for(c&&(u=a==f||a||c);y!==S&&null!=(d=k[y]);y++){if(o&&d){for(p=0,a||d.ownerDocument==f||(h(d),s=!v);m=t[p++];)if(m(d,a||f,s)){l.push(d);break}c&&(C=x)}n&&((d=!m&&d)&&g--,r&&b.push(d))}if(g+=y,n&&y!==g){for(p=0;m=e[p++];)m(b,_,a,s);if(r){if(g>0)for(;y--;)b[y]||_[y]||(_[y]=L.call(l));_=Ct(_)}P.apply(l,_),c&&!r&&_.length>0&&g+e.length>1&&st.uniqueSort(l)}return c&&(C=x,u=w),b};return n?ut(r):r}(r,o))).selector=t}return s},l=st.select=function(t,e,n,o){var r,l,u,c,d,h="function"==typeof t&&t,f=!o&&a(t=h.selector||t);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===e.nodeType&&v&&i.relative[l[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(r=U.needsContext.test(t)?0:l.length;r--&&(u=l[r],!i.relative[c=u.type]);)if((d=i.find[c])&&(o=d(u.matches[0].replace(et,nt),tt.test(l[0].type)&>(e.parentNode)||e))){if(l.splice(r,1),!(t=o.length&&bt(l)))return P.apply(n,o),n;break}}return(h||s(t,f))(o,e,!v,n,!e||tt.test(t)&>(e.parentNode)||e),n},n.sortStable=_.split("").sort(E).join("")===_,n.detectDuplicates=!!d,h(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||dt(H,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),st}(t);_.find=C,_.expr=C.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=C.uniqueSort,_.text=C.getText,_.isXMLDoc=C.isXML,_.contains=C.contains,_.escapeSelector=C.escape;var k=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&_(t).is(n))break;i.push(t)}return i},x=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},S=_.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(t,e,n){return p(e)?_.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?_.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?_.grep(t,(function(t){return s.call(e,t)>-1!==n})):_.filter(e,t,n)}_.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?_.find.matchesSelector(i,t)?[i]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e<i;e++)if(_.contains(o[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)_.find(t,o[e],n);return i>1?_.uniqueSort(n):n},filter:function(t){return this.pushStack(E(this,t||[],!1))},not:function(t){return this.pushStack(E(this,t||[],!0))},is:function(t){return!!E(this,"string"==typeof t&&S.test(t)?_(t):t||[],!1).length}});var O,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||O,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:M.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof _?e[0]:e,_.merge(this,_.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:m,!0)),D.test(i[1])&&_.isPlainObject(e))for(i in e)p(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=m.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):p(t)?void 0!==n.ready?n.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,O=_(m);var L=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function P(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(_.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,o=this.length,r=[],a="string"!=typeof t&&_(t);if(!S.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&_.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?_.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?s.call(_(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return k(t,"parentNode")},parentsUntil:function(t,e,n){return k(t,"parentNode",n)},next:function(t){return P(t,"nextSibling")},prev:function(t){return P(t,"previousSibling")},nextAll:function(t){return k(t,"nextSibling")},prevAll:function(t){return k(t,"previousSibling")},nextUntil:function(t,e,n){return k(t,"nextSibling",n)},prevUntil:function(t,e,n){return k(t,"previousSibling",n)},siblings:function(t){return x((t.parentNode||{}).firstChild,t)},children:function(t){return x(t.firstChild)},contents:function(t){return null!=t.contentDocument&&i(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(n,i){var o=_.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=_.filter(i,o)),this.length>1&&(A[t]||_.uniqueSort(o),L.test(t)&&o.reverse()),this.pushStack(o)}}));var R=/[^\x20\t\r\n\f]+/g;function I(t){return t}function H(t){throw t}function B(t,e,n,i){var o;try{t&&p(o=t.promise)?o.call(t).done(e).fail(n):t&&p(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match(R)||[],(function(t,n){e[n]=!0})),e}(t):_.extend({},t);var e,n,i,o,r=[],a=[],s=-1,l=function(){for(o=o||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},u={add:function(){return r&&(n&&!e&&(s=r.length-1,a.push(n)),function e(n){_.each(n,(function(n,i){p(i)?t.unique&&u.has(i)||r.push(i):i&&i.length&&"string"!==b(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return _.each(arguments,(function(t,e){for(var n;(n=_.inArray(e,r,n))>-1;)r.splice(n,1),n<=s&&s--})),this},has:function(t){return t?_.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=a=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=a=[],n||e||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},_.extend({Deferred:function(e){var n=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return _.Deferred((function(e){_.each(n,(function(n,i){var o=p(t[i[4]])&&t[i[4]];r[i[1]]((function(){var t=o&&o.apply(this,arguments);t&&p(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(e,i,o){var r=0;function a(e,n,i,o){return function(){var s=this,l=arguments,u=function(){var t,u;if(!(e<r)){if((t=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");u=t&&("object"==typeof t||"function"==typeof t)&&t.then,p(u)?o?u.call(t,a(r,n,I,o),a(r,n,H,o)):(r++,u.call(t,a(r,n,I,o),a(r,n,H,o),a(r,n,I,n.notifyWith))):(i!==I&&(s=void 0,l=[t]),(o||n.resolveWith)(s,l))}},c=o?u:function(){try{u()}catch(t){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(t,c.stackTrace),e+1>=r&&(i!==H&&(s=void 0,l=[t]),n.rejectWith(s,l))}};e?c():(_.Deferred.getStackHook&&(c.stackTrace=_.Deferred.getStackHook()),t.setTimeout(c))}}return _.Deferred((function(t){n[0][3].add(a(0,t,p(o)?o:I,t.notifyWith)),n[1][3].add(a(0,t,p(e)?e:I)),n[2][3].add(a(0,t,p(i)?i:H))})).promise()},promise:function(t){return null!=t?_.extend(t,o):o}},r={};return _.each(n,(function(t,e){var a=e[2],s=e[5];o[e[1]]=a.add,s&&a.add((function(){i=s}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(e[3].fire),r[e[0]]=function(){return r[e[0]+"With"](this===r?void 0:this,arguments),this},r[e[0]+"With"]=a.fireWith})),o.promise(r),e&&e.call(r,r),r},when:function(t){var e=arguments.length,n=e,i=Array(n),r=o.call(arguments),a=_.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?o.call(arguments):n,--e||a.resolveWith(i,r)}};if(e<=1&&(B(t,a.done(s(n)).resolve,a.reject,!e),"pending"===a.state()||p(r[n]&&r[n].then)))return a.then();for(;n--;)B(r[n],s(n),a.reject);return a.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&j.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},_.readyException=function(e){t.setTimeout((function(){throw e}))};var N=_.Deferred();function W(){m.removeEventListener("DOMContentLoaded",W),t.removeEventListener("load",W),_.ready()}_.fn.ready=function(t){return N.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||N.resolveWith(m,[_]))}}),_.ready.then=N.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?t.setTimeout(_.ready):(m.addEventListener("DOMContentLoaded",W),t.addEventListener("load",W));var F=function(t,e,n,i,o,r,a){var s=0,l=t.length,u=null==n;if("object"===b(n))for(s in o=!0,n)F(t,e,s,n[s],!0,r,a);else if(void 0!==i&&(o=!0,p(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(_(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return o?t:u?e.call(t):l?e(t[0],n):r},$=/^-ms-/,q=/-([a-z])/g;function Y(t,e){return e.toUpperCase()}function z(t){return t.replace($,"ms-").replace(q,Y)}var X=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function V(){this.expando=_.expando+V.uid++}V.uid=1,V.prototype={cache:function(t){var e=t[this.expando];return e||(e={},X(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[z(e)]=n;else for(i in e)o[z(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][z(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(z):(e=z(e))in i?[e]:e.match(R)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||_.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!_.isEmptyObject(e)}};var U=new V,J=new V,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function G(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Q,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:K.test(t)?JSON.parse(t):t)}(n)}catch(t){}J.set(t,e,n)}else n=void 0;return n}_.extend({hasData:function(t){return J.hasData(t)||U.hasData(t)},data:function(t,e,n){return J.access(t,e,n)},removeData:function(t,e){J.remove(t,e)},_data:function(t,e,n){return U.access(t,e,n)},_removeData:function(t,e){U.remove(t,e)}}),_.fn.extend({data:function(t,e){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0===t){if(this.length&&(o=J.get(r),1===r.nodeType&&!U.get(r,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=z(i.slice(5)),G(r,i,o[i]));U.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){J.set(this,t)})):F(this,(function(e){var n;if(r&&void 0===e)return void 0!==(n=J.get(r,t))||void 0!==(n=G(r,t))?n:void 0;this.each((function(){J.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){J.remove(this,t)}))}}),_.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=U.get(t,e),n&&(!i||Array.isArray(n)?i=U.access(t,e,_.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=_.queue(t,e),i=n.length,o=n.shift(),r=_._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,(function(){_.dequeue(t,e)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return U.get(t,n)||U.access(t,n,{empty:_.Callbacks("once memory").add((function(){U.remove(t,[e+"queue",n])}))})}}),_.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?_.queue(this[0],t):void 0===e?this:this.each((function(){var n=_.queue(this,t,e);_._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&_.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){_.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=_.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=U.get(r[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(e)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,tt=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],nt=m.documentElement,it=function(t){return _.contains(t.ownerDocument,t)},ot={composed:!0};nt.getRootNode&&(it=function(t){return _.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});var rt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&it(t)&&"none"===_.css(t,"display")};function at(t,e,n,i){var o,r,a=20,s=i?function(){return i.cur()}:function(){return _.css(t,e,"")},l=s(),u=n&&n[3]||(_.cssNumber[e]?"":"px"),c=t.nodeType&&(_.cssNumber[e]||"px"!==u&&+l)&&tt.exec(_.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)_.style(t,e,c+u),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),c/=r;c*=2,_.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var st={};function lt(t){var e,n=t.ownerDocument,i=t.nodeName,o=st[i];return o||(e=n.body.appendChild(n.createElement(i)),o=_.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),st[i]=o,o)}function ut(t,e){for(var n,i,o=[],r=0,a=t.length;r<a;r++)(i=t[r]).style&&(n=i.style.display,e?("none"===n&&(o[r]=U.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&rt(i)&&(o[r]=lt(i))):"none"!==n&&(o[r]="none",U.set(i,"display",n)));for(r=0;r<a;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}_.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){rt(this)?_(this).show():_(this).hide()}))}});var ct,dt,ht=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;ct=m.createDocumentFragment().appendChild(m.createElement("div")),(dt=m.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ct.appendChild(dt),f.checkClone=ct.cloneNode(!0).cloneNode(!0).lastChild.checked,ct.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!ct.cloneNode(!0).lastChild.defaultValue,ct.innerHTML="<option></option>",f.option=!!ct.lastChild;var vt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function mt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?_.merge([t],n):n}function gt(t,e){for(var n=0,i=t.length;n<i;n++)U.set(t[n],"globalEval",!e||U.get(e[n],"globalEval"))}vt.tbody=vt.tfoot=vt.colgroup=vt.caption=vt.thead,vt.th=vt.td,f.option||(vt.optgroup=vt.option=[1,"<select multiple='multiple'>","</select>"]);var yt=/<|&#?\w+;/;function bt(t,e,n,i,o){for(var r,a,s,l,u,c,d=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((r=t[f])||0===r)if("object"===b(r))_.merge(h,r.nodeType?[r]:r);else if(yt.test(r)){for(a=a||d.appendChild(e.createElement("div")),s=(ft.exec(r)||["",""])[1].toLowerCase(),l=vt[s]||vt._default,a.innerHTML=l[1]+_.htmlPrefilter(r)+l[2],c=l[0];c--;)a=a.lastChild;_.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(e.createTextNode(r));for(d.textContent="",f=0;r=h[f++];)if(i&&_.inArray(r,i)>-1)o&&o.push(r);else if(u=it(r),a=mt(d.appendChild(r),"script"),u&>(a),n)for(c=0;r=a[c++];)pt.test(r.type||"")&&n.push(r);return d}var _t=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function Ct(){return!1}function kt(t,e){return t===function(){try{return m.activeElement}catch(t){}}()==("focus"===e)}function xt(t,e,n,i,o,r){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)xt(t,s,n,i,e[s],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Ct;else if(!o)return t;return 1===r&&(a=o,(o=function(t){return _().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=_.guid++)),t.each((function(){_.event.add(this,e,o,i,n)}))}function St(t,e,n){n?(U.set(t,e,!1),_.event.add(t,e,{namespace:!1,handler:function(t){var i,r,a=U.get(this,e);if(1&t.isTrigger&&this[e]){if(a.length)(_.event.special[e]||{}).delegateType&&t.stopPropagation();else if(a=o.call(arguments),U.set(this,e,a),i=n(this,e),this[e](),a!==(r=U.get(this,e))||i?U.set(this,e,!1):r={},a!==r)return t.stopImmediatePropagation(),t.preventDefault(),r&&r.value}else a.length&&(U.set(this,e,{value:_.event.trigger(_.extend(a[0],_.Event.prototype),a.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===U.get(t,e)&&_.event.add(t,e,wt)}_.event={global:{},add:function(t,e,n,i,o){var r,a,s,l,u,c,d,h,f,p,v,m=U.get(t);if(X(t))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&_.find.matchesSelector(nt,o),n.guid||(n.guid=_.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(R)||[""]).length;u--;)f=v=(s=_t.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=_.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=_.event.special[f]||{},c=_.extend({type:f,origType:v,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&_.expr.match.needsContext.test(o),namespace:p.join(".")},r),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,c):h.push(c),_.event.global[f]=!0)},remove:function(t,e,n,i,o){var r,a,s,l,u,c,d,h,f,p,v,m=U.hasData(t)&&U.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(R)||[""]).length;u--;)if(f=v=(s=_t.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=_.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=h.length;r--;)c=h[r],!o&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(r,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,m.handle)||_.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)_.event.remove(t,f+e[u],n,i,!0);_.isEmptyObject(l)&&U.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,a,s=new Array(arguments.length),l=_.event.fix(t),u=(U.get(this,"events")||Object.create(null))[l.type]||[],c=_.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=_.event.handlers.call(this,l,u),e=0;(o=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((_.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,o,r,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(r=[],a={},n=0;n<l;n++)void 0===a[o=(i=e[n]).selector+" "]&&(a[o]=i.needsContext?_(o,this).index(u)>-1:_.find(o,this,null,[u]).length),a[o]&&r.push(i);r.length&&s.push({elem:u,handlers:r})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(_.Event.prototype,t,{enumerable:!0,configurable:!0,get:p(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[_.expando]?t:new _.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ht.test(e.type)&&e.click&&T(e,"input")&&St(e,"click",wt),!1},trigger:function(t){var e=this||t;return ht.test(e.type)&&e.click&&T(e,"input")&&St(e,"click"),!0},_default:function(t){var e=t.target;return ht.test(e.type)&&e.click&&T(e,"input")&&U.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},_.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},_.Event=function(t,e){if(!(this instanceof _.Event))return new _.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?wt:Ct,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&_.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Ct,isPropagationStopped:Ct,isImmediatePropagationStopped:Ct,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(t,e){_.event.special[t]={setup:function(){return St(this,t,kt),!1},trigger:function(){return St(this,t),!0},_default:function(){return!0},delegateType:e}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){_.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===i||_.contains(i,o))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),_.fn.extend({on:function(t,e,n,i){return xt(this,t,e,n,i)},one:function(t,e,n,i){return xt(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,_(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Ct),this.each((function(){_.event.remove(this,t,n,e)}))}});var Tt=/<script|<style|<link/i,Dt=/checked\s*(?:[^=]|=\s*.checked.)/i,Et=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ot(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function Mt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function At(t,e){var n,i,o,r,a,s;if(1===e.nodeType){if(U.hasData(t)&&(s=U.get(t).events))for(o in U.remove(e,"handle events"),s)for(n=0,i=s[o].length;n<i;n++)_.event.add(e,o,s[o][n]);J.hasData(t)&&(r=J.access(t),a=_.extend({},r),J.set(e,a))}}function Pt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&ht.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Rt(t,e,n,i){e=r(e);var o,a,s,l,u,c,d=0,h=t.length,v=h-1,m=e[0],g=p(m);if(g||h>1&&"string"==typeof m&&!f.checkClone&&Dt.test(m))return t.each((function(o){var r=t.eq(o);g&&(e[0]=m.call(this,o,r.html())),Rt(r,e,n,i)}));if(h&&(a=(o=bt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=a),a||i)){for(l=(s=_.map(mt(o,"script"),Mt)).length;d<h;d++)u=o,d!==v&&(u=_.clone(u,!0,!0),l&&_.merge(s,mt(u,"script"))),n.call(t[d],u,d);if(l)for(c=s[s.length-1].ownerDocument,_.map(s,Lt),d=0;d<l;d++)u=s[d],pt.test(u.type||"")&&!U.access(u,"globalEval")&&_.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?_._evalUrl&&!u.noModule&&_._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):y(u.textContent.replace(Et,""),u,c))}return t}function It(t,e,n){for(var i,o=e?_.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||_.cleanData(mt(i)),i.parentNode&&(n&&it(i)&>(mt(i,"script")),i.parentNode.removeChild(i));return t}_.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,o,r,a,s=t.cloneNode(!0),l=it(t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||_.isXMLDoc(t)))for(a=mt(s),i=0,o=(r=mt(t)).length;i<o;i++)Pt(r[i],a[i]);if(e)if(n)for(r=r||mt(t),a=a||mt(s),i=0,o=r.length;i<o;i++)At(r[i],a[i]);else At(t,s);return(a=mt(s,"script")).length>0&>(a,!l&&mt(t,"script")),s},cleanData:function(t){for(var e,n,i,o=_.event.special,r=0;void 0!==(n=t[r]);r++)if(X(n)){if(e=n[U.expando]){if(e.events)for(i in e.events)o[i]?_.event.remove(n,i):_.removeEvent(n,i,e.handle);n[U.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),_.fn.extend({detach:function(t){return It(this,t,!0)},remove:function(t){return It(this,t)},text:function(t){return F(this,(function(t){return void 0===t?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Rt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ot(this,t).appendChild(t)}))},prepend:function(){return Rt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ot(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Rt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Rt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(_.cleanData(mt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return _.clone(this,t,e)}))},html:function(t){return F(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!vt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(_.cleanData(mt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Rt(this,arguments,(function(e){var n=this.parentNode;_.inArray(this,t)<0&&(_.cleanData(mt(this)),n&&n.replaceChild(e,this))}),t)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){_.fn[t]=function(t){for(var n,i=[],o=_(t),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),_(o[s])[e](n),a.apply(i,n.get());return this.pushStack(i)}}));var Ht=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),Bt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},jt=function(t,e,n){var i,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in i=n.call(t),e)t.style[o]=r[o];return i},Nt=new RegExp(et.join("|"),"i");function Wt(t,e,n){var i,o,r,a,s=t.style;return(n=n||Bt(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||it(t)||(a=_.style(t,e)),!f.pixelBoxStyles()&&Ht.test(a)&&Nt.test(e)&&(i=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=o,s.maxWidth=r)),void 0!==a?a+"":a}function Ft(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild(u).appendChild(c);var e=t.getComputedStyle(c);i="1%"!==e.top,l=12===n(e.marginLeft),c.style.right="60%",a=36===n(e.right),o=36===n(e.width),c.style.position="absolute",r=12===n(c.offsetWidth/3),nt.removeChild(u),c=null}}function n(t){return Math.round(parseFloat(t))}var i,o,r,a,s,l,u=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===c.style.backgroundClip,_.extend(f,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,n,i,o;return null==s&&(e=m.createElement("table"),n=m.createElement("tr"),i=m.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",nt.appendChild(e).appendChild(n).appendChild(i),o=t.getComputedStyle(n),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,nt.removeChild(e)),s}}))}();var $t=["Webkit","Moz","ms"],qt=m.createElement("div").style,Yt={};function zt(t){var e=_.cssProps[t]||Yt[t];return e||(t in qt?t:Yt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=$t.length;n--;)if((t=$t[n]+e)in qt)return t}(t)||t)}var Xt=/^(none|table(?!-c[ea]).+)/,Vt=/^--/,Ut={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:"0",fontWeight:"400"};function Kt(t,e,n){var i=tt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Qt(t,e,n,i,o,r){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=_.css(t,n+et[a],!0,o)),i?("content"===n&&(l-=_.css(t,"padding"+et[a],!0,o)),"margin"!==n&&(l-=_.css(t,"border"+et[a]+"Width",!0,o))):(l+=_.css(t,"padding"+et[a],!0,o),"padding"!==n?l+=_.css(t,"border"+et[a]+"Width",!0,o):s+=_.css(t,"border"+et[a]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-s-.5))||0),l}function Gt(t,e,n){var i=Bt(t),o=(!f.boxSizingReliable()||n)&&"border-box"===_.css(t,"boxSizing",!1,i),r=o,a=Wt(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Ht.test(a)){if(!n)return a;a="auto"}return(!f.boxSizingReliable()&&o||!f.reliableTrDimensions()&&T(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===_.css(t,"boxSizing",!1,i),(r=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+Qt(t,e,n||(o?"border":"content"),r,i,a)+"px"}function Zt(t,e,n,i,o){return new Zt.prototype.init(t,e,n,i,o)}_.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Wt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a,s=z(e),l=Vt.test(e),u=t.style;if(l||(e=zt(s)),a=_.cssHooks[e]||_.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(t,!1,i))?o:u[e];"string"===(r=typeof n)&&(o=tt.exec(n))&&o[1]&&(n=at(t,e,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(_.cssNumber[s]?"":"px")),f.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var o,r,a,s=z(e);return Vt.test(e)||(e=zt(s)),(a=_.cssHooks[e]||_.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=Wt(t,e,i)),"normal"===o&&e in Jt&&(o=Jt[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,n,i){if(n)return!Xt.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Gt(t,e,i):jt(t,Ut,(function(){return Gt(t,e,i)}))},set:function(t,n,i){var o,r=Bt(t),a=!f.scrollboxSize()&&"absolute"===r.position,s=(a||i)&&"border-box"===_.css(t,"boxSizing",!1,r),l=i?Qt(t,e,i,s,r):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-Qt(t,e,"border",!1,r)-.5)),l&&(o=tt.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=_.css(t,e)),Kt(0,n,l)}}})),_.cssHooks.marginLeft=Ft(f.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Wt(t,"marginLeft"))||t.getBoundingClientRect().left-jt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+et[i]+e]=r[i]||r[i-2]||r[0];return o}},"margin"!==t&&(_.cssHooks[t+e].set=Kt)})),_.fn.extend({css:function(t,e){return F(this,(function(t,e,n){var i,o,r={},a=0;if(Array.isArray(e)){for(i=Bt(t),o=e.length;a<o;a++)r[e[a]]=_.css(t,e[a],!1,i);return r}return void 0!==n?_.style(t,e,n):_.css(t,e)}),t,e,arguments.length>1)}}),_.Tween=Zt,Zt.prototype={constructor:Zt,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(_.cssNumber[n]?"":"px")},cur:function(){var t=Zt.propHooks[this.prop];return t&&t.get?t.get(this):Zt.propHooks._default.get(this)},run:function(t){var e,n=Zt.propHooks[this.prop];return this.options.duration?this.pos=e=_.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Zt.propHooks._default.set(this),this}},Zt.prototype.init.prototype=Zt.prototype,Zt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||!_.cssHooks[t.prop]&&null==t.elem.style[zt(t.prop)]?t.elem[t.prop]=t.now:_.style(t.elem,t.prop,t.now+t.unit)}}},Zt.propHooks.scrollTop=Zt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=Zt.prototype.init,_.fx.step={};var te,ee,ne=/^(?:toggle|show|hide)$/,ie=/queueHooks$/;function oe(){ee&&(!1===m.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(oe):t.setTimeout(oe,_.fx.interval),_.fx.tick())}function re(){return t.setTimeout((function(){te=void 0})),te=Date.now()}function ae(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=et[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function se(t,e,n){for(var i,o=(le.tweeners[e]||[]).concat(le.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,e,t))return i}function le(t,e,n){var i,o,r=0,a=le.prefilters.length,s=_.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var e=te||re(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),r=0,a=u.tweens.length;r<a;r++)u.tweens[r].run(i);return s.notifyWith(t,[u,i,n]),i<1&&a?n:(a||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:e,originalOptions:n,startTime:te||re(),duration:n.duration,tweens:[],createTween:function(e,n){var i=_.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,o,r,a;for(n in t)if(o=e[i=z(n)],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(a=_.cssHooks[i])&&"expand"in a)for(n in r=a.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(c,u.opts.specialEasing);r<a;r++)if(i=le.prefilters[r].call(u,t,c,u.opts))return p(i.stop)&&(_._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return _.map(c,se,u),p(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),_.fx.timer(_.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}_.Animation=_.extend(le,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return at(n.elem,t,tt.exec(e),n),n}]},tweener:function(t,e){p(t)?(e=t,t=["*"]):t=t.match(R);for(var n,i=0,o=t.length;i<o;i++)n=t[i],le.tweeners[n]=le.tweeners[n]||[],le.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,r,a,s,l,u,c,d="width"in e||"height"in e,h=this,f={},p=t.style,v=t.nodeType&&rt(t),m=U.get(t,"fxshow");for(i in n.queue||(null==(a=_._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,_.queue(t,"fx").length||a.empty.fire()}))}))),e)if(o=e[i],ne.test(o)){if(delete e[i],r=r||"toggle"===o,o===(v?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;v=!0}f[i]=m&&m[i]||_.style(t,i)}if((l=!_.isEmptyObject(e))||!_.isEmptyObject(f))for(i in d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=U.get(t,"display")),"none"===(c=_.css(t,"display"))&&(u?c=u:(ut([t],!0),u=t.style.display||u,c=_.css(t,"display"),ut([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===_.css(t,"float")&&(l||(h.done((function(){p.display=u})),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(v=m.hidden):m=U.access(t,"fxshow",{display:u}),r&&(m.hidden=!v),v&&ut([t],!0),h.done((function(){for(i in v||ut([t]),U.remove(t,"fxshow"),f)_.style(t,i,f[i])}))),l=se(v?m[i]:0,i,h),i in m||(m[i]=l.start,v&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?le.prefilters.unshift(t):le.prefilters.push(t)}}),_.speed=function(t,e,n){var i=t&&"object"==typeof t?_.extend({},t):{complete:n||!n&&e||p(t)&&t,duration:t,easing:n&&e||e&&!p(e)&&e};return _.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in _.fx.speeds?i.duration=_.fx.speeds[i.duration]:i.duration=_.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){p(i.old)&&i.old.call(this),i.queue&&_.dequeue(this,i.queue)},i},_.fn.extend({fadeTo:function(t,e,n,i){return this.filter(rt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=_.isEmptyObject(t),r=_.speed(e,n,i),a=function(){var e=le(this,_.extend({},t),r);(o||U.get(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",r=_.timers,a=U.get(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&ie.test(o)&&i(a[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||_.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=U.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=_.timers,a=i?i.length:0;for(n.finish=!0,_.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),_.each(["toggle","show","hide"],(function(t,e){var n=_.fn[e];_.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ae(e,!0),t,i,o)}})),_.each({slideDown:ae("show"),slideUp:ae("hide"),slideToggle:ae("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){_.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),_.timers=[],_.fx.tick=function(){var t,e=0,n=_.timers;for(te=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||_.fx.stop(),te=void 0},_.fx.timer=function(t){_.timers.push(t),_.fx.start()},_.fx.interval=13,_.fx.start=function(){ee||(ee=!0,oe())},_.fx.stop=function(){ee=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(e,n){return e=_.fx&&_.fx.speeds[e]||e,n=n||"fx",this.queue(n,(function(n,i){var o=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(o)}}))},function(){var t=m.createElement("input"),e=m.createElement("select").appendChild(m.createElement("option"));t.type="checkbox",f.checkOn=""!==t.value,f.optSelected=e.selected,(t=m.createElement("input")).value="t",t.type="radio",f.radioValue="t"===t.value}();var ue,ce=_.expr.attrHandle;_.fn.extend({attr:function(t,e){return F(this,_.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?_.prop(t,e,n):(1===r&&_.isXMLDoc(t)||(o=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void _.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=_.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&T(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(R);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),ue={set:function(t,e,n){return!1===e?_.removeAttr(t,n):t.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ce[e]||_.find.attr;ce[e]=function(t,e,i){var o,r,a=e.toLowerCase();return i||(r=ce[a],ce[a]=o,o=null!=n(t,e,i)?a:null,ce[a]=r),o}}));var de=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;function fe(t){return(t.match(R)||[]).join(" ")}function pe(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(R)||[]}_.fn.extend({prop:function(t,e){return F(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&_.isXMLDoc(t)||(e=_.propFix[e]||e,o=_.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(_.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,n,i,o,r,a,s,l=0;if(p(t))return this.each((function(e){_(this).addClass(t.call(this,e,pe(this)))}));if((e=ve(t)).length)for(;n=this[l++];)if(o=pe(n),i=1===n.nodeType&&" "+fe(o)+" "){for(a=0;r=e[a++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(s=fe(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,o,r,a,s,l=0;if(p(t))return this.each((function(e){_(this).removeClass(t.call(this,e,pe(this)))}));if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;n=this[l++];)if(o=pe(n),i=1===n.nodeType&&" "+fe(o)+" "){for(a=0;r=e[a++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(s=fe(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):p(t)?this.each((function(n){_(this).toggleClass(t.call(this,n,pe(this),e),e)})):this.each((function(){var e,o,r,a;if(i)for(o=0,r=_(this),a=ve(t);e=a[o++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||((e=pe(this))&&U.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":U.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+fe(pe(n))+" ").indexOf(e)>-1)return!0;return!1}});var me=/\r/g;_.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=p(t),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,_(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=_.map(o,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=_.valHooks[o.type]||_.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(me,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:fe(_.text(t))}},select:{get:function(t){var e,n,i,o=t.options,r=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?r+1:o.length;for(i=r<0?l:a?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(e=_(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=_.makeArray(e),a=o.length;a--;)((i=o[a]).selected=_.inArray(_.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},f.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),f.focusin="onfocusin"in t;var ge=/^(?:focusinfocus|focusoutblur)$/,ye=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(e,n,i,o){var r,a,s,l,u,d,h,f,g=[i||m],y=c.call(e,"type")?e.type:e,b=c.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=i=i||m,3!==i.nodeType&&8!==i.nodeType&&!ge.test(y+_.event.triggered)&&(y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),u=y.indexOf(":")<0&&"on"+y,(e=e[_.expando]?e:new _.Event(y,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:_.makeArray(n,[e]),h=_.event.special[y]||{},o||!h.trigger||!1!==h.trigger.apply(i,n))){if(!o&&!h.noBubble&&!v(i)){for(l=h.delegateType||y,ge.test(l+y)||(a=a.parentNode);a;a=a.parentNode)g.push(a),s=a;s===(i.ownerDocument||m)&&g.push(s.defaultView||s.parentWindow||t)}for(r=0;(a=g[r++])&&!e.isPropagationStopped();)f=a,e.type=r>1?l:h.bindType||y,(d=(U.get(a,"events")||Object.create(null))[e.type]&&U.get(a,"handle"))&&d.apply(a,n),(d=u&&a[u])&&d.apply&&X(a)&&(e.result=d.apply(a,n),!1===e.result&&e.preventDefault());return e.type=y,o||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(g.pop(),n)||!X(i)||u&&p(i[y])&&!v(i)&&((s=i[u])&&(i[u]=null),_.event.triggered=y,e.isPropagationStopped()&&f.addEventListener(y,ye),i[y](),e.isPropagationStopped()&&f.removeEventListener(y,ye),_.event.triggered=void 0,s&&(i[u]=s)),e.result}},simulate:function(t,e,n){var i=_.extend(new _.Event,n,{type:t,isSimulated:!0});_.event.trigger(i,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return _.event.trigger(t,e,n,!0)}}),f.focusin||_.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){_.event.simulate(e,t.target,_.event.fix(t))};_.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,o=U.access(i,e);o||i.addEventListener(t,n,!0),U.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=U.access(i,e)-1;o?U.access(i,e,o):(i.removeEventListener(t,n,!0),U.remove(i,e))}}}));var be=t.location,_e={guid:Date.now()},we=/\?/;_.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||_.error("Invalid XML: "+(i?_.map(i.childNodes,(function(t){return t.textContent})).join("\n"):e)),n};var Ce=/\[\]$/,ke=/\r?\n/g,xe=/^(?:submit|button|image|reset|file)$/i,Se=/^(?:input|select|textarea|keygen)/i;function Te(t,e,n,i){var o;if(Array.isArray(e))_.each(e,(function(e,o){n||Ce.test(t)?i(t,o):Te(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)}));else if(n||"object"!==b(e))i(t,e);else for(o in e)Te(t+"["+o+"]",e[o],n,i)}_.param=function(t,e){var n,i=[],o=function(t,e){var n=p(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){o(this.name,this.value)}));else for(n in t)Te(n,t[n],e,o);return i.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&Se.test(this.nodeName)&&!xe.test(t)&&(this.checked||!ht.test(t))})).map((function(t,e){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(t){return{name:e.name,value:t.replace(ke,"\r\n")}})):{name:e.name,value:n.replace(ke,"\r\n")}})).get()}});var De=/%20/g,Ee=/#.*$/,Oe=/([?&])_=[^&]*/,Me=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,Ae=/^\/\//,Pe={},Re={},Ie="*/".concat("*"),He=m.createElement("a");function Be(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(R)||[];if(p(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function je(t,e,n,i){var o={},r=t===Re;function a(s){var l;return o[s]=!0,_.each(t[s]||[],(function(t,s){var u=s(e,n,i);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(e.dataTypes.unshift(u),a(u),!1)})),l}return a(e.dataTypes[0])||!o["*"]&&a("*")}function Ne(t,e){var n,i,o=_.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&_.extend(!0,t,i),t}He.href=be.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ie,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ne(Ne(t,_.ajaxSettings),e):Ne(_.ajaxSettings,t)},ajaxPrefilter:Be(Pe),ajaxTransport:Be(Re),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,o,r,a,s,l,u,c,d,h,f=_.ajaxSetup({},n),p=f.context||f,v=f.context&&(p.nodeType||p.jquery)?_(p):_.event,g=_.Deferred(),y=_.Callbacks("once memory"),b=f.statusCode||{},w={},C={},k="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=Me.exec(r);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(t,e){return null==u&&(t=C[t.toLowerCase()]=C[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)x.always(t[x.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||k;return i&&i.abort(e),S(0,e),this}};if(g.promise(x),f.url=((e||f.url||be.href)+"").replace(Ae,be.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(R)||[""],null==f.crossDomain){l=m.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=He.protocol+"//"+He.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=_.param(f.data,f.traditional)),je(Pe,f,n,x),u)return x;for(d in(c=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Le.test(f.type),o=f.url.replace(Ee,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(De,"+")):(h=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(we.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Oe,"$1"),h=(we.test(o)?"&":"?")+"_="+_e.guid+++h),f.url=o+h),f.ifModified&&(_.lastModified[o]&&x.setRequestHeader("If-Modified-Since",_.lastModified[o]),_.etag[o]&&x.setRequestHeader("If-None-Match",_.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ie+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,x,f)||u))return x.abort();if(k="abort",y.add(f.complete),x.done(f.success),x.fail(f.error),i=je(Re,f,n,x)){if(x.readyState=1,c&&v.trigger("ajaxSend",[x,f]),u)return x;f.async&&f.timeout>0&&(s=t.setTimeout((function(){x.abort("timeout")}),f.timeout));try{u=!1,i.send(w,S)}catch(t){if(u)throw t;S(-1,t)}}else S(-1,"No Transport");function S(e,n,a,l){var d,h,m,w,C,k=n;u||(u=!0,s&&t.clearTimeout(s),i=void 0,r=l||"",x.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(w=function(t,e,n){for(var i,o,r,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,x,a)),!d&&_.inArray("script",f.dataTypes)>-1&&_.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(t,e,n,i){var o,r,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=u[l+" "+r]||u["* "+r]))for(o in u)if((s=o.split(" "))[1]===r&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[o]:!0!==u[o]&&(r=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(f,w,x,d),d?(f.ifModified&&((C=x.getResponseHeader("Last-Modified"))&&(_.lastModified[o]=C),(C=x.getResponseHeader("etag"))&&(_.etag[o]=C)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=w.state,h=w.data,d=!(m=w.error))):(m=k,!e&&k||(k="error",e<0&&(e=0))),x.status=e,x.statusText=(n||k)+"",d?g.resolveWith(p,[h,k,x]):g.rejectWith(p,[x,k,m]),x.statusCode(b),b=void 0,c&&v.trigger(d?"ajaxSuccess":"ajaxError",[x,f,d?h:m]),y.fireWith(p,[x,k]),c&&(v.trigger("ajaxComplete",[x,f]),--_.active||_.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return _.get(t,e,n,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,n,i,o){return p(n)&&(o=o||i,i=n,n=void 0),_.ajax(_.extend({url:t,type:e,dataType:o,data:n,success:i},_.isPlainObject(t)&&t))}})),_.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),_._evalUrl=function(t,e,n){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){_.globalEval(t,e,n)}})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(p(t)&&(t=t.call(this[0])),e=_(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return p(t)?this.each((function(e){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=p(t);return this.each((function(n){_(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},Fe=_.ajaxSettings.xhr();f.cors=!!Fe&&"withCredentials"in Fe,f.ajax=Fe=!!Fe,_.ajaxTransport((function(e){var n,i;if(f.cors||Fe&&!e.crossDomain)return{send:function(o,r){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(We[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout((function(){n&&i()}))},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,o){e=_("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),m.head.appendChild(e[0])},abort:function(){n&&n()}}}));var $e,qe=[],Ye=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=qe.pop()||_.expando+"_"+_e.guid++;return this[t]=!0,t}}),_.ajaxPrefilter("json jsonp",(function(e,n,i){var o,r,a,s=!1!==e.jsonp&&(Ye.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=p(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ye,"$1"+o):!1!==e.jsonp&&(e.url+=(we.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||_.error(o+" was not called"),a[0]},e.dataTypes[0]="json",r=t[o],t[o]=function(){a=arguments},i.always((function(){void 0===r?_(t).removeProp(o):t[o]=r,e[o]&&(e.jsonpCallback=n.jsonpCallback,qe.push(o)),a&&p(r)&&r(a[0]),a=r=void 0})),"script"})),f.createHTMLDocument=(($e=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===$e.childNodes.length),_.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(f.createHTMLDocument?((i=(e=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,e.head.appendChild(i)):e=m),r=!n&&[],(o=D.exec(t))?[e.createElement(o[1])]:(o=bt([t],e,r),r&&r.length&&_(r).remove(),_.merge([],o.childNodes)));var i,o,r},_.fn.load=function(t,e,n){var i,o,r,a=this,s=t.indexOf(" ");return s>-1&&(i=fe(t.slice(s)),t=t.slice(0,s)),p(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&_.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){r=arguments,a.html(i?_("<div>").append(_.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,r||[t.responseText,e,t])}))}),this},_.expr.pseudos.animated=function(t){return _.grep(_.timers,(function(e){return t===e.elem})).length},_.offset={setOffset:function(t,e,n){var i,o,r,a,s,l,u=_.css(t,"position"),c=_(t),d={};"static"===u&&(t.style.position="relative"),s=c.offset(),r=_.css(t,"top"),l=_.css(t,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(a=(i=c.position()).top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),p(e)&&(e=e.call(t,n,_.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+o),"using"in e?e.using.call(t,d):c.css(d)}},_.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){_.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],o={top:0,left:0};if("fixed"===_.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===_.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=_(t).offset()).top+=_.css(t,"borderTopWidth",!0),o.left+=_.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-_.css(i,"marginTop",!0),left:e.left-o.left-_.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===_.css(t,"position");)t=t.offsetParent;return t||nt}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;_.fn[t]=function(i){return F(this,(function(t,i,o){var r;if(v(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[e]:t[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o}),t,i,arguments.length)}})),_.each(["top","left"],(function(t,e){_.cssHooks[e]=Ft(f.pixelPosition,(function(t,n){if(n)return n=Wt(t,e),Ht.test(n)?_(t).position()[e]+"px":n}))})),_.each({Height:"height",Width:"width"},(function(t,e){_.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){_.fn[i]=function(o,r){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===r?"margin":"border");return F(this,(function(e,n,o){var r;return v(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?_.css(e,n,s):_.style(e,n,o,s)}),e,a?o:void 0,a)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){_.fn[e]=function(t){return this.on(e,t)}})),_.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){_.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var ze=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),p(t))return i=o.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(o.call(arguments)))}).guid=t.guid=t.guid||_.guid++,r},_.holdReady=function(t){t?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=T,_.isFunction=p,_.isWindow=v,_.camelCase=z,_.type=b,_.now=Date.now,_.isNumeric=function(t){var e=_.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},_.trim=function(t){return null==t?"":(t+"").replace(ze,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return _}));var Xe=t.jQuery,Ve=t.$;return _.noConflict=function(e){return t.$===_&&(t.$=Ve),e&&t.jQuery===_&&(t.jQuery=Xe),_},void 0===e&&(t.jQuery=t.$=_),_})),
|
||
/*! DataTables 1.10.18
|
||
* ©2008-2018 SpryMedia Ltd - datatables.net/license
|
||
*/
|
||
function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n,e,e.document)}:t(jQuery,window,document)}((function(t,e,n,i){"use strict";var o,r,a,s,l=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new r(t?re(this[o.iApiIndex]):this)},this.fnAddData=function(e,n){var o=this.api(!0),r=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?o.rows.add(e):o.row.add(e);return(n===i||n)&&o.draw(),r.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],o=n.oScroll;t===i||t?e.draw(!1):""===o.sX&&""===o.sY||Ft(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===i||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var o=this.api(!0),r=o.rows(t),a=r.settings()[0],s=a.aoData[r[0][0]];return r.remove(),e&&e.call(this,a,s),(n===i||n)&&o.draw(),s},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,o,r,a){var s=this.api(!0);null===e||e===i?s.search(t,n,o,a):s.column(e).search(t,n,o,a),s.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t!==i){var o=t.nodeName?t.nodeName.toLowerCase():"";return e!==i||"td"==o||"th"==o?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==i?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();if("TR"==n)return e.row(t).index();if("TD"==n||"TH"==n){var i=e.cell(t).index();return[i.row,i.columnVisible,i.column]}return null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);(e===i||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){var o=this.api(!0).column(t).visible(e);(n===i||n)&&o.columns.adjust().draw()},this.fnSettings=function(){return re(this[o.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,o,r){var a=this.api(!0);return n===i||null===n?a.row(e).data(t):a.cell(e,n).data(t),(r===i||r)&&a.columns.adjust(),(o===i||o)&&a.draw(),0},this.fnVersionCheck=o.fnVersionCheck;var n=this,a=e===i,s=this.length;for(var u in a&&(e={}),this.oApi=this.internal=o.internal,l.ext.internal)u&&(this[u]=Ae(u));return this.each((function(){var o,r=s>1?le({},e,!0):e,u=0,c=this.getAttribute("id"),d=!1,h=l.defaults,f=t(this);if("table"==this.nodeName.toLowerCase()){M(h),L(h.column),D(h,h,!0),D(h.column,h.column,!0),D(h,t.extend(r,f.data()));var p=l.settings;for(u=0,o=p.length;u<o;u++){var v=p[u];if(v.nTable==this||v.nTHead&&v.nTHead.parentNode==this||v.nTFoot&&v.nTFoot.parentNode==this){var m=r.bRetrieve!==i?r.bRetrieve:h.bRetrieve,g=r.bDestroy!==i?r.bDestroy:h.bDestroy;if(a||m)return v.oInstance;if(g){v.oInstance.fnDestroy();break}return void ae(v,0,"Cannot reinitialise DataTable",3)}if(v.sTableId==this.id){p.splice(u,1);break}}null!==c&&""!==c||(c="DataTables_Table_"+l.ext._unique++,this.id=c);var y=t.extend(!0,{},l.models.oSettings,{sDestroyWidth:f[0].style.width,sInstance:c,sTableId:c});y.nTable=this,y.oApi=n.internal,y.oInit=r,p.push(y),y.oInstance=1===n.length?n:f.dataTable(),M(r),E(r.oLanguage),r.aLengthMenu&&!r.iDisplayLength&&(r.iDisplayLength=t.isArray(r.aLengthMenu[0])?r.aLengthMenu[0][0]:r.aLengthMenu[0]),r=le(t.extend(!0,{},h),r),se(y.oFeatures,r,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),se(y,r,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),se(y.oScroll,r,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),se(y.oLanguage,r,"fnInfoCallback"),ce(y,"aoDrawCallback",r.fnDrawCallback,"user"),ce(y,"aoServerParams",r.fnServerParams,"user"),ce(y,"aoStateSaveParams",r.fnStateSaveParams,"user"),ce(y,"aoStateLoadParams",r.fnStateLoadParams,"user"),ce(y,"aoStateLoaded",r.fnStateLoaded,"user"),ce(y,"aoRowCallback",r.fnRowCallback,"user"),ce(y,"aoRowCreatedCallback",r.fnCreatedRow,"user"),ce(y,"aoHeaderCallback",r.fnHeaderCallback,"user"),ce(y,"aoFooterCallback",r.fnFooterCallback,"user"),ce(y,"aoInitComplete",r.fnInitComplete,"user"),ce(y,"aoPreDrawCallback",r.fnPreDrawCallback,"user"),y.rowIdFn=K(r.rowId),A(y);var b=y.oClasses;if(t.extend(b,l.ext.classes,r.oClasses),f.addClass(b.sTable),y.iInitDisplayStart===i&&(y.iInitDisplayStart=r.iDisplayStart,y._iDisplayStart=r.iDisplayStart),null!==r.iDeferLoading){y.bDeferLoading=!0;var _=t.isArray(r.iDeferLoading);y._iRecordsDisplay=_?r.iDeferLoading[0]:r.iDeferLoading,y._iRecordsTotal=_?r.iDeferLoading[1]:r.iDeferLoading}var w=y.oLanguage;t.extend(!0,w,r.oLanguage),w.sUrl&&(t.ajax({dataType:"json",url:w.sUrl,success:function(e){E(e),D(h.oLanguage,e),t.extend(!0,w,e),At(y)},error:function(){At(y)}}),d=!0),null===r.asStripeClasses&&(y.asStripeClasses=[b.sStripeOdd,b.sStripeEven]);var C=y.asStripeClasses,k=f.children("tbody").find("tr").eq(0);-1!==t.inArray(!0,t.map(C,(function(t,e){return k.hasClass(t)})))&&(t("tbody tr",this).removeClass(C.join(" ")),y.asDestroyStripes=C.slice());var x,S=[],T=this.getElementsByTagName("thead");if(0!==T.length&&(ct(y.aoHeader,T[0]),S=dt(y)),null===r.aoColumns)for(x=[],u=0,o=S.length;u<o;u++)x.push(null);else x=r.aoColumns;for(u=0,o=x.length;u<o;u++)R(y,S?S[u]:null);if($(y,r.aoColumnDefs,x,(function(t,e){I(y,t,e)})),k.length){var O=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(k[0]).children("th, td").each((function(t,e){var n=y.aoColumns[t];if(n.mData===t){var o=O(e,"sort")||O(e,"order"),r=O(e,"filter")||O(e,"search");null===o&&null===r||(n.mData={_:t+".display",sort:null!==o?t+".@data-"+o:i,type:null!==o?t+".@data-"+o:i,filter:null!==r?t+".@data-"+r:i},I(y,t))}}))}var P=y.oFeatures,H=function(){if(r.aaSorting===i){var e=y.aaSorting;for(u=0,o=e.length;u<o;u++)e[u][1]=y.aoColumns[u].asSorting[0]}ee(y),P.bSort&&ce(y,"aoDrawCallback",(function(){if(y.bSorted){var e=Kt(y),n={};t.each(e,(function(t,e){n[e.src]=e.dir})),de(y,null,"order",[y,e,n]),Gt(y)}})),ce(y,"aoDrawCallback",(function(){(y.bSorted||"ssp"===pe(y)||P.bDeferRender)&&ee(y)}),"sc");var n=f.children("caption").each((function(){this._captionSide=t(this).css("caption-side")})),a=f.children("thead");0===a.length&&(a=t("<thead/>").appendTo(f)),y.nTHead=a[0];var s=f.children("tbody");0===s.length&&(s=t("<tbody/>").appendTo(f)),y.nTBody=s[0];var l=f.children("tfoot");if(0===l.length&&n.length>0&&(""!==y.oScroll.sX||""!==y.oScroll.sY)&&(l=t("<tfoot/>").appendTo(f)),0===l.length||0===l.children().length?f.addClass(b.sNoFooter):l.length>0&&(y.nTFoot=l[0],ct(y.aoFooter,y.nTFoot)),r.aaData)for(u=0;u<r.aaData.length;u++)q(y,r.aaData[u]);else(y.bDeferLoading||"dom"==pe(y))&&Y(y,t(y.nTBody).children("tr"));y.aiDisplay=y.aiDisplayMaster.slice(),y.bInitialised=!0,!1===d&&At(y)};r.bStateSave?(P.bStateSave=!0,ce(y,"aoDrawCallback",ie,"state_save"),oe(y,r,H)):H()}else ae(null,0,"Non-table node initialisation ("+this.nodeName+")",2)})),n=null,this},u={},c=/[\r\n]/g,d=/<.*?>/g,h=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,f=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),p=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,v=function(t){return!t||!0===t||"-"===t},m=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},g=function(t,e){return u[e]||(u[e]=new RegExp(kt(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(u[e],"."):t},y=function(t,e,n){var i="string"==typeof t;return!!v(t)||(e&&i&&(t=g(t,e)),n&&i&&(t=t.replace(p,"")),!isNaN(parseFloat(t))&&isFinite(t))},b=function(t,e,n){return!!v(t)||(function(t){return v(t)||"string"==typeof t}(t)&&!!y(x(t),e,n)||null)},_=function(t,e,n){var o=[],r=0,a=t.length;if(n!==i)for(;r<a;r++)t[r]&&t[r][e]&&o.push(t[r][e][n]);else for(;r<a;r++)t[r]&&o.push(t[r][e]);return o},w=function(t,e,n,o){var r=[],a=0,s=e.length;if(o!==i)for(;a<s;a++)t[e[a]][n]&&r.push(t[e[a]][n][o]);else for(;a<s;a++)r.push(t[e[a]][n]);return r},C=function(t,e){var n,o=[];e===i?(e=0,n=t):(n=e,e=t);for(var r=e;r<n;r++)o.push(r);return o},k=function(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&e.push(t[n]);return e},x=function(t){return t.replace(d,"")},S=function(t){if(function(t){if(t.length<2)return!0;for(var e=t.slice().sort(),n=e[0],i=1,o=e.length;i<o;i++){if(e[i]===n)return!1;n=e[i]}return!0}(t))return t.slice();var e,n,i,o=[],r=t.length,a=0;t:for(n=0;n<r;n++){for(e=t[n],i=0;i<a;i++)if(o[i]===e)continue t;o.push(e),a++}return o};function T(e){var n,i,o={};t.each(e,(function(t,r){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(i=t.replace(n[0],n[2].toLowerCase()),o[i]=t,"o"===n[1]&&T(e[t]))})),e._hungarianMap=o}function D(e,n,o){var r;e._hungarianMap||T(e),t.each(n,(function(a,s){(r=e._hungarianMap[a])===i||!o&&n[r]!==i||("o"===r.charAt(0)?(n[r]||(n[r]={}),t.extend(!0,n[r],n[a]),D(e[r],n[r],o)):n[r]=n[a])}))}function E(t){var e=l.defaults.oLanguage,n=e.sDecimal;if(n&&Me(n),t){var i=t.sZeroRecords;!t.sEmptyTable&&i&&"No data available in table"===e.sEmptyTable&&se(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&i&&"Loading..."===e.sLoadingRecords&&se(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var o=t.sDecimal;o&&n!==o&&Me(o)}}l.util={throttle:function(t,e){var n,o,r=e!==i?e:200;return function(){var e=this,a=+new Date,s=arguments;n&&a<n+r?(clearTimeout(o),o=setTimeout((function(){n=i,t.apply(e,s)}),r)):(n=a,t.apply(e,s))}},escapeRegex:function(t){return t.replace(f,"\\$1")}};var O=function(t,e,n){t[e]!==i&&(t[n]=t[e])};function M(t){O(t,"ordering","bSort"),O(t,"orderMulti","bSortMulti"),O(t,"orderClasses","bSortClasses"),O(t,"orderCellsTop","bSortCellsTop"),O(t,"order","aaSorting"),O(t,"orderFixed","aaSortingFixed"),O(t,"paging","bPaginate"),O(t,"pagingType","sPaginationType"),O(t,"pageLength","iDisplayLength"),O(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,i=e.length;n<i;n++)e[n]&&D(l.models.oSearch,e[n])}function L(e){O(e,"orderable","bSortable"),O(e,"orderData","aDataSort"),O(e,"orderSequence","asSorting"),O(e,"orderDataType","sortDataType");var n=e.aDataSort;"number"!=typeof n||t.isArray(n)||(e.aDataSort=[n])}function A(n){if(!l.__browser){var i={};l.__browser=i;var o=t("<div/>").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=o.children(),a=r.children();i.barWidth=r[0].offsetWidth-r[0].clientWidth,i.bScrollOversize=100===a[0].offsetWidth&&100!==r[0].clientWidth,i.bScrollbarLeft=1!==Math.round(a.offset().left),i.bBounding=!!o[0].getBoundingClientRect().width,o.remove()}t.extend(n.oBrowser,l.__browser),n.oScroll.iBarWidth=l.__browser.barWidth}function P(t,e,n,o,r,a){var s,l=o,u=!1;for(n!==i&&(s=n,u=!0);l!==r;)t.hasOwnProperty(l)&&(s=u?e(s,t[l],l,t):t[l],u=!0,l+=a);return s}function R(e,i){var o=l.defaults.column,r=e.aoColumns.length,a=t.extend({},l.models.oColumn,o,{nTh:i||n.createElement("th"),sTitle:o.sTitle?o.sTitle:i?i.innerHTML:"",aDataSort:o.aDataSort?o.aDataSort:[r],mData:o.mData?o.mData:r,idx:r});e.aoColumns.push(a);var s=e.aoPreSearchCols;s[r]=t.extend({},l.models.oSearch,s[r]),I(e,r,t(i).data())}function I(e,n,o){var r=e.aoColumns[n],a=e.oClasses,s=t(r.nTh);if(!r.sWidthOrig){r.sWidthOrig=s.attr("width")||null;var u=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);u&&(r.sWidthOrig=u[1])}o!==i&&null!==o&&(L(o),D(l.defaults.column,o),o.mDataProp===i||o.mData||(o.mData=o.mDataProp),o.sType&&(r._sManualType=o.sType),o.className&&!o.sClass&&(o.sClass=o.className),o.sClass&&s.addClass(o.sClass),t.extend(r,o),se(r,o,"sWidth","sWidthOrig"),o.iDataSort!==i&&(r.aDataSort=[o.iDataSort]),se(r,o,"aDataSort"));var c=r.mData,d=K(c),h=r.mRender?K(r.mRender):null,f=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};r._bAttrSrc=t.isPlainObject(c)&&(f(c.sort)||f(c.type)||f(c.filter)),r._setter=null,r.fnGetData=function(t,e,n){var o=d(t,e,i,n);return h&&e?h(o,e,t,n):o},r.fnSetData=function(t,e,n){return Q(c)(t,e,n)},"number"!=typeof c&&(e._rowReadObject=!0),e.oFeatures.bSort||(r.bSortable=!1,s.addClass(a.sSortableNone));var p=-1!==t.inArray("asc",r.asSorting),v=-1!==t.inArray("desc",r.asSorting);r.bSortable&&(p||v)?p&&!v?(r.sSortingClass=a.sSortableAsc,r.sSortingClassJUI=a.sSortJUIAscAllowed):!p&&v?(r.sSortingClass=a.sSortableDesc,r.sSortingClassJUI=a.sSortJUIDescAllowed):(r.sSortingClass=a.sSortable,r.sSortingClassJUI=a.sSortJUI):(r.sSortingClass=a.sSortableNone,r.sSortingClassJUI="")}function H(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;Yt(t);for(var n=0,i=e.length;n<i;n++)e[n].nTh.style.width=e[n].sWidth}var o=t.oScroll;""===o.sY&&""===o.sX||Ft(t),de(t,null,"column-sizing",[t])}function B(t,e){var n=W(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function j(e,n){var i=W(e,"bVisible"),o=t.inArray(n,i);return-1!==o?o:null}function N(e){var n=0;return t.each(e.aoColumns,(function(e,i){i.bVisible&&"none"!==t(i.nTh).css("display")&&n++})),n}function W(e,n){var i=[];return t.map(e.aoColumns,(function(t,e){t[n]&&i.push(e)})),i}function F(t){var e,n,o,r,a,s,u,c,d,h=t.aoColumns,f=t.aoData,p=l.ext.type.detect;for(e=0,n=h.length;e<n;e++)if(d=[],!(u=h[e]).sType&&u._sManualType)u.sType=u._sManualType;else if(!u.sType){for(o=0,r=p.length;o<r;o++){for(a=0,s=f.length;a<s&&(d[a]===i&&(d[a]=z(t,a,e,"type")),(c=p[o](d[a],t))||o===p.length-1)&&"html"!==c;a++);if(c){u.sType=c;break}}u.sType||(u.sType="string")}}function $(e,n,o,r){var a,s,l,u,c,d,h,f=e.aoColumns;if(n)for(a=n.length-1;a>=0;a--){var p=(h=n[a]).targets!==i?h.targets:h.aTargets;for(t.isArray(p)||(p=[p]),l=0,u=p.length;l<u;l++)if("number"==typeof p[l]&&p[l]>=0){for(;f.length<=p[l];)R(e);r(p[l],h)}else if("number"==typeof p[l]&&p[l]<0)r(f.length+p[l],h);else if("string"==typeof p[l])for(c=0,d=f.length;c<d;c++)("_all"==p[l]||t(f[c].nTh).hasClass(p[l]))&&r(c,h)}if(o)for(a=0,s=o.length;a<s;a++)r(a,o[a])}function q(e,n,o,r){var a=e.aoData.length,s=t.extend(!0,{},l.models.oRow,{src:o?"dom":"data",idx:a});s._aData=n,e.aoData.push(s);for(var u=e.aoColumns,c=0,d=u.length;c<d;c++)u[c].sType=null;e.aiDisplayMaster.push(a);var h=e.rowIdFn(n);return h!==i&&(e.aIds[h]=s),!o&&e.oFeatures.bDeferRender||it(e,a,o,r),a}function Y(e,n){var i;return n instanceof t||(n=t(n)),n.map((function(t,n){return i=nt(e,n),q(e,i.data,n,i.cells)}))}function z(t,e,n,o){var r=t.iDraw,a=t.aoColumns[n],s=t.aoData[e]._aData,l=a.sDefaultContent,u=a.fnGetData(s,o,{settings:t,row:e,col:n});if(u===i)return t.iDrawError!=r&&null===l&&(ae(t,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=r),l;if(u!==s&&null!==u||null===l||o===i){if("function"==typeof u)return u.call(s)}else u=l;return null===u&&"display"==o?"":u}function X(t,e,n,i){var o=t.aoColumns[n],r=t.aoData[e]._aData;o.fnSetData(r,i,{settings:t,row:e,col:n})}var V=/\[.*?\]$/,U=/\(\)$/;function J(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}function K(e){if(t.isPlainObject(e)){var n={};return t.each(e,(function(t,e){e&&(n[t]=K(e))})),function(t,e,o,r){var a=n[e]||n._;return a!==i?a(t,e,o,r):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,n,i,o){return e(t,n,i,o)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){return t[e]};var o=function(e,n,r){var a,s,l,u;if(""!==r)for(var c=J(r),d=0,h=c.length;d<h;d++){if(a=c[d].match(V),s=c[d].match(U),a){if(c[d]=c[d].replace(V,""),""!==c[d]&&(e=e[c[d]]),l=[],c.splice(0,d+1),u=c.join("."),t.isArray(e))for(var f=0,p=e.length;f<p;f++)l.push(o(e[f],n,u));var v=a[0].substring(1,a[0].length-1);e=""===v?l:l.join(v);break}if(s)c[d]=c[d].replace(U,""),e=e[c[d]]();else{if(null===e||e[c[d]]===i)return i;e=e[c[d]]}}return e};return function(t,n){return o(t,n,e)}}function Q(e){if(t.isPlainObject(e))return Q(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,n,i){e(t,"set",n,i)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){t[e]=n};var n=function(e,o,r){for(var a,s,l,u,c,d=J(r),h=d[d.length-1],f=0,p=d.length-1;f<p;f++){if(s=d[f].match(V),l=d[f].match(U),s){if(d[f]=d[f].replace(V,""),e[d[f]]=[],(a=d.slice()).splice(0,f+1),c=a.join("."),t.isArray(o))for(var v=0,m=o.length;v<m;v++)n(u={},o[v],c),e[d[f]].push(u);else e[d[f]]=o;return}l&&(d[f]=d[f].replace(U,""),e=e[d[f]](o)),null!==e[d[f]]&&e[d[f]]!==i||(e[d[f]]={}),e=e[d[f]]}h.match(U)?e=e[h.replace(U,"")](o):e[h.replace(V,"")]=o};return function(t,i){return n(t,i,e)}}function G(t){return _(t.aoData,"_aData")}function Z(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function tt(t,e,n){for(var o=-1,r=0,a=t.length;r<a;r++)t[r]==e?o=r:t[r]>e&&t[r]--;-1!=o&&n===i&&t.splice(o,1)}function et(t,e,n,o){var r,a,s=t.aoData[e],l=function(n,i){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=z(t,e,i,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==s.src)){var u=s.anCells;if(u)if(o!==i)l(u[o],o);else for(r=0,a=u.length;r<a;r++)l(u[r],r)}else s._aData=nt(t,s,o,o===i?i:s._aData).data;s._aSortData=null,s._aFilterData=null;var c=t.aoColumns;if(o!==i)c[o].sType=null;else{for(r=0,a=c.length;r<a;r++)c[r].sType=null;ot(t,s)}}function nt(e,n,o,r){var a,s,l,u=[],c=n.firstChild,d=0,h=e.aoColumns,f=e._rowReadObject;r=r!==i?r:f?{}:[];var p=function(t,e){if("string"==typeof t){var n=t.indexOf("@");if(-1!==n){var i=t.substring(n+1);Q(t)(r,e.getAttribute(i))}}},v=function(e){o!==i&&o!==d||(s=h[d],l=t.trim(e.innerHTML),s&&s._bAttrSrc?(Q(s.mData._)(r,l),p(s.mData.sort,e),p(s.mData.type,e),p(s.mData.filter,e)):f?(s._setter||(s._setter=Q(s.mData)),s._setter(r,l)):r[d]=l);d++};if(c)for(;c;)"TD"!=(a=c.nodeName.toUpperCase())&&"TH"!=a||(v(c),u.push(c)),c=c.nextSibling;else for(var m=0,g=(u=n.anCells).length;m<g;m++)v(u[m]);var y=n.firstChild?n:n.nTr;if(y){var b=y.getAttribute("id");b&&Q(e.rowId)(r,b)}return{data:r,cells:u}}function it(e,i,o,r){var a,s,l,u,c,d=e.aoData[i],h=d._aData,f=[];if(null===d.nTr){for(a=o||n.createElement("tr"),d.nTr=a,d.anCells=f,a._DT_RowIndex=i,ot(e,d),u=0,c=e.aoColumns.length;u<c;u++)l=e.aoColumns[u],(s=o?r[u]:n.createElement(l.sCellType))._DT_CellIndex={row:i,column:u},f.push(s),o&&!l.mRender&&l.mData===u||t.isPlainObject(l.mData)&&l.mData._===u+".display"||(s.innerHTML=z(e,i,u,"display")),l.sClass&&(s.className+=" "+l.sClass),l.bVisible&&!o?a.appendChild(s):!l.bVisible&&o&&s.parentNode.removeChild(s),l.fnCreatedCell&&l.fnCreatedCell.call(e.oInstance,s,z(e,i,u),h,i,u);de(e,"aoRowCreatedCallback",null,[a,h,i,f])}d.nTr.setAttribute("role","row")}function ot(e,n){var i=n.nTr,o=n._aData;if(i){var r=e.rowIdFn(o);if(r&&(i.id=r),o.DT_RowClass){var a=o.DT_RowClass.split(" ");n.__rowc=n.__rowc?S(n.__rowc.concat(a)):a,t(i).removeClass(n.__rowc.join(" ")).addClass(o.DT_RowClass)}o.DT_RowAttr&&t(i).attr(o.DT_RowAttr),o.DT_RowData&&t(i).data(o.DT_RowData)}}function rt(e){var n,i,o,r,a,s=e.nTHead,l=e.nTFoot,u=0===t("th, td",s).length,c=e.oClasses,d=e.aoColumns;for(u&&(r=t("<tr/>").appendTo(s)),n=0,i=d.length;n<i;n++)a=d[n],o=t(a.nTh).addClass(a.sClass),u&&o.appendTo(r),e.oFeatures.bSort&&(o.addClass(a.sSortingClass),!1!==a.bSortable&&(o.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),te(e,a.nTh,n))),a.sTitle!=o[0].innerHTML&&o.html(a.sTitle),fe(e,"header")(e,o,a,c);if(u&&ct(e.aoHeader,s),t(s).find(">tr").attr("role","row"),t(s).find(">tr>th, >tr>td").addClass(c.sHeaderTH),t(l).find(">tr>th, >tr>td").addClass(c.sFooterTH),null!==l){var h=e.aoFooter[0];for(n=0,i=h.length;n<i;n++)(a=d[n]).nTf=h[n].cell,a.sClass&&t(a.nTf).addClass(a.sClass)}}function at(e,n,o){var r,a,s,l,u,c,d,h,f,p=[],v=[],m=e.aoColumns.length;if(n){for(o===i&&(o=!1),r=0,a=n.length;r<a;r++){for(p[r]=n[r].slice(),p[r].nTr=n[r].nTr,s=m-1;s>=0;s--)e.aoColumns[s].bVisible||o||p[r].splice(s,1);v.push([])}for(r=0,a=p.length;r<a;r++){if(d=p[r].nTr)for(;c=d.firstChild;)d.removeChild(c);for(s=0,l=p[r].length;s<l;s++)if(h=1,f=1,v[r][s]===i){for(d.appendChild(p[r][s].cell),v[r][s]=1;p[r+h]!==i&&p[r][s].cell==p[r+h][s].cell;)v[r+h][s]=1,h++;for(;p[r][s+f]!==i&&p[r][s].cell==p[r][s+f].cell;){for(u=0;u<h;u++)v[r+u][s+f]=1;f++}t(p[r][s].cell).attr("rowspan",h).attr("colspan",f)}}}}function st(e){var n=de(e,"aoPreDrawCallback","preDraw",[e]);if(-1===t.inArray(!1,n)){var o=[],r=0,a=e.asStripeClasses,s=a.length,l=(e.aoOpenRows.length,e.oLanguage),u=e.iInitDisplayStart,c="ssp"==pe(e),d=e.aiDisplay;e.bDrawing=!0,u!==i&&-1!==u&&(e._iDisplayStart=c?u:u>=e.fnRecordsDisplay()?0:u,e.iInitDisplayStart=-1);var h=e._iDisplayStart,f=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,Nt(e,!1);else if(c){if(!e.bDestroying&&!ft(e))return}else e.iDraw++;if(0!==d.length)for(var p=c?0:h,v=c?e.aoData.length:f,m=p;m<v;m++){var g=d[m],y=e.aoData[g];null===y.nTr&&it(e,g);var b=y.nTr;if(0!==s){var _=a[r%s];y._sRowStripe!=_&&(t(b).removeClass(y._sRowStripe).addClass(_),y._sRowStripe=_)}de(e,"aoRowCallback",null,[b,y._aData,r,m,g]),o.push(b),r++}else{var w=l.sZeroRecords;1==e.iDraw&&"ajax"==pe(e)?w=l.sLoadingRecords:l.sEmptyTable&&0===e.fnRecordsTotal()&&(w=l.sEmptyTable),o[0]=t("<tr/>",{class:s?a[0]:""}).append(t("<td />",{valign:"top",colSpan:N(e),class:e.oClasses.sRowEmpty}).html(w))[0]}de(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],G(e),h,f,d]),de(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],G(e),h,f,d]);var C=t(e.nTBody);C.children().detach(),C.append(t(o)),de(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}else Nt(e,!1)}function lt(t,e){var n=t.oFeatures,i=n.bSort,o=n.bFilter;i&&Qt(t),o?yt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,st(t),t._drawHold=!1}function ut(e){var n=e.oClasses,i=t(e.nTable),o=t("<div/>").insertBefore(i),r=e.oFeatures,a=t("<div/>",{id:e.sTableId+"_wrapper",class:n.sWrapper+(e.nTFoot?"":" "+n.sNoFooter)});e.nHolding=o[0],e.nTableWrapper=a[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var s,u,c,d,h,f,p=e.sDom.split(""),v=0;v<p.length;v++){if(s=null,"<"==(u=p[v])){if(c=t("<div/>")[0],"'"==(d=p[v+1])||'"'==d){for(h="",f=2;p[v+f]!=d;)h+=p[v+f],f++;if("H"==h?h=n.sJUIHeader:"F"==h&&(h=n.sJUIFooter),-1!=h.indexOf(".")){var m=h.split(".");c.id=m[0].substr(1,m[0].length-1),c.className=m[1]}else"#"==h.charAt(0)?c.id=h.substr(1,h.length-1):c.className=h;v+=f}a.append(c),a=t(c)}else if(">"==u)a=a.parent();else if("l"==u&&r.bPaginate&&r.bLengthChange)s=It(e);else if("f"==u&&r.bFilter)s=gt(e);else if("r"==u&&r.bProcessing)s=jt(e);else if("t"==u)s=Wt(e);else if("i"==u&&r.bInfo)s=Ot(e);else if("p"==u&&r.bPaginate)s=Ht(e);else if(0!==l.ext.feature.length)for(var g=l.ext.feature,y=0,b=g.length;y<b;y++)if(u==g[y].cFeature){s=g[y].fnInit(e);break}if(s){var _=e.aanFeatures;_[u]||(_[u]=[]),_[u].push(s),a.append(s)}}o.replaceWith(a),e.nHolding=null}function ct(e,n){var i,o,r,a,s,l,u,c,d,h,f=t(n).children("tr"),p=function(t,e,n){for(var i=t[e];i[n];)n++;return n};for(e.splice(0,e.length),r=0,l=f.length;r<l;r++)e.push([]);for(r=0,l=f.length;r<l;r++)for(0,o=(i=f[r]).firstChild;o;){if("TD"==o.nodeName.toUpperCase()||"TH"==o.nodeName.toUpperCase())for(c=(c=1*o.getAttribute("colspan"))&&0!==c&&1!==c?c:1,d=(d=1*o.getAttribute("rowspan"))&&0!==d&&1!==d?d:1,u=p(e,r,0),h=1===c,s=0;s<c;s++)for(a=0;a<d;a++)e[r+a][u+s]={cell:o,unique:h},e[r+a].nTr=i;o=o.nextSibling}}function dt(t,e,n){var i=[];n||(n=t.aoHeader,e&&ct(n=[],e));for(var o=0,r=n.length;o<r;o++)for(var a=0,s=n[o].length;a<s;a++)!n[o][a].unique||i[a]&&t.bSortCellsTop||(i[a]=n[o][a].cell);return i}function ht(e,n,i){if(de(e,"aoServerParams","serverParams",[n]),n&&t.isArray(n)){var o={},r=/(.*?)\[\]$/;t.each(n,(function(t,e){var n=e.name.match(r);if(n){var i=n[0];o[i]||(o[i]=[]),o[i].push(e.value)}else o[e.name]=e.value})),n=o}var a,s=e.ajax,l=e.oInstance,u=function(t){de(e,null,"xhr",[e,t,e.jqXHR]),i(t)};if(t.isPlainObject(s)&&s.data){var c="function"==typeof(a=s.data)?a(n,e):a;n="function"==typeof a&&c?c:t.extend(!0,n,c),delete s.data}var d={data:n,success:function(t){var n=t.error||t.sError;n&&ae(e,0,n),e.json=t,u(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(n,i,o){var r=de(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,r)&&("parsererror"==i?ae(e,0,"Invalid JSON response",1):4===n.readyState&&ae(e,0,"Ajax error",7)),Nt(e,!1)}};e.oAjaxData=n,de(e,null,"preXhr",[e,n]),e.fnServerData?e.fnServerData.call(l,e.sAjaxSource,t.map(n,(function(t,e){return{name:e,value:t}})),u,e):e.sAjaxSource||"string"==typeof s?e.jqXHR=t.ajax(t.extend(d,{url:s||e.sAjaxSource})):"function"==typeof s?e.jqXHR=s.call(l,n,u,e):(e.jqXHR=t.ajax(t.extend(d,s)),s.data=a)}function ft(t){return!t.bAjaxDataGet||(t.iDraw++,Nt(t,!0),ht(t,pt(t),(function(e){vt(t,e)})),!1)}function pt(e){var n,i,o,r,a=e.aoColumns,s=a.length,u=e.oFeatures,c=e.oPreviousSearch,d=e.aoPreSearchCols,h=[],f=Kt(e),p=e._iDisplayStart,v=!1!==u.bPaginate?e._iDisplayLength:-1,m=function(t,e){h.push({name:t,value:e})};m("sEcho",e.iDraw),m("iColumns",s),m("sColumns",_(a,"sName").join(",")),m("iDisplayStart",p),m("iDisplayLength",v);var g={draw:e.iDraw,columns:[],order:[],start:p,length:v,search:{value:c.sSearch,regex:c.bRegex}};for(n=0;n<s;n++)o=a[n],r=d[n],i="function"==typeof o.mData?"function":o.mData,g.columns.push({data:i,name:o.sName,searchable:o.bSearchable,orderable:o.bSortable,search:{value:r.sSearch,regex:r.bRegex}}),m("mDataProp_"+n,i),u.bFilter&&(m("sSearch_"+n,r.sSearch),m("bRegex_"+n,r.bRegex),m("bSearchable_"+n,o.bSearchable)),u.bSort&&m("bSortable_"+n,o.bSortable);u.bFilter&&(m("sSearch",c.sSearch),m("bRegex",c.bRegex)),u.bSort&&(t.each(f,(function(t,e){g.order.push({column:e.col,dir:e.dir}),m("iSortCol_"+t,e.col),m("sSortDir_"+t,e.dir)})),m("iSortingCols",f.length));var y=l.ext.legacy.ajax;return null===y?e.sAjaxSource?h:g:y?h:g}function vt(t,e){var n=function(t,n){return e[t]!==i?e[t]:e[n]},o=mt(t,e),r=n("sEcho","draw"),a=n("iTotalRecords","recordsTotal"),s=n("iTotalDisplayRecords","recordsFiltered");if(r){if(1*r<t.iDraw)return;t.iDraw=1*r}Z(t),t._iRecordsTotal=parseInt(a,10),t._iRecordsDisplay=parseInt(s,10);for(var l=0,u=o.length;l<u;l++)q(t,o[l]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,st(t),t._bInitComplete||Pt(t,e),t.bAjaxDataGet=!0,Nt(t,!1)}function mt(e,n){var o=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==i?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===o?n.aaData||n[o]:""!==o?K(o)(n):n}function gt(e){var i=e.oClasses,o=e.sTableId,r=e.oLanguage,a=e.oPreviousSearch,s=e.aanFeatures,l='<input type="search" class="'+i.sFilterInput+'"/>',u=r.sSearch;u=u.match(/_INPUT_/)?u.replace("_INPUT_",l):u+l;var c=t("<div/>",{id:s.f?null:o+"_filter",class:i.sFilter}).append(t("<label/>").append(u)),d=function(){s.f;var t=this.value?this.value:"";t!=a.sSearch&&(yt(e,{sSearch:t,bRegex:a.bRegex,bSmart:a.bSmart,bCaseInsensitive:a.bCaseInsensitive}),e._iDisplayStart=0,st(e))},h=null!==e.searchDelay?e.searchDelay:"ssp"===pe(e)?400:0,f=t("input",c).val(a.sSearch).attr("placeholder",r.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",h?zt(d,h):d).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",o);return t(e.nTable).on("search.dt.DT",(function(t,i){if(e===i)try{f[0]!==n.activeElement&&f.val(a.sSearch)}catch(t){}})),c[0]}function yt(t,e,n){var o=t.oPreviousSearch,r=t.aoPreSearchCols,a=function(t){o.sSearch=t.sSearch,o.bRegex=t.bRegex,o.bSmart=t.bSmart,o.bCaseInsensitive=t.bCaseInsensitive},s=function(t){return t.bEscapeRegex!==i?!t.bEscapeRegex:t.bRegex};if(F(t),"ssp"!=pe(t)){wt(t,e.sSearch,n,s(e),e.bSmart,e.bCaseInsensitive),a(e);for(var l=0;l<r.length;l++)_t(t,r[l].sSearch,l,s(r[l]),r[l].bSmart,r[l].bCaseInsensitive);bt(t)}else a(e);t.bFiltered=!0,de(t,null,"search",[t])}function bt(e){for(var n,i,o=l.ext.search,r=e.aiDisplay,a=0,s=o.length;a<s;a++){for(var u=[],c=0,d=r.length;c<d;c++)i=r[c],n=e.aoData[i],o[a](e,n._aFilterData,i,n._aData,c)&&u.push(i);r.length=0,t.merge(r,u)}}function _t(t,e,n,i,o,r){if(""!==e){for(var a,s=[],l=t.aiDisplay,u=Ct(e,i,o,r),c=0;c<l.length;c++)a=t.aoData[l[c]]._aFilterData[n],u.test(a)&&s.push(l[c]);t.aiDisplay=s}}function wt(t,e,n,i,o,r){var a,s,u,c=Ct(e,i,o,r),d=t.oPreviousSearch.sSearch,h=t.aiDisplayMaster,f=[];if(0!==l.ext.search.length&&(n=!0),s=Tt(t),e.length<=0)t.aiDisplay=h.slice();else{for((s||n||d.length>e.length||0!==e.indexOf(d)||t.bSorted)&&(t.aiDisplay=h.slice()),a=t.aiDisplay,u=0;u<a.length;u++)c.test(t.aoData[a[u]]._sFilterRow)&&f.push(a[u]);t.aiDisplay=f}}function Ct(e,n,i,o){if(e=n?e:kt(e),i){var r=t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],(function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")}));e="^(?=.*?"+r.join(")(?=.*?")+").*$"}return new RegExp(e,o?"i":"")}var kt=l.util.escapeRegex,xt=t("<div>")[0],St=xt.textContent!==i;function Tt(t){var e,n,i,o,r,a,s,u,c=t.aoColumns,d=l.ext.type.search,h=!1;for(n=0,o=t.aoData.length;n<o;n++)if(!(u=t.aoData[n])._aFilterData){for(a=[],i=0,r=c.length;i<r;i++)(e=c[i]).bSearchable?(s=z(t,n,i,"filter"),d[e.sType]&&(s=d[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(xt.innerHTML=s,s=St?xt.textContent:xt.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),a.push(s);u._aFilterData=a,u._sFilterRow=a.join(" "),h=!0}return h}function Dt(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function Et(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function Ot(e){var n=e.sTableId,i=e.aanFeatures.i,o=t("<div/>",{class:e.oClasses.sInfo,id:i?null:n+"_info"});return i||(e.aoDrawCallback.push({fn:Mt,sName:"information"}),o.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",n+"_info")),o[0]}function Mt(e){var n=e.aanFeatures.i;if(0!==n.length){var i=e.oLanguage,o=e._iDisplayStart+1,r=e.fnDisplayEnd(),a=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),l=s?i.sInfo:i.sInfoEmpty;s!==a&&(l+=" "+i.sInfoFiltered),l=Lt(e,l+=i.sInfoPostFix);var u=i.fnInfoCallback;null!==u&&(l=u.call(e.oInstance,e,o,r,a,s,l)),t(n).html(l)}}function Lt(t,e){var n=t.fnFormatNumber,i=t._iDisplayStart+1,o=t._iDisplayLength,r=t.fnRecordsDisplay(),a=-1===o;return e.replace(/_START_/g,n.call(t,i)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,r)).replace(/_PAGE_/g,n.call(t,a?1:Math.ceil(i/o))).replace(/_PAGES_/g,n.call(t,a?1:Math.ceil(r/o)))}function At(t){var e,n,i,o=t.iInitDisplayStart,r=t.aoColumns,a=t.oFeatures,s=t.bDeferLoading;if(t.bInitialised){for(ut(t),rt(t),at(t,t.aoHeader),at(t,t.aoFooter),Nt(t,!0),a.bAutoWidth&&Yt(t),e=0,n=r.length;e<n;e++)(i=r[e]).sWidth&&(i.nTh.style.width=Jt(i.sWidth));de(t,null,"preInit",[t]),lt(t);var l=pe(t);("ssp"!=l||s)&&("ajax"==l?ht(t,[],(function(n){var i=mt(t,n);for(e=0;e<i.length;e++)q(t,i[e]);t.iInitDisplayStart=o,lt(t),Nt(t,!1),Pt(t,n)})):(Nt(t,!1),Pt(t)))}else setTimeout((function(){At(t)}),200)}function Pt(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&H(t),de(t,null,"plugin-init",[t,e]),de(t,"aoInitComplete","init",[t,e])}function Rt(t,e){var n=parseInt(e,10);t._iDisplayLength=n,he(t),de(t,null,"length",[t,n])}function It(e){for(var n=e.oClasses,i=e.sTableId,o=e.aLengthMenu,r=t.isArray(o[0]),a=r?o[0]:o,s=r?o[1]:o,l=t("<select/>",{name:i+"_length","aria-controls":i,class:n.sLengthSelect}),u=0,c=a.length;u<c;u++)l[0][u]=new Option("number"==typeof s[u]?e.fnFormatNumber(s[u]):s[u],a[u]);var d=t("<div><label/></div>").addClass(n.sLength);return e.aanFeatures.l||(d[0].id=i+"_length"),d.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),t("select",d).val(e._iDisplayLength).on("change.DT",(function(n){Rt(e,t(this).val()),st(e)})),t(e.nTable).on("length.dt.DT",(function(n,i,o){e===i&&t("select",d).val(o)})),d[0]}function Ht(e){var n=e.sPaginationType,i=l.ext.pager[n],o="function"==typeof i,r=function(t){st(t)},a=t("<div/>").addClass(e.oClasses.sPaging+n)[0],s=e.aanFeatures;return o||i.fnInit(e,a,r),s.p||(a.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(o){var e,n,a=t._iDisplayStart,l=t._iDisplayLength,u=t.fnRecordsDisplay(),c=-1===l,d=c?0:Math.ceil(a/l),h=c?1:Math.ceil(u/l),f=i(d,h);for(e=0,n=s.p.length;e<n;e++)fe(t,"pageButton")(t,s.p[e],e,f,d,h)}else i.fnUpdate(t,r)},sName:"pagination"})),a}function Bt(t,e,n){var i=t._iDisplayStart,o=t._iDisplayLength,r=t.fnRecordsDisplay();0===r||-1===o?i=0:"number"==typeof e?(i=e*o)>r&&(i=0):"first"==e?i=0:"previous"==e?(i=o>=0?i-o:0)<0&&(i=0):"next"==e?i+o<r&&(i+=o):"last"==e?i=Math.floor((r-1)/o)*o:ae(t,0,"Unknown paging action: "+e,5);var a=t._iDisplayStart!==i;return t._iDisplayStart=i,a&&(de(t,null,"page",[t]),n&&st(t)),a}function jt(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function Nt(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),de(e,null,"processing",[e,n])}function Wt(e){var n=t(e.nTable);n.attr("role","grid");var i=e.oScroll;if(""===i.sX&&""===i.sY)return e.nTable;var o=i.sX,r=i.sY,a=e.oClasses,s=n.children("caption"),l=s.length?s[0]._captionSide:null,u=t(n[0].cloneNode(!1)),c=t(n[0].cloneNode(!1)),d=n.children("tfoot"),h="<div/>",f=function(t){return t?Jt(t):null};d.length||(d=null);var p=t(h,{class:a.sScrollWrapper}).append(t(h,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:o?f(o):"100%"}).append(t(h,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:i.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(n.children("thead"))))).append(t(h,{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:f(o)}).append(n));d&&p.append(t(h,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:o?f(o):"100%"}).append(t(h,{class:a.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(n.children("tfoot")))));var v=p.children(),m=v[0],g=v[1],y=d?v[2]:null;return o&&t(g).on("scroll.DT",(function(t){var e=this.scrollLeft;m.scrollLeft=e,d&&(y.scrollLeft=e)})),t(g).css(r&&i.bCollapse?"max-height":"height",r),e.nScrollHead=m,e.nScrollBody=g,e.nScrollFoot=y,e.aoDrawCallback.push({fn:Ft,sName:"scrolling"}),p[0]}function Ft(e){var n,o,r,a,s,l,u,c,d,h=e.oScroll,f=h.sX,p=h.sXInner,v=h.sY,m=h.iBarWidth,g=t(e.nScrollHead),y=g[0].style,b=g.children("div"),w=b[0].style,C=b.children("table"),k=e.nScrollBody,x=t(k),S=k.style,T=t(e.nScrollFoot).children("div"),D=T.children("table"),E=t(e.nTHead),O=t(e.nTable),M=O[0],L=M.style,A=e.nTFoot?t(e.nTFoot):null,P=e.oBrowser,R=P.bScrollOversize,I=_(e.aoColumns,"nTh"),j=[],N=[],W=[],F=[],$=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},q=k.scrollHeight>k.clientHeight;if(e.scrollBarVis!==q&&e.scrollBarVis!==i)return e.scrollBarVis=q,void H(e);e.scrollBarVis=q,O.children("thead, tfoot").remove(),A&&(l=A.clone().prependTo(O),o=A.find("tr"),a=l.find("tr")),s=E.clone().prependTo(O),n=E.find("tr"),r=s.find("tr"),s.find("th, td").removeAttr("tabindex"),f||(S.width="100%",g[0].style.width="100%"),t.each(dt(e,s),(function(t,n){u=B(e,t),n.style.width=e.aoColumns[u].sWidth})),A&&$t((function(t){t.style.width=""}),a),d=O.outerWidth(),""===f?(L.width="100%",R&&(O.find("tbody").height()>k.offsetHeight||"scroll"==x.css("overflow-y"))&&(L.width=Jt(O.outerWidth()-m)),d=O.outerWidth()):""!==p&&(L.width=Jt(p),d=O.outerWidth()),$t($,r),$t((function(e){W.push(e.innerHTML),j.push(Jt(t(e).css("width")))}),r),$t((function(e,n){-1!==t.inArray(e,I)&&(e.style.width=j[n])}),n),t(r).height(0),A&&($t($,a),$t((function(e){F.push(e.innerHTML),N.push(Jt(t(e).css("width")))}),a),$t((function(t,e){t.style.width=N[e]}),o),t(a).height(0)),$t((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+W[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=j[e]}),r),A&&$t((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+F[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=N[e]}),a),O.outerWidth()<d?(c=k.scrollHeight>k.offsetHeight||"scroll"==x.css("overflow-y")?d+m:d,R&&(k.scrollHeight>k.offsetHeight||"scroll"==x.css("overflow-y"))&&(L.width=Jt(c-m)),""!==f&&""===p||ae(e,1,"Possible column misalignment",6)):c="100%",S.width=Jt(c),y.width=Jt(c),A&&(e.nScrollFoot.style.width=Jt(c)),v||R&&(S.height=Jt(M.offsetHeight+m));var Y=O.outerWidth();C[0].style.width=Jt(Y),w.width=Jt(Y);var z=O.height()>k.clientHeight||"scroll"==x.css("overflow-y"),X="padding"+(P.bScrollbarLeft?"Left":"Right");w[X]=z?m+"px":"0px",A&&(D[0].style.width=Jt(Y),T[0].style.width=Jt(Y),T[0].style[X]=z?m+"px":"0px"),O.children("colgroup").insertBefore(O.children("thead")),x.scroll(),!e.bSorted&&!e.bFiltered||e._drawHold||(k.scrollTop=0)}function $t(t,e,n){for(var i,o,r=0,a=0,s=e.length;a<s;){for(i=e[a].firstChild,o=n?n[a].firstChild:null;i;)1===i.nodeType&&(n?t(i,o,r):t(i,r),r++),i=i.nextSibling,o=n?o.nextSibling:null;a++}}var qt=/<.*?>/g;function Yt(n){var i,o,r,a=n.nTable,s=n.aoColumns,l=n.oScroll,u=l.sY,c=l.sX,d=l.sXInner,h=s.length,f=W(n,"bVisible"),p=t("th",n.nTHead),v=a.getAttribute("width"),m=a.parentNode,g=!1,y=n.oBrowser,b=y.bScrollOversize,_=a.style.width;for(_&&-1!==_.indexOf("%")&&(v=_),i=0;i<f.length;i++)null!==(o=s[f[i]]).sWidth&&(o.sWidth=Xt(o.sWidthOrig,m),g=!0);if(b||!g&&!c&&!u&&h==N(n)&&h==p.length)for(i=0;i<h;i++){var w=B(n,i);null!==w&&(s[w].sWidth=Jt(p.eq(i).width()))}else{var C=t(a).clone().css("visibility","hidden").removeAttr("id");C.find("tbody tr").remove();var k=t("<tr/>").appendTo(C.find("tbody"));for(C.find("thead, tfoot").remove(),C.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),C.find("tfoot th, tfoot td").css("width",""),p=dt(n,C.find("thead")[0]),i=0;i<f.length;i++)o=s[f[i]],p[i].style.width=null!==o.sWidthOrig&&""!==o.sWidthOrig?Jt(o.sWidthOrig):"",o.sWidthOrig&&c&&t(p[i]).append(t("<div/>").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(i=0;i<f.length;i++)o=s[r=f[i]],t(Vt(n,r)).clone(!1).append(o.sContentPadding).appendTo(k);t("[name]",C).removeAttr("name");var x=t("<div/>").css(c||u?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(C).appendTo(m);c&&d?C.width(d):c?(C.css("width","auto"),C.removeAttr("width"),C.width()<m.clientWidth&&v&&C.width(m.clientWidth)):u?C.width(m.clientWidth):v&&C.width(v);var S=0;for(i=0;i<f.length;i++){var T=t(p[i]),D=T.outerWidth()-T.width(),E=y.bBounding?Math.ceil(p[i].getBoundingClientRect().width):T.outerWidth();S+=E,s[f[i]].sWidth=Jt(E-D)}a.style.width=Jt(S),x.remove()}if(v&&(a.style.width=Jt(v)),(v||c)&&!n._reszEvt){var O=function(){t(e).on("resize.DT-"+n.sInstance,zt((function(){H(n)})))};b?setTimeout(O,1e3):O(),n._reszEvt=!0}}var zt=l.util.throttle;function Xt(e,i){if(!e)return 0;var o=t("<div/>").css("width",Jt(e)).appendTo(i||n.body),r=o[0].offsetWidth;return o.remove(),r}function Vt(e,n){var i=Ut(e,n);if(i<0)return null;var o=e.aoData[i];return o.nTr?o.anCells[n]:t("<td/>").html(z(e,i,n,"display"))[0]}function Ut(t,e){for(var n,i=-1,o=-1,r=0,a=t.aoData.length;r<a;r++)(n=(n=(n=z(t,r,e,"display")+"").replace(qt,"")).replace(/ /g," ")).length>i&&(i=n.length,o=r);return o}function Jt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Kt(e){var n,o,r,a,s,u,c,d=[],h=e.aoColumns,f=e.aaSortingFixed,p=t.isPlainObject(f),v=[],m=function(e){e.length&&!t.isArray(e[0])?v.push(e):t.merge(v,e)};for(t.isArray(f)&&m(f),p&&f.pre&&m(f.pre),m(e.aaSorting),p&&f.post&&m(f.post),n=0;n<v.length;n++)for(o=0,r=(a=h[c=v[n][0]].aDataSort).length;o<r;o++)u=h[s=a[o]].sType||"string",v[n]._idx===i&&(v[n]._idx=t.inArray(v[n][1],h[s].asSorting)),d.push({src:c,col:s,dir:v[n][1],index:v[n]._idx,type:u,formatter:l.ext.type.order[u+"-pre"]});return d}function Qt(t){var e,n,i,o,r,a=[],s=l.ext.type.order,u=t.aoData,c=(t.aoColumns,0),d=t.aiDisplayMaster;for(F(t),e=0,n=(r=Kt(t)).length;e<n;e++)(o=r[e]).formatter&&c++,ne(t,o.col);if("ssp"!=pe(t)&&0!==r.length){for(e=0,i=d.length;e<i;e++)a[d[e]]=e;c===r.length?d.sort((function(t,e){var n,i,o,s,l,c=r.length,d=u[t]._aSortData,h=u[e]._aSortData;for(o=0;o<c;o++)if(0!==(s=(n=d[(l=r[o]).col])<(i=h[l.col])?-1:n>i?1:0))return"asc"===l.dir?s:-s;return(n=a[t])<(i=a[e])?-1:n>i?1:0})):d.sort((function(t,e){var n,i,o,l,c,d=r.length,h=u[t]._aSortData,f=u[e]._aSortData;for(o=0;o<d;o++)if(n=h[(c=r[o]).col],i=f[c.col],0!==(l=(s[c.type+"-"+c.dir]||s["string-"+c.dir])(n,i)))return l;return(n=a[t])<(i=a[e])?-1:n>i?1:0}))}t.bSorted=!0}function Gt(t){for(var e,n,i=t.aoColumns,o=Kt(t),r=t.oLanguage.oAria,a=0,s=i.length;a<s;a++){var l=i[a],u=l.asSorting,c=l.sTitle.replace(/<.*?>/g,""),d=l.nTh;d.removeAttribute("aria-sort"),l.bSortable?(o.length>0&&o[0].col==a?(d.setAttribute("aria-sort","asc"==o[0].dir?"ascending":"descending"),n=u[o[0].index+1]||u[0]):n=u[0],e=c+("asc"===n?r.sSortAscending:r.sSortDescending)):e=c,d.setAttribute("aria-label",e)}}function Zt(e,n,o,r){var a,s=e.aoColumns[n],l=e.aaSorting,u=s.asSorting,c=function(e,n){var o=e._idx;return o===i&&(o=t.inArray(e[1],u)),o+1<u.length?o+1:n?null:0};if("number"==typeof l[0]&&(l=e.aaSorting=[l]),o&&e.oFeatures.bSortMulti){var d=t.inArray(n,_(l,"0"));-1!==d?(null===(a=c(l[d],!0))&&1===l.length&&(a=0),null===a?l.splice(d,1):(l[d][1]=u[a],l[d]._idx=a)):(l.push([n,u[0],0]),l[l.length-1]._idx=0)}else l.length&&l[0][0]==n?(a=c(l[0]),l.length=1,l[0][1]=u[a],l[0]._idx=a):(l.length=0,l.push([n,u[0]]),l[0]._idx=0);lt(e),"function"==typeof r&&r(e)}function te(t,e,n,i){var o=t.aoColumns[n];ue(e,{},(function(e){!1!==o.bSortable&&(t.oFeatures.bProcessing?(Nt(t,!0),setTimeout((function(){Zt(t,n,e.shiftKey,i),"ssp"!==pe(t)&&Nt(t,!1)}),0)):Zt(t,n,e.shiftKey,i))}))}function ee(e){var n,i,o,r=e.aLastSort,a=e.oClasses.sSortColumn,s=Kt(e),l=e.oFeatures;if(l.bSort&&l.bSortClasses){for(n=0,i=r.length;n<i;n++)o=r[n].src,t(_(e.aoData,"anCells",o)).removeClass(a+(n<2?n+1:3));for(n=0,i=s.length;n<i;n++)o=s[n].src,t(_(e.aoData,"anCells",o)).addClass(a+(n<2?n+1:3))}e.aLastSort=s}function ne(t,e){var n,i,o,r=t.aoColumns[e],a=l.ext.order[r.sSortDataType];a&&(n=a.call(t.oInstance,t,e,j(t,e)));for(var s=l.ext.type.order[r.sType+"-pre"],u=0,c=t.aoData.length;u<c;u++)(i=t.aoData[u])._aSortData||(i._aSortData=[]),i._aSortData[e]&&!a||(o=a?n[u]:z(t,u,e,"sort"),i._aSortData[e]=s?s(o):o)}function ie(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var n={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:Dt(e.oPreviousSearch),columns:t.map(e.aoColumns,(function(t,n){return{visible:t.bVisible,search:Dt(e.aoPreSearchCols[n])}}))};de(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oSavedState=n,e.fnStateSaveCallback.call(e.oInstance,e,n)}}function oe(e,n,o){var r,a,s=e.aoColumns,l=function(n){if(n&&n.time){var l=de(e,"aoStateLoadParams","stateLoadParams",[e,n]);if(-1===t.inArray(!1,l)){var u=e.iStateDuration;if(u>0&&n.time<+new Date-1e3*u)o();else if(n.columns&&s.length!==n.columns.length)o();else{if(e.oLoadedState=t.extend(!0,{},n),n.start!==i&&(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start),n.length!==i&&(e._iDisplayLength=n.length),n.order!==i&&(e.aaSorting=[],t.each(n.order,(function(t,n){e.aaSorting.push(n[0]>=s.length?[0,n[1]]:n)}))),n.search!==i&&t.extend(e.oPreviousSearch,Et(n.search)),n.columns)for(r=0,a=n.columns.length;r<a;r++){var c=n.columns[r];c.visible!==i&&(s[r].bVisible=c.visible),c.search!==i&&t.extend(e.aoPreSearchCols[r],Et(c.search))}de(e,"aoStateLoaded","stateLoaded",[e,n]),o()}}else o()}else o()};if(e.oFeatures.bStateSave){var u=e.fnStateLoadCallback.call(e.oInstance,e,l);u!==i&&l(u)}else o()}function re(e){var n=l.settings,i=t.inArray(e,_(n,"nTable"));return-1!==i?n[i]:null}function ae(t,n,i,o){if(i="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+i,o&&(i+=". For more information about this error, please see http://datatables.net/tn/"+o),n)e.console&&console.log&&console.log(i);else{var r=l.ext,a=r.sErrMode||r.errMode;if(t&&de(t,null,"error",[t,o,i]),"alert"==a)alert(i);else{if("throw"==a)throw new Error(i);"function"==typeof a&&a(t,o,i)}}}function se(e,n,o,r){t.isArray(o)?t.each(o,(function(i,o){t.isArray(o)?se(e,n,o[0],o[1]):se(e,n,o)})):(r===i&&(r=o),n[o]!==i&&(e[r]=n[o]))}function le(e,n,i){var o;for(var r in n)n.hasOwnProperty(r)&&(o=n[r],t.isPlainObject(o)?(t.isPlainObject(e[r])||(e[r]={}),t.extend(!0,e[r],o)):i&&"data"!==r&&"aaData"!==r&&t.isArray(o)?e[r]=o.slice():e[r]=o);return e}function ue(e,n,i){t(e).on("click.DT",n,(function(n){t(e).blur(),i(n)})).on("keypress.DT",n,(function(t){13===t.which&&(t.preventDefault(),i(t))})).on("selectstart.DT",(function(){return!1}))}function ce(t,e,n,i){n&&t[e].push({fn:n,sName:i})}function de(e,n,i,o){var r=[];if(n&&(r=t.map(e[n].slice().reverse(),(function(t,n){return t.fn.apply(e.oInstance,o)}))),null!==i){var a=t.Event(i+".dt");t(e.nTable).trigger(a,o),r.push(a.result)}return r}function he(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),i=t._iDisplayLength;e>=n&&(e=n-i),e-=e%i,(-1===i||e<0)&&(e=0),t._iDisplayStart=e}function fe(e,n){var i=e.renderer,o=l.ext.renderer[n];return t.isPlainObject(i)&&i[n]?o[i[n]]||o._:"string"==typeof i&&o[i]||o._}function pe(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}var ve=[],me=Array.prototype;r=function(e,n){if(!(this instanceof r))return new r(e,n);var i=[],o=function(e){var n=function(e){var n,i,o=l.settings,r=t.map(o,(function(t,e){return t.nTable}));return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(n=t.inArray(e,r))?[o[n]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?i=t(e):e instanceof t&&(i=e),i?i.map((function(e){return-1!==(n=t.inArray(this,r))?o[n]:null})).toArray():void 0):[]}(e);n&&(i=i.concat(n))};if(t.isArray(e))for(var a=0,s=e.length;a<s;a++)o(e[a]);else o(e);this.context=S(i),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},r.extend(this,this,ve)},l.Api=r,t.extend(r.prototype,{any:function(){return 0!==this.count()},concat:me.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new r(e[t],this[t]):null},filter:function(t){var e=[];if(me.filter)e=me.filter.call(this,t,this);else for(var n=0,i=this.length;n<i;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new r(this.context,e)},flatten:function(){var t=[];return new r(this.context,t.concat.apply(t,this.toArray()))},join:me.join,indexOf:me.indexOf||function(t,e){for(var n=e||0,i=this.length;n<i;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,o){var a,s,l,u,c,d,h,f,p=[],v=this.context,m=this.selector;for("string"==typeof t&&(o=n,n=e,e=t,t=!1),s=0,l=v.length;s<l;s++){var g=new r(v[s]);if("table"===e)(a=n.call(g,v[s],s))!==i&&p.push(a);else if("columns"===e||"rows"===e)(a=n.call(g,v[s],this[s],s))!==i&&p.push(a);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(h=this[s],"column-rows"===e&&(d=we(v[s],m.opts)),u=0,c=h.length;u<c;u++)f=h[u],(a="cell"===e?n.call(g,v[s],f.row,f.column,s,u):n.call(g,v[s],f,s,u,d))!==i&&p.push(a)}if(p.length||o){var y=new r(v,t?p.concat.apply([],p):p),b=y.selector;return b.rows=m.rows,b.cols=m.cols,b.opts=m.opts,y}return this},lastIndexOf:me.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(me.map)e=me.map.call(this,t,this);else for(var n=0,i=this.length;n<i;n++)e.push(t.call(this,this[n],n));return new r(this.context,e)},pluck:function(t){return this.map((function(e){return e[t]}))},pop:me.pop,push:me.push,reduce:me.reduce||function(t,e){return P(this,t,e,0,this.length,1)},reduceRight:me.reduceRight||function(t,e){return P(this,t,e,this.length-1,-1,-1)},reverse:me.reverse,selector:null,shift:me.shift,slice:function(){return new r(this.context,this)},sort:me.sort,splice:me.splice,toArray:function(){return me.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new r(this.context,S(this))},unshift:me.unshift}),r.extend=function(e,n,i){if(i.length&&n&&(n instanceof r||n.__dt_wrapper)){var o,a,s,l=function(t,e,n){return function(){var i=e.apply(t,arguments);return r.extend(i,i,n.methodExt),i}};for(o=0,a=i.length;o<a;o++)n[(s=i[o]).name]="function"==typeof s.val?l(e,s.val,s):t.isPlainObject(s.val)?{}:s.val,n[s.name].__dt_wrapper=!0,r.extend(e,n[s.name],s.propExt)}},r.register=a=function(e,n){if(t.isArray(e))for(var i=0,o=e.length;i<o;i++)r.register(e[i],n);else{var a,s,l,u,c=e.split("."),d=ve,h=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n].name===e)return t[n];return null};for(a=0,s=c.length;a<s;a++){var f=h(d,l=(u=-1!==c[a].indexOf("()"))?c[a].replace("()",""):c[a]);f||(f={name:l,val:{},methodExt:[],propExt:[]},d.push(f)),a===s-1?f.val=n:d=u?f.methodExt:f.propExt}}},r.registerPlural=s=function(e,n,o){r.register(e,o),r.register(n,(function(){var e=o.apply(this,arguments);return e===this?this:e instanceof r?e.length?t.isArray(e[0])?new r(e.context,e[0]):e[0]:i:e}))};a("tables()",(function(e){return e?new r(function(e,n){if("number"==typeof e)return[n[e]];var i=t.map(n,(function(t,e){return t.nTable}));return t(i).filter(e).map((function(e){var o=t.inArray(this,i);return n[o]})).toArray()}(e,this.context)):this})),a("table()",(function(t){var e=this.tables(t),n=e.context;return n.length?new r(n[0]):e})),s("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),s("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),s("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),s("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),s("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),a("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?st(e):("string"==typeof t&&(t="full-hold"!==t),lt(e,!1===t))}))})),a("page()",(function(t){return t===i?this.page.info().page:this.iterator("table",(function(e){Bt(e,t)}))})),a("page.info()",(function(t){if(0===this.context.length)return i;var e=this.context[0],n=e._iDisplayStart,o=e.oFeatures.bPaginate?e._iDisplayLength:-1,r=e.fnRecordsDisplay(),a=-1===o;return{page:a?0:Math.floor(n/o),pages:a?1:Math.ceil(r/o),start:n,end:e.fnDisplayEnd(),length:o,recordsTotal:e.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===pe(e)}})),a("page.len()",(function(t){return t===i?0!==this.context.length?this.context[0]._iDisplayLength:i:this.iterator("table",(function(e){Rt(e,t)}))}));var ge=function(t,e,n){if(n){var i=new r(t);i.one("draw",(function(){n(i.ajax.json())}))}if("ssp"==pe(t))lt(t,e);else{Nt(t,!0);var o=t.jqXHR;o&&4!==o.readyState&&o.abort(),ht(t,[],(function(n){Z(t);for(var i=mt(t,n),o=0,r=i.length;o<r;o++)q(t,i[o]);lt(t,e),Nt(t,!1)}))}};a("ajax.json()",(function(){var t=this.context;if(t.length>0)return t[0].json})),a("ajax.params()",(function(){var t=this.context;if(t.length>0)return t[0].oAjaxData})),a("ajax.reload()",(function(t,e){return this.iterator("table",(function(n){ge(n,!1===e,t)}))})),a("ajax.url()",(function(e){var n=this.context;return e===i?0===n.length?i:(n=n[0]).ajax?t.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource:this.iterator("table",(function(n){t.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e}))})),a("ajax.url().load()",(function(t,e){return this.iterator("table",(function(n){ge(n,!1===e,t)}))}));var ye=function(e,n,r,a,s){var l,u,c,d,h,f,p=[],v=typeof n;for(n&&"string"!==v&&"function"!==v&&n.length!==i||(n=[n]),c=0,d=n.length;c<d;c++)for(h=0,f=(u=n[c]&&n[c].split&&!n[c].match(/[\[\(:]/)?n[c].split(","):[n[c]]).length;h<f;h++)(l=r("string"==typeof u[h]?t.trim(u[h]):u[h]))&&l.length&&(p=p.concat(l));var m=o.selector[e];if(m.length)for(c=0,d=m.length;c<d;c++)p=m[c](a,s,p);return S(p)},be=function(e){return e||(e={}),e.filter&&e.search===i&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},_e=function(t){for(var e=0,n=t.length;e<n;e++)if(t[e].length>0)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},we=function(e,n){var i,o=[],r=e.aiDisplay,a=e.aiDisplayMaster,s=n.search,l=n.order,u=n.page;if("ssp"==pe(e))return"removed"===s?[]:C(0,a.length);if("current"==u)for(d=e._iDisplayStart,h=e.fnDisplayEnd();d<h;d++)o.push(r[d]);else if("current"==l||"applied"==l){if("none"==s)o=a.slice();else if("applied"==s)o=r.slice();else if("removed"==s){for(var c={},d=0,h=r.length;d<h;d++)c[r[d]]=null;o=t.map(a,(function(t){return c.hasOwnProperty(t)?null:t}))}}else if("index"==l||"original"==l)for(d=0,h=e.aoData.length;d<h;d++)("none"==s||-1===(i=t.inArray(d,r))&&"removed"==s||i>=0&&"applied"==s)&&o.push(d);return o};a("rows()",(function(e,n){e===i?e="":t.isPlainObject(e)&&(n=e,e=""),n=be(n);var o=this.iterator("table",(function(o){return function(e,n,o){var r;return ye("row",n,(function(n){var a=m(n),s=e.aoData;if(null!==a&&!o)return[a];if(r||(r=we(e,o)),null!==a&&-1!==t.inArray(a,r))return[a];if(null===n||n===i||""===n)return r;if("function"==typeof n)return t.map(r,(function(t){var e=s[t];return n(t,e._aData,e.nTr)?t:null}));if(n.nodeName){var l=n._DT_RowIndex,u=n._DT_CellIndex;if(l!==i)return s[l]&&s[l].nTr===n?[l]:[];if(u)return s[u.row]&&s[u.row].nTr===n?[u.row]:[];var c=t(n).closest("*[data-dt-row]");return c.length?[c.data("dt-row")]:[]}if("string"==typeof n&&"#"===n.charAt(0)){var d=e.aIds[n.replace(/^#/,"")];if(d!==i)return[d.idx]}var h=k(w(e.aoData,r,"nTr"));return t(h).filter(n).map((function(){return this._DT_RowIndex})).toArray()}),e,o)}(o,e,n)}),1);return o.selector.rows=e,o.selector.opts=n,o})),a("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||i}),1)})),a("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return w(t.aoData,e,"_aData")}),1)})),s("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(e,n){var i=e.aoData[n];return"search"===t?i._aFilterData:i._aSortData}),1)})),s("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,n){et(e,n,t)}))})),s("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),s("rows().ids()","row().id()",(function(t){for(var e=[],n=this.context,i=0,o=n.length;i<o;i++)for(var a=0,s=this[i].length;a<s;a++){var l=n[i].rowIdFn(n[i].aoData[this[i][a]]._aData);e.push((!0===t?"#":"")+l)}return new r(n,e)})),s("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,n,o){var r,a,s,l,u,c,d=e.aoData,h=d[n];for(d.splice(n,1),r=0,a=d.length;r<a;r++)if(c=(u=d[r]).anCells,null!==u.nTr&&(u.nTr._DT_RowIndex=r),null!==c)for(s=0,l=c.length;s<l;s++)c[s]._DT_CellIndex.row=r;tt(e.aiDisplayMaster,n),tt(e.aiDisplay,n),tt(t[o],n,!1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,he(e);var f=e.rowIdFn(h._aData);f!==i&&delete e.aIds[f]})),this.iterator("table",(function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e})),this})),a("rows.add()",(function(e){var n=this.iterator("table",(function(t){var n,i,o,r=[];for(i=0,o=e.length;i<o;i++)(n=e[i]).nodeName&&"TR"===n.nodeName.toUpperCase()?r.push(Y(t,n)[0]):r.push(q(t,n));return r}),1),i=this.rows(-1);return i.pop(),t.merge(i,n),i})),a("row()",(function(t,e){return _e(this.rows(t,e))})),a("row().data()",(function(e){var n=this.context;if(e===i)return n.length&&this.length?n[0].aoData[this[0]]._aData:i;var o=n[0].aoData[this[0]];return o._aData=e,t.isArray(e)&&o.nTr.id&&Q(n[0].rowId)(e,o.nTr.id),et(n[0],this[0],"data"),this})),a("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),a("row.add()",(function(e){e instanceof t&&e.length&&(e=e[0]);var n=this.iterator("table",(function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?Y(t,e)[0]:q(t,e)}));return this.row(n[0])}));var Ce=function(t,e){var n=t.context;if(n.length){var o=n[0].aoData[e!==i?e:t[0]];o&&o._details&&(o._details.remove(),o._detailsShow=i,o._details=i)}},ke=function(t,e){var n=t.context;if(n.length&&t.length){var i=n[0].aoData[t[0]];i._details&&(i._detailsShow=e,e?i._details.insertAfter(i.nTr):i._details.detach(),xe(n[0]))}},xe=function(t){var e=new r(t),n=t.aoData;e.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),_(n,"_details").length>0&&(e.on("draw.dt.DT_details",(function(i,o){t===o&&e.rows({page:"current"}).eq(0).each((function(t){var e=n[t];e._detailsShow&&e._details.insertAfter(e.nTr)}))})),e.on("column-visibility.dt.DT_details",(function(e,i,o,r){if(t===i)for(var a,s=N(i),l=0,u=n.length;l<u;l++)(a=n[l])._details&&a._details.children("td[colspan]").attr("colspan",s)})),e.on("destroy.dt.DT_details",(function(i,o){if(t===o)for(var r=0,a=n.length;r<a;r++)n[r]._details&&Ce(e,r)})))};a("row().child()",(function(e,n){var o=this.context;return e===i?o.length&&this.length?o[0].aoData[this[0]]._details:i:(!0===e?this.child.show():!1===e?Ce(this):o.length&&this.length&&function(e,n,i,o){var r=[],a=function(n,i){if(t.isArray(n)||n instanceof t)for(var o=0,s=n.length;o<s;o++)a(n[o],i);else if(n.nodeName&&"tr"===n.nodeName.toLowerCase())r.push(n);else{var l=t("<tr><td/></tr>").addClass(i);t("td",l).addClass(i).html(n)[0].colSpan=N(e),r.push(l[0])}};a(i,o),n._details&&n._details.detach(),n._details=t(r),n._detailsShow&&n._details.insertAfter(n.nTr)}(o[0],o[0].aoData[this[0]],e,n),this)})),a(["row().child.show()","row().child().show()"],(function(t){return ke(this,!0),this})),a(["row().child.hide()","row().child().hide()"],(function(){return ke(this,!1),this})),a(["row().child.remove()","row().child().remove()"],(function(){return Ce(this),this})),a("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Se=/^([^:]+):(name|visIdx|visible)$/,Te=function(t,e,n,i,o){for(var r=[],a=0,s=o.length;a<s;a++)r.push(z(t,o[a],e));return r};a("columns()",(function(e,n){e===i?e="":t.isPlainObject(e)&&(n=e,e=""),n=be(n);var o=this.iterator("table",(function(i){return function(e,n,i){var o=e.aoColumns,r=_(o,"sName"),a=_(o,"nTh");return ye("column",n,(function(n){var s=m(n);if(""===n)return C(o.length);if(null!==s)return[s>=0?s:o.length+s];if("function"==typeof n){var l=we(e,i);return t.map(o,(function(t,i){return n(i,Te(e,i,0,0,l),a[i])?i:null}))}var u="string"==typeof n?n.match(Se):"";if(u)switch(u[2]){case"visIdx":case"visible":var c=parseInt(u[1],10);if(c<0){var d=t.map(o,(function(t,e){return t.bVisible?e:null}));return[d[d.length+c]]}return[B(e,c)];case"name":return t.map(r,(function(t,e){return t===u[1]?e:null}));default:return[]}if(n.nodeName&&n._DT_CellIndex)return[n._DT_CellIndex.column];var h=t(a).filter(n).map((function(){return t.inArray(this,a)})).toArray();if(h.length||!n.nodeName)return h;var f=t(n).closest("*[data-dt-column]");return f.length?[f.data("dt-column")]:[]}),e,i)}(i,e,n)}),1);return o.selector.cols=e,o.selector.opts=n,o})),s("columns().header()","column().header()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),s("columns().footer()","column().footer()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),s("columns().data()","column().data()",(function(){return this.iterator("column-rows",Te,1)})),s("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),s("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,n,i,o,r){return w(e.aoData,r,"search"===t?"_aFilterData":"_aSortData",n)}),1)})),s("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,n,i,o){return w(t.aoData,o,"anCells",e)}),1)})),s("columns().visible()","column().visible()",(function(e,n){var o=this.iterator("column",(function(n,o){if(e===i)return n.aoColumns[o].bVisible;!function(e,n,o){var r,a,s,l,u=e.aoColumns,c=u[n],d=e.aoData;if(o===i)return c.bVisible;if(c.bVisible!==o){if(o){var h=t.inArray(!0,_(u,"bVisible"),n+1);for(a=0,s=d.length;a<s;a++)l=d[a].nTr,r=d[a].anCells,l&&l.insertBefore(r[n],r[h]||null)}else t(_(e.aoData,"anCells",n)).detach();c.bVisible=o,at(e,e.aoHeader),at(e,e.aoFooter),e.aiDisplay.length||t(e.nTBody).find("td[colspan]").attr("colspan",N(e)),ie(e)}}(n,o,e)}));return e!==i&&(this.iterator("column",(function(t,i){de(t,null,"column-visibility",[t,i,e,n])})),(n===i||n)&&this.columns.adjust()),o})),s("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,n){return"visible"===t?j(e,n):n}),1)})),a("columns.adjust()",(function(){return this.iterator("table",(function(t){H(t)}),1)})),a("column.index()",(function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return B(n,e);if("fromData"===t||"toVisible"===t)return j(n,e)}})),a("column()",(function(t,e){return _e(this.columns(t,e))}));a("cells()",(function(e,n,o){if(t.isPlainObject(e)&&(e.row===i?(o=e,e=null):(o=n,n=null)),t.isPlainObject(n)&&(o=n,n=null),null===n||n===i)return this.iterator("table",(function(n){return function(e,n,o){var r,a,s,l,u,c,d,h=e.aoData,f=we(e,o),p=k(w(h,f,"anCells")),v=t([].concat.apply([],p)),m=e.aoColumns.length;return ye("cell",n,(function(n){var o="function"==typeof n;if(null===n||n===i||o){for(a=[],s=0,l=f.length;s<l;s++)for(r=f[s],u=0;u<m;u++)c={row:r,column:u},o?(d=h[r],n(c,z(e,r,u),d.anCells?d.anCells[u]:null)&&a.push(c)):a.push(c);return a}if(t.isPlainObject(n))return n.column!==i&&n.row!==i&&-1!==t.inArray(n.row,f)?[n]:[];var p=v.filter(n).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray();return p.length||!n.nodeName?p:(d=t(n).closest("*[data-dt-row]")).length?[{row:d.data("dt-row"),column:d.data("dt-column")}]:[]}),e,o)}(n,e,be(o))}));var r,a,s,l,u,c=this.columns(n),d=this.rows(e);this.iterator("table",(function(t,e){for(r=[],a=0,s=d[e].length;a<s;a++)for(l=0,u=c[e].length;l<u;l++)r.push({row:d[e][a],column:c[e][l]})}),1);var h=this.cells(r,o);return t.extend(h.selector,{cols:n,rows:e,opts:o}),h})),s("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,n){var o=t.aoData[e];return o&&o.anCells?o.anCells[n]:i}),1)})),a("cells().data()",(function(){return this.iterator("cell",(function(t,e,n){return z(t,e,n)}),1)})),s("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(e,n,i){return e.aoData[n][t][i]}),1)})),s("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,n,i){return z(e,n,i,t)}),1)})),s("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,n){return{row:e,column:n,columnVisible:j(t,n)}}),1)})),s("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,n,i){et(e,n,t,i)}))})),a("cell()",(function(t,e,n){return _e(this.cells(t,e,n))})),a("cell().data()",(function(t){var e=this.context,n=this[0];return t===i?e.length&&n.length?z(e[0],n[0].row,n[0].column):i:(X(e[0],n[0].row,n[0].column,t),et(e[0],n[0].row,"data",n[0].column),this)})),a("order()",(function(e,n){var o=this.context;return e===i?0!==o.length?o[0].aaSorting:i:("number"==typeof e?e=[[e,n]]:e.length&&!t.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",(function(t){t.aaSorting=e.slice()})))})),a("order.listener()",(function(t,e,n){return this.iterator("table",(function(i){te(i,t,e,n)}))})),a("order.fixed()",(function(e){if(!e){var n=this.context,o=n.length?n[0].aaSortingFixed:i;return t.isArray(o)?{pre:o}:o}return this.iterator("table",(function(n){n.aaSortingFixed=t.extend(!0,{},e)}))})),a(["columns().order()","column().order()"],(function(e){var n=this;return this.iterator("table",(function(i,o){var r=[];t.each(n[o],(function(t,n){r.push([n,e])})),i.aaSorting=r}))})),a("search()",(function(e,n,o,r){var a=this.context;return e===i?0!==a.length?a[0].oPreviousSearch.sSearch:i:this.iterator("table",(function(i){i.oFeatures.bFilter&&yt(i,t.extend({},i.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===o||o,bCaseInsensitive:null===r||r}),1)}))})),s("columns().search()","column().search()",(function(e,n,o,r){return this.iterator("column",(function(a,s){var l=a.aoPreSearchCols;if(e===i)return l[s].sSearch;a.oFeatures.bFilter&&(t.extend(l[s],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===o||o,bCaseInsensitive:null===r||r}),yt(a,a.oPreviousSearch,1))}))})),a("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),a("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),a("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),a("state.save()",(function(){return this.iterator("table",(function(t){ie(t)}))})),l.versionCheck=l.fnVersionCheck=function(t){for(var e,n,i=l.version.split("."),o=t.split("."),r=0,a=o.length;r<a;r++)if((e=parseInt(i[r],10)||0)!==(n=parseInt(o[r],10)||0))return e>n;return!0},l.isDataTable=l.fnIsDataTable=function(e){var n=t(e).get(0),i=!1;return e instanceof l.Api||(t.each(l.settings,(function(e,o){var r=o.nScrollHead?t("table",o.nScrollHead)[0]:null,a=o.nScrollFoot?t("table",o.nScrollFoot)[0]:null;o.nTable!==n&&r!==n&&a!==n||(i=!0)})),i)},l.tables=l.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var i=t.map(l.settings,(function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable}));return n?new r(i):i},l.camelToHungarian=D,a("$()",(function(e,n){var i=this.rows(n).nodes(),o=t(i);return t([].concat(o.filter(e).toArray(),o.find(e).toArray()))})),t.each(["on","one","off"],(function(e,n){a(n+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var i=t(this.tables().nodes());return i[n].apply(i,e),this}))})),a("clear()",(function(){return this.iterator("table",(function(t){Z(t)}))})),a("settings()",(function(){return new r(this.context,this.context)})),a("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),a("data()",(function(){return this.iterator("table",(function(t){return _(t.aoData,"_aData")})).flatten()})),a("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(i){var o,a=i.nTableWrapper.parentNode,s=i.oClasses,u=i.nTable,c=i.nTBody,d=i.nTHead,h=i.nTFoot,f=t(u),p=t(c),v=t(i.nTableWrapper),m=t.map(i.aoData,(function(t){return t.nTr}));i.bDestroying=!0,de(i,"aoDestroyCallback","destroy",[i]),n||new r(i).columns().visible(!0),v.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+i.sInstance),u!=d.parentNode&&(f.children("thead").detach(),f.append(d)),h&&u!=h.parentNode&&(f.children("tfoot").detach(),f.append(h)),i.aaSorting=[],i.aaSortingFixed=[],ee(i),t(m).removeClass(i.asStripeClasses.join(" ")),t("th, td",d).removeClass(s.sSortable+" "+s.sSortableAsc+" "+s.sSortableDesc+" "+s.sSortableNone),p.children().detach(),p.append(m);var g=n?"remove":"detach";f[g](),v[g](),!n&&a&&(a.insertBefore(u,i.nTableReinsertBefore),f.css("width",i.sDestroyWidth).removeClass(s.sTable),(o=i.asDestroyStripes.length)&&p.children().each((function(e){t(this).addClass(i.asDestroyStripes[e%o])})));var y=t.inArray(i,l.settings);-1!==y&&l.settings.splice(y,1)}))})),t.each(["column","row","cell"],(function(t,e){a(e+"s().every()",(function(t){var n=this.selector.opts,o=this;return this.iterator(e,(function(r,a,s,l,u){t.call(o[e](a,"cell"===e?s:n,"cell"===e?n:i),a,s,l,u)}))}))})),a("i18n()",(function(e,n,o){var r=this.context[0],a=K(e)(r.oLanguage);return a===i&&(a=n),o!==i&&t.isPlainObject(a)&&(a=a[o]!==i?a[o]:a._),a.replace("%d",o)})),l.version="1.10.18",l.settings=[],l.models={},l.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},l.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},l.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},l.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},l.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},T(l.defaults),l.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},T(l.defaults.column),l.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:i,oAjaxData:i,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==pe(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==pe(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,i=this.aiDisplay.length,o=this.oFeatures,r=o.bPaginate;return o.bServerSide?!1===r||-1===t?e+i:Math.min(e+t,this._iRecordsDisplay):!r||n>i||-1===t?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},l.ext=o={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:l.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:l.version},t.extend(o,{afnFiltering:o.search,aTypes:o.type.detect,ofnSearch:o.type.search,oSort:o.type.order,afnSortData:o.order,aoFeatures:o.feature,oApi:o.internal,oStdClasses:o.classes,oPagination:o.pager}),t.extend(l.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var De=l.ext.pager;function Ee(t,e){var n=[],i=De.numbers_length,o=Math.floor(i/2);return e<=i?n=C(0,e):t<=o?((n=C(0,i-2)).push("ellipsis"),n.push(e-1)):t>=e-1-o?((n=C(e-(i-2),e)).splice(0,0,"ellipsis"),n.splice(0,0,0)):((n=C(t-o+2,t+o-1)).push("ellipsis"),n.push(e-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}t.extend(De,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Ee(t,e)]},simple_numbers:function(t,e){return["previous",Ee(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Ee(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Ee(t,e),"last"]},_numbers:Ee,numbers_length:7}),t.extend(!0,l.ext.renderer,{pageButton:{_:function(e,o,r,a,s,l){var u,c,d,h=e.oClasses,f=e.oLanguage.oPaginate,p=e.oLanguage.oAria.paginate||{},v=0,m=function(n,i){var o,a,d,g=function(t){Bt(e,t.data.action,!0)};for(o=0,a=i.length;o<a;o++)if(d=i[o],t.isArray(d)){var y=t("<"+(d.DT_el||"div")+"/>").appendTo(n);m(y,d)}else{switch(u=null,c="",d){case"ellipsis":n.append('<span class="ellipsis">…</span>');break;case"first":u=f.sFirst,c=d+(s>0?"":" "+h.sPageButtonDisabled);break;case"previous":u=f.sPrevious,c=d+(s>0?"":" "+h.sPageButtonDisabled);break;case"next":u=f.sNext,c=d+(s<l-1?"":" "+h.sPageButtonDisabled);break;case"last":u=f.sLast,c=d+(s<l-1?"":" "+h.sPageButtonDisabled);break;default:u=d+1,c=s===d?h.sPageButtonActive:""}null!==u&&(ue(t("<a>",{class:h.sPageButton+" "+c,"aria-controls":e.sTableId,"aria-label":p[d],"data-dt-idx":v,tabindex:e.iTabIndex,id:0===r&&"string"==typeof d?e.sTableId+"_"+d:null}).html(u).appendTo(n),{action:d},g),v++)}};try{d=t(o).find(n.activeElement).data("dt-idx")}catch(t){}m(t(o).empty(),a),d!==i&&t(o).find("[data-dt-idx="+d+"]").focus()}}}),t.extend(l.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return y(t,n)?"num"+n:null},function(t,e){if(t&&!(t instanceof Date)&&!h.test(t))return null;var n=Date.parse(t);return null!==n&&!isNaN(n)||v(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return y(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return b(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return b(t,n,!0)?"html-num-fmt"+n:null},function(t,e){return v(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(l.ext.type.search,{html:function(t){return v(t)?t:"string"==typeof t?t.replace(c," ").replace(d,""):""},string:function(t){return v(t)?t:"string"==typeof t?t.replace(c," "):t}});var Oe=function(t,e,n,i){return 0===t||t&&"-"!==t?(e&&(t=g(t,e)),t.replace&&(n&&(t=t.replace(n,"")),i&&(t=t.replace(i,""))),1*t):-1/0};function Me(e){t.each({num:function(t){return Oe(t,e)},"num-fmt":function(t){return Oe(t,e,p)},"html-num":function(t){return Oe(t,e,d)},"html-num-fmt":function(t){return Oe(t,e,d,p)}},(function(t,n){o.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(o.type.search[t+e]=o.type.search.html)}))}t.extend(o.type.order,{"date-pre":function(t){var e=Date.parse(t);return isNaN(e)?-1/0:e},"html-pre":function(t){return v(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return v(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Me(""),t.extend(!0,l.ext.renderer,{header:{_:function(e,n,i,o){t(e.nTable).on("order.dt.DT",(function(t,r,a,s){if(e===r){var l=i.idx;n.removeClass(i.sSortingClass+" "+o.sSortAsc+" "+o.sSortDesc).addClass("asc"==s[l]?o.sSortAsc:"desc"==s[l]?o.sSortDesc:i.sSortingClass)}}))},jqueryui:function(e,n,i,o){t("<div/>").addClass(o.sSortJUIWrapper).append(n.contents()).append(t("<span/>").addClass(o.sSortIcon+" "+i.sSortingClassJUI)).appendTo(n),t(e.nTable).on("order.dt.DT",(function(t,r,a,s){if(e===r){var l=i.idx;n.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==s[l]?o.sSortAsc:"desc"==s[l]?o.sSortDesc:i.sSortingClass),n.find("span."+o.sSortIcon).removeClass(o.sSortJUIAsc+" "+o.sSortJUIDesc+" "+o.sSortJUI+" "+o.sSortJUIAscAllowed+" "+o.sSortJUIDescAllowed).addClass("asc"==s[l]?o.sSortJUIAsc:"desc"==s[l]?o.sSortJUIDesc:i.sSortingClassJUI)}}))}}});var Le=function(t){return"string"==typeof t?t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t};function Ae(t){return function(){var e=[re(this[l.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return l.ext.internal[t].apply(this,e)}}return l.render={number:function(t,e,n,i,o){return{display:function(r){if("number"!=typeof r&&"string"!=typeof r)return r;var a=r<0?"-":"",s=parseFloat(r);if(isNaN(s))return Le(r);s=s.toFixed(n),r=Math.abs(s);var l=parseInt(r,10),u=n?e+(r-l).toFixed(n).substring(2):"";return a+(i||"")+l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+u+(o||"")}}},text:function(){return{display:Le}}},t.extend(l.ext.internal,{_fnExternApiFunc:Ae,_fnBuildAjax:ht,_fnAjaxUpdate:ft,_fnAjaxParameters:pt,_fnAjaxUpdateDraw:vt,_fnAjaxDataSrc:mt,_fnAddColumn:R,_fnColumnOptions:I,_fnAdjustColumnSizing:H,_fnVisibleToColumnIndex:B,_fnColumnIndexToVisible:j,_fnVisbleColumns:N,_fnGetColumns:W,_fnColumnTypes:F,_fnApplyColumnDefs:$,_fnHungarianMap:T,_fnCamelToHungarian:D,_fnLanguageCompat:E,_fnBrowserDetect:A,_fnAddData:q,_fnAddTr:Y,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==i?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,n,i){return t.inArray(i,e.aoData[n].anCells)},_fnGetCellData:z,_fnSetCellData:X,_fnSplitObjNotation:J,_fnGetObjectDataFn:K,_fnSetObjectDataFn:Q,_fnGetDataMaster:G,_fnClearTable:Z,_fnDeleteIndex:tt,_fnInvalidate:et,_fnGetRowElements:nt,_fnCreateTr:it,_fnBuildHead:rt,_fnDrawHead:at,_fnDraw:st,_fnReDraw:lt,_fnAddOptionsHtml:ut,_fnDetectHeader:ct,_fnGetUniqueThs:dt,_fnFeatureHtmlFilter:gt,_fnFilterComplete:yt,_fnFilterCustom:bt,_fnFilterColumn:_t,_fnFilter:wt,_fnFilterCreateSearch:Ct,_fnEscapeRegex:kt,_fnFilterData:Tt,_fnFeatureHtmlInfo:Ot,_fnUpdateInfo:Mt,_fnInfoMacros:Lt,_fnInitialise:At,_fnInitComplete:Pt,_fnLengthChange:Rt,_fnFeatureHtmlLength:It,_fnFeatureHtmlPaginate:Ht,_fnPageChange:Bt,_fnFeatureHtmlProcessing:jt,_fnProcessingDisplay:Nt,_fnFeatureHtmlTable:Wt,_fnScrollDraw:Ft,_fnApplyToChildren:$t,_fnCalculateColumnWidths:Yt,_fnThrottle:zt,_fnConvertToWidth:Xt,_fnGetWidestNode:Vt,_fnGetMaxLenString:Ut,_fnStringToCss:Jt,_fnSortFlatten:Kt,_fnSort:Qt,_fnSortAria:Gt,_fnSortListener:Zt,_fnSortAttachListener:te,_fnSortingClasses:ee,_fnSortData:ne,_fnSaveState:ie,_fnLoadState:oe,_fnSettingsFromNode:re,_fnLog:ae,_fnMap:se,_fnBindAction:ue,_fnCallbackReg:ce,_fnCallbackFire:de,_fnLengthOverflow:he,_fnRenderer:fe,_fnDataSource:pe,_fnRowAttributes:ot,_fnExtend:le,_fnCalculateEnd:function(){}}),t.fn.dataTable=l,l.$=t,t.fn.dataTableSettings=l.settings,t.fn.dataTableExt=l.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(l,(function(e,n){t.fn.DataTable[e]=n})),t.fn.dataTable})),function(t){t.fn.activeNavigation=function(e){var n=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var i=e[n].split("=");if(i[0]==t)return decodeURIComponent(i[1])}}("back")||window.location.pathname,i=[];if(t(e).find("a:not(.no-navigation)").each((function(){n.indexOf(t(this).attr("href"))>-1&&i.push(t(this))})),i.length){i.sort((function(t,e){return e.attr("href").length-t.attr("href").length}));for(var o=i[0],r=1;r<i.length;r++)i[r].attr("href")===o.attr("href")&&(o=i[r]);t(e).find("li").removeClass("active"),o.parents("li").addClass("active"),o.parent("li").closest(".collapsible-body").css("display","block"),o.parent("li").closest(".collapsible-body").parent("li").addClass("active")}}}(jQuery),function(){"use strict";var t,e,n,i,o,r;r=864e5,t=function(t,e){return"string"==typeof t&&"string"==typeof e&&t.toLowerCase()===e.toLowerCase()},e=function(t,n,i){var o=i||"0",r=t.toString();return r.length<n?e(o+r,n):r},n=function(t){var e,i;for(t=t||{},e=1;e<arguments.length;e++)if(i=arguments[e])for(var o in i)i.hasOwnProperty(o)&&("object"==typeof i[o]?n(t[o],i[o]):t[o]=i[o]);return t},i=function(t,e){for(var n=0;n<e.length;n++)if(e[n].toLowerCase()===t.toLowerCase())return n;return-1},o={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["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"],meridiem:["AM","PM"],ordinal:function(t){var e=t%10,n={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(t%100/10)&&n[e]?n[e]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},(DateFormatter=function(t){var e=this,i=n(o,t);e.dateSettings=i.dateSettings,e.separators=i.separators,e.validParts=i.validParts,e.intParts=i.intParts,e.tzParts=i.tzParts,e.tzClip=i.tzClip}).prototype={constructor:DateFormatter,getMonth:function(t){var e;return 0===(e=i(t,this.dateSettings.monthsShort)+1)&&(e=i(t,this.dateSettings.months)+1),e},parseDate:function(e,n){var i,o,r,a,s,l,u,c,d,h,f=this,p=!1,v=!1,m=f.dateSettings,g={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!e)return null;if(e instanceof Date)return e;if("U"===n)return(r=parseInt(e))?new Date(1e3*r):e;switch(typeof e){case"number":return new Date(e);case"string":break;default:return null}if(!(i=n.match(f.validParts))||0===i.length)throw new Error("Invalid date format definition.");for(o=e.replace(f.separators,"\0").split("\0"),r=0;r<o.length;r++)switch(a=o[r],s=parseInt(a),i[r]){case"y":case"Y":if(!s)return null;d=a.length,g.year=2===d?parseInt((70>s?"20":"19")+a):s,p=!0;break;case"m":case"n":case"M":case"F":if(isNaN(s)){if(!((l=f.getMonth(a))>0))return null;g.month=l}else{if(!(s>=1&&12>=s))return null;g.month=s}p=!0;break;case"d":case"j":if(!(s>=1&&31>=s))return null;g.day=s,p=!0;break;case"g":case"h":if(h=o[u=i.indexOf("a")>-1?i.indexOf("a"):i.indexOf("A")>-1?i.indexOf("A"):-1],u>-1)c=t(h,m.meridiem[0])?0:t(h,m.meridiem[1])?12:-1,s>=1&&12>=s&&c>-1?g.hour=s+c-1:s>=0&&23>=s&&(g.hour=s);else{if(!(s>=0&&23>=s))return null;g.hour=s}v=!0;break;case"G":case"H":if(!(s>=0&&23>=s))return null;g.hour=s,v=!0;break;case"i":if(!(s>=0&&59>=s))return null;g.min=s,v=!0;break;case"s":if(!(s>=0&&59>=s))return null;g.sec=s,v=!0}if(!0===p&&g.year&&g.month&&g.day)g.date=new Date(g.year,g.month-1,g.day,g.hour,g.min,g.sec,0);else{if(!0!==v)return null;g.date=new Date(0,0,0,g.hour,g.min,g.sec,0)}return g.date},guessDate:function(t,e){if("string"!=typeof t)return t;var n,i,o,r,a,s,l=t.replace(this.separators,"\0").split("\0"),u=e.match(this.validParts),c=new Date,d=0;if(!/^[djmn]/g.test(u[0]))return t;for(o=0;o<l.length;o++){if(d=2,a=l[o],s=parseInt(a.substr(0,2)),isNaN(s))return null;switch(o){case 0:"m"===u[0]||"n"===u[0]?c.setMonth(s-1):c.setDate(s);break;case 1:"m"===u[0]||"n"===u[0]?c.setDate(s):c.setMonth(s-1);break;case 2:if(i=c.getFullYear(),d=4>(n=a.length)?n:4,!(i=parseInt(4>n?i.toString().substr(0,4-n)+a:a.substr(0,4))))return null;c.setFullYear(i);break;case 3:c.setHours(s);break;case 4:c.setMinutes(s);break;case 5:c.setSeconds(s)}(r=a.substr(d)).length>0&&l.splice(o+1,0,r)}return c},parseFormat:function(t,n){var i,o=this,a=o.dateSettings,s=/\\?(.?)/gi,l=function(t,e){return i[t]?i[t]():e};return i={d:function(){return e(i.j(),2)},D:function(){return a.daysShort[i.w()]},j:function(){return n.getDate()},l:function(){return a.days[i.w()]},N:function(){return i.w()||7},w:function(){return n.getDay()},z:function(){var t=new Date(i.Y(),i.n()-1,i.j()),e=new Date(i.Y(),0,1);return Math.round((t-e)/r)},W:function(){var t=new Date(i.Y(),i.n()-1,i.j()-i.N()+3),n=new Date(t.getFullYear(),0,4);return e(1+Math.round((t-n)/r/7),2)},F:function(){return a.months[n.getMonth()]},m:function(){return e(i.n(),2)},M:function(){return a.monthsShort[n.getMonth()]},n:function(){return n.getMonth()+1},t:function(){return new Date(i.Y(),i.n(),0).getDate()},L:function(){var t=i.Y();return t%4==0&&t%100!=0||t%400==0?1:0},o:function(){var t=i.n(),e=i.W();return i.Y()+(12===t&&9>e?1:1===t&&e>9?-1:0)},Y:function(){return n.getFullYear()},y:function(){return i.Y().toString().slice(-2)},a:function(){return i.A().toLowerCase()},A:function(){var t=i.G()<12?0:1;return a.meridiem[t]},B:function(){var t=3600*n.getUTCHours(),i=60*n.getUTCMinutes(),o=n.getUTCSeconds();return e(Math.floor((t+i+o+3600)/86.4)%1e3,3)},g:function(){return i.G()%12||12},G:function(){return n.getHours()},h:function(){return e(i.g(),2)},H:function(){return e(i.G(),2)},i:function(){return e(n.getMinutes(),2)},s:function(){return e(n.getSeconds(),2)},u:function(){return e(1e3*n.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(n))[1]||"Coordinated Universal Time"},I:function(){return new Date(i.Y(),0)-Date.UTC(i.Y(),0)!=new Date(i.Y(),6)-Date.UTC(i.Y(),6)?1:0},O:function(){var t=n.getTimezoneOffset(),i=Math.abs(t);return(t>0?"-":"+")+e(100*Math.floor(i/60)+i%60,4)},P:function(){var t=i.O();return t.substr(0,3)+":"+t.substr(3,2)},T:function(){return(String(n).match(o.tzParts)||[""]).pop().replace(o.tzClip,"")||"UTC"},Z:function(){return 60*-n.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(s,l)},r:function(){return"D, d M Y H:i:s O".replace(s,l)},U:function(){return n.getTime()/1e3||0}},l(t,t)},formatDate:function(t,e){var n,i,o,r,a,s=this,l="";if("string"==typeof t&&!(t=s.parseDate(t,e)))return null;if(t instanceof Date){for(o=e.length,n=0;o>n;n++)"S"!==(a=e.charAt(n))&&"\\"!==a&&(n>0&&"\\"===e.charAt(n-1)?l+=a:(r=s.parseFormat(a,t),n!==o-1&&s.intParts.test(a)&&"S"===e.charAt(n+1)&&(i=parseInt(r)||0,r+=s.dateSettings.ordinal(i)),l+=r));return l}return""}}}();
|
||
/**
|
||
* @preserve jQuery DateTimePicker
|
||
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
||
* @author Chupurnov Valeriy (<chupurnov@gmail.com>)
|
||
*/
|
||
var datetimepickerFactory=function(t){"use strict";var e={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه","یکشنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា","កុម្ភៈ","មិនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],dayOfWeekShort:["អាទិ","ច័ន្ទ","អង្គារ","ពុធ","ព្រហ","សុក្រ","សៅរ៍"],dayOfWeek:["អាទិត្យ","ច័ន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1,insideParent:!1},n=null,i=null,o="en",r={meridiem:["AM","PM"]},a=function(){var a=e.i18n[o],s={days:a.dayOfWeek,daysShort:a.dayOfWeekShort,months:a.months,monthsShort:t.map(a.months,(function(t){return t.substring(0,3)}))};"function"==typeof DateFormatter&&(n=i=new DateFormatter({dateSettings:t.extend({},r,s)}))},s={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(t,e){if(u(e))return i.parseDate(t,e);var n=moment(t,e);return!!n.isValid()&&n.toDate()},formatDate:function(t,e){return u(e)?i.formatDate(t,e):moment(t).format(e)},formatMask:function(t){return t.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}};t.datetimepicker={setLocale:function(t){var n=e.i18n[t]?t:"en";o!==n&&(o=n,a())},setDateFormatter:function(i){if("string"==typeof i&&s.hasOwnProperty(i)){var o=s[i];t.extend(e,o.default_options),n=o.formatter}else n=i}};var l={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},u=function(t){return-1!==Object.values(l).indexOf(t)};function c(t,e,n){this.date=t,this.desc=e,this.style=n}t.extend(t.datetimepicker,l),a(),window.getComputedStyle||(window.getComputedStyle=function(t){return this.el=t,this.getPropertyValue=function(e){var n=/(-([a-z]))/g;return"float"===e&&(e="styleFloat"),n.test(e)&&(e=e.replace(n,(function(t,e,n){return n.toUpperCase()}))),t.currentStyle[e]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var n,i;for(n=e||0,i=this.length;n<i;n+=1)if(this[n]===t)return n;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},t.fn.xdsoftScroller=function(e,n){return this.each((function(){var i,o,r,a,s,l=t(this),u=function(t){var e,n={x:0,y:0};return"touchstart"===t.type||"touchmove"===t.type||"touchend"===t.type||"touchcancel"===t.type?(e=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],n.x=e.clientX,n.y=e.clientY):"mousedown"!==t.type&&"mouseup"!==t.type&&"mousemove"!==t.type&&"mouseover"!==t.type&&"mouseout"!==t.type&&"mouseenter"!==t.type&&"mouseleave"!==t.type||(n.x=t.clientX,n.y=t.clientY),n},c=100,d=!1,h=0,f=0,p=0,v=!1,m=0,g=function(){};"hide"!==n?(t(this).hasClass("xdsoft_scroller_box")||(i=l.children().eq(0),o=l[0].clientHeight,r=i[0].offsetHeight,a=t('<div class="xdsoft_scrollbar"></div>'),s=t('<div class="xdsoft_scroller"></div>'),a.append(s),l.addClass("xdsoft_scroller_box").append(a),g=function(t){var e=u(t).y-h+m;e<0&&(e=0),e+s[0].offsetHeight>p&&(e=p-s[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[c?e/c:0])},s.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",(function(i){o||l.trigger("resize_scroll.xdsoft_scroller",[n]),h=u(i).y,m=parseInt(s.css("margin-top"),10),p=a[0].offsetHeight,"mousedown"===i.type||"touchstart"===i.type?(e.ownerDocument&&t(e.ownerDocument.body).addClass("xdsoft_noselect"),t([e.ownerDocument.body,e.contentWindow]).on("touchend mouseup.xdsoft_scroller",(function n(){t([e.ownerDocument.body,e.contentWindow]).off("touchend mouseup.xdsoft_scroller",n).off("mousemove.xdsoft_scroller",g).removeClass("xdsoft_noselect")})),t(e.ownerDocument.body).on("mousemove.xdsoft_scroller",g)):(v=!0,i.stopPropagation(),i.preventDefault())})).on("touchmove",(function(t){v&&(t.preventDefault(),g(t))})).on("touchend touchcancel",(function(){v=!1,m=0})),l.on("scroll_element.xdsoft_scroller",(function(t,e){o||l.trigger("resize_scroll.xdsoft_scroller",[e,!0]),e=e>1?1:e<0||isNaN(e)?0:e,s.css("margin-top",c*e),setTimeout((function(){i.css("marginTop",-parseInt((i[0].offsetHeight-o)*e,10))}),10)})).on("resize_scroll.xdsoft_scroller",(function(t,e,n){var u,d;o=l[0].clientHeight,r=i[0].offsetHeight,d=(u=o/r)*a[0].offsetHeight,u>1?s.hide():(s.show(),s.css("height",parseInt(d>10?d:10,10)),c=a[0].offsetHeight-s[0].offsetHeight,!0!==n&&l.trigger("scroll_element.xdsoft_scroller",[e||Math.abs(parseInt(i.css("marginTop"),10))/(r-o)]))})),l.on("mousewheel",(function(t){var e=Math.abs(parseInt(i.css("marginTop"),10));return(e-=20*t.deltaY)<0&&(e=0),l.trigger("scroll_element.xdsoft_scroller",[e/(r-o)]),t.stopPropagation(),!1})),l.on("touchstart",(function(t){d=u(t),f=Math.abs(parseInt(i.css("marginTop"),10))})),l.on("touchmove",(function(t){if(d){t.preventDefault();var e=u(t);l.trigger("scroll_element.xdsoft_scroller",[(f-(e.y-d.y))/(r-o)])}})),l.on("touchend touchcancel",(function(){d=!1,f=0}))),l.trigger("resize_scroll.xdsoft_scroller",[n])):l.find(".xdsoft_scrollbar").hide()}))},t.fn.datetimepicker=function(i,r){var a,s,l=this,u=17,d=13,h=27,f=37,p=38,v=39,m=40,g=9,y=116,b=65,_=67,w=86,C=90,k=89,x=!1,S=t.isPlainObject(i)||!i?t.extend(!0,{},e,i):t.extend(!0,{},e),T=0;return a=function(e){var r,a,s,l,T,D,E=t('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),O=t('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),M=t('<div class="xdsoft_datepicker active"></div>'),L=t('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),A=t('<div class="xdsoft_calendar"></div>'),P=t('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),R=P.find(".xdsoft_time_box").eq(0),I=t('<div class="xdsoft_time_variant"></div>'),H=t('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),B=t('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),j=t('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),N=!1,W=0;S.id&&E.attr("id",S.id),S.style&&E.attr("style",S.style),S.weeks&&E.addClass("xdsoft_showweeks"),S.rtl&&E.addClass("xdsoft_rtl"),E.addClass("xdsoft_"+S.theme),E.addClass(S.className),L.find(".xdsoft_month span").after(B),L.find(".xdsoft_year span").after(j),L.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",(function(e){var n,i,o=t(this).find(".xdsoft_select").eq(0),r=0,a=0,s=o.is(":visible");for(L.find(".xdsoft_select").hide(),T.currentTime&&(r=T.currentTime[t(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),o[s?"hide":"show"](),n=o.find("div.xdsoft_option"),i=0;i<n.length&&n.eq(i).data("value")!==r;i+=1)a+=n[0].offsetHeight;return o.xdsoftScroller(S,a/(o.children()[0].offsetHeight-o[0].clientHeight)),e.stopPropagation(),!1}));var F=function(t){var e=t.originalEvent,n=e.touches?e.touches[0]:e;this.touchStartPosition=this.touchStartPosition||n;var i=Math.abs(this.touchStartPosition.clientX-n.clientX),o=Math.abs(this.touchStartPosition.clientY-n.clientY);Math.sqrt(i*i+o*o)>S.touchMovedThreshold&&(this.touchMoved=!0)};function $(){var t,n=!1;return S.startDate?n=T.strToDate(S.startDate):(n=S.value||(e&&e.val&&e.val()?e.val():""))?(n=T.strToDateTime(n),S.yearOffset&&(n=new Date(n.getFullYear()-S.yearOffset,n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()))):S.defaultDate&&(n=T.strToDateTime(S.defaultDate),S.defaultTime&&(t=T.strtotime(S.defaultTime),n.setHours(t.getHours()),n.setMinutes(t.getMinutes()))),n&&T.isValidDate(n)?E.data("changed",!0):n="",n||0}function q(i){var o=function(t,e){var n=t.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(n).test(e)},r=function(t,e){if(!(t="string"==typeof t||t instanceof String?i.ownerDocument.getElementById(t):t))return!1;if(t.createTextRange){var n=t.createTextRange();return n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",e),n.select(),!0}return!!t.setSelectionRange&&(t.setSelectionRange(e,e),!0)};i.mask&&e.off("keydown.xdsoft"),!0===i.mask&&(n.formatMask?i.mask=n.formatMask(i.format):i.mask=i.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===t.type(i.mask)&&(o(i.mask,e.val())||(e.val(i.mask.replace(/[0-9]/g,"_")),r(e[0],0)),e.on("paste.xdsoft",(function(n){var a=(n.clipboardData||n.originalEvent.clipboardData||window.clipboardData).getData("text"),s=this.value,l=this.selectionStart,u=s.substr(0,l),c=s.substr(l+a.length);return s=u+a+c,l+=a.length,o(i.mask,s)?(this.value=s,r(this,l)):""===t.trim(s)?this.value=i.mask.replace(/[0-9]/g,"_"):e.trigger("error_input.xdsoft"),n.preventDefault(),!1})),e.on("keydown.xdsoft",(function(n){var a,s=this.value,l=n.which,c=this.selectionStart,S=this.selectionEnd,T=c!==S;if(l>=48&&l<=57||l>=96&&l<=105||8===l||46===l){for(a=8===l||46===l?"_":String.fromCharCode(96<=l&&l<=105?l-48:l),8===l&&c&&!T&&(c-=1);;){var D=i.mask.substr(c,1),E=c<i.mask.length,O=c>0;if(!(/[^0-9_]/.test(D)&&E&&O))break;c+=8!==l||T?1:-1}if(n.metaKey&&(c=0,T=!0),T){var M=S-c,L=i.mask.replace(/[0-9]/g,"_"),A=L.substr(c,M).substr(1),P=s.substr(0,c),R=a+A,I=s.substr(c+M);s=P+R+I}else{var H=s.substr(0,c),B=a,j=s.substr(c+1);s=H+B+j}if(""===t.trim(s))s=L;else if(c===i.mask.length)return n.preventDefault(),!1;for(c+=8===l?0:1;/[^0-9_]/.test(i.mask.substr(c,1))&&c<i.mask.length&&c>0;)c+=8===l?0:1;o(i.mask,s)?(this.value=s,r(this,c)):""===t.trim(s)?this.value=i.mask.replace(/[0-9]/g,"_"):e.trigger("error_input.xdsoft")}else if(-1!==[b,_,w,C,k].indexOf(l)&&x||-1!==[h,p,m,f,v,y,u,g,d].indexOf(l))return!0;return n.preventDefault(),!1})))}L.find(".xdsoft_select").xdsoftScroller(S).on("touchstart mousedown.xdsoft",(function(t){var e=t.originalEvent;this.touchMoved=!1,this.touchStartPosition=e.touches?e.touches[0]:e,t.stopPropagation(),t.preventDefault()})).on("touchmove",".xdsoft_option",F).on("touchend mousedown.xdsoft",".xdsoft_option",(function(){if(!this.touchMoved){void 0!==T.currentTime&&null!==T.currentTime||(T.currentTime=T.now());var e=T.currentTime.getFullYear();T&&T.currentTime&&T.currentTime[t(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](t(this).data("value")),t(this).parent().parent().hide(),E.trigger("xchange.xdsoft"),S.onChangeMonth&&t.isFunction(S.onChangeMonth)&&S.onChangeMonth.call(E,T.currentTime,E.data("input")),e!==T.currentTime.getFullYear()&&t.isFunction(S.onChangeYear)&&S.onChangeYear.call(E,T.currentTime,E.data("input"))}})),E.getValue=function(){return T.getCurrentTime()},E.setOptions=function(i){var o={};S=t.extend(!0,{},S,i),i.allowTimes&&t.isArray(i.allowTimes)&&i.allowTimes.length&&(S.allowTimes=t.extend(!0,[],i.allowTimes)),i.weekends&&t.isArray(i.weekends)&&i.weekends.length&&(S.weekends=t.extend(!0,[],i.weekends)),i.allowDates&&t.isArray(i.allowDates)&&i.allowDates.length&&(S.allowDates=t.extend(!0,[],i.allowDates)),i.allowDateRe&&"[object String]"===Object.prototype.toString.call(i.allowDateRe)&&(S.allowDateRe=new RegExp(i.allowDateRe)),i.highlightedDates&&t.isArray(i.highlightedDates)&&i.highlightedDates.length&&(t.each(i.highlightedDates,(function(e,i){var r,a=t.map(i.split(","),t.trim),s=new c(n.parseDate(a[0],S.formatDate),a[1],a[2]),l=n.formatDate(s.date,S.formatDate);void 0!==o[l]?(r=o[l].desc)&&r.length&&s.desc&&s.desc.length&&(o[l].desc=r+"\n"+s.desc):o[l]=s})),S.highlightedDates=t.extend(!0,[],o)),i.highlightedPeriods&&t.isArray(i.highlightedPeriods)&&i.highlightedPeriods.length&&(o=t.extend(!0,[],S.highlightedDates),t.each(i.highlightedPeriods,(function(e,i){var r,a,s,l,u,d,h;if(t.isArray(i))r=i[0],a=i[1],s=i[2],h=i[3];else{var f=t.map(i.split(","),t.trim);r=n.parseDate(f[0],S.formatDate),a=n.parseDate(f[1],S.formatDate),s=f[2],h=f[3]}for(;r<=a;)l=new c(r,s,h),u=n.formatDate(r,S.formatDate),r.setDate(r.getDate()+1),void 0!==o[u]?(d=o[u].desc)&&d.length&&l.desc&&l.desc.length&&(o[u].desc=d+"\n"+l.desc):o[u]=l})),S.highlightedDates=t.extend(!0,[],o)),i.disabledDates&&t.isArray(i.disabledDates)&&i.disabledDates.length&&(S.disabledDates=t.extend(!0,[],i.disabledDates)),i.disabledWeekDays&&t.isArray(i.disabledWeekDays)&&i.disabledWeekDays.length&&(S.disabledWeekDays=t.extend(!0,[],i.disabledWeekDays)),!S.open&&!S.opened||S.inline||e.trigger("open.xdsoft"),S.inline&&(N=!0,E.addClass("xdsoft_inline"),e.after(E).hide()),S.inverseButton&&(S.next="xdsoft_prev",S.prev="xdsoft_next"),S.datepicker?M.addClass("active"):M.removeClass("active"),S.timepicker?P.addClass("active"):P.removeClass("active"),S.value&&(T.setCurrentTime(S.value),e&&e.val&&e.val(T.str)),isNaN(S.dayOfWeekStart)?S.dayOfWeekStart=0:S.dayOfWeekStart=parseInt(S.dayOfWeekStart,10)%7,S.timepickerScrollbar||R.xdsoftScroller(S,"hide"),S.minDate&&/^[\+\-](.*)$/.test(S.minDate)&&(S.minDate=n.formatDate(T.strToDateTime(S.minDate),S.formatDate)),S.maxDate&&/^[\+\-](.*)$/.test(S.maxDate)&&(S.maxDate=n.formatDate(T.strToDateTime(S.maxDate),S.formatDate)),S.minDateTime&&/^\+(.*)$/.test(S.minDateTime)&&(S.minDateTime=T.strToDateTime(S.minDateTime).dateFormat(S.formatDate)),S.maxDateTime&&/^\+(.*)$/.test(S.maxDateTime)&&(S.maxDateTime=T.strToDateTime(S.maxDateTime).dateFormat(S.formatDate)),H.toggle(S.showApplyButton),L.find(".xdsoft_today_button").css("visibility",S.todayButton?"visible":"hidden"),L.find("."+S.prev).css("visibility",S.prevButton?"visible":"hidden"),L.find("."+S.next).css("visibility",S.nextButton?"visible":"hidden"),q(S),S.validateOnBlur&&e.off("blur.xdsoft").on("blur.xdsoft",(function(){if(S.allowBlank&&(!t.trim(t(this).val()).length||"string"==typeof S.mask&&t.trim(t(this).val())===S.mask.replace(/[0-9]/g,"_")))t(this).val(null),E.data("xdsoft_datetime").empty();else{var e=n.parseDate(t(this).val(),S.format);if(e)t(this).val(n.formatDate(e,S.format));else{var i=+[t(this).val()[0],t(this).val()[1]].join(""),o=+[t(this).val()[2],t(this).val()[3]].join("");!S.datepicker&&S.timepicker&&i>=0&&i<24&&o>=0&&o<60?t(this).val([i,o].map((function(t){return t>9?t:"0"+t})).join(":")):t(this).val(n.formatDate(T.now(),S.format))}E.data("xdsoft_datetime").setCurrentTime(t(this).val())}E.trigger("changedatetime.xdsoft"),E.trigger("close.xdsoft")})),S.dayOfWeekStartPrev=0===S.dayOfWeekStart?6:S.dayOfWeekStart-1,E.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},E.data("options",S).on("touchstart mousedown.xdsoft",(function(t){return t.stopPropagation(),t.preventDefault(),j.hide(),B.hide(),!1})),R.append(I),R.xdsoftScroller(S),E.on("afterOpen.xdsoft",(function(){R.xdsoftScroller(S)})),E.append(M).append(P),!0!==S.withoutCopyright&&E.append(O),M.append(L).append(A).append(H),S.insideParent?t(e).parent().append(E):t(S.parentID).append(E),T=new function(){var e=this;e.now=function(t){var n,i,o=new Date;return!t&&S.defaultDate&&(n=e.strToDateTime(S.defaultDate),o.setFullYear(n.getFullYear()),o.setMonth(n.getMonth()),o.setDate(n.getDate())),o.setFullYear(o.getFullYear()),!t&&S.defaultTime&&(i=e.strtotime(S.defaultTime),o.setHours(i.getHours()),o.setMinutes(i.getMinutes()),o.setSeconds(i.getSeconds()),o.setMilliseconds(i.getMilliseconds())),o},e.isValidDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())},e.setCurrentTime=function(t,n){"string"==typeof t?e.currentTime=e.strToDateTime(t):e.isValidDate(t)?e.currentTime=t:t||n||!S.allowBlank||S.inline?e.currentTime=e.now():e.currentTime=null,E.trigger("xchange.xdsoft")},e.empty=function(){e.currentTime=null},e.getCurrentTime=function(){return e.currentTime},e.nextMonth=function(){void 0!==e.currentTime&&null!==e.currentTime||(e.currentTime=e.now());var n,i=e.currentTime.getMonth()+1;return 12===i&&(e.currentTime.setFullYear(e.currentTime.getFullYear()+1),i=0),n=e.currentTime.getFullYear(),e.currentTime.setDate(Math.min(new Date(e.currentTime.getFullYear(),i+1,0).getDate(),e.currentTime.getDate())),e.currentTime.setMonth(i),S.onChangeMonth&&t.isFunction(S.onChangeMonth)&&S.onChangeMonth.call(E,T.currentTime,E.data("input")),n!==e.currentTime.getFullYear()&&t.isFunction(S.onChangeYear)&&S.onChangeYear.call(E,T.currentTime,E.data("input")),E.trigger("xchange.xdsoft"),i},e.prevMonth=function(){void 0!==e.currentTime&&null!==e.currentTime||(e.currentTime=e.now());var n=e.currentTime.getMonth()-1;return-1===n&&(e.currentTime.setFullYear(e.currentTime.getFullYear()-1),n=11),e.currentTime.setDate(Math.min(new Date(e.currentTime.getFullYear(),n+1,0).getDate(),e.currentTime.getDate())),e.currentTime.setMonth(n),S.onChangeMonth&&t.isFunction(S.onChangeMonth)&&S.onChangeMonth.call(E,T.currentTime,E.data("input")),E.trigger("xchange.xdsoft"),n},e.getWeekOfYear=function(e){if(S.onGetWeekOfYear&&t.isFunction(S.onGetWeekOfYear)){var n=S.onGetWeekOfYear.call(E,e);if(void 0!==n)return n}var i=new Date(e.getFullYear(),0,1);return 4!==i.getDay()&&i.setMonth(0,1+(4-i.getDay()+7)%7),Math.ceil(((e-i)/864e5+i.getDay()+1)/7)},e.strToDateTime=function(t){var i,o,r=[];return t&&t instanceof Date&&e.isValidDate(t)?t:((r=/^([+-]{1})(.*)$/.exec(t))&&(r[2]=n.parseDate(r[2],S.formatDate)),r&&r[2]?(i=r[2].getTime()-6e4*r[2].getTimezoneOffset(),o=new Date(e.now(!0).getTime()+parseInt(r[1]+"1",10)*i)):o=t?n.parseDate(t,S.format):e.now(),e.isValidDate(o)||(o=e.now()),o)},e.strToDate=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var i=t?n.parseDate(t,S.formatDate):e.now(!0);return e.isValidDate(i)||(i=e.now(!0)),i},e.strtotime=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var i=t?n.parseDate(t,S.formatTime):e.now(!0);return e.isValidDate(i)||(i=e.now(!0)),i},e.str=function(){var t=S.format;return S.yearOffset&&(t=(t=t.replace("Y",e.currentTime.getFullYear()+S.yearOffset)).replace("y",String(e.currentTime.getFullYear()+S.yearOffset).substring(2,4))),n.formatDate(e.currentTime,t)},e.currentTime=this.now()},H.on("touchend click",(function(t){t.preventDefault(),E.data("changed",!0),T.setCurrentTime($()),e.val(T.str()),E.trigger("close.xdsoft")})),L.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",(function(){E.data("changed",!0),T.setCurrentTime(0,!0),E.trigger("afterOpen.xdsoft")})).on("dblclick.xdsoft",(function(){var t,n,i=T.getCurrentTime();i=new Date(i.getFullYear(),i.getMonth(),i.getDate()),t=T.strToDate(S.minDate),i<(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()))||(n=T.strToDate(S.maxDate),i>(n=new Date(n.getFullYear(),n.getMonth(),n.getDate()))||(e.val(T.str()),e.trigger("change"),E.trigger("close.xdsoft")))})),L.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",(function(){var e=t(this),n=0,i=!1;!function t(o){e.hasClass(S.next)?T.nextMonth():e.hasClass(S.prev)&&T.prevMonth(),S.monthChangeSpinner&&(i||(n=setTimeout(t,o||100)))}(500),t([S.ownerDocument.body,S.contentWindow]).on("touchend mouseup.xdsoft",(function e(){clearTimeout(n),i=!0,t([S.ownerDocument.body,S.contentWindow]).off("touchend mouseup.xdsoft",e)}))})),P.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",(function(){var e=t(this),n=0,i=!1,o=110;!function t(r){var a=R[0].clientHeight,s=I[0].offsetHeight,l=Math.abs(parseInt(I.css("marginTop"),10));e.hasClass(S.next)&&s-a-S.timeHeightInTimePicker>=l?I.css("marginTop","-"+(l+S.timeHeightInTimePicker)+"px"):e.hasClass(S.prev)&&l-S.timeHeightInTimePicker>=0&&I.css("marginTop","-"+(l-S.timeHeightInTimePicker)+"px"),R.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(I[0].style.marginTop,10)/(s-a))]),o=o>10?10:o-10,i||(n=setTimeout(t,r||o))}(500),t([S.ownerDocument.body,S.contentWindow]).on("touchend mouseup.xdsoft",(function e(){clearTimeout(n),i=!0,t([S.ownerDocument.body,S.contentWindow]).off("touchend mouseup.xdsoft",e)}))})),r=0,E.on("xchange.xdsoft",(function(a){clearTimeout(r),r=setTimeout((function(){void 0!==T.currentTime&&null!==T.currentTime||(T.currentTime=T.now());for(var r,a,s,l,u,c,d,h,f,p,v="",m=new Date(T.currentTime.getFullYear(),T.currentTime.getMonth(),1,12,0,0),g=0,y=T.now(),b=!1,_=!1,w=!1,C=!1,k=[],x=!0,D="";m.getDay()!==S.dayOfWeekStart;)m.setDate(m.getDate()-1);for(v+="<table><thead><tr>",S.weeks&&(v+="<th></th>"),r=0;r<7;r+=1)v+="<th>"+S.i18n[o].dayOfWeekShort[(r+S.dayOfWeekStart)%7]+"</th>";for(v+="</tr></thead>",v+="<tbody>",!1!==S.maxDate&&(b=T.strToDate(S.maxDate),b=new Date(b.getFullYear(),b.getMonth(),b.getDate(),23,59,59,999)),!1!==S.minDate&&(_=T.strToDate(S.minDate),_=new Date(_.getFullYear(),_.getMonth(),_.getDate())),!1!==S.minDateTime&&(w=T.strToDate(S.minDateTime),w=new Date(w.getFullYear(),w.getMonth(),w.getDate(),w.getHours(),w.getMinutes(),w.getSeconds())),!1!==S.maxDateTime&&(C=T.strToDate(S.maxDateTime),C=new Date(C.getFullYear(),C.getMonth(),C.getDate(),C.getHours(),C.getMinutes(),C.getSeconds())),!1!==C&&(p=31*(12*C.getFullYear()+C.getMonth())+C.getDate());g<T.currentTime.countDaysInMonth()||m.getDay()!==S.dayOfWeekStart||T.currentTime.getMonth()===m.getMonth();){k=[],g+=1,s=m.getDay(),l=m.getDate(),u=m.getFullYear(),H=m.getMonth(),c=T.getWeekOfYear(m),f="",k.push("xdsoft_date"),d=S.beforeShowDay&&t.isFunction(S.beforeShowDay.call)?S.beforeShowDay.call(E,m):null,S.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(S.allowDateRe)&&(S.allowDateRe.test(n.formatDate(m,S.formatDate))||k.push("xdsoft_disabled")),S.allowDates&&S.allowDates.length>0&&-1===S.allowDates.indexOf(n.formatDate(m,S.formatDate))&&k.push("xdsoft_disabled");var O=31*(12*m.getFullYear()+m.getMonth())+m.getDate();(!1!==b&&m>b||!1!==w&&m<w||!1!==_&&m<_||!1!==C&&O>p||d&&!1===d[0])&&k.push("xdsoft_disabled"),-1!==S.disabledDates.indexOf(n.formatDate(m,S.formatDate))&&k.push("xdsoft_disabled"),-1!==S.disabledWeekDays.indexOf(s)&&k.push("xdsoft_disabled"),e.is("[disabled]")&&k.push("xdsoft_disabled"),d&&""!==d[1]&&k.push(d[1]),T.currentTime.getMonth()!==H&&k.push("xdsoft_other_month"),(S.defaultSelect||E.data("changed"))&&n.formatDate(T.currentTime,S.formatDate)===n.formatDate(m,S.formatDate)&&k.push("xdsoft_current"),n.formatDate(y,S.formatDate)===n.formatDate(m,S.formatDate)&&k.push("xdsoft_today"),0!==m.getDay()&&6!==m.getDay()&&-1===S.weekends.indexOf(n.formatDate(m,S.formatDate))||k.push("xdsoft_weekend"),void 0!==S.highlightedDates[n.formatDate(m,S.formatDate)]&&(a=S.highlightedDates[n.formatDate(m,S.formatDate)],k.push(void 0===a.style?"xdsoft_highlighted_default":a.style),f=void 0===a.desc?"":a.desc),S.beforeShowDay&&t.isFunction(S.beforeShowDay)&&k.push(S.beforeShowDay(m)),x&&(v+="<tr>",x=!1,S.weeks&&(v+="<th>"+c+"</th>")),v+='<td data-date="'+l+'" data-month="'+H+'" data-year="'+u+'" class="xdsoft_date xdsoft_day_of_week'+m.getDay()+" "+k.join(" ")+'" title="'+f+'"><div>'+l+"</div></td>",m.getDay()===S.dayOfWeekStartPrev&&(v+="</tr>",x=!0),m.setDate(l+1)}v+="</tbody></table>",A.html(v),L.find(".xdsoft_label span").eq(0).text(S.i18n[o].months[T.currentTime.getMonth()]),L.find(".xdsoft_label span").eq(1).text(T.currentTime.getFullYear()+S.yearOffset),D="",H="";var M=0;if(!1!==S.minTime){var P=T.strtotime(S.minTime);M=60*P.getHours()+P.getMinutes()}var R=1440;if(!1!==S.maxTime){P=T.strtotime(S.maxTime);R=60*P.getHours()+P.getMinutes()}if(!1!==S.minDateTime){P=T.strToDateTime(S.minDateTime);if(n.formatDate(T.currentTime,S.formatDate)===n.formatDate(P,S.formatDate))(H=60*P.getHours()+P.getMinutes())>M&&(M=H)}if(!1!==S.maxDateTime){var H;P=T.strToDateTime(S.maxDateTime);if(n.formatDate(T.currentTime,S.formatDate)===n.formatDate(P,S.formatDate))(H=60*P.getHours()+P.getMinutes())<R&&(R=H)}if(h=function(i,o){var r,a=T.now(),s=S.allowTimes&&t.isArray(S.allowTimes)&&S.allowTimes.length;a.setHours(i),i=parseInt(a.getHours(),10),a.setMinutes(o),o=parseInt(a.getMinutes(),10),k=[];var l=60*i+o;(e.is("[disabled]")||l>=R||l<M)&&k.push("xdsoft_disabled"),(r=new Date(T.currentTime)).setHours(parseInt(T.currentTime.getHours(),10)),s||r.setMinutes(Math[S.roundTime](T.currentTime.getMinutes()/S.step)*S.step),(S.initTime||S.defaultSelect||E.data("changed"))&&r.getHours()===parseInt(i,10)&&(!s&&S.step>59||r.getMinutes()===parseInt(o,10))&&(S.defaultSelect||E.data("changed")?k.push("xdsoft_current"):S.initTime&&k.push("xdsoft_init_time")),parseInt(y.getHours(),10)===parseInt(i,10)&&parseInt(y.getMinutes(),10)===parseInt(o,10)&&k.push("xdsoft_today"),D+='<div class="xdsoft_time '+k.join(" ")+'" data-hour="'+i+'" data-minute="'+o+'">'+n.formatDate(a,S.formatTime)+"</div>"},S.allowTimes&&t.isArray(S.allowTimes)&&S.allowTimes.length)for(g=0;g<S.allowTimes.length;g+=1)h(T.strtotime(S.allowTimes[g]).getHours(),H=T.strtotime(S.allowTimes[g]).getMinutes());else for(g=0,r=0;g<(S.hours12?12:24);g+=1)for(r=0;r<60;r+=S.step){var N=60*g+r;N<M||(N>=R||h((g<10?"0":"")+g,H=(r<10?"0":"")+r))}for(I.html(D),i="",g=parseInt(S.yearStart,10);g<=parseInt(S.yearEnd,10);g+=1)i+='<div class="xdsoft_option '+(T.currentTime.getFullYear()===g?"xdsoft_current":"")+'" data-value="'+g+'">'+(g+S.yearOffset)+"</div>";for(j.children().eq(0).html(i),g=parseInt(S.monthStart,10),i="";g<=parseInt(S.monthEnd,10);g+=1)i+='<div class="xdsoft_option '+(T.currentTime.getMonth()===g?"xdsoft_current":"")+'" data-value="'+g+'">'+S.i18n[o].months[g]+"</div>";B.children().eq(0).html(i),t(E).trigger("generate.xdsoft")}),10),a.stopPropagation()})).on("afterOpen.xdsoft",(function(){var t,e,n,i;S.timepicker&&(I.find(".xdsoft_current").length?t=".xdsoft_current":I.find(".xdsoft_init_time").length&&(t=".xdsoft_init_time"),t?(e=R[0].clientHeight,(n=I[0].offsetHeight)-e<(i=I.find(t).index()*S.timeHeightInTimePicker+1)&&(i=n-e),R.trigger("scroll_element.xdsoft_scroller",[parseInt(i,10)/(n-e)])):R.trigger("scroll_element.xdsoft_scroller",[0]))})),a=0,A.on("touchend click.xdsoft","td",(function(n){n.stopPropagation(),a+=1;var i=t(this),o=T.currentTime;if(null==o&&(T.currentTime=T.now(),o=T.currentTime),i.hasClass("xdsoft_disabled"))return!1;o.setDate(1),o.setFullYear(i.data("year")),o.setMonth(i.data("month")),o.setDate(i.data("date")),E.trigger("select.xdsoft",[o]),e.val(T.str()),S.onSelectDate&&t.isFunction(S.onSelectDate)&&S.onSelectDate.call(E,T.currentTime,E.data("input"),n),E.data("changed",!0),E.trigger("xchange.xdsoft"),E.trigger("changedatetime.xdsoft"),(a>1||!0===S.closeOnDateSelect||!1===S.closeOnDateSelect&&!S.timepicker)&&!S.inline&&E.trigger("close.xdsoft"),setTimeout((function(){a=0}),200)})),I.on("touchstart","div",(function(t){this.touchMoved=!1})).on("touchmove","div",F).on("touchend click.xdsoft","div",(function(e){if(!this.touchMoved){e.stopPropagation();var n=t(this),i=T.currentTime;if(null==i&&(T.currentTime=T.now(),i=T.currentTime),n.hasClass("xdsoft_disabled"))return!1;i.setHours(n.data("hour")),i.setMinutes(n.data("minute")),E.trigger("select.xdsoft",[i]),E.data("input").val(T.str()),S.onSelectTime&&t.isFunction(S.onSelectTime)&&S.onSelectTime.call(E,T.currentTime,E.data("input"),e),E.data("changed",!0),E.trigger("xchange.xdsoft"),E.trigger("changedatetime.xdsoft"),!0!==S.inline&&!0===S.closeOnTimeSelect&&E.trigger("close.xdsoft")}})),M.on("mousewheel.xdsoft",(function(t){return!S.scrollMonth||(t.deltaY<0?T.nextMonth():T.prevMonth(),!1)})),e.on("mousewheel.xdsoft",(function(t){return!S.scrollInput||(!S.datepicker&&S.timepicker?((s=I.find(".xdsoft_current").length?I.find(".xdsoft_current").eq(0).index():0)+t.deltaY>=0&&s+t.deltaY<I.children().length&&(s+=t.deltaY),I.children().eq(s).length&&I.children().eq(s).trigger("mousedown"),!1):S.datepicker&&!S.timepicker?(M.trigger(t,[t.deltaY,t.deltaX,t.deltaY]),e.val&&e.val(T.str()),E.trigger("changedatetime.xdsoft"),!1):void 0)})),E.on("changedatetime.xdsoft",(function(e){if(S.onChangeDateTime&&t.isFunction(S.onChangeDateTime)){var n=E.data("input");S.onChangeDateTime.call(E,T.currentTime,n,e),delete S.value,n.trigger("change")}})).on("generate.xdsoft",(function(){S.onGenerate&&t.isFunction(S.onGenerate)&&S.onGenerate.call(E,T.currentTime,E.data("input")),N&&(E.trigger("afterOpen.xdsoft"),N=!1)})).on("click.xdsoft",(function(t){t.stopPropagation()})),s=0,D=function(t,e){do{if(!(t=t.parentNode)||!1===e(t))break}while("HTML"!==t.nodeName)},l=function(){var e,n,i,o,r,a,s,l,u,c,d,h,f;if(e=(l=E.data("input")).offset(),n=l[0],c="top",i=e.top+n.offsetHeight-1,o=e.left,r="absolute",u=t(S.contentWindow).width(),h=t(S.contentWindow).height(),f=t(S.contentWindow).scrollTop(),S.ownerDocument.documentElement.clientWidth-e.left<M.parent().outerWidth(!0)){var p=M.parent().outerWidth(!0)-n.offsetWidth;o-=p}"rtl"===l.parent().css("direction")&&(o-=E.outerWidth()-l.outerWidth()),S.fixed?(i-=f,o-=t(S.contentWindow).scrollLeft(),r="fixed"):(s=!1,D(n,(function(t){return null!==t&&("fixed"===S.contentWindow.getComputedStyle(t).getPropertyValue("position")?(s=!0,!1):void 0)})),s&&!S.insideParent?(r="fixed",i+E.outerHeight()>h+f?(c="bottom",i=h+f-e.top):i-=f):i+E[0].offsetHeight>h+f&&(i=e.top-E[0].offsetHeight+1),i<0&&(i=0),o+n.offsetWidth>u&&(o=u-n.offsetWidth)),a=E[0],D(a,(function(t){if("relative"===S.contentWindow.getComputedStyle(t).getPropertyValue("position")&&u>=t.offsetWidth)return o-=(u-t.offsetWidth)/2,!1})),d={position:r,left:S.insideParent?n.offsetLeft:o,top:"",bottom:""},S.insideParent?d[c]=n.offsetTop+n.offsetHeight:d[c]=i,E.css(d)},E.on("open.xdsoft",(function(e){var n=!0;S.onShow&&t.isFunction(S.onShow)&&(n=S.onShow.call(E,T.currentTime,E.data("input"),e)),!1!==n&&(E.show(),l(),t(S.contentWindow).off("resize.xdsoft",l).on("resize.xdsoft",l),S.closeOnWithoutClick&&t([S.ownerDocument.body,S.contentWindow]).on("touchstart mousedown.xdsoft",(function e(){E.trigger("close.xdsoft"),t([S.ownerDocument.body,S.contentWindow]).off("touchstart mousedown.xdsoft",e)})))})).on("close.xdsoft",(function(e){var n=!0;L.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),S.onClose&&t.isFunction(S.onClose)&&(n=S.onClose.call(E,T.currentTime,E.data("input"),e)),!1===n||S.opened||S.inline||E.hide(),e.stopPropagation()})).on("toggle.xdsoft",(function(){E.is(":visible")?E.trigger("close.xdsoft"):E.trigger("open.xdsoft")})).data("input",e),W=0,E.data("xdsoft_datetime",T),E.setOptions(S),T.setCurrentTime($()),e.data("xdsoft_datetimepicker",E).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",(function(){e.is(":disabled")||e.data("xdsoft_datetimepicker").is(":visible")&&S.closeOnInputClick||S.openOnFocus&&(clearTimeout(W),W=setTimeout((function(){e.is(":disabled")||(N=!0,T.setCurrentTime($(),!0),S.mask&&q(S),E.trigger("open.xdsoft"))}),100))})).on("keydown.xdsoft",(function(e){var n,i=e.which;return-1!==[d].indexOf(i)&&S.enterLikeTab?(n=t("input:visible,textarea:visible,button:visible,a:visible"),E.trigger("close.xdsoft"),n.eq(n.index(this)+1).focus(),!1):-1!==[g].indexOf(i)?(E.trigger("close.xdsoft"),!0):void 0})).on("blur.xdsoft",(function(){E.trigger("close.xdsoft")}))},s=function(e){var n=e.data("xdsoft_datetimepicker");n&&(n.data("xdsoft_datetime",null),n.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),t(S.contentWindow).off("resize.xdsoft"),t([S.contentWindow,S.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())},t(S.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",(function(t){t.keyCode===u&&(x=!0)})).on("keyup.xdsoftctrl",(function(t){t.keyCode===u&&(x=!1)})).on("keydown.xdsoftcmd",(function(t){91===t.keyCode&&!0})).on("keyup.xdsoftcmd",(function(t){91===t.keyCode&&!1})),this.each((function(){var e,o=t(this).data("xdsoft_datetimepicker");if(o){if("string"===t.type(i))switch(i){case"show":t(this).select().focus(),o.trigger("open.xdsoft");break;case"hide":o.trigger("close.xdsoft");break;case"toggle":o.trigger("toggle.xdsoft");break;case"destroy":s(t(this));break;case"reset":this.value=this.defaultValue,this.value&&o.data("xdsoft_datetime").isValidDate(n.parseDate(this.value,S.format))||o.data("changed",!1),o.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":o.data("input").trigger("blur.xdsoft");break;default:o[i]&&t.isFunction(o[i])&&(l=o[i](r))}else o.setOptions(i);return 0}"string"!==t.type(i)&&(!S.lazyInit||S.open||S.inline?a(t(this)):(e=t(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",(function t(){e.is(":disabled")||e.data("xdsoft_datetimepicker")||(clearTimeout(T),T=setTimeout((function(){e.data("xdsoft_datetimepicker")||a(e),e.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",t).trigger("open.xdsoft")}),100))})))})),l},t.fn.datetimepicker.defaults=e};!function(t){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(datetimepickerFactory),
|
||
/*!
|
||
* jQuery Mousewheel 3.1.13
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*/
|
||
function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}((function(t){var e,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice;if(t.event.fixHooks)for(var a=i.length;a;)t.event.fixHooks[i[--a]]=t.event.mouseHooks;var s=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],l,!1);else this.onmousewheel=l;t.data(this,"mousewheel-line-height",s.getLineHeight(this)),t.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],l,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var n=t(e),i=n["offsetParent"in t.fn?"offsetParent":"parent"]();return i.length||(i=t("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var o=i||window.event,a=r.call(arguments,1),l=0,d=0,h=0,f=0,p=0,v=0;if((i=t.event.fix(o)).type="mousewheel","detail"in o&&(h=-1*o.detail),"wheelDelta"in o&&(h=o.wheelDelta),"wheelDeltaY"in o&&(h=o.wheelDeltaY),"wheelDeltaX"in o&&(d=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(d=-1*h,h=0),l=0===h?d:h,"deltaY"in o&&(l=h=-1*o.deltaY),"deltaX"in o&&(d=o.deltaX,0===h&&(l=-1*d)),0!==h||0!==d){if(1===o.deltaMode){var m=t.data(this,"mousewheel-line-height");l*=m,h*=m,d*=m}else if(2===o.deltaMode){var g=t.data(this,"mousewheel-page-height");l*=g,h*=g,d*=g}if(f=Math.max(Math.abs(h),Math.abs(d)),(!n||f<n)&&(n=f,c(o,f)&&(n/=40)),c(o,f)&&(l/=40,d/=40,h/=40),l=Math[l>=1?"floor":"ceil"](l/n),d=Math[d>=1?"floor":"ceil"](d/n),h=Math[h>=1?"floor":"ceil"](h/n),s.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=i.clientX-y.left,v=i.clientY-y.top}return i.deltaX=d,i.deltaY=h,i.deltaFactor=n,i.offsetX=p,i.offsetY=v,i.deltaMode=0,a.unshift(i,l,d,h),e&&clearTimeout(e),e=setTimeout(u,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function u(){n=null}function c(t,e){return s.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})),function(t){"use strict";var e=function(n,i){var o=this;this.opts=t.extend({},e.defaults,i),this.$formset=t(n),this.$emptyForm=this.$formset.find(this.opts.emptyForm),this.$body=this.$formset.find(this.opts.body),this.$add=this.$formset.find(this.opts.add),this.formsetPrefix=t(n).data("formset-prefix"),this.addForm=t.proxy(this,"addForm"),this.$add.click(this.addForm),this.$formset.on("formAdded formDeleted",this.opts.form,t.proxy(this,"checkMaxForms")),this.$forms().each((function(e,n){t(n);o.bindForm(t(this),e)})),this.$formset.data("formset",this);t.each(["animateForms"],(function(t,e){e in o.opts&&o.opts[e]&&o[e]()}))};e.defaults={form:"[data-formset-form]",emptyForm:"script[type=form-template][data-formset-empty-form]",body:"[data-formset-body]",add:"[data-formset-add]",deleteButton:"[data-formset-delete-button]",hasMaxFormsClass:"has-max-forms",animateForms:!1,newFormCallback:!1},e.prototype.addForm=function(){if(this.hasMaxForms())throw new Error("MAX_NUM_FORMS reached");var e=this.totalFormCount();this.$managementForm("TOTAL_FORMS").val(e+1);var n=this.$emptyForm.html().replace(new RegExp("__prefix__","g"),e).replace(new RegExp("<\\\\/script>","g"),"<\/script>"),i=t(t.parseHTML(n,this.$body.document,!0));this.$body.append(i);var o=i.filter(this.opts.form);return this.bindForm(o,e),this.opts.newFormCallback&&this.opts.newFormCallback(o),o},e.prototype.bindForm=function(e,n){var i=this.formsetPrefix+"-"+n;e.data("formset__formPrefix",i);var o=e.find("[name="+i+"-DELETE]");o.change((function(n){o.is(":checked")?(e.attr("data-formset-form-deleted",""),e.find(":required").data("formset-required-field",!0).prop("required",!1),e.find("input[pattern]").each((function(){var e=t(this).attr("pattern");t(this).data("formset-field-pattern",e).removeAttr("pattern")})),e.trigger("formDeleted")):(e.removeAttr("data-formset-form-deleted"),e.find("*").filter((function(){return!0===t(this).data("formset-required-field")})).prop("required",!0),e.find("input").each((function(){var e=t(this).data("formset-field-pattern");e&&t(this).attr("pattern",e)})),e.trigger("formAdded"))})).trigger("change"),e.find(this.opts.deleteButton).bind("click",(function(){o.attr("checked",!0).change()}))},e.prototype.$forms=function(){return this.$body.find(this.opts.form)},e.prototype.$managementForm=function(t){return this.$formset.find("[name="+this.formsetPrefix+"-"+t+"]")},e.prototype.totalFormCount=function(){return this.$forms().length},e.prototype.deletedFormCount=function(){return this.$forms().filter("[data-formset-form-deleted]").length},e.prototype.activeFormCount=function(){return this.totalFormCount()-this.deletedFormCount()},e.prototype.hasMaxForms=function(){var t=parseInt(this.$managementForm("MAX_NUM_FORMS").val(),10)||1e3;return this.activeFormCount()>=t},e.prototype.checkMaxForms=function(){this.hasMaxForms()?(this.$formset.addClass(this.opts.hasMaxFormsClass),this.$add.attr("disabled","disabled")):(this.$formset.removeClass(this.opts.hasMaxFormsClass),this.$add.removeAttr("disabled"))},e.prototype.animateForms=function(){this.$formset.on("formAdded",this.opts.form,(function(){var e=t(this);e.slideUp(0),e.slideDown()})).on("formDeleted",this.opts.form,(function(){t(this).slideUp()})),this.$forms().filter("[data-formset-form-deleted]").slideUp(0)},e.getOrCreate=function(n,i){var o=t(n).data("formset");return o||(o=new e(n,i)),o},t.fn.formset=function(){var n,i,o;if(0===arguments.length||1===arguments.length&&"string"!=t.type(arguments[0]))return n=arguments[0],this.each((function(){return e.getOrCreate(this,n)}));if(i=arguments[0],o=t.makeArray(arguments).slice(1),i in e)return o.unshift(this),e[i].apply(e,o);throw new Error("Unknown function call "+i+" for $.fn.formset")}}(jQuery),
|
||
/*!
|
||
* perfect-scrollbar v1.5.3
|
||
* Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
|
||
* Licensed under MIT
|
||
*/
|
||
function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).PerfectScrollbar=e()}(this,(function(){"use strict";var t=Math.abs,e=Math.floor;function n(t){return getComputedStyle(t)}function i(t,e){for(var n in e){var i=e[n];"number"==typeof i&&(i+="px"),t.style[n]=i}return t}function o(t){var e=document.createElement("div");return e.className=t,e}function r(t,e){if(!b)throw new Error("No element matching method supported");return b.call(t,e)}function a(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function s(t,e){return Array.prototype.filter.call(t.children,(function(t){return r(t,e)}))}function l(t,e){var n=t.element.classList,i=_.state.scrolling(e);n.contains(i)?clearTimeout(w[e]):n.add(i)}function u(t,e){w[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(_.state.scrolling(e))}),t.settings.scrollingThreshold)}function c(t,e){l(t,e),u(t,e)}function d(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function h(t,e,n,i,o){var r;if(void 0===i&&(i=!0),void 0===o&&(o=!1),"top"===e)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,n,i,o){var r=n[0],a=n[1],s=n[2],l=n[3],u=n[4],h=n[5];void 0===i&&(i=!0),void 0===o&&(o=!1);var f=t.element;t.reach[l]=null,1>f[s]&&(t.reach[l]="start"),f[s]>t[r]-t[a]-1&&(t.reach[l]="end"),e&&(f.dispatchEvent(d("ps-scroll-"+l)),0>e?f.dispatchEvent(d("ps-scroll-"+u)):0<e&&f.dispatchEvent(d("ps-scroll-"+h)),i&&c(t,l)),t.reach[l]&&(e||o)&&f.dispatchEvent(d("ps-"+l+"-reach-"+t.reach[l]))}(t,n,r,i,o)}function f(t){return parseInt(t,10)||0}function p(t){return r(t,"input,[contenteditable]")||r(t,"select,[contenteditable]")||r(t,"textarea,[contenteditable]")||r(t,"button,[contenteditable]")}function v(t){var n=Math.round,i=t.element,o=e(i.scrollTop),r=i.getBoundingClientRect();t.containerWidth=n(r.width),t.containerHeight=n(r.height),t.contentWidth=i.scrollWidth,t.contentHeight=i.scrollHeight,i.contains(t.scrollbarXRail)||(s(i,_.element.rail("x")).forEach((function(t){return a(t)})),i.appendChild(t.scrollbarXRail)),i.contains(t.scrollbarYRail)||(s(i,_.element.rail("y")).forEach((function(t){return a(t)})),i.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=m(t,f(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=f((t.negativeScrollAdjustment+i.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=m(t,f(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=f(o*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),g(i,t),t.scrollbarXActive?i.classList.add(_.state.active("x")):(i.classList.remove(_.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,i.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?i.classList.add(_.state.active("y")):(i.classList.remove(_.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,i.scrollTop=0)}function m(t,e){var n=Math.min,i=Math.max;return t.settings.minScrollbarLength&&(e=i(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=n(e,t.settings.maxScrollbarLength)),e}function g(t,n){var o={width:n.railXWidth},r=e(t.scrollTop);o.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+n.containerWidth-n.contentWidth:t.scrollLeft,n.isScrollbarXUsingBottom?o.bottom=n.scrollbarXBottom-r:o.top=n.scrollbarXTop+r,i(n.scrollbarXRail,o);var a={top:r,height:n.railYHeight};n.isScrollbarYUsingRight?n.isRtl?a.right=n.contentWidth-(n.negativeScrollAdjustment+t.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:a.right=n.scrollbarYRight-t.scrollLeft:n.isRtl?a.left=n.negativeScrollAdjustment+t.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:a.left=n.scrollbarYLeft+t.scrollLeft,i(n.scrollbarYRail,a),i(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),i(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}function y(t,e){function n(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),g[f]=y+w*(e[s]-b),l(t,p),v(t),e.stopPropagation(),e.type.startsWith("touch")&&1<e.changedTouches.length&&e.preventDefault()}function i(){u(t,p),t[m].classList.remove(_.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",n)}function o(e,o){y=g[f],o&&e.touches&&(e[s]=e.touches[0].pageY),b=e[s],w=(t[a]-t[r])/(t[c]-t[h]),o?t.event.bind(t.ownerDocument,"touchmove",n):(t.event.bind(t.ownerDocument,"mousemove",n),t.event.once(t.ownerDocument,"mouseup",i),e.preventDefault()),t[m].classList.add(_.state.clicking),e.stopPropagation()}var r=e[0],a=e[1],s=e[2],c=e[3],d=e[4],h=e[5],f=e[6],p=e[7],m=e[8],g=t.element,y=null,b=null,w=null;t.event.bind(t[d],"mousedown",(function(t){o(t)})),t.event.bind(t[d],"touchstart",(function(t){o(t,!0)}))}var b="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),_={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},w={x:null,y:null},C=function(t){this.element=t,this.handlers={}},k={isEmpty:{configurable:!0}};C.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},C.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter((function(i){return!(!e||i===e)||(n.element.removeEventListener(t,i,!1),!1)}))},C.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},k.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(C.prototype,k);var x=function(){this.eventElements=[]};x.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new C(t),this.eventElements.push(e)),e},x.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},x.prototype.unbind=function(t,e,n){var i=this.eventElement(t);i.unbind(e,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},x.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},x.prototype.once=function(t,e,n){var i=this.eventElement(t),o=function(t){i.unbind(e,o),n(t)};i.bind(e,o)};var S={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&0<window.navigator.maxTouchPoints||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},T={"click-rail":function(t){t.element,t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=n*t.containerHeight,v(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=n*t.containerWidth,v(t),e.stopPropagation()}))},"drag-thumb":function(t){y(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),y(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var n=t.element,i=function(){return r(n,":hover")},o=function(){return r(t.scrollbarX,":focus")||r(t.scrollbarY,":focus")};t.event.bind(t.ownerDocument,"keydown",(function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(i()||o())){var a=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(p(a))return}var s=0,l=0;switch(r.which){case 37:s=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:l=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:s=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:l=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:l=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:l=t.containerHeight;break;case 34:l=-t.containerHeight;break;case 36:l=t.contentHeight;break;case 35:l=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==l||(n.scrollTop-=l,n.scrollLeft+=s,v(t),function(i,o){var r=e(n.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===r&&0<o||r>=t.contentHeight-t.containerHeight&&0>o)return!t.settings.wheelPropagation}var a=n.scrollLeft;if(0===o){if(!t.scrollbarXActive)return!1;if(0===a&&0>i||a>=t.contentWidth-t.containerWidth&&0<i)return!t.settings.wheelPropagation}return!0}(s,l)&&r.preventDefault())}}))},wheel:function(i){function o(t,e,i){if(!S.isWebKit&&a.querySelector("select:focus"))return!0;if(!a.contains(t))return!1;for(var o=t;o&&o!==a;){if(o.classList.contains(_.element.consuming))return!0;var r=n(o);if(i&&r.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(0<s&&(0<o.scrollTop&&0>i||o.scrollTop<s&&0<i))return!0}if(e&&r.overflowX.match(/(scroll|auto)/)){var l=o.scrollWidth-o.clientWidth;if(0<l&&(0<o.scrollLeft&&0>e||o.scrollLeft<l&&0<e))return!0}o=o.parentNode}return!1}function r(n){var r=function(t){var e=t.deltaX,n=-1*t.deltaY;return(void 0===e||void 0===n)&&(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),s=r[0],l=r[1];if(!o(n.target,s,l)){var u=!1;i.settings.useBothWheelAxes?i.scrollbarYActive&&!i.scrollbarXActive?(l?a.scrollTop-=l*i.settings.wheelSpeed:a.scrollTop+=s*i.settings.wheelSpeed,u=!0):i.scrollbarXActive&&!i.scrollbarYActive&&(s?a.scrollLeft+=s*i.settings.wheelSpeed:a.scrollLeft-=l*i.settings.wheelSpeed,u=!0):(a.scrollTop-=l*i.settings.wheelSpeed,a.scrollLeft+=s*i.settings.wheelSpeed),v(i),(u=u||function(n,o){var r=e(a.scrollTop),s=0===a.scrollTop,l=r+a.offsetHeight===a.scrollHeight,u=0===a.scrollLeft,c=a.scrollLeft+a.offsetWidth===a.scrollWidth;return!(t(o)>t(n)?s||l:u||c)||!i.settings.wheelPropagation}(s,l))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}var a=i.element;void 0===window.onwheel?void 0!==window.onmousewheel&&i.event.bind(a,"mousewheel",r):i.event.bind(a,"wheel",r)},touch:function(i){function o(n,o){var r=e(h.scrollTop),a=h.scrollLeft,s=t(n),l=t(o);if(l>s){if(0>o&&r===i.contentHeight-i.containerHeight||0<o&&0===r)return 0===window.scrollY&&0<o&&S.isChrome}else if(s>l&&(0>n&&a===i.contentWidth-i.containerWidth||0<n&&0===a))return!0;return!0}function r(t,e){h.scrollTop-=e,h.scrollLeft-=t,v(i)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function s(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function l(t){if(s(t)){var e=a(t);f.pageX=e.pageX,f.pageY=e.pageY,p=(new Date).getTime(),null!==g&&clearInterval(g)}}function u(t,e,i){if(!h.contains(t))return!1;for(var o=t;o&&o!==h;){if(o.classList.contains(_.element.consuming))return!0;var r=n(o);if(i&&r.overflowY.match(/(scroll|auto)/)){var a=o.scrollHeight-o.clientHeight;if(0<a&&(0<o.scrollTop&&0>i||o.scrollTop<a&&0<i))return!0}if(e&&r.overflowX.match(/(scroll|auto)/)){var s=o.scrollWidth-o.clientWidth;if(0<s&&(0<o.scrollLeft&&0>e||o.scrollLeft<s&&0<e))return!0}o=o.parentNode}return!1}function c(t){if(s(t)){var e=a(t),n={pageX:e.pageX,pageY:e.pageY},i=n.pageX-f.pageX,l=n.pageY-f.pageY;if(u(t.target,i,l))return;r(i,l),f=n;var c=(new Date).getTime(),d=c-p;0<d&&(m.x=i/d,m.y=l/d,p=c),o(i,l)&&t.preventDefault()}}function d(){i.settings.swipeEasing&&(clearInterval(g),g=setInterval((function(){return i.isInitialized?void clearInterval(g):m.x||m.y?.01>t(m.x)&&.01>t(m.y)?void clearInterval(g):i.element?(r(30*m.x,30*m.y),m.x*=.8,void(m.y*=.8)):void clearInterval(g):void clearInterval(g)}),10))}if(S.supportsTouch||S.supportsIePointer){var h=i.element,f={},p=0,m={},g=null;S.supportsTouch?(i.event.bind(h,"touchstart",l),i.event.bind(h,"touchmove",c),i.event.bind(h,"touchend",d)):S.supportsIePointer&&(window.PointerEvent?(i.event.bind(h,"pointerdown",l),i.event.bind(h,"pointermove",c),i.event.bind(h,"pointerup",d)):window.MSPointerEvent&&(i.event.bind(h,"MSPointerDown",l),i.event.bind(h,"MSPointerMove",c),i.event.bind(h,"MSPointerUp",d)))}}},D=function(t,r){var a=this;if(void 0===r&&(r={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var s in this.element=t,t.classList.add(_.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},r)this.settings[s]=r[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var l=function(){return t.classList.add(_.state.focus)},u=function(){return t.classList.remove(_.state.focus)};this.isRtl="rtl"===n(t).direction,!0===this.isRtl&&t.classList.add(_.rtl),this.isNegativeScroll=function(){var e,n=t.scrollLeft;return t.scrollLeft=-1,e=0>t.scrollLeft,t.scrollLeft=n,e}(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new x,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=o(_.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=o(_.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",l),this.event.bind(this.scrollbarX,"blur",u),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=n(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=f(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=f(c.borderLeftWidth)+f(c.borderRightWidth),i(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=f(c.marginLeft)+f(c.marginRight),i(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=o(_.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=o(_.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",l),this.event.bind(this.scrollbarY,"blur",u),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=n(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=f(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=n(t);return f(e.width)+f(e.paddingLeft)+f(e.paddingRight)+f(e.borderLeftWidth)+f(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=f(d.borderTopWidth)+f(d.borderBottomWidth),i(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=f(d.marginTop)+f(d.marginBottom),i(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:0>=t.scrollLeft?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:0>=t.scrollTop?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return T[t](a)})),this.lastScrollTop=e(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return a.onScroll(t)})),v(this)};return D.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,i(this.scrollbarXRail,{display:"block"}),i(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=f(n(this.scrollbarXRail).marginLeft)+f(n(this.scrollbarXRail).marginRight),this.railYMarginHeight=f(n(this.scrollbarYRail).marginTop)+f(n(this.scrollbarYRail).marginBottom),i(this.scrollbarXRail,{display:"none"}),i(this.scrollbarYRail,{display:"none"}),v(this),h(this,"top",0,!1,!0),h(this,"left",0,!1,!0),i(this.scrollbarXRail,{display:""}),i(this.scrollbarYRail,{display:""}))},D.prototype.onScroll=function(){this.isAlive&&(v(this),h(this,"top",this.element.scrollTop-this.lastScrollTop),h(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=e(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},D.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),a(this.scrollbarX),a(this.scrollbarY),a(this.scrollbarXRail),a(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},D.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")},D})),
|
||
/*! FixedHeader 3.1.3-dev
|
||
* ©2009-2016 SpryMedia Ltd - datatables.net/license
|
||
*/
|
||
function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(jQuery,window,document)}((function(t,e,n,i){"use strict";var o=t.fn.dataTable,r=0,a=function(n,i){if(!(this instanceof a))throw"FixedHeader must be initialised with the 'new' keyword.";!0===i&&(i={}),n=new o.Api(n),this.c=t.extend(!0,{},a.defaults,i),this.s={dt:n,position:{theadTop:0,tbodyTop:0,tfootTop:0,tfootBottom:0,width:0,left:0,tfootHeight:0,theadHeight:0,windowHeight:t(e).height(),visible:!0},headerMode:null,footerMode:null,autoWidth:n.settings()[0].oFeatures.bAutoWidth,namespace:".dtfc"+r++,scrollLeft:{header:-1,footer:-1},enable:!0},this.dom={floatingHeader:null,thead:t(n.table().header()),tbody:t(n.table().body()),tfoot:t(n.table().footer()),header:{host:null,floating:null,placeholder:null},footer:{host:null,floating:null,placeholder:null}},this.dom.header.host=this.dom.thead.parent(),this.dom.footer.host=this.dom.tfoot.parent();var s=n.settings()[0];if(s._fixedHeader)throw"FixedHeader already initialised on table "+s.nTable.id;s._fixedHeader=this,this._constructor()};return t.extend(a.prototype,{enable:function(t){this.s.enable=t,this.c.header&&this._modeChange("in-place","header",!0),this.c.footer&&this.dom.tfoot.length&&this._modeChange("in-place","footer",!0),this.update()},headerOffset:function(t){return t!==i&&(this.c.headerOffset=t,this.update()),this.c.headerOffset},footerOffset:function(t){return t!==i&&(this.c.footerOffset=t,this.update()),this.c.footerOffset},update:function(){this._positions(),this._scroll(!0)},_constructor:function(){var n=this,i=this.s.dt;t(e).on("scroll"+this.s.namespace,(function(){n._scroll()})).on("resize"+this.s.namespace,(function(){n.s.position.windowHeight=t(e).height(),n.update()}));var o=t(".fh-fixedHeader");!this.c.headerOffset&&o.length&&(this.c.headerOffset=o.outerHeight());var r=t(".fh-fixedFooter");!this.c.footerOffset&&r.length&&(this.c.footerOffset=r.outerHeight()),i.on("column-reorder.dt.dtfc column-visibility.dt.dtfc draw.dt.dtfc column-sizing.dt.dtfc",(function(){n.update()})),i.on("destroy.dtfc",(function(){i.off(".dtfc"),t(e).off(n.s.namespace)})),this._positions(),this._scroll()},_clone:function(e,n){var i=this.s.dt,o=this.dom[e],r="header"===e?this.dom.thead:this.dom.tfoot;if(!n&&o.floating)o.floating.removeClass("fixedHeader-floating fixedHeader-locked");else{o.floating&&(o.placeholder.remove(),this._unsize(e),o.floating.children().detach(),o.floating.remove()),o.floating=t(i.table().node().cloneNode(!1)).css("table-layout","fixed").removeAttr("id").append(r).appendTo("body");var a=r.clone(!1);a.find("*[id]").attr("id",(function(t,e){return e+"_cloned"})),a.find("*[for]").attr("for",(function(t,e){return e+"_cloned"})),o.placeholder=a,o.host.prepend(o.placeholder),this._matchWidths(o.placeholder,o.floating)}},_matchWidths:function(e,n){var i=function(n){return t(n,e).map((function(){return t(this).outerWidth()})).toArray()},o=function(e,i){t(e,n).each((function(e){t(this).css({width:i[e],minWidth:i[e]})}))},r=i("th"),a=i("td");o("th",r),o("td",a)},_unsize:function(e){var n=this.dom[e].floating;n&&("footer"===e||"header"===e&&!this.s.autoWidth)?t("th, td",n).css({width:"",minWidth:""}):n&&"header"===e&&t("th, td",n).css("min-width","")},_horizontal:function(t,e){var n=this.dom[t],i=this.s.position,o=this.s.scrollLeft;n.floating&&o[t]!==e&&(n.floating.css("left",i.left-e),o[t]=e)},_modeChange:function(e,i,o){this.s.dt;var r=this.dom[i],a=this.s.position,s=this.dom["footer"===i?"tfoot":"thead"],l=t.contains(s[0],n.activeElement)?n.activeElement:null;"in-place"===e?(r.placeholder&&(r.placeholder.remove(),r.placeholder=null),this._unsize(i),"header"===i?r.host.prepend(this.dom.thead):r.host.append(this.dom.tfoot),r.floating&&(r.floating.remove(),r.floating=null)):"in"===e?(this._clone(i,o),r.floating.addClass("fixedHeader-floating").css("header"===i?"top":"bottom",this.c[i+"Offset"]).css("left",a.left+"px").css("width",a.width+"px"),"footer"===i&&r.floating.css("top","")):"below"===e?(this._clone(i,o),r.floating.addClass("fixedHeader-locked").css("top",a.tfootTop-a.theadHeight).css("left",a.left+"px").css("width",a.width+"px")):"above"===e&&(this._clone(i,o),r.floating.addClass("fixedHeader-locked").css("top",a.tbodyTop).css("left",a.left+"px").css("width",a.width+"px")),l&&l!==n.activeElement&&l.focus(),this.s.scrollLeft.header=-1,this.s.scrollLeft.footer=-1,this.s[i+"Mode"]=e},_positions:function(){var e=this.s.dt.table(),n=this.s.position,i=this.dom,o=t(e.node()),r=o.children("thead"),a=o.children("tfoot"),s=i.tbody;n.visible=o.is(":visible"),n.width=o.outerWidth(),n.left=o.offset().left,n.theadTop=r.offset().top,n.tbodyTop=s.offset().top,n.theadHeight=n.tbodyTop-n.theadTop,a.length?(n.tfootTop=a.offset().top,n.tfootBottom=n.tfootTop+a.outerHeight(),n.tfootHeight=n.tfootBottom-n.tfootTop):(n.tfootTop=n.tbodyTop+s.outerHeight(),n.tfootBottom=n.tfootTop,n.tfootHeight=n.tfootTop)},_scroll:function(e){var i,o,r=t(n).scrollTop(),a=t(n).scrollLeft(),s=this.s.position;this.s.enable&&(this.c.header&&(i=!s.visible||r<=s.theadTop-this.c.headerOffset?"in-place":r<=s.tfootTop-s.theadHeight-this.c.headerOffset?"in":"below",(e||i!==this.s.headerMode)&&this._modeChange(i,"header",e),this._horizontal("header",a)),this.c.footer&&this.dom.tfoot.length&&(o=!s.visible||r+s.windowHeight>=s.tfootBottom+this.c.footerOffset?"in-place":s.windowHeight+r>s.tbodyTop+s.tfootHeight+this.c.footerOffset?"in":"above",(e||o!==this.s.footerMode)&&this._modeChange(o,"footer",e),this._horizontal("footer",a)))}}),a.version="3.1.3-dev",a.defaults={header:!0,footer:!1,headerOffset:0,footerOffset:0},t.fn.dataTable.FixedHeader=a,t.fn.DataTable.FixedHeader=a,t(n).on("init.dt.dtfh",(function(e,n,i){if("dt"===e.namespace){var r=n.oInit.fixedHeader,s=o.defaults.fixedHeader;if((r||s)&&!n._fixedHeader){var l=t.extend({},s,r);!1!==r&&new a(n,l)}}})),o.Api.register("fixedHeader()",(function(){})),o.Api.register("fixedHeader.adjust()",(function(){return this.iterator("table",(function(t){var e=t._fixedHeader;e&&e.update()}))})),o.Api.register("fixedHeader.enable()",(function(t){return this.iterator("table",(function(e){var n=e._fixedHeader;n&&n.enable(t===i||t)}))})),o.Api.register("fixedHeader.disable()",(function(){return this.iterator("table",(function(t){var e=t._fixedHeader;e&&e.enable(!1)}))})),t.each(["header","footer"],(function(t,e){o.Api.register("fixedHeader."+e+"Offset()",(function(t){var n=this.context;return t===i?n.length&&n[0]._fixedHeader?n[0]._fixedHeader[e+"Offset"]():i:this.iterator("table",(function(n){var i=n._fixedHeader;i&&i[e+"Offset"](t)}))}))})),a})),
|
||
/*! Responsive 2.2.7
|
||
* 2014-2021 SpryMedia Ltd - datatables.net/license
|
||
*/
|
||
function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(jQuery,window,document)}((function(t,e,n,i){"use strict";var o=t.fn.dataTable,r=function(e,n){if(!o.versionCheck||!o.versionCheck("1.10.10"))throw"DataTables Responsive requires DataTables 1.10.10 or newer";this.s={dt:new o.Api(e),columns:[],current:[]},this.s.dt.settings()[0].responsive||(n&&"string"==typeof n.details?n.details={type:n.details}:n&&!1===n.details?n.details={type:!1}:n&&!0===n.details&&(n.details={type:"inline"}),this.c=t.extend(!0,{},r.defaults,o.defaults.responsive,n),e.responsive=this,this._constructor())};t.extend(r.prototype,{_constructor:function(){var n=this,i=this.s.dt,r=i.settings()[0],a=t(e).innerWidth();i.settings()[0]._responsive=this,t(e).on("resize.dtr orientationchange.dtr",o.util.throttle((function(){var i=t(e).innerWidth();i!==a&&(n._resize(),a=i)}))),r.oApi._fnCallbackReg(r,"aoRowCreatedCallback",(function(e,o,r){-1!==t.inArray(!1,n.s.current)&&t(">td, >th",e).each((function(e){var o=i.column.index("toData",e);!1===n.s.current[o]&&t(this).css("display","none")}))})),i.on("destroy.dtr",(function(){i.off(".dtr"),t(i.table().body()).off(".dtr"),t(e).off("resize.dtr orientationchange.dtr"),i.cells(".dtr-control").nodes().to$().removeClass("dtr-control"),t.each(n.s.current,(function(t,e){!1===e&&n._setColumnVis(t,!0)}))})),this.c.breakpoints.sort((function(t,e){return t.width<e.width?1:t.width>e.width?-1:0})),this._classLogic(),this._resizeAuto();var s=this.c.details;!1!==s.type&&(n._detailsInit(),i.on("column-visibility.dtr",(function(){n._timer&&clearTimeout(n._timer),n._timer=setTimeout((function(){n._timer=null,n._classLogic(),n._resizeAuto(),n._resize(!0),n._redrawChildren()}),100)})),i.on("draw.dtr",(function(){n._redrawChildren()})),t(i.table().node()).addClass("dtr-"+s.type)),i.on("column-reorder.dtr",(function(t,e,i){n._classLogic(),n._resizeAuto(),n._resize(!0)})),i.on("column-sizing.dtr",(function(){n._resizeAuto(),n._resize()})),i.on("preXhr.dtr",(function(){var t=[];i.rows().every((function(){this.child.isShown()&&t.push(this.id(!0))})),i.one("draw.dtr",(function(){n._resizeAuto(),n._resize(),i.rows(t).every((function(){n._detailsDisplay(this,!1)}))}))})),i.on("draw.dtr",(function(){n._controlClass()})).on("init.dtr",(function(e,o,r){"dt"===e.namespace&&(n._resizeAuto(),n._resize(),t.inArray(!1,n.s.current)&&i.columns.adjust())})),this._resize()},_columnsVisiblity:function(e){var n,i,o=this.s.dt,r=this.s.columns,a=r.map((function(t,e){return{columnIdx:e,priority:t.priority}})).sort((function(t,e){return t.priority!==e.priority?t.priority-e.priority:t.columnIdx-e.columnIdx})),s=t.map(r,(function(n,i){return!1===o.column(i).visible()?"not-visible":(!n.auto||null!==n.minWidth)&&(!0===n.auto?"-":-1!==t.inArray(e,n.includeIn))})),l=0;for(n=0,i=s.length;n<i;n++)!0===s[n]&&(l+=r[n].minWidth);var u=o.settings()[0].oScroll,c=u.sY||u.sX?u.iBarWidth:0,d=o.table().container().offsetWidth-c-l;for(n=0,i=s.length;n<i;n++)r[n].control&&(d-=r[n].minWidth);var h=!1;for(n=0,i=a.length;n<i;n++){var f=a[n].columnIdx;"-"===s[f]&&!r[f].control&&r[f].minWidth&&(h||d-r[f].minWidth<0?(h=!0,s[f]=!1):s[f]=!0,d-=r[f].minWidth)}var p=!1;for(n=0,i=r.length;n<i;n++)if(!r[n].control&&!r[n].never&&!1===s[n]){p=!0;break}for(n=0,i=r.length;n<i;n++)r[n].control&&(s[n]=p),"not-visible"===s[n]&&(s[n]=!1);return-1===t.inArray(!0,s)&&(s[0]=!0),s},_classLogic:function(){var e=this,n=this.c.breakpoints,o=this.s.dt,r=o.columns().eq(0).map((function(t){var e=this.column(t),n=e.header().className,r=o.settings()[0].aoColumns[t].responsivePriority,a=e.header().getAttribute("data-priority");return r===i&&(r=a===i||null===a?1e4:1*a),{className:n,includeIn:[],auto:!1,control:!1,never:!!n.match(/\bnever\b/),priority:r}})),a=function(e,n){var i=r[e].includeIn;-1===t.inArray(n,i)&&i.push(n)},s=function(t,i,o,s){var l,u,c;if(o){if("max-"===o)for(l=e._find(i).width,u=0,c=n.length;u<c;u++)n[u].width<=l&&a(t,n[u].name);else if("min-"===o)for(l=e._find(i).width,u=0,c=n.length;u<c;u++)n[u].width>=l&&a(t,n[u].name);else if("not-"===o)for(u=0,c=n.length;u<c;u++)-1===n[u].name.indexOf(s)&&a(t,n[u].name)}else r[t].includeIn.push(i)};r.each((function(e,i){for(var o=e.className.split(" "),r=!1,a=0,l=o.length;a<l;a++){var u=o[a].trim();if("all"===u)return r=!0,void(e.includeIn=t.map(n,(function(t){return t.name})));if("none"===u||e.never)return void(r=!0);if("control"===u||"dtr-control"===u)return r=!0,void(e.control=!0);t.each(n,(function(t,e){var n=e.name.split("-"),o=new RegExp("(min\\-|max\\-|not\\-)?("+n[0]+")(\\-[_a-zA-Z0-9])?"),a=u.match(o);a&&(r=!0,a[2]===n[0]&&a[3]==="-"+n[1]?s(i,e.name,a[1],a[2]+a[3]):a[2]!==n[0]||a[3]||s(i,e.name,a[1],a[2]))}))}r||(e.auto=!0)})),this.s.columns=r},_controlClass:function(){if("inline"===this.c.details.type){var e=this.s.dt,n=this.s.current,i=t.inArray(!0,n);e.cells(null,(function(t){return t!==i}),{page:"current"}).nodes().to$().filter(".dtr-control").removeClass("dtr-control"),e.cells(null,i,{page:"current"}).nodes().to$().addClass("dtr-control")}},_detailsDisplay:function(e,n){var i=this,o=this.s.dt,r=this.c.details;if(r&&!1!==r.type){var a=r.display(e,n,(function(){return r.renderer(o,e[0],i._detailsObj(e[0]))}));!0!==a&&!1!==a||t(o.table().node()).triggerHandler("responsive-display.dt",[o,e,a,n])}},_detailsInit:function(){var e=this,n=this.s.dt,o=this.c.details;"inline"===o.type&&(o.target="td.dtr-control, th.dtr-control"),n.on("draw.dtr",(function(){e._tabIndexes()})),e._tabIndexes(),t(n.table().body()).on("keyup.dtr","td, th",(function(e){13===e.keyCode&&t(this).data("dtr-keyboard")&&t(this).click()}));var r=o.target,a="string"==typeof r?r:"td, th";r===i&&null===r||t(n.table().body()).on("click.dtr mousedown.dtr mouseup.dtr",a,(function(i){if(t(n.table().node()).hasClass("collapsed")&&-1!==t.inArray(t(this).closest("tr").get(0),n.rows().nodes().toArray())){if("number"==typeof r){var o=r<0?n.columns().eq(0).length+r:r;if(n.cell(this).index().column!==o)return}var a=n.row(t(this).closest("tr"));"click"===i.type?e._detailsDisplay(a,!1):"mousedown"===i.type?t(this).css("outline","none"):"mouseup"===i.type&&t(this).trigger("blur").css("outline","")}}))},_detailsObj:function(e){var n=this,i=this.s.dt;return t.map(this.s.columns,(function(o,r){if(!o.never&&!o.control){var a=i.settings()[0].aoColumns[r];return{className:a.sClass,columnIndex:r,data:i.cell(e,r).render(n.c.orthogonal),hidden:i.column(r).visible()&&!n.s.current[r],rowIndex:e,title:null!==a.sTitle?a.sTitle:t(i.column(r).header()).text()}}}))},_find:function(t){for(var e=this.c.breakpoints,n=0,i=e.length;n<i;n++)if(e[n].name===t)return e[n]},_redrawChildren:function(){var t=this,e=this.s.dt;e.rows({page:"current"}).iterator("row",(function(n,i){e.row(i);t._detailsDisplay(e.row(i),!0)}))},_resize:function(n){var i,o,r=this,a=this.s.dt,s=t(e).innerWidth(),l=this.c.breakpoints,u=l[0].name,c=this.s.columns,d=this.s.current.slice();for(i=l.length-1;i>=0;i--)if(s<=l[i].width){u=l[i].name;break}var h=this._columnsVisiblity(u);this.s.current=h;var f=!1;for(i=0,o=c.length;i<o;i++)if(!1===h[i]&&!c[i].never&&!c[i].control&&!1==!a.column(i).visible()){f=!0;break}t(a.table().node()).toggleClass("collapsed",f);var p=!1,v=0;a.columns().eq(0).each((function(t,e){!0===h[e]&&v++,(n||h[e]!==d[e])&&(p=!0,r._setColumnVis(t,h[e]))})),p&&(this._redrawChildren(),t(a.table().node()).trigger("responsive-resize.dt",[a,this.s.current]),0===a.page.info().recordsDisplay&&t("td",a.table().body()).eq(0).attr("colspan",v)),r._controlClass()},_resizeAuto:function(){var e=this.s.dt,n=this.s.columns;if(this.c.auto&&-1!==t.inArray(!0,t.map(n,(function(t){return t.auto})))){t.isEmptyObject(a)||t.each(a,(function(t){var n=t.split("-");s(e,1*n[0],1*n[1])}));e.table().node().offsetWidth,e.columns;var i=e.table().node().cloneNode(!1),o=t(e.table().header().cloneNode(!1)).appendTo(i),r=t(e.table().body()).clone(!1,!1).empty().appendTo(i);i.style.width="auto";var l=e.columns().header().filter((function(t){return e.column(t).visible()})).to$().clone(!1).css("display","table-cell").css("width","auto").css("min-width",0);t(r).append(t(e.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display","");var u=e.table().footer();if(u){var c=t(u.cloneNode(!1)).appendTo(i),d=e.columns().footer().filter((function(t){return e.column(t).visible()})).to$().clone(!1).css("display","table-cell");t("<tr/>").append(d).appendTo(c)}t("<tr/>").append(l).appendTo(o),"inline"===this.c.details.type&&t(i).addClass("dtr-inline collapsed"),t(i).find("[name]").removeAttr("name"),t(i).css("position","relative");var h=t("<div/>").css({width:1,height:1,overflow:"hidden",clear:"both"}).append(i);h.insertBefore(e.table().node()),l.each((function(t){var i=e.column.index("fromVisible",t);n[i].minWidth=this.offsetWidth||0})),h.remove()}},_responsiveOnlyHidden:function(){var e=this.s.dt;return t.map(this.s.current,(function(t,n){return!1===e.column(n).visible()||t}))},_setColumnVis:function(e,n){var i=this.s.dt,o=n?"":"none";t(i.column(e).header()).css("display",o),t(i.column(e).footer()).css("display",o),i.column(e).nodes().to$().css("display",o),t.isEmptyObject(a)||i.cells(null,e).indexes().each((function(t){s(i,t.row,t.column)}))},_tabIndexes:function(){var e=this.s.dt,n=e.cells({page:"current"}).nodes().to$(),i=e.settings()[0],o=this.c.details.target;n.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]"),"number"==typeof o?e.cells(null,o,{page:"current"}).nodes().to$().attr("tabIndex",i.iTabIndex).data("dtr-keyboard",1):("td:first-child, th:first-child"===o&&(o=">td:first-child, >th:first-child"),t(o,e.rows({page:"current"}).nodes()).attr("tabIndex",i.iTabIndex).data("dtr-keyboard",1))}}),r.breakpoints=[{name:"desktop",width:1/0},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}],r.display={childRow:function(e,n,i){return n?t(e.node()).hasClass("parent")?(e.child(i(),"child").show(),!0):void 0:e.child.isShown()?(e.child(!1),t(e.node()).removeClass("parent"),!1):(e.child(i(),"child").show(),t(e.node()).addClass("parent"),!0)},childRowImmediate:function(e,n,i){return!n&&e.child.isShown()||!e.responsive.hasHidden()?(e.child(!1),t(e.node()).removeClass("parent"),!1):(e.child(i(),"child").show(),t(e.node()).addClass("parent"),!0)},modal:function(e){return function(i,o,r){if(o)t("div.dtr-modal-content").empty().append(r());else{var a=function(){s.remove(),t(n).off("keypress.dtr")},s=t('<div class="dtr-modal"/>').append(t('<div class="dtr-modal-display"/>').append(t('<div class="dtr-modal-content"/>').append(r())).append(t('<div class="dtr-modal-close">×</div>').click((function(){a()})))).append(t('<div class="dtr-modal-background"/>').click((function(){a()}))).appendTo("body");t(n).on("keyup.dtr",(function(t){27===t.keyCode&&(t.stopPropagation(),a())}))}e&&e.header&&t("div.dtr-modal-content").prepend("<h2>"+e.header(i)+"</h2>")}}};var a={};function s(t,e,n){var o=e+"-"+n;if(a[o]){for(var r=t.cell(e,n).node(),s=a[o][0].parentNode.childNodes,l=[],u=0,c=s.length;u<c;u++)l.push(s[u]);for(var d=0,h=l.length;d<h;d++)r.appendChild(l[d]);a[o]=i}}r.renderer={listHiddenNodes:function(){return function(e,n,i){var o=t('<ul data-dtr-index="'+n+'" class="dtr-details"/>'),r=!1;t.each(i,(function(n,i){if(i.hidden){var s=i.className?'class="'+i.className+'"':"";t("<li "+s+' data-dtr-index="'+i.columnIndex+'" data-dt-row="'+i.rowIndex+'" data-dt-column="'+i.columnIndex+'"><span class="dtr-title">'+i.title+"</span> </li>").append(t('<span class="dtr-data"/>').append(function(t,e,n){var i=e+"-"+n;if(a[i])return a[i];for(var o=[],r=t.cell(e,n).node().childNodes,s=0,l=r.length;s<l;s++)o.push(r[s]);return a[i]=o,o}(e,i.rowIndex,i.columnIndex))).appendTo(o),r=!0}}));return!!r&&o}},listHidden:function(){return function(e,n,i){var o=t.map(i,(function(t){var e=t.className?'class="'+t.className+'"':"";return t.hidden?"<li "+e+' data-dtr-index="'+t.columnIndex+'" data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><span class="dtr-title">'+t.title+'</span> <span class="dtr-data">'+t.data+"</span></li>":""})).join("");return!!o&&t('<ul data-dtr-index="'+n+'" class="dtr-details"/>').append(o)}},tableAll:function(e){return e=t.extend({tableClass:""},e),function(n,i,o){var r=t.map(o,(function(t){return"<tr "+(t.className?'class="'+t.className+'"':"")+' data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><td>'+t.title+":</td> <td>"+t.data+"</td></tr>"})).join("");return t('<table class="'+e.tableClass+' dtr-details" width="100%"/>').append(r)}}},r.defaults={breakpoints:r.breakpoints,auto:!0,details:{display:r.display.childRow,renderer:r.renderer.listHidden(),target:0,type:"inline"},orthogonal:"display"};var l=t.fn.dataTable.Api;return l.register("responsive()",(function(){return this})),l.register("responsive.index()",(function(e){return{column:(e=t(e)).data("dtr-index"),row:e.parent().data("dtr-index")}})),l.register("responsive.rebuild()",(function(){return this.iterator("table",(function(t){t._responsive&&t._responsive._classLogic()}))})),l.register("responsive.recalc()",(function(){return this.iterator("table",(function(t){t._responsive&&(t._responsive._resizeAuto(),t._responsive._resize())}))})),l.register("responsive.hasHidden()",(function(){var e=this.context[0];return!!e._responsive&&-1!==t.inArray(!1,e._responsive._responsiveOnlyHidden())})),l.registerPlural("columns().responsiveHidden()","column().responsiveHidden()",(function(){return this.iterator("column",(function(t,e){return!!t._responsive&&t._responsive._responsiveOnlyHidden()[e]}),1)})),r.version="2.2.7",t.fn.dataTable.Responsive=r,t.fn.DataTable.Responsive=r,t(n).on("preInit.dt.dtr",(function(e,n,i){if("dt"===e.namespace&&(t(n.nTable).hasClass("responsive")||t(n.nTable).hasClass("dt-responsive")||n.oInit.responsive||o.defaults.responsive)){var a=n.oInit.responsive;!1!==a&&new r(n,t.isPlainObject(a)?a:{})}})),r}));
|
||
/*!
|
||
* Materialize vundefined (http://materializecss.com)
|
||
* Copyright 2014-2017 Materialize
|
||
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
||
*/
|
||
var _get=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},_createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}
|
||
/*! cash-dom 1.3.5, https://github.com/kenwheeler/cash @license MIT */window.cash=function(){var t,e=document,n=window,i=Array.prototype,o=i.slice,r=i.filter,a=i.push,s=function(){},l=function(t){return typeof t==typeof s&&t.call},u=function(t){return"string"==typeof t},c=/^#[\w-]*$/,d=/^\.[\w-]*$/,h=/<.+>/,f=/^\w+$/;function p(t,n){return n=n||e,d.test(t)?n.getElementsByClassName(t.slice(1)):f.test(t)?n.getElementsByTagName(t):n.querySelectorAll(t)}function v(n){if(!t){var i=(t=e.implementation.createHTMLDocument(null)).createElement("base");i.href=e.location.href,t.head.appendChild(i)}return t.body.innerHTML=n,t.body.childNodes}function m(t){"loading"!==e.readyState?t():e.addEventListener("DOMContentLoaded",t)}function g(t,i){if(!t)return this;if(t.cash&&t!==n)return t;var o,r=t,a=0;if(u(t))r=c.test(t)?e.getElementById(t.slice(1)):h.test(t)?v(t):p(t,i);else if(l(t))return m(t),this;if(!r)return this;if(r.nodeType||r===n)this[0]=r,this.length=1;else for(o=this.length=r.length;a<o;a++)this[a]=r[a];return this}function y(t,e){return new g(t,e)}var b=y.fn=y.prototype=g.prototype={cash:!0,length:0,push:a,splice:i.splice,map:i.map,init:g};function _(t,e){for(var n=t.length,i=0;i<n&&!1!==e.call(t[i],t[i],i,t);i++);}function w(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function C(t){return u(t)?w:t.cash?function(e){return t.is(e)}:function(t,e){return t===e}}function k(t){return y(o.call(t).filter((function(t,e,n){return n.indexOf(t)===e})))}Object.defineProperty(b,"constructor",{value:y}),y.parseHTML=v,y.noop=s,y.isFunction=l,y.isString=u,y.extend=b.extend=function(t){t=t||{};var e=o.call(arguments),n=e.length,i=1;for(1===e.length&&(t=this,i=0);i<n;i++)if(e[i])for(var r in e[i])e[i].hasOwnProperty(r)&&(t[r]=e[i][r]);return t},y.extend({merge:function(t,e){for(var n=+e.length,i=t.length,o=0;o<n;i++,o++)t[i]=e[o];return t.length=i,t},each:_,matches:w,unique:k,isArray:Array.isArray,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}});var x=y.uid="_cash"+Date.now();function S(t){return t[x]=t[x]||{}}function T(t,e,n){return S(t)[e]=n}function D(t,e){var n=S(t);return void 0===n[e]&&(n[e]=t.dataset?t.dataset[e]:y(t).attr("data-"+e)),n[e]}b.extend({data:function(t,e){if(u(t))return void 0===e?D(this[0],t):this.each((function(n){return T(n,t,e)}));for(var n in t)this.data(n,t[n]);return this},removeData:function(t){return this.each((function(e){return function(t,e){var n=S(t);n?delete n[e]:t.dataset?delete t.dataset[e]:y(t).removeAttr("data-"+name)}(e,t)}))}});var E=/\S+/g;function O(t){return u(t)&&t.match(E)}function M(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function L(t,e,n){t.classList?t.classList.add(e):n.indexOf(" "+e+" ")&&(t.className+=" "+e)}function A(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}b.extend({addClass:function(t){var e=O(t);return e?this.each((function(t){var n=" "+t.className+" ";_(e,(function(e){L(t,e,n)}))})):this},attr:function(t,e){if(t){if(u(t))return void 0===e?this[0]?this[0].getAttribute?this[0].getAttribute(t):this[0][t]:void 0:this.each((function(n){n.setAttribute?n.setAttribute(t,e):n[t]=e}));for(var n in t)this.attr(n,t[n]);return this}},hasClass:function(t){var e=!1,n=O(t);return n&&n.length&&this.each((function(t){return!(e=M(t,n[0]))})),e},prop:function(t,e){if(u(t))return void 0===e?this[0][t]:this.each((function(n){n[t]=e}));for(var n in t)this.prop(n,t[n]);return this},removeAttr:function(t){return this.each((function(e){e.removeAttribute?e.removeAttribute(t):delete e[t]}))},removeClass:function(t){if(!arguments.length)return this.attr("class","");var e=O(t);return e?this.each((function(t){_(e,(function(e){A(t,e)}))})):this},removeProp:function(t){return this.each((function(e){delete e[t]}))},toggleClass:function(t,e){if(void 0!==e)return this[e?"addClass":"removeClass"](t);var n=O(t);return n?this.each((function(t){var e=" "+t.className+" ";_(n,(function(n){M(t,n)?A(t,n):L(t,n,e)}))})):this}}),b.extend({add:function(t,e){return k(y.merge(this,y(t,e)))},each:function(t){return _(this,t),this},eq:function(t){return y(this.get(t))},filter:function(t){if(!t)return this;var e=l(t)?t:C(t);return y(r.call(this,(function(n){return e(n,t)})))},first:function(){return this.eq(0)},get:function(t){return void 0===t?o.call(this):t<0?this[t+this.length]:this[t]},index:function(t){var e=t?y(t)[0]:this[0],n=t?this:y(e).parent().children();return o.call(n).indexOf(e)},last:function(){return this.eq(-1)}});var P,R,I,H,B=(I=/(?:^\w|[A-Z]|\b\w)/g,H=/[\s-_]+/g,function(t){return t.replace(I,(function(t,e){return t[0===e?"toLowerCase":"toUpperCase"]()})).replace(H,"")}),j=(P={},R=document.createElement("div").style,function(t){if(t=B(t),P[t])return P[t];var e=t.charAt(0).toUpperCase()+t.slice(1);return _((t+" "+["webkit","moz","ms","o"].join(e+" ")+e).split(" "),(function(e){if(e in R)return P[e]=t=P[t]=e,!1})),P[t]});function N(t,e){return parseInt(n.getComputedStyle(t[0],null)[e],10)||0}function W(t,e,n){var i,o=D(t,"_cashEvents"),r=o&&o[e];r&&(n?(t.removeEventListener(e,n),(i=r.indexOf(n))>=0&&r.splice(i,1)):(_(r,(function(n){t.removeEventListener(e,n)})),r=[]))}function F(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function $(t){var e=t.type;if(!e)return null;switch(e.toLowerCase()){case"select-one":return function(t){var e=t.selectedIndex;return e>=0?t.options[e].value:null}(t);case"select-multiple":return function(t){var e=[];return _(t.options,(function(t){t.selected&&e.push(t.value)})),e.length?e:null}(t);case"radio":case"checkbox":return t.checked?t.value:null;default:return t.value?t.value:null}}function q(t,e,n){var i=u(e);i||!e.length?_(t,i?function(t){return t.insertAdjacentHTML(n?"afterbegin":"beforeend",e)}:function(t,i){return function(t,e,n){if(n){var i=t.childNodes[0];t.insertBefore(e,i)}else t.appendChild(e)}(t,0===i?e:e.cloneNode(!0),n)}):_(e,(function(e){return q(t,e,n)}))}y.prefixedProp=j,y.camelCase=B,b.extend({css:function(t,e){if(u(t))return t=j(t),arguments.length>1?this.each((function(n){return n.style[t]=e})):n.getComputedStyle(this[0])[t];for(var i in t)this.css(i,t[i]);return this}}),_(["Width","Height"],(function(t){var e=t.toLowerCase();b[e]=function(){return this[0].getBoundingClientRect()[e]},b["inner"+t]=function(){return this[0]["client"+t]},b["outer"+t]=function(e){return this[0]["offset"+t]+(e?N(this,"margin"+("Width"===t?"Left":"Top"))+N(this,"margin"+("Width"===t?"Right":"Bottom")):0)}})),b.extend({off:function(t,e){return this.each((function(n){return W(n,t,e)}))},on:function(t,e,n,i){var o;if(!u(t)){for(var r in t)this.on(r,e,t[r]);return this}return l(e)&&(n=e,e=null),"ready"===t?(m(n),this):(e&&(o=n,n=function(t){for(var n=t.target;!w(n,e);){if(n===this||null===n)return!1;n=n.parentNode}n&&o.call(n,t)}),this.each((function(e){var o=n;i&&(o=function(){n.apply(this,arguments),W(e,t,o)}),function(t,e,n){var i=D(t,"_cashEvents")||T(t,"_cashEvents",{});i[e]=i[e]||[],i[e].push(n),t.addEventListener(e,n)}(e,t,o)})))},one:function(t,e,n){return this.on(t,e,n,!0)},ready:m,trigger:function(t,e){if(document.createEvent){var n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!1),n=this.extend(n,e),this.each((function(t){return t.dispatchEvent(n)}))}}}),b.extend({serialize:function(){var t="";return _(this[0].elements||this,(function(e){if(!e.disabled&&"FIELDSET"!==e.tagName){var n=e.name;switch(e.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var i=$(e);null!==i&&_(i,(function(e){t+=F(n,e)}));break;default:var o=$(e);null!==o&&(t+=F(n,o))}}})),t.substr(1)},val:function(t){return void 0===t?$(this[0]):this.each((function(e){return e.value=t}))}}),b.extend({after:function(t){return y(t).insertAfter(this),this},append:function(t){return q(this,t),this},appendTo:function(t){return q(y(t),this),this},before:function(t){return y(t).insertBefore(this),this},clone:function(){return y(this.map((function(t){return t.cloneNode(!0)})))},empty:function(){return this.html(""),this},html:function(t){if(void 0===t)return this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each((function(t){return t.innerHTML=e}))},insertAfter:function(t){var e=this;return y(t).each((function(t,n){var i=t.parentNode,o=t.nextSibling;e.each((function(t){i.insertBefore(0===n?t:t.cloneNode(!0),o)}))})),this},insertBefore:function(t){var e=this;return y(t).each((function(t,n){var i=t.parentNode;e.each((function(e){i.insertBefore(0===n?e:e.cloneNode(!0),t)}))})),this},prepend:function(t){return q(this,t,!0),this},prependTo:function(t){return q(y(t),this,!0),this},remove:function(){return this.each((function(t){if(t.parentNode)return t.parentNode.removeChild(t)}))},text:function(t){return void 0===t?this[0].textContent:this.each((function(e){return e.textContent=t}))}});var Y=e.documentElement;return b.extend({position:function(){var t=this[0];return{left:t.offsetLeft,top:t.offsetTop}},offset:function(){var t=this[0].getBoundingClientRect();return{top:t.top+n.pageYOffset-Y.clientTop,left:t.left+n.pageXOffset-Y.clientLeft}},offsetParent:function(){return y(this[0].offsetParent)}}),b.extend({children:function(t){var e=[];return this.each((function(t){a.apply(e,t.children)})),e=k(e),t?e.filter((function(e){return w(e,t)})):e},closest:function(t){return!t||this.length<1?y():this.is(t)?this.filter(t):this.parent().closest(t)},is:function(t){if(!t)return!1;var e=!1,n=C(t);return this.each((function(i){return!(e=n(i,t))})),e},find:function(t){if(!t||t.nodeType)return y(t&&this.has(t).length?t:null);var e=[];return this.each((function(n){a.apply(e,p(t,n))})),k(e)},has:function(t){var e=u(t)?function(e){return 0!==p(t,e).length}:function(e){return e.contains(t)};return this.filter(e)},next:function(){return y(this[0].nextElementSibling)},not:function(t){if(!t)return this;var e=C(t);return this.filter((function(n){return!e(n,t)}))},parent:function(){var t=[];return this.each((function(e){e&&e.parentNode&&t.push(e.parentNode)})),k(t)},parents:function(t){var n,i=[];return this.each((function(o){for(n=o;n&&n.parentNode&&n!==e.body.parentNode;)n=n.parentNode,(!t||t&&w(n,t))&&i.push(n)})),k(i)},prev:function(){return y(this[0].previousElementSibling)},siblings:function(t){var e=this.parent().children(t),n=this[0];return e.filter((function(t){return t!==n}))}}),y}();var Component=function(){function t(e,n,i){_classCallCheck(this,t),n instanceof Element||console.error(Error(n+" is not an HTML Element"));var o=e.getInstance(n);o&&o.destroy(),this.el=n,this.$el=cash(n)}return _createClass(t,null,[{key:"init",value:function(t,e,n){var i=null;if(e instanceof Element)i=new t(e,n);else if(e&&(e.jquery||e.cash||e instanceof NodeList)){for(var o=[],r=0;r<e.length;r++)o.push(new t(e[r],n));i=o}return i}}]),t}();!function(t){t.Package?M={}:t.M={},M.jQueryLoaded=!!t.jQuery}(window),"function"==typeof define&&define.amd?define("M",[],(function(){return M})):"undefined"==typeof exports||exports.nodeType||("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=M),exports.default=M),M.version="1.0.0",M.keys={TAB:9,ENTER:13,ESC:27,ARROW_UP:38,ARROW_DOWN:40},M.tabPressed=!1,M.keyDown=!1;var docHandleKeydown=function(t){M.keyDown=!0,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!0)},docHandleKeyup=function(t){M.keyDown=!1,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!1)},docHandleFocus=function(t){M.keyDown&&document.body.classList.add("keyboard-focused")},docHandleBlur=function(t){document.body.classList.remove("keyboard-focused")};document.addEventListener("keydown",docHandleKeydown,!0),document.addEventListener("keyup",docHandleKeyup,!0),document.addEventListener("focus",docHandleFocus,!0),document.addEventListener("blur",docHandleBlur,!0),M.initializeJqueryWrapper=function(t,e,n){jQuery.fn[e]=function(i){if(t.prototype[i]){var o=Array.prototype.slice.call(arguments,1);if("get"===i.slice(0,3)){var r=this.first()[0][n];return r[i].apply(r,o)}return this.each((function(){var t=this[n];t[i].apply(t,o)}))}if("object"==typeof i||!i)return t.init(this,arguments[0]),this;jQuery.error("Method "+i+" does not exist on jQuery."+e)}},M.AutoInit=function(t){var e=t||document.body,n={Autocomplete:e.querySelectorAll(".autocomplete:not(.no-autoinit)"),Carousel:e.querySelectorAll(".carousel:not(.no-autoinit)"),Chips:e.querySelectorAll(".chips:not(.no-autoinit)"),Collapsible:e.querySelectorAll(".collapsible:not(.no-autoinit)"),Datepicker:e.querySelectorAll(".datepicker:not(.no-autoinit)"),Dropdown:e.querySelectorAll(".dropdown-trigger:not(.no-autoinit)"),Materialbox:e.querySelectorAll(".materialboxed:not(.no-autoinit)"),Modal:e.querySelectorAll(".modal:not(.no-autoinit)"),Parallax:e.querySelectorAll(".parallax:not(.no-autoinit)"),Pushpin:e.querySelectorAll(".pushpin:not(.no-autoinit)"),ScrollSpy:e.querySelectorAll(".scrollspy:not(.no-autoinit)"),FormSelect:e.querySelectorAll("select:not(.no-autoinit)"),Sidenav:e.querySelectorAll(".sidenav:not(.no-autoinit)"),Tabs:e.querySelectorAll(".tabs:not(.no-autoinit)"),TapTarget:e.querySelectorAll(".tap-target:not(.no-autoinit)"),Timepicker:e.querySelectorAll(".timepicker:not(.no-autoinit)"),Tooltip:e.querySelectorAll(".tooltipped:not(.no-autoinit)"),FloatingActionButton:e.querySelectorAll(".fixed-action-btn:not(.no-autoinit)")};for(var i in n){M[i].init(n[i])}},M.objectSelectorString=function(t){return((t.prop("tagName")||"")+(t.attr("id")||"")+(t.attr("class")||"")).replace(/\s/g,"")},M.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}(),M.escapeHash=function(t){return t.replace(/(:|\.|\[|\]|,|=|\/)/g,"\\$1")},M.elementOrParentIsFixed=function(t){var e=$(t),n=e.add(e.parents()),i=!1;return n.each((function(){if("fixed"===$(this).css("position"))return i=!0,!1})),i},M.checkWithinContainer=function(t,e,n){var i={top:!1,right:!1,bottom:!1,left:!1},o=t.getBoundingClientRect(),r=t===document.body?Math.max(o.bottom,window.innerHeight):o.bottom,a=t.scrollLeft,s=t.scrollTop,l=e.left-a,u=e.top-s;return(l<o.left+n||l<n)&&(i.left=!0),(l+e.width>o.right-n||l+e.width>window.innerWidth-n)&&(i.right=!0),(u<o.top+n||u<n)&&(i.top=!0),(u+e.height>r-n||u+e.height>window.innerHeight-n)&&(i.bottom=!0),i},M.checkPossibleAlignments=function(t,e,n,i){var o={top:!0,right:!0,bottom:!0,left:!0,spaceOnTop:null,spaceOnRight:null,spaceOnBottom:null,spaceOnLeft:null},r="visible"===getComputedStyle(e).overflow,a=e.getBoundingClientRect(),s=Math.min(a.height,window.innerHeight),l=Math.min(a.width,window.innerWidth),u=t.getBoundingClientRect(),c=e.scrollLeft,d=e.scrollTop,h=n.left-c,f=n.top-d,p=n.top+u.height-d;return o.spaceOnRight=r?window.innerWidth-(u.left+n.width):l-(h+n.width),o.spaceOnRight<0&&(o.left=!1),o.spaceOnLeft=r?u.right-n.width:h-n.width+u.width,o.spaceOnLeft<0&&(o.right=!1),o.spaceOnBottom=r?window.innerHeight-(u.top+n.height+i):s-(f+n.height+i),o.spaceOnBottom<0&&(o.top=!1),o.spaceOnTop=r?u.bottom-(n.height+i):p-(n.height-i),o.spaceOnTop<0&&(o.bottom=!1),o},M.getOverflowParent=function(t){return null==t?null:t===document.body||"visible"!==getComputedStyle(t).overflow?t:M.getOverflowParent(t.parentElement)},M.getIdFromTrigger=function(t){var e=t.getAttribute("data-target");return e||(e=(e=t.getAttribute("href"))?e.slice(1):""),e},M.getDocumentScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},M.getDocumentScrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0};
|
||
/**
|
||
* Get time in ms
|
||
* @license https://raw.github.com/jashkenas/underscore/master/LICENSE
|
||
* @type {function}
|
||
* @return {number}
|
||
*/
|
||
var getTime=Date.now||function(){return(new Date).getTime()};
|
||
/**
|
||
* Returns a function, that, when invoked, will only be triggered at most once
|
||
* during a given window of time. Normally, the throttled function will run
|
||
* as much as it can, without ever going more than once per `wait` duration;
|
||
* but if you'd like to disable the execution on the leading edge, pass
|
||
* `{leading: false}`. To disable execution on the trailing edge, ditto.
|
||
* @license https://raw.github.com/jashkenas/underscore/master/LICENSE
|
||
* @param {function} func
|
||
* @param {number} wait
|
||
* @param {Object=} options
|
||
* @returns {Function}
|
||
*/M.throttle=function(t,e,n){var i=void 0,o=void 0,r=void 0,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:getTime(),a=null,r=t.apply(i,o),i=o=null};return function(){var u=getTime();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,o=arguments,c<=0?(clearTimeout(a),a=null,s=u,r=t.apply(i,o),i=o=null):a||!1===n.trailing||(a=setTimeout(l,c)),r}};var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(t){return $jscomp.SYMBOL_PREFIX+(t||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.iterator;t||(t=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(t){var e=0;return $jscomp.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},$jscomp.iteratorPrototype=function(t){return $jscomp.initSymbolIterator(),(t={next:t})[$jscomp.global.Symbol.iterator]=function(){return this},t},$jscomp.array=$jscomp.array||{},$jscomp.iteratorFromArray=function(t,e){$jscomp.initSymbolIterator(),t instanceof String&&(t+="");var n=0,i={next:function(){if(n<t.length){var o=n++;return{value:e(o,t[o]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}};return i[Symbol.iterator]=function(){return i},i},$jscomp.polyfill=function(t,e,n,i){if(e){for(n=$jscomp.global,t=t.split("."),i=0;i<t.length-1;i++){var o=t[i];o in n||(n[o]={}),n=n[o]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&$jscomp.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.keys",(function(t){return t||function(){return $jscomp.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var $jscomp$this=this;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}M.anime=function(){function t(t){if(!O.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var n=t.length,i=2<=arguments.length?arguments[1]:void 0,o=[],r=0;r<n;r++)if(r in t){var a=t[r];e.call(i,a,r,t)&&o.push(a)}return o}function n(t){return t.reduce((function(t,e){return t.concat(O.arr(e)?n(e):e)}),[])}function i(e){return O.arr(e)?e:(O.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function o(t,e){return t.some((function(t){return t===e}))}function r(t){var e,n={};for(e in t)n[e]=t[e];return n}function a(t,e){var n,i=r(t);for(n in t)i[n]=e.hasOwnProperty(n)?e[n]:t[n];return i}function s(t,e){var n,i=r(t);for(n in e)i[n]=O.und(t[n])?e[n]:t[n];return i}function l(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function u(t,e){return O.fnc(t)?t(e.target,e.id,e.total):t}function c(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function d(t,e){return O.dom(t)&&o(E,e)?"transform":O.dom(t)&&(t.getAttribute(e)||O.svg(t)&&t[e])?"attribute":O.dom(t)&&"transform"!==e&&c(t,e)?"css":null!=t[e]?"object":void 0}function h(t,n){switch(d(t,n)){case"transform":return function(t,n){var i=function(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}(n);if(i=-1<n.indexOf("scale")?1:0+i,!(t=t.style.transform))return i;for(var o=[],r=[],a=[],s=/(\w+)\((.+?)\)/g;o=s.exec(t);)r.push(o[1]),a.push(o[2]);return(t=e(a,(function(t,e){return r[e]===n}))).length?t[0]:i}(t,n);case"css":return c(t,n);case"attribute":return t.getAttribute(n)}return t[n]||0}function f(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var i=l(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(n[0],"")),n[0][0]){case"+":return e+t+i;case"-":return e-t+i;case"*":return e*t+i}}function p(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function v(t){t=t.points;for(var e,n=0,i=0;i<t.numberOfItems;i++){var o=t.getItem(i);0<i&&(n+=p(e,o)),e=o}return n}function m(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return p({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return v(t);case"polygon":var e=t.points;return v(t)+p(e.getItem(e.numberOfItems-1),e.getItem(0))}}function g(t,e){function n(n){return n=void 0===n?0:n,t.el.getPointAtLength(1<=e+n?e+n:0)}var i=n(),o=n(-1),r=n(1);switch(t.property){case"x":return i.x;case"y":return i.y;case"angle":return 180*Math.atan2(r.y-o.y,r.x-o.x)/Math.PI}}function y(t,e){var n,i=/-?\d*\.?\d+/g;if(n=O.pth(t)?t.totalLength:t,O.col(n))if(O.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=O.hex(n)?function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}(n):O.hsl(n)?function(t){function e(t,e,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:.5>n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var i=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==i)o=i=t=o;else{var r=.5>o?o*(1+i):o+i-o*i,a=2*o-r;o=e(a,r,t+1/3),i=e(a,r,t),t=e(a,r,t-1/3)}return"rgba("+255*o+","+255*i+","+255*t+","+n+")"}(n):void 0;else o=(o=l(n))?n.substr(0,n.length-o.length):n,n=e&&!/\s/g.test(n)?o+e:o;return{original:n+="",numbers:n.match(i)?n.match(i).map(Number):[0],strings:O.str(t)||e?n.split(i):[]}}function b(t){return e(t=t?n(O.arr(t)?t.map(i):i(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function _(t,e){var n=r(e);if(O.arr(t)){var o=t.length;2!==o||O.obj(t[0])?O.fnc(e.duration)||(n.duration=e.duration/o):t={value:t}}return i(t).map((function(t,n){return n=n?0:e.delay,t=O.obj(t)&&!O.pth(t)?t:{value:t},O.und(t.delay)&&(t.delay=n),t})).map((function(t){return s(t,n)}))}function w(t,e){var n;return t.tweens.map((function(i){var o=(i=function(t,e){var n,i={};for(n in t){var o=u(t[n],e);O.arr(o)&&1===(o=o.map((function(t){return u(t,e)}))).length&&(o=o[0]),i[n]=o}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(i,e)).value,r=h(e.target,t.name),a=n?n.to.original:r,s=(a=O.arr(o)?o[0]:a,f(O.arr(o)?o[1]:o,a));return r=l(s)||l(a)||l(r),i.from=y(a,r),i.to=y(s,r),i.start=n?n.end:t.offset,i.end=i.start+i.delay+i.duration,i.easing=function(t){return O.arr(t)?M.apply(this,t):L[t]}(i.easing),i.elasticity=(1e3-Math.min(Math.max(i.elasticity,1),999))/1e3,i.isPath=O.pth(o),i.isColor=O.col(i.from.original),i.isColor&&(i.round=1),n=i}))}function C(t,e,n,i){var o="delay"===t;return e.length?(o?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):o?i.delay:n.offset+i.delay+i.duration}function k(t){var i,o=a(T,t),r=a(D,t),l=function(t){var e=b(t);return e.map((function(t,n){return{target:t,id:n,total:e.length}}))}(t.targets),u=[],c=s(o,r);for(i in t)c.hasOwnProperty(i)||"targets"===i||u.push({name:i,offset:c.offset,tweens:_(t[i],r)});return t=function(t,i){return e(n(t.map((function(t){return i.map((function(e){var n=d(t.target,e.name);if(n){var i=w(e,t);e={type:n,property:e.name,animatable:t,tweens:i,duration:i[i.length-1].end,delay:i[0].delay}}else e=void 0;return e}))}))),(function(t){return!O.und(t)}))}(l,u),s(o,{children:[],animatables:l,animations:t,duration:C("duration",t,o,r),delay:C("delay",t,o,r)})}function x(t){function n(){return window.Promise&&new Promise((function(t){return h=t}))}function i(t){return p.reversed?p.duration-t:t}function o(t){for(var n=0,i={},o=p.animations,r=o.length;n<r;){var a=o[n],s=a.animatable,l=(u=a.tweens)[f=u.length-1];f&&(l=e(u,(function(e){return t<e.end}))[0]||l);for(var u=Math.min(Math.max(t-l.start-l.delay,0),l.duration)/l.duration,d=isNaN(u)?1:l.easing(u,l.elasticity),h=(u=l.to.strings,l.round),f=[],v=void 0,m=(v=l.to.numbers.length,0);m<v;m++){var y=void 0,b=(y=l.to.numbers[m],l.from.numbers[m]);y=l.isPath?g(l.value,d*y):b+d*(y-b),h&&(l.isColor&&2<m||(y=Math.round(y*h)/h)),f.push(y)}if(l=u.length)for(v=u[0],d=0;d<l;d++)h=u[d+1],m=f[d],isNaN(m)||(v=h?v+(m+h):v+(m+" "));else v=f[0];A[a.type](s.target,a.property,v,i,s.id),a.currentValue=v,n++}if(n=Object.keys(i).length)for(o=0;o<n;o++)S||(S=c(document.body,"transform")?"transform":"-webkit-transform"),p.animatables[o].target.style[S]=i[o].join(" ");p.currentTime=t,p.progress=t/p.duration*100}function r(t){p[t]&&p[t](p)}function a(){p.remaining&&!0!==p.remaining&&p.remaining--}function s(t){var e=p.duration,s=p.offset,c=s+p.delay,v=p.currentTime,m=p.reversed,g=i(t);if(p.children.length){var y=p.children,b=y.length;if(g>=p.currentTime)for(var _=0;_<b;_++)y[_].seek(g);else for(;b--;)y[b].seek(g)}(g>=c||!e)&&(p.began||(p.began=!0,r("begin")),r("run")),g>s&&g<e?o(g):(g<=s&&0!==v&&(o(0),m&&a()),(g>=e&&v!==e||!e)&&(o(e),m||a())),r("update"),t>=e&&(p.remaining?(u=l,"alternate"===p.direction&&(p.reversed=!p.reversed)):(p.pause(),p.completed||(p.completed=!0,r("complete"),"Promise"in window&&(h(),f=n()))),d=0)}t=void 0===t?{}:t;var l,u,d=0,h=null,f=n(),p=k(t);return p.reset=function(){var t=p.direction,e=p.loop;for(p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.completed=!1,p.reversed="reverse"===t,p.remaining="alternate"===t&&1===e?2:e,o(0),t=p.children.length;t--;)p.children[t].reset()},p.tick=function(t){l=t,u||(u=l),s((d+l-u)*x.speed)},p.seek=function(t){s(i(t))},p.pause=function(){var t=P.indexOf(p);-1<t&&P.splice(t,1),p.paused=!0},p.play=function(){p.paused&&(p.paused=!1,u=0,d=i(p.currentTime),P.push(p),R||I())},p.reverse=function(){p.reversed=!p.reversed,u=0,d=i(p.currentTime)},p.restart=function(){p.pause(),p.reset(),p.play()},p.finished=f,p.reset(),p.autoplay&&p.play(),p}var S,T={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},D={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},E="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),O={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return O.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||O.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return O.hex(t)||O.rgb(t)||O.hsl(t)}},M=function(){function t(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}return function(e,n,i,o){if(0<=e&&1>=e&&0<=i&&1>=i){var r=new Float32Array(11);if(e!==n||i!==o)for(var a=0;11>a;++a)r[a]=t(.1*a,e,i);return function(a){if(e===n&&i===o)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,l=1;10!==l&&r[l]<=a;++l)s+=.1;--l,l=s+(a-r[l])/(r[l+1]-r[l])*.1;var u=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e;if(.001<=u){for(s=0;4>s&&0!=(u=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e);++s){var c=t(l,e,i)-a;l-=c/u}a=l}else if(0===u)a=l;else{l=s,s+=.1;var d=0;do{0<(u=t(c=l+(s-l)/2,e,i)-a)?s=c:l=c}while(1e-7<Math.abs(u)&&10>++d);a=c}return t(a,n,o)}}}}(),L=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),i={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,n){return 1-t(1-e,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},o={linear:M(.25,.25,.75,.75)},r={};for(e in i)r.type=e,i[r.type].forEach(function(t){return function(e,i){o["ease"+t.type+n[i]]=O.fnc(e)?e:M.apply($jscomp$this,e)}}(r)),r={type:r.type};return o}(),A={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,i,o){i[o]||(i[o]=[]),i[o].push(e+"("+n+")")}},P=[],R=0,I=function(){function t(){R=requestAnimationFrame(e)}function e(e){var n=P.length;if(n){for(var i=0;i<n;)P[i]&&P[i].tick(e),i++;t()}else cancelAnimationFrame(R),R=0}return t}();return x.version="2.2.0",x.speed=1,x.running=P,x.remove=function(t){t=b(t);for(var e=P.length;e--;)for(var n=P[e],i=n.animations,r=i.length;r--;)o(t,i[r].animatable.target)&&(i.splice(r,1),i.length||n.pause())},x.getValue=h,x.path=function(e,n){var i=O.str(e)?t(e)[0]:e,o=n||100;return function(t){return{el:i,property:t,totalLength:m(i)*(o/100)}}},x.setDashoffset=function(t){var e=m(t);return t.setAttribute("stroke-dasharray",e),e},x.bezier=M,x.easings=L,x.timeline=function(t){var e=x(t);return e.pause(),e.duration=0,e.add=function(n){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),i(n).forEach((function(n){var i=s(n,a(D,t||{}));i.targets=i.targets||t.targets,n=e.duration;var o=i.offset;i.autoplay=!1,i.direction=e.direction,i.offset=O.und(o)?n:f(o,n),e.began=!0,e.completed=!0,e.seek(i.offset),(i=x(i)).began=!0,i.completed=!0,i.duration>n&&(e.duration=i.duration),e.children.push(i)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},x.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},x}(),function(t,e){"use strict";var n={accordion:!0,onOpenStart:void 0,onOpenEnd:void 0,onCloseStart:void 0,onCloseEnd:void 0,inDuration:300,outDuration:300},i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));i.el.M_Collapsible=i,i.options=t.extend({},o.defaults,n),i.$headers=i.$el.children("li").children(".collapsible-header"),i.$headers.attr("tabindex",0),i._setupEventHandlers();var r=i.$el.children("li.active").children(".collapsible-body");return i.options.accordion?r.first().css("display","block"):r.css("display","block"),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Collapsible=void 0}},{key:"_setupEventHandlers",value:function(){var t=this;this._handleCollapsibleClickBound=this._handleCollapsibleClick.bind(this),this._handleCollapsibleKeydownBound=this._handleCollapsibleKeydown.bind(this),this.el.addEventListener("click",this._handleCollapsibleClickBound),this.$headers.each((function(e){e.addEventListener("keydown",t._handleCollapsibleKeydownBound)}))}},{key:"_removeEventHandlers",value:function(){var t=this;this.el.removeEventListener("click",this._handleCollapsibleClickBound),this.$headers.each((function(e){e.removeEventListener("keydown",t._handleCollapsibleKeydownBound)}))}},{key:"_handleCollapsibleClick",value:function(e){var n=t(e.target).closest(".collapsible-header");if(e.target&&n.length){var i=n.closest(".collapsible");if(i[0]===this.el){var o=n.closest("li"),r=i.children("li"),a=o[0].classList.contains("active"),s=r.index(o);a?this.close(s):this.open(s)}}}},{key:"_handleCollapsibleKeydown",value:function(t){13===t.keyCode&&this._handleCollapsibleClickBound(t)}},{key:"_animateIn",value:function(t){var n=this,i=this.$el.children("li").eq(t);if(i.length){var o=i.children(".collapsible-body");e.remove(o[0]),o.css({display:"block",overflow:"hidden",height:0,paddingTop:"",paddingBottom:""});var r=o.css("padding-top"),a=o.css("padding-bottom"),s=o[0].scrollHeight;o.css({paddingTop:0,paddingBottom:0}),e({targets:o[0],height:s,paddingTop:r,paddingBottom:a,duration:this.options.inDuration,easing:"easeInOutCubic",complete:function(t){o.css({overflow:"",paddingTop:"",paddingBottom:"",height:""}),"function"==typeof n.options.onOpenEnd&&n.options.onOpenEnd.call(n,i[0])}})}}},{key:"_animateOut",value:function(t){var n=this,i=this.$el.children("li").eq(t);if(i.length){var o=i.children(".collapsible-body");e.remove(o[0]),o.css("overflow","hidden"),e({targets:o[0],height:0,paddingTop:0,paddingBottom:0,duration:this.options.outDuration,easing:"easeInOutCubic",complete:function(){o.css({height:"",overflow:"",padding:"",display:""}),"function"==typeof n.options.onCloseEnd&&n.options.onCloseEnd.call(n,i[0])}})}}},{key:"open",value:function(e){var n=this,i=this.$el.children("li").eq(e);if(i.length&&!i[0].classList.contains("active")){if("function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,i[0]),this.options.accordion){var o=this.$el.children("li");this.$el.children("li.active").each((function(e){var i=o.index(t(e));n.close(i)}))}i[0].classList.add("active"),this._animateIn(e)}}},{key:"close",value:function(t){var e=this.$el.children("li").eq(t);e.length&&e[0].classList.contains("active")&&("function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,e[0]),e[0].classList.remove("active"),this._animateOut(t))}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Collapsible}},{key:"defaults",get:function(){return n}}]),o}();M.Collapsible=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"collapsible","M_Collapsible")}(cash,M.anime),function(t,e){"use strict";var n={alignment:"left",autoFocus:!0,constrainWidth:!0,container:null,coverTrigger:!0,closeOnClick:!0,hover:!1,inDuration:150,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onItemClick:null},i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Dropdown=i,o._dropdowns.push(i),i.id=M.getIdFromTrigger(e),i.dropdownEl=document.getElementById(i.id),i.$dropdownEl=t(i.dropdownEl),i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.isScrollable=!1,i.isTouchMoving=!1,i.focusedIndex=-1,i.filterQuery=[],i.options.container?t(i.options.container).append(i.dropdownEl):i.$el.after(i.dropdownEl),i._makeDropdownFocusable(),i._resetFilterQueryBound=i._resetFilterQuery.bind(i),i._handleDocumentClickBound=i._handleDocumentClick.bind(i),i._handleDocumentTouchmoveBound=i._handleDocumentTouchmove.bind(i),i._handleDropdownClickBound=i._handleDropdownClick.bind(i),i._handleDropdownKeydownBound=i._handleDropdownKeydown.bind(i),i._handleTriggerKeydownBound=i._handleTriggerKeydown.bind(i),i._setupEventHandlers(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this._resetDropdownStyles(),this._removeEventHandlers(),o._dropdowns.splice(o._dropdowns.indexOf(this),1),this.el.M_Dropdown=void 0}},{key:"_setupEventHandlers",value:function(){this.el.addEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.addEventListener("click",this._handleDropdownClickBound),this.options.hover?(this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.addEventListener("mouseleave",this._handleMouseLeaveBound)):(this._handleClickBound=this._handleClick.bind(this),this.el.addEventListener("click",this._handleClickBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.removeEventListener("click",this._handleDropdownClickBound),this.options.hover?(this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.removeEventListener("mouseleave",this._handleMouseLeaveBound)):this.el.removeEventListener("click",this._handleClickBound)}},{key:"_setupTemporaryEventHandlers",value:function(){document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound),document.body.addEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.addEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_removeTemporaryEventHandlers",value:function(){document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound),document.body.removeEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.removeEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_handleClick",value:function(t){t.preventDefault(),this.open()}},{key:"_handleMouseEnter",value:function(){this.open()}},{key:"_handleMouseLeave",value:function(e){var n=e.toElement||e.relatedTarget,i=!!t(n).closest(".dropdown-content").length,o=!1,r=t(n).closest(".dropdown-trigger");r.length&&r[0].M_Dropdown&&r[0].M_Dropdown.isOpen&&(o=!0),o||i||this.close()}},{key:"_handleDocumentClick",value:function(e){var n=this,i=t(e.target);this.options.closeOnClick&&i.closest(".dropdown-content").length&&!this.isTouchMoving?setTimeout((function(){n.close()}),0):!i.closest(".dropdown-trigger").length&&i.closest(".dropdown-content").length||setTimeout((function(){n.close()}),0),this.isTouchMoving=!1}},{key:"_handleTriggerKeydown",value:function(t){t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ENTER||this.isOpen||(t.preventDefault(),this.open())}},{key:"_handleDocumentTouchmove",value:function(e){t(e.target).closest(".dropdown-content").length&&(this.isTouchMoving=!0)}},{key:"_handleDropdownClick",value:function(e){if("function"==typeof this.options.onItemClick){var n=t(e.target).closest("li")[0];this.options.onItemClick.call(this,n)}}},{key:"_handleDropdownKeydown",value:function(e){if(e.which===M.keys.TAB)e.preventDefault(),this.close();else if(e.which!==M.keys.ARROW_DOWN&&e.which!==M.keys.ARROW_UP||!this.isOpen)if(e.which===M.keys.ENTER&&this.isOpen){var n=this.dropdownEl.children[this.focusedIndex],i=t(n).find("a, button").first();i.length?i[0].click():n&&n.click()}else e.which===M.keys.ESC&&this.isOpen&&(e.preventDefault(),this.close());else{e.preventDefault();var o=e.which===M.keys.ARROW_DOWN?1:-1,r=this.focusedIndex,a=!1;do{if(r+=o,this.dropdownEl.children[r]&&-1!==this.dropdownEl.children[r].tabIndex){a=!0;break}}while(r<this.dropdownEl.children.length&&r>=0);a&&(this.focusedIndex=r,this._focusFocusedItem())}var s=String.fromCharCode(e.which).toLowerCase();if(s&&-1===[9,13,27,38,40].indexOf(e.which)){this.filterQuery.push(s);var l=this.filterQuery.join(""),u=t(this.dropdownEl).find("li").filter((function(e){return 0===t(e).text().toLowerCase().indexOf(l)}))[0];u&&(this.focusedIndex=t(u).index(),this._focusFocusedItem())}this.filterTimeout=setTimeout(this._resetFilterQueryBound,1e3)}},{key:"_resetFilterQuery",value:function(){this.filterQuery=[]}},{key:"_resetDropdownStyles",value:function(){this.$dropdownEl.css({display:"",width:"",height:"",left:"",top:"","transform-origin":"",transform:"",opacity:""})}},{key:"_makeDropdownFocusable",value:function(){this.dropdownEl.tabIndex=0,t(this.dropdownEl).children().each((function(t){t.getAttribute("tabindex")||t.setAttribute("tabindex",0)}))}},{key:"_focusFocusedItem",value:function(){this.focusedIndex>=0&&this.focusedIndex<this.dropdownEl.children.length&&this.options.autoFocus&&this.dropdownEl.children[this.focusedIndex].focus()}},{key:"_getDropdownPosition",value:function(){this.el.offsetParent.getBoundingClientRect();var t=this.el.getBoundingClientRect(),e=this.dropdownEl.getBoundingClientRect(),n=e.height,i=e.width,o=t.left-e.left,r=t.top-e.top,a={left:o,top:r,height:n,width:i},s=this.dropdownEl.offsetParent?this.dropdownEl.offsetParent:this.dropdownEl.parentNode,l=M.checkPossibleAlignments(this.el,s,a,this.options.coverTrigger?0:t.height),u="top",c=this.options.alignment;if(r+=this.options.coverTrigger?0:t.height,this.isScrollable=!1,l.top||(l.bottom?u="bottom":(this.isScrollable=!0,l.spaceOnTop>l.spaceOnBottom?(u="bottom",n+=l.spaceOnTop,r-=l.spaceOnTop):n+=l.spaceOnBottom)),!l[c]){var d="left"===c?"right":"left";l[d]?c=d:l.spaceOnLeft>l.spaceOnRight?(c="right",i+=l.spaceOnLeft,o-=l.spaceOnLeft):(c="left",i+=l.spaceOnRight)}return"bottom"===u&&(r=r-e.height+(this.options.coverTrigger?t.height:0)),"right"===c&&(o=o-e.width+t.width),{x:o,y:r,verticalAlignment:u,horizontalAlignment:c,height:n,width:i}}},{key:"_animateIn",value:function(){var t=this;e.remove(this.dropdownEl),e({targets:this.dropdownEl,opacity:{value:[0,1],easing:"easeOutQuad"},scaleX:[.3,1],scaleY:[.3,1],duration:this.options.inDuration,easing:"easeOutQuint",complete:function(e){t.options.autoFocus&&t.dropdownEl.focus(),"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}})}},{key:"_animateOut",value:function(){var t=this;e.remove(this.dropdownEl),e({targets:this.dropdownEl,opacity:{value:0,easing:"easeOutQuint"},scaleX:.3,scaleY:.3,duration:this.options.outDuration,easing:"easeOutQuint",complete:function(e){t._resetDropdownStyles(),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}})}},{key:"_placeDropdown",value:function(){var t=this.options.constrainWidth?this.el.getBoundingClientRect().width:this.dropdownEl.getBoundingClientRect().width;this.dropdownEl.style.width=t+"px";var e=this._getDropdownPosition();this.dropdownEl.style.left=e.x+"px",this.dropdownEl.style.top=e.y+"px",this.dropdownEl.style.height=e.height+"px",this.dropdownEl.style.width=e.width+"px",this.dropdownEl.style.transformOrigin=("left"===e.horizontalAlignment?"0":"100%")+" "+("top"===e.verticalAlignment?"0":"100%")}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._resetDropdownStyles(),this.dropdownEl.style.display="block",this._placeDropdown(),this._animateIn(),this._setupTemporaryEventHandlers())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.focusedIndex=-1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._animateOut(),this._removeTemporaryEventHandlers(),this.options.autoFocus&&this.el.focus())}},{key:"recalculateDimensions",value:function(){this.isOpen&&(this.$dropdownEl.css({width:"",height:"",left:"",top:"","transform-origin":""}),this._placeDropdown())}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Dropdown}},{key:"defaults",get:function(){return n}}]),o}();i._dropdowns=[],M.Dropdown=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"dropdown","M_Dropdown")}(cash,M.anime),function(t,e){"use strict";var n={opacity:.5,inDuration:250,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0,dismissible:!0,startingTop:"4%",endingTop:"10%"},i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Modal=i,i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.id=i.$el.attr("id"),i._openingTrigger=void 0,i.$overlay=t('<div class="modal-overlay"></div>'),i.el.tabIndex=0,i._nthModalOpened=0,o._count++,i._setupEventHandlers(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){o._count--,this._removeEventHandlers(),this.el.removeAttribute("style"),this.$overlay.remove(),this.el.M_Modal=void 0}},{key:"_setupEventHandlers",value:function(){this._handleOverlayClickBound=this._handleOverlayClick.bind(this),this._handleModalCloseClickBound=this._handleModalCloseClick.bind(this),1===o._count&&document.body.addEventListener("click",this._handleTriggerClick),this.$overlay[0].addEventListener("click",this._handleOverlayClickBound),this.el.addEventListener("click",this._handleModalCloseClickBound)}},{key:"_removeEventHandlers",value:function(){0===o._count&&document.body.removeEventListener("click",this._handleTriggerClick),this.$overlay[0].removeEventListener("click",this._handleOverlayClickBound),this.el.removeEventListener("click",this._handleModalCloseClickBound)}},{key:"_handleTriggerClick",value:function(e){var n=t(e.target).closest(".modal-trigger");if(n.length){var i=M.getIdFromTrigger(n[0]),o=document.getElementById(i).M_Modal;o&&o.open(n),e.preventDefault()}}},{key:"_handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"_handleModalCloseClick",value:function(e){t(e.target).closest(".modal-close").length&&this.close()}},{key:"_handleKeydown",value:function(t){27===t.keyCode&&this.options.dismissible&&this.close()}},{key:"_handleFocus",value:function(t){this.el.contains(t.target)||this._nthModalOpened!==o._modalsOpen||this.el.focus()}},{key:"_animateIn",value:function(){var n=this;t.extend(this.el.style,{display:"block",opacity:0}),t.extend(this.$overlay[0].style,{display:"block",opacity:0}),e({targets:this.$overlay[0],opacity:this.options.opacity,duration:this.options.inDuration,easing:"easeOutQuad"});var i={targets:this.el,duration:this.options.inDuration,easing:"easeOutCubic",complete:function(){"function"==typeof n.options.onOpenEnd&&n.options.onOpenEnd.call(n,n.el,n._openingTrigger)}};this.el.classList.contains("bottom-sheet")?(t.extend(i,{bottom:0,opacity:1}),e(i)):(t.extend(i,{top:[this.options.startingTop,this.options.endingTop],opacity:1,scaleX:[.8,1],scaleY:[.8,1]}),e(i))}},{key:"_animateOut",value:function(){var n=this;e({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuart"});var i={targets:this.el,duration:this.options.outDuration,easing:"easeOutCubic",complete:function(){n.el.style.display="none",n.$overlay.remove(),"function"==typeof n.options.onCloseEnd&&n.options.onCloseEnd.call(n,n.el)}};this.el.classList.contains("bottom-sheet")?(t.extend(i,{bottom:"-100%",opacity:0}),e(i)):(t.extend(i,{top:[this.options.endingTop,this.options.startingTop],opacity:0,scaleX:.8,scaleY:.8}),e(i))}},{key:"open",value:function(t){if(!this.isOpen)return this.isOpen=!0,o._modalsOpen++,this._nthModalOpened=o._modalsOpen,this.$overlay[0].style.zIndex=1e3+2*o._modalsOpen,this.el.style.zIndex=1e3+2*o._modalsOpen+1,this._openingTrigger=t?t[0]:void 0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el,this._openingTrigger),this.options.preventScrolling&&(document.body.style.overflow="hidden"),this.el.classList.add("open"),this.el.insertAdjacentElement("afterend",this.$overlay[0]),this.options.dismissible&&(this._handleKeydownBound=this._handleKeydown.bind(this),this._handleFocusBound=this._handleFocus.bind(this),document.addEventListener("keydown",this._handleKeydownBound),document.addEventListener("focus",this._handleFocusBound,!0)),e.remove(this.el),e.remove(this.$overlay[0]),this._animateIn(),this.el.focus(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,o._modalsOpen--,this._nthModalOpened=0,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this.el.classList.remove("open"),0===o._modalsOpen&&(document.body.style.overflow=""),this.options.dismissible&&(document.removeEventListener("keydown",this._handleKeydownBound),document.removeEventListener("focus",this._handleFocusBound,!0)),e.remove(this.el),e.remove(this.$overlay[0]),this._animateOut(),this}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Modal}},{key:"defaults",get:function(){return n}}]),o}();i._modalsOpen=0,i._count=0,M.Modal=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"modal","M_Modal")}(cash,M.anime),function(t,e){"use strict";var n={inDuration:275,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null},i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Materialbox=i,i.options=t.extend({},o.defaults,n),i.overlayActive=!1,i.doneAnimating=!0,i.placeholder=t("<div></div>").addClass("material-placeholder"),i.originalWidth=0,i.originalHeight=0,i.originInlineStyles=i.$el.attr("style"),i.caption=i.el.getAttribute("data-caption")||"",i.$el.before(i.placeholder),i.placeholder.append(i.$el),i._setupEventHandlers(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Materialbox=void 0,t(this.placeholder).after(this.el).remove(),this.$el.removeAttr("style")}},{key:"_setupEventHandlers",value:function(){this._handleMaterialboxClickBound=this._handleMaterialboxClick.bind(this),this.el.addEventListener("click",this._handleMaterialboxClickBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleMaterialboxClickBound)}},{key:"_handleMaterialboxClick",value:function(t){!1===this.doneAnimating||this.overlayActive&&this.doneAnimating?this.close():this.open()}},{key:"_handleWindowScroll",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowResize",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowEscape",value:function(t){27===t.keyCode&&this.doneAnimating&&this.overlayActive&&this.close()}},{key:"_makeAncestorsOverflowVisible",value:function(){this.ancestorsChanged=t();for(var e=this.placeholder[0].parentNode;null!==e&&!t(e).is(document);){var n=t(e);"visible"!==n.css("overflow")&&(n.css("overflow","visible"),void 0===this.ancestorsChanged?this.ancestorsChanged=n:this.ancestorsChanged=this.ancestorsChanged.add(n)),e=e.parentNode}}},{key:"_animateImageIn",value:function(){var t=this,n={targets:this.el,height:[this.originalHeight,this.newHeight],width:[this.originalWidth,this.newWidth],left:M.getDocumentScrollLeft()+this.windowWidth/2-this.placeholder.offset().left-this.newWidth/2,top:M.getDocumentScrollTop()+this.windowHeight/2-this.placeholder.offset().top-this.newHeight/2,duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){t.doneAnimating=!0,"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}};this.maxWidth=this.$el.css("max-width"),this.maxHeight=this.$el.css("max-height"),"none"!==this.maxWidth&&(n.maxWidth=this.newWidth),"none"!==this.maxHeight&&(n.maxHeight=this.newHeight),e(n)}},{key:"_animateImageOut",value:function(){var t=this,n={targets:this.el,width:this.originalWidth,height:this.originalHeight,left:0,top:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.placeholder.css({height:"",width:"",position:"",top:"",left:""}),t.attrWidth&&t.$el.attr("width",t.attrWidth),t.attrHeight&&t.$el.attr("height",t.attrHeight),t.$el.removeAttr("style"),t.originInlineStyles&&t.$el.attr("style",t.originInlineStyles),t.$el.removeClass("active"),t.doneAnimating=!0,t.ancestorsChanged.length&&t.ancestorsChanged.css("overflow",""),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}};e(n)}},{key:"_updateVars",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.caption=this.el.getAttribute("data-caption")||""}},{key:"open",value:function(){var n=this;this._updateVars(),this.originalWidth=this.el.getBoundingClientRect().width,this.originalHeight=this.el.getBoundingClientRect().height,this.doneAnimating=!1,this.$el.addClass("active"),this.overlayActive=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this.placeholder.css({width:this.placeholder[0].getBoundingClientRect().width+"px",height:this.placeholder[0].getBoundingClientRect().height+"px",position:"relative",top:0,left:0}),this._makeAncestorsOverflowVisible(),this.$el.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}),this.attrWidth=this.$el.attr("width"),this.attrHeight=this.$el.attr("height"),this.attrWidth&&(this.$el.css("width",this.attrWidth+"px"),this.$el.removeAttr("width")),this.attrHeight&&(this.$el.css("width",this.attrHeight+"px"),this.$el.removeAttr("height")),this.$overlay=t('<div id="materialbox-overlay"></div>').css({opacity:0}).one("click",(function(){n.doneAnimating&&n.close()})),this.$el.before(this.$overlay);var i=this.$overlay[0].getBoundingClientRect();this.$overlay.css({width:this.windowWidth+"px",height:this.windowHeight+"px",left:-1*i.left+"px",top:-1*i.top+"px"}),e.remove(this.el),e.remove(this.$overlay[0]),e({targets:this.$overlay[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}),""!==this.caption&&(this.$photocaption&&e.remove(this.$photoCaption[0]),this.$photoCaption=t('<div class="materialbox-caption"></div>'),this.$photoCaption.text(this.caption),t("body").append(this.$photoCaption),this.$photoCaption.css({display:"inline"}),e({targets:this.$photoCaption[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}));var o=0,r=this.originalWidth/this.windowWidth,a=this.originalHeight/this.windowHeight;this.newWidth=0,this.newHeight=0,r>a?(o=this.originalHeight/this.originalWidth,this.newWidth=.9*this.windowWidth,this.newHeight=.9*this.windowWidth*o):(o=this.originalWidth/this.originalHeight,this.newWidth=.9*this.windowHeight*o,this.newHeight=.9*this.windowHeight),this._animateImageIn(),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),this._handleWindowResizeBound=this._handleWindowResize.bind(this),this._handleWindowEscapeBound=this._handleWindowEscape.bind(this),window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleWindowResizeBound),window.addEventListener("keyup",this._handleWindowEscapeBound)}},{key:"close",value:function(){var t=this;this._updateVars(),this.doneAnimating=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),e.remove(this.el),e.remove(this.$overlay[0]),""!==this.caption&&e.remove(this.$photoCaption[0]),window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleWindowResizeBound),window.removeEventListener("keyup",this._handleWindowEscapeBound),e({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.overlayActive=!1,t.$overlay.remove()}}),this._animateImageOut(),""!==this.caption&&e({targets:this.$photoCaption[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.$photoCaption.remove()}})}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Materialbox}},{key:"defaults",get:function(){return n}}]),o}();M.Materialbox=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"materialbox","M_Materialbox")}(cash,M.anime),function(t){"use strict";var e={responsiveThreshold:0},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Parallax=o,o.options=t.extend({},i.defaults,n),o._enabled=window.innerWidth>o.options.responsiveThreshold,o.$img=o.$el.find("img").first(),o.$img.each((function(){this.complete&&t(this).trigger("load")})),o._updateParallax(),o._setupEventHandlers(),o._setupStyles(),i._parallaxes.push(o),o}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){i._parallaxes.splice(i._parallaxes.indexOf(this),1),this.$img[0].style.transform="",this._removeEventHandlers(),this.$el[0].M_Parallax=void 0}},{key:"_setupEventHandlers",value:function(){this._handleImageLoadBound=this._handleImageLoad.bind(this),this.$img[0].addEventListener("load",this._handleImageLoadBound),0===i._parallaxes.length&&(i._handleScrollThrottled=M.throttle(i._handleScroll,5),window.addEventListener("scroll",i._handleScrollThrottled),i._handleWindowResizeThrottled=M.throttle(i._handleWindowResize,5),window.addEventListener("resize",i._handleWindowResizeThrottled))}},{key:"_removeEventHandlers",value:function(){this.$img[0].removeEventListener("load",this._handleImageLoadBound),0===i._parallaxes.length&&(window.removeEventListener("scroll",i._handleScrollThrottled),window.removeEventListener("resize",i._handleWindowResizeThrottled))}},{key:"_setupStyles",value:function(){this.$img[0].style.opacity=1}},{key:"_handleImageLoad",value:function(){this._updateParallax()}},{key:"_updateParallax",value:function(){var t=this.$el.height()>0?this.el.parentNode.offsetHeight:500,e=this.$img[0].offsetHeight-t,n=this.$el.offset().top+t,i=this.$el.offset().top,o=M.getDocumentScrollTop(),r=window.innerHeight,a=e*((o+r-i)/(t+r));this._enabled?n>o&&i<o+r&&(this.$img[0].style.transform="translate3D(-50%, "+a+"px, 0)"):this.$img[0].style.transform=""}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Parallax}},{key:"_handleScroll",value:function(){for(var t=0;t<i._parallaxes.length;t++){var e=i._parallaxes[t];e._updateParallax.call(e)}}},{key:"_handleWindowResize",value:function(){for(var t=0;t<i._parallaxes.length;t++){var e=i._parallaxes[t];e._enabled=window.innerWidth>e.options.responsiveThreshold}}},{key:"defaults",get:function(){return e}}]),i}();n._parallaxes=[],M.Parallax=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"parallax","M_Parallax")}(cash),function(t,e){"use strict";var n={duration:300,onShow:null,swipeable:!1,responsiveThreshold:1/0},i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Tabs=i,i.options=t.extend({},o.defaults,n),i.$tabLinks=i.$el.children("li.tab").children("a"),i.index=0,i._setupActiveTabLink(),i.options.swipeable?i._setupSwipeableTabs():i._setupNormalTabs(),i._setTabsAndTabWidth(),i._createIndicator(),i._setupEventHandlers(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this._indicator.parentNode.removeChild(this._indicator),this.options.swipeable?this._teardownSwipeableTabs():this._teardownNormalTabs(),this.$el[0].M_Tabs=void 0}},{key:"_setupEventHandlers",value:function(){this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound),this._handleTabClickBound=this._handleTabClick.bind(this),this.el.addEventListener("click",this._handleTabClickBound)}},{key:"_removeEventHandlers",value:function(){window.removeEventListener("resize",this._handleWindowResizeBound),this.el.removeEventListener("click",this._handleTabClickBound)}},{key:"_handleWindowResize",value:function(){this._setTabsAndTabWidth(),0!==this.tabWidth&&0!==this.tabsWidth&&(this._indicator.style.left=this._calcLeftPos(this.$activeTabLink)+"px",this._indicator.style.right=this._calcRightPos(this.$activeTabLink)+"px")}},{key:"_handleTabClick",value:function(e){var n=this,i=t(e.target).closest("li.tab"),o=t(e.target).closest("a");if(o.length&&o.parent().hasClass("tab"))if(i.hasClass("disabled"))e.preventDefault();else if(!o.attr("target")){this.$activeTabLink.removeClass("active");var r=this.$content;this.$activeTabLink=o,this.$content=t(M.escapeHash(o[0].hash)),this.$tabLinks=this.$el.children("li.tab").children("a"),this.$activeTabLink.addClass("active");var a=this.index;this.index=Math.max(this.$tabLinks.index(o),0),this.options.swipeable?this._tabsCarousel&&this._tabsCarousel.set(this.index,(function(){"function"==typeof n.options.onShow&&n.options.onShow.call(n,n.$content[0])})):this.$content.length&&(this.$content[0].style.display="block",this.$content.addClass("active"),"function"==typeof this.options.onShow&&this.options.onShow.call(this,this.$content[0]),r.length&&!r.is(this.$content)&&(r[0].style.display="none",r.removeClass("active"))),this._setTabsAndTabWidth(),this._animateIndicator(a),e.preventDefault()}}},{key:"_createIndicator",value:function(){var t=this,e=document.createElement("li");e.classList.add("indicator"),this.el.appendChild(e),this._indicator=e,setTimeout((function(){t._indicator.style.left=t._calcLeftPos(t.$activeTabLink)+"px",t._indicator.style.right=t._calcRightPos(t.$activeTabLink)+"px"}),0)}},{key:"_setupActiveTabLink",value:function(){this.$activeTabLink=t(this.$tabLinks.filter('[href="'+location.hash+'"]')),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a.active").first()),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a").first()),this.$tabLinks.removeClass("active"),this.$activeTabLink[0].classList.add("active"),this.index=Math.max(this.$tabLinks.index(this.$activeTabLink),0),this.$activeTabLink.length&&(this.$content=t(M.escapeHash(this.$activeTabLink[0].hash)),this.$content.addClass("active"))}},{key:"_setupSwipeableTabs",value:function(){var e=this;window.innerWidth>this.options.responsiveThreshold&&(this.options.swipeable=!1);var n=t();this.$tabLinks.each((function(e){var i=t(M.escapeHash(e.hash));i.addClass("carousel-item"),n=n.add(i)}));var i=t('<div class="tabs-content carousel carousel-slider"></div>');n.first().before(i),i.append(n),n[0].style.display="";var o=this.$activeTabLink.closest(".tab").index();this._tabsCarousel=M.Carousel.init(i[0],{fullWidth:!0,noWrap:!0,onCycleTo:function(n){var i=e.index;e.index=t(n).index(),e.$activeTabLink.removeClass("active"),e.$activeTabLink=e.$tabLinks.eq(e.index),e.$activeTabLink.addClass("active"),e._animateIndicator(i),"function"==typeof e.options.onShow&&e.options.onShow.call(e,e.$content[0])}}),this._tabsCarousel.set(o)}},{key:"_teardownSwipeableTabs",value:function(){var t=this._tabsCarousel.$el;this._tabsCarousel.destroy(),t.after(t.children()),t.remove()}},{key:"_setupNormalTabs",value:function(){this.$tabLinks.not(this.$activeTabLink).each((function(e){if(e.hash){var n=t(M.escapeHash(e.hash));n.length&&(n[0].style.display="none")}}))}},{key:"_teardownNormalTabs",value:function(){this.$tabLinks.each((function(e){if(e.hash){var n=t(M.escapeHash(e.hash));n.length&&(n[0].style.display="")}}))}},{key:"_setTabsAndTabWidth",value:function(){this.tabsWidth=this.$el.width(),this.tabWidth=Math.max(this.tabsWidth,this.el.scrollWidth)/this.$tabLinks.length}},{key:"_calcRightPos",value:function(t){return Math.ceil(this.tabsWidth-t.position().left-t[0].getBoundingClientRect().width)}},{key:"_calcLeftPos",value:function(t){return Math.floor(t.position().left)}},{key:"updateTabIndicator",value:function(){this._setTabsAndTabWidth(),this._animateIndicator(this.index)}},{key:"_animateIndicator",value:function(t){var n=0,i=0;this.index-t>=0?n=90:i=90;var o={targets:this._indicator,left:{value:this._calcLeftPos(this.$activeTabLink),delay:n},right:{value:this._calcRightPos(this.$activeTabLink),delay:i},duration:this.options.duration,easing:"easeOutQuad"};e.remove(this._indicator),e(o)}},{key:"select",value:function(t){var e=this.$tabLinks.filter('[href="#'+t+'"]');e.length&&e.trigger("click")}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tabs}},{key:"defaults",get:function(){return n}}]),o}();M.Tabs=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"tabs","M_Tabs")}(cash,M.anime),function(t,e){"use strict";var n={exitDelay:200,enterDelay:0,html:null,margin:5,inDuration:250,outDuration:200,position:"bottom",transitionMovement:10},i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Tooltip=i,i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.isHovered=!1,i.isFocused=!1,i._appendTooltipEl(),i._setupEventHandlers(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){t(this.tooltipEl).remove(),this._removeEventHandlers(),this.el.M_Tooltip=void 0}},{key:"_appendTooltipEl",value:function(){var t=document.createElement("div");t.classList.add("material-tooltip"),this.tooltipEl=t;var e=document.createElement("div");e.classList.add("tooltip-content"),e.innerHTML=this.options.html,t.appendChild(e),document.body.appendChild(t)}},{key:"_updateTooltipContent",value:function(){this.tooltipEl.querySelector(".tooltip-content").innerHTML=this.options.html}},{key:"_setupEventHandlers",value:function(){this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this._handleFocusBound=this._handleFocus.bind(this),this._handleBlurBound=this._handleBlur.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.el.addEventListener("focus",this._handleFocusBound,!0),this.el.addEventListener("blur",this._handleBlurBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.el.removeEventListener("focus",this._handleFocusBound,!0),this.el.removeEventListener("blur",this._handleBlurBound,!0)}},{key:"open",value:function(e){this.isOpen||(e=void 0===e||void 0,this.isOpen=!0,this.options=t.extend({},this.options,this._getAttributeOptions()),this._updateTooltipContent(),this._setEnterDelayTimeout(e))}},{key:"close",value:function(){this.isOpen&&(this.isHovered=!1,this.isFocused=!1,this.isOpen=!1,this._setExitDelayTimeout())}},{key:"_setExitDelayTimeout",value:function(){var t=this;clearTimeout(this._exitDelayTimeout),this._exitDelayTimeout=setTimeout((function(){t.isHovered||t.isFocused||t._animateOut()}),this.options.exitDelay)}},{key:"_setEnterDelayTimeout",value:function(t){var e=this;clearTimeout(this._enterDelayTimeout),this._enterDelayTimeout=setTimeout((function(){(e.isHovered||e.isFocused||t)&&e._animateIn()}),this.options.enterDelay)}},{key:"_positionTooltip",value:function(){var e,n=this.el,i=this.tooltipEl,o=n.offsetHeight,r=n.offsetWidth,a=i.offsetHeight,s=i.offsetWidth,l=this.options.margin,u=void 0,c=void 0;this.xMovement=0,this.yMovement=0,u=n.getBoundingClientRect().top+M.getDocumentScrollTop(),c=n.getBoundingClientRect().left+M.getDocumentScrollLeft(),"top"===this.options.position?(u+=-a-l,c+=r/2-s/2,this.yMovement=-this.options.transitionMovement):"right"===this.options.position?(u+=o/2-a/2,c+=r+l,this.xMovement=this.options.transitionMovement):"left"===this.options.position?(u+=o/2-a/2,c+=-s-l,this.xMovement=-this.options.transitionMovement):(u+=o+l,c+=r/2-s/2,this.yMovement=this.options.transitionMovement),e=this._repositionWithinScreen(c,u,s,a),t(i).css({top:e.y+"px",left:e.x+"px"})}},{key:"_repositionWithinScreen",value:function(t,e,n,i){var o=M.getDocumentScrollLeft(),r=M.getDocumentScrollTop(),a=t-o,s=e-r,l={left:a,top:s,width:n,height:i},u=this.options.margin+this.options.transitionMovement,c=M.checkWithinContainer(document.body,l,u);return c.left?a=u:c.right&&(a-=a+n-window.innerWidth),c.top?s=u:c.bottom&&(s-=s+i-window.innerHeight),{x:a+o,y:s+r}}},{key:"_animateIn",value:function(){this._positionTooltip(),this.tooltipEl.style.visibility="visible",e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:1,translateX:this.xMovement,translateY:this.yMovement,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_animateOut",value:function(){e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:0,translateX:0,translateY:0,duration:this.options.outDuration,easing:"easeOutCubic"})}},{key:"_handleMouseEnter",value:function(){this.isHovered=!0,this.isFocused=!1,this.open(!1)}},{key:"_handleMouseLeave",value:function(){this.isHovered=!1,this.isFocused=!1,this.close()}},{key:"_handleFocus",value:function(){M.tabPressed&&(this.isFocused=!0,this.open(!1))}},{key:"_handleBlur",value:function(){this.isFocused=!1,this.close()}},{key:"_getAttributeOptions",value:function(){var t={},e=this.el.getAttribute("data-tooltip"),n=this.el.getAttribute("data-position");return e&&(t.html=e),n&&(t.position=n),t}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tooltip}},{key:"defaults",get:function(){return n}}]),o}();M.Tooltip=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"tooltip","M_Tooltip")}(cash,M.anime),function(t){"use strict";var e=e||{},n=document.querySelectorAll.bind(document);function i(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}var o={duration:750,show:function(t,e){if(2===t.button)return!1;var n=e||this,r=document.createElement("div");r.className="waves-ripple",n.appendChild(r);var a,s,l,u,c,d=(u={top:0,left:0},c=(a=n)&&a.ownerDocument,s=c.documentElement,void 0!==a.getBoundingClientRect&&(u=a.getBoundingClientRect()),l=function(t){return null!==(e=t)&&e===e.window?t:9===t.nodeType&&t.defaultView;var e}(c),{top:u.top+l.pageYOffset-s.clientTop,left:u.left+l.pageXOffset-s.clientLeft}),h=t.pageY-d.top,f=t.pageX-d.left,p="scale("+n.clientWidth/100*10+")";"touches"in t&&(h=t.touches[0].pageY-d.top,f=t.touches[0].pageX-d.left),r.setAttribute("data-hold",Date.now()),r.setAttribute("data-scale",p),r.setAttribute("data-x",f),r.setAttribute("data-y",h);var v={top:h+"px",left:f+"px"};r.className=r.className+" waves-notransition",r.setAttribute("style",i(v)),r.className=r.className.replace("waves-notransition",""),v["-webkit-transform"]=p,v["-moz-transform"]=p,v["-ms-transform"]=p,v["-o-transform"]=p,v.transform=p,v.opacity="1",v["-webkit-transition-duration"]=o.duration+"ms",v["-moz-transition-duration"]=o.duration+"ms",v["-o-transition-duration"]=o.duration+"ms",v["transition-duration"]=o.duration+"ms",v["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",v["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",v["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",v["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",r.setAttribute("style",i(v))},hide:function(t){r.touchup(t);var e=this,n=(e.clientWidth,null),a=e.getElementsByClassName("waves-ripple");if(!(a.length>0))return!1;var s=(n=a[a.length-1]).getAttribute("data-x"),l=n.getAttribute("data-y"),u=n.getAttribute("data-scale"),c=350-(Date.now()-Number(n.getAttribute("data-hold")));c<0&&(c=0),setTimeout((function(){var t={top:l+"px",left:s+"px",opacity:"0","-webkit-transition-duration":o.duration+"ms","-moz-transition-duration":o.duration+"ms","-o-transition-duration":o.duration+"ms","transition-duration":o.duration+"ms","-webkit-transform":u,"-moz-transform":u,"-ms-transform":u,"-o-transform":u,transform:u};n.setAttribute("style",i(t)),setTimeout((function(){try{e.removeChild(n)}catch(t){return!1}}),o.duration)}),c)},wrapInput:function(t){for(var e=0;e<t.length;e++){var n=t[e];if("input"===n.tagName.toLowerCase()){var i=n.parentNode;if("i"===i.tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect"))continue;var o=document.createElement("i");o.className=n.className+" waves-input-wrapper";var r=n.getAttribute("style");r||(r=""),o.setAttribute("style",r),n.className="waves-button-input",n.removeAttribute("style"),i.replaceChild(o,n),o.appendChild(n)}}}},r={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?r.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout((function(){r.touches>0&&(r.touches-=1)}),500):"mousedown"===t.type&&r.touches>0&&(e=!1),e},touchup:function(t){r.allowEvent(t)}};function a(e){var n=function(t){if(!1===r.allowEvent(t))return null;for(var e=null,n=t.target||t.srcElement;null!==n.parentNode;){if(!(n instanceof SVGElement)&&-1!==n.className.indexOf("waves-effect")){e=n;break}n=n.parentNode}return e}(e);null!==n&&(o.show(e,n),"ontouchstart"in t&&(n.addEventListener("touchend",o.hide,!1),n.addEventListener("touchcancel",o.hide,!1)),n.addEventListener("mouseup",o.hide,!1),n.addEventListener("mouseleave",o.hide,!1),n.addEventListener("dragend",o.hide,!1))}e.displayEffect=function(e){"duration"in(e=e||{})&&(o.duration=e.duration),o.wrapInput(n(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",a,!1),document.body.addEventListener("mousedown",a,!1)},e.attach=function(e){"input"===e.tagName.toLowerCase()&&(o.wrapInput([e]),e=e.parentNode),"ontouchstart"in t&&e.addEventListener("touchstart",a,!1),e.addEventListener("mousedown",a,!1)},t.Waves=e,document.addEventListener("DOMContentLoaded",(function(){e.displayEffect()}),!1)}(window),function(t,e){"use strict";var n={html:"",displayLength:4e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},i=function(){function i(e){_classCallCheck(this,i),this.options=t.extend({},i.defaults,e),this.message=this.options.html,this.panning=!1,this.timeRemaining=this.options.displayLength,0===i._toasts.length&&i._createContainer(),i._toasts.push(this);var n=this._createToast();n.M_Toast=this,this.el=n,this.$el=t(n),this._animateIn(),this._setTimer()}return _createClass(i,[{key:"_createToast",value:function(){var e=document.createElement("div");return e.classList.add("toast"),this.options.classes.length&&t(e).addClass(this.options.classes),("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?e.appendChild(this.message):this.message.jquery?t(e).append(this.message[0]):e.innerHTML=this.message,i._container.appendChild(e),e}},{key:"_animateIn",value:function(){e({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_setTimer",value:function(){var t=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval((function(){t.panning||(t.timeRemaining-=20),t.timeRemaining<=0&&t.dismiss()}),20))}},{key:"dismiss",value:function(){var t=this;window.clearInterval(this.counterInterval);var n=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+n+"px)",this.el.style.opacity=0),e({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:"easeOutExpo",complete:function(){"function"==typeof t.options.completeCallback&&t.options.completeCallback(),t.$el.remove(),i._toasts.splice(i._toasts.indexOf(t),1),0===i._toasts.length&&i._removeContainer()}})}}],[{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Toast}},{key:"_createContainer",value:function(){var t=document.createElement("div");t.setAttribute("id","toast-container"),t.addEventListener("touchstart",i._onDragStart),t.addEventListener("touchmove",i._onDragMove),t.addEventListener("touchend",i._onDragEnd),t.addEventListener("mousedown",i._onDragStart),document.addEventListener("mousemove",i._onDragMove),document.addEventListener("mouseup",i._onDragEnd),document.body.appendChild(t),i._container=t}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",i._onDragMove),document.removeEventListener("mouseup",i._onDragEnd),t(i._container).remove(),i._container=null}},{key:"_onDragStart",value:function(e){if(e.target&&t(e.target).closest(".toast").length){var n=t(e.target).closest(".toast")[0].M_Toast;n.panning=!0,i._draggedToast=n,n.el.classList.add("panning"),n.el.style.transition="",n.startingXPos=i._xPos(e),n.time=Date.now(),n.xPos=i._xPos(e)}}},{key:"_onDragMove",value:function(t){if(i._draggedToast){t.preventDefault();var e=i._draggedToast;e.deltaX=Math.abs(e.xPos-i._xPos(t)),e.xPos=i._xPos(t),e.velocityX=e.deltaX/(Date.now()-e.time),e.time=Date.now();var n=e.xPos-e.startingXPos,o=e.el.offsetWidth*e.options.activationPercent;e.el.style.transform="translateX("+n+"px)",e.el.style.opacity=1-Math.abs(n/o)}}},{key:"_onDragEnd",value:function(){if(i._draggedToast){var t=i._draggedToast;t.panning=!1,t.el.classList.remove("panning");var e=t.xPos-t.startingXPos,n=t.el.offsetWidth*t.options.activationPercent;Math.abs(e)>n||t.velocityX>1?(t.wasSwiped=!0,t.dismiss()):(t.el.style.transition="transform .2s, opacity .2s",t.el.style.transform="",t.el.style.opacity=""),i._draggedToast=null}}},{key:"_xPos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}},{key:"dismissAll",value:function(){for(var t in i._toasts)i._toasts[t].dismiss()}},{key:"defaults",get:function(){return n}}]),i}();i._toasts=[],i._container=null,i._draggedToast=null,M.Toast=i,M.toast=function(t){return new i(t)}}(cash,M.anime),function(t,e){"use strict";var n={edge:"left",draggable:!0,inDuration:250,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0},i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Sidenav=i,i.id=i.$el.attr("id"),i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.isFixed=i.el.classList.contains("sidenav-fixed"),i.isDragged=!1,i.lastWindowWidth=window.innerWidth,i.lastWindowHeight=window.innerHeight,i._createOverlay(),i._createDragTarget(),i._setupEventHandlers(),i._setupClasses(),i._setupFixed(),o._sidenavs.push(i),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this._enableBodyScrolling(),this._overlay.parentNode.removeChild(this._overlay),this.dragTarget.parentNode.removeChild(this.dragTarget),this.el.M_Sidenav=void 0,this.el.style.transform="";var t=o._sidenavs.indexOf(this);t>=0&&o._sidenavs.splice(t,1)}},{key:"_createOverlay",value:function(){var t=document.createElement("div");this._closeBound=this.close.bind(this),t.classList.add("sidenav-overlay"),t.addEventListener("click",this._closeBound),document.body.appendChild(t),this._overlay=t}},{key:"_setupEventHandlers",value:function(){0===o._sidenavs.length&&document.body.addEventListener("click",this._handleTriggerClick),this._handleDragTargetDragBound=this._handleDragTargetDrag.bind(this),this._handleDragTargetReleaseBound=this._handleDragTargetRelease.bind(this),this._handleCloseDragBound=this._handleCloseDrag.bind(this),this._handleCloseReleaseBound=this._handleCloseRelease.bind(this),this._handleCloseTriggerClickBound=this._handleCloseTriggerClick.bind(this),this.dragTarget.addEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.addEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.addEventListener("touchmove",this._handleCloseDragBound),this._overlay.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("touchmove",this._handleCloseDragBound),this.el.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&(this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound))}},{key:"_removeEventHandlers",value:function(){1===o._sidenavs.length&&document.body.removeEventListener("click",this._handleTriggerClick),this.dragTarget.removeEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.removeEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.removeEventListener("touchmove",this._handleCloseDragBound),this._overlay.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("touchmove",this._handleCloseDragBound),this.el.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&window.removeEventListener("resize",this._handleWindowResizeBound)}},{key:"_handleTriggerClick",value:function(e){var n=t(e.target).closest(".sidenav-trigger");if(e.target&&n.length){var i=M.getIdFromTrigger(n[0]),o=document.getElementById(i).M_Sidenav;o&&o.open(n),e.preventDefault()}}},{key:"_startDrag",value:function(t){var n=t.targetTouches[0].clientX;this.isDragged=!0,this._startingXpos=n,this._xPos=this._startingXpos,this._time=Date.now(),this._width=this.el.getBoundingClientRect().width,this._overlay.style.display="block",this._initialScrollTop=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop(),this._verticallyScrolling=!1,e.remove(this.el),e.remove(this._overlay)}},{key:"_dragMoveUpdate",value:function(t){var e=t.targetTouches[0].clientX,n=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop();this.deltaX=Math.abs(this._xPos-e),this._xPos=e,this.velocityX=this.deltaX/(Date.now()-this._time),this._time=Date.now(),this._initialScrollTop!==n&&(this._verticallyScrolling=!0)}},{key:"_handleDragTargetDrag",value:function(t){if(this.options.draggable&&!this._isCurrentlyFixed()&&!this._verticallyScrolling){this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,n=e>0?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge===n&&(e=0);var i=e,o="translateX(-100%)";"right"===this.options.edge&&(o="translateX(100%)",i=-i),this.percentOpen=Math.min(1,e/this._width),this.el.style.transform=o+" translateX("+i+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleDragTargetRelease",value:function(){this.isDragged&&(this.percentOpen>.2?this.open():this._animateOut(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseDrag",value:function(t){if(this.isOpen){if(!this.options.draggable||this._isCurrentlyFixed()||this._verticallyScrolling)return;this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,n=e>0?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge!==n&&(e=0);var i=-e;"right"===this.options.edge&&(i=-i),this.percentOpen=Math.min(1,1-e/this._width),this.el.style.transform="translateX("+i+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleCloseRelease",value:function(){this.isOpen&&this.isDragged&&(this.percentOpen>.8?this._animateIn():this.close(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseTriggerClick",value:function(e){t(e.target).closest(".sidenav-close").length&&!this._isCurrentlyFixed()&&this.close()}},{key:"_handleWindowResize",value:function(){this.lastWindowWidth!==window.innerWidth&&(window.innerWidth>992?this.open():this.close()),this.lastWindowWidth=window.innerWidth,this.lastWindowHeight=window.innerHeight}},{key:"_setupClasses",value:function(){"right"===this.options.edge&&(this.el.classList.add("right-aligned"),this.dragTarget.classList.add("right-aligned"))}},{key:"_removeClasses",value:function(){this.el.classList.remove("right-aligned"),this.dragTarget.classList.remove("right-aligned")}},{key:"_setupFixed",value:function(){this._isCurrentlyFixed()&&this.open()}},{key:"_isCurrentlyFixed",value:function(){return this.isFixed&&window.innerWidth>992}},{key:"_createDragTarget",value:function(){var t=document.createElement("div");t.classList.add("drag-target"),document.body.appendChild(t),this.dragTarget=t}},{key:"_preventBodyScrolling",value:function(){document.body.style.overflow="hidden"}},{key:"_enableBodyScrolling",value:function(){document.body.style.overflow=""}},{key:"open",value:function(){!0!==this.isOpen&&(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._isCurrentlyFixed()?(e.remove(this.el),e({targets:this.el,translateX:0,duration:0,easing:"easeOutQuad"}),this._enableBodyScrolling(),this._overlay.style.display="none"):(this.options.preventScrolling&&this._preventBodyScrolling(),this.isDragged&&1==this.percentOpen||this._animateIn()))}},{key:"close",value:function(){if(!1!==this.isOpen)if(this.isOpen=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._isCurrentlyFixed()){var t="left"===this.options.edge?"-105%":"105%";this.el.style.transform="translateX("+t+")"}else this._enableBodyScrolling(),this.isDragged&&0==this.percentOpen?this._overlay.style.display="none":this._animateOut()}},{key:"_animateIn",value:function(){this._animateSidenavIn(),this._animateOverlayIn()}},{key:"_animateSidenavIn",value:function(){var t=this,n="left"===this.options.edge?-1:1;this.isDragged&&(n="left"===this.options.edge?n+this.percentOpen:n-this.percentOpen),e.remove(this.el),e({targets:this.el,translateX:[100*n+"%",0],duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}})}},{key:"_animateOverlayIn",value:function(){var n=0;this.isDragged?n=this.percentOpen:t(this._overlay).css({display:"block"}),e.remove(this._overlay),e({targets:this._overlay,opacity:[n,1],duration:this.options.inDuration,easing:"easeOutQuad"})}},{key:"_animateOut",value:function(){this._animateSidenavOut(),this._animateOverlayOut()}},{key:"_animateSidenavOut",value:function(){var t=this,n="left"===this.options.edge?-1:1,i=0;this.isDragged&&(i="left"===this.options.edge?n+this.percentOpen:n-this.percentOpen),e.remove(this.el),e({targets:this.el,translateX:[100*i+"%",105*n+"%"],duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}})}},{key:"_animateOverlayOut",value:function(){var n=this;e.remove(this._overlay),e({targets:this._overlay,opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t(n._overlay).css("display","none")}})}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Sidenav}},{key:"defaults",get:function(){return n}}]),o}();i._sidenavs=[],M.Sidenav=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"sidenav","M_Sidenav")}(cash,M.anime),function(t,e){"use strict";var n={throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(t){return'a[href="#'+t+'"]'}},i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_ScrollSpy=i,i.options=t.extend({},o.defaults,n),o._elements.push(i),o._count++,o._increment++,i.tickId=-1,i.id=o._increment,i._setupEventHandlers(),i._handleWindowScroll(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){o._elements.splice(o._elements.indexOf(this),1),o._elementsInView.splice(o._elementsInView.indexOf(this),1),o._visibleElements.splice(o._visibleElements.indexOf(this.$el),1),o._count--,this._removeEventHandlers(),t(this.options.getActiveElement(this.$el.attr("id"))).removeClass(this.options.activeClass),this.el.M_ScrollSpy=void 0}},{key:"_setupEventHandlers",value:function(){var t=M.throttle(this._handleWindowScroll,200);this._handleThrottledResizeBound=t.bind(this),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),1===o._count&&(window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleThrottledResizeBound),document.body.addEventListener("click",this._handleTriggerClick))}},{key:"_removeEventHandlers",value:function(){0===o._count&&(window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleThrottledResizeBound),document.body.removeEventListener("click",this._handleTriggerClick))}},{key:"_handleTriggerClick",value:function(n){for(var i=t(n.target),r=o._elements.length-1;r>=0;r--){var a=o._elements[r];if(i.is('a[href="#'+a.$el.attr("id")+'"]')){n.preventDefault();var s=a.$el.offset().top+1;e({targets:[document.documentElement,document.body],scrollTop:s-a.options.scrollOffset,duration:400,easing:"easeOutCubic"});break}}}},{key:"_handleWindowScroll",value:function(){o._ticks++;for(var t=M.getDocumentScrollTop(),e=M.getDocumentScrollLeft(),n=e+window.innerWidth,i=t+window.innerHeight,r=o._findElements(t,n,i,e),a=0;a<r.length;a++){var s=r[a];s.tickId<0&&s._enter(),s.tickId=o._ticks}for(var l=0;l<o._elementsInView.length;l++){var u=o._elementsInView[l],c=u.tickId;c>=0&&c!==o._ticks&&(u._exit(),u.tickId=-1)}o._elementsInView=r}},{key:"_enter",value:function(){o._visibleElements=o._visibleElements.filter((function(t){return 0!=t.height()})),o._visibleElements[0]?(t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),o._visibleElements[0][0].M_ScrollSpy&&this.id<o._visibleElements[0][0].M_ScrollSpy.id?o._visibleElements.unshift(this.$el):o._visibleElements.push(this.$el)):o._visibleElements.push(this.$el),t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).addClass(this.options.activeClass)}},{key:"_exit",value:function(){var e=this;o._visibleElements=o._visibleElements.filter((function(t){return 0!=t.height()})),o._visibleElements[0]&&(t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),o._visibleElements=o._visibleElements.filter((function(t){return t.attr("id")!=e.$el.attr("id")})),o._visibleElements[0]&&t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).addClass(this.options.activeClass))}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_ScrollSpy}},{key:"_findElements",value:function(t,e,n,i){for(var r=[],a=0;a<o._elements.length;a++){var s=o._elements[a],l=t+s.options.scrollOffset||200;if(s.$el.height()>0){var u=s.$el.offset().top,c=s.$el.offset().left,d=c+s.$el.width(),h=u+s.$el.height();!(c>e||d<i||u>n||h<l)&&r.push(s)}}return r}},{key:"defaults",get:function(){return n}}]),o}();i._elements=[],i._elementsInView=[],i._visibleElements=[],i._count=0,i._increment=0,i._ticks=0,M.ScrollSpy=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"scrollSpy","M_ScrollSpy")}(cash,M.anime),function(t){"use strict";var e={data:{},limit:1/0,onAutocomplete:null,minLength:1,sortFunction:function(t,e,n){return t.indexOf(n)-e.indexOf(n)}},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Autocomplete=o,o.options=t.extend({},i.defaults,n),o.isOpen=!1,o.count=0,o.activeIndex=-1,o.oldVal,o.$inputField=o.$el.closest(".input-field"),o.$active=t(),o._mousedown=!1,o._setupDropdown(),o._setupEventHandlers(),o}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_Autocomplete=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputBlurBound=this._handleInputBlur.bind(this),this._handleInputKeyupAndFocusBound=this._handleInputKeyupAndFocus.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleContainerMousedownAndTouchstartBound=this._handleContainerMousedownAndTouchstart.bind(this),this._handleContainerMouseupAndTouchendBound=this._handleContainerMouseupAndTouchend.bind(this),this.el.addEventListener("blur",this._handleInputBlurBound),this.el.addEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.addEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("click",this._handleInputClickBound),this.container.addEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.addEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("blur",this._handleInputBlurBound),this.el.removeEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("click",this._handleInputClickBound),this.container.removeEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.removeEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_setupDropdown",value:function(){var e=this;this.container=document.createElement("ul"),this.container.id="autocomplete-options-"+M.guid(),t(this.container).addClass("autocomplete-content dropdown-content"),this.$inputField.append(this.container),this.el.setAttribute("data-target",this.container.id),this.dropdown=M.Dropdown.init(this.el,{autoFocus:!1,closeOnClick:!1,coverTrigger:!1,onItemClick:function(n){e.selectOption(t(n))}}),this.el.removeEventListener("click",this.dropdown._handleClickBound)}},{key:"_removeDropdown",value:function(){this.container.parentNode.removeChild(this.container)}},{key:"_handleInputBlur",value:function(){this._mousedown||(this.close(),this._resetAutocomplete())}},{key:"_handleInputKeyupAndFocus",value:function(t){"keyup"===t.type&&(i._keydown=!1),this.count=0;var e=this.el.value.toLowerCase();13!==t.keyCode&&38!==t.keyCode&&40!==t.keyCode&&(this.oldVal===e||!M.tabPressed&&"focus"===t.type||this.open(),this.oldVal=e)}},{key:"_handleInputKeydown",value:function(e){i._keydown=!0;var n=e.keyCode,o=void 0,r=t(this.container).children("li").length;n===M.keys.ENTER&&this.activeIndex>=0?(o=t(this.container).children("li").eq(this.activeIndex)).length&&(this.selectOption(o),e.preventDefault()):n!==M.keys.ARROW_UP&&n!==M.keys.ARROW_DOWN||(e.preventDefault(),n===M.keys.ARROW_UP&&this.activeIndex>0&&this.activeIndex--,n===M.keys.ARROW_DOWN&&this.activeIndex<r-1&&this.activeIndex++,this.$active.removeClass("active"),this.activeIndex>=0&&(this.$active=t(this.container).children("li").eq(this.activeIndex),this.$active.addClass("active")))}},{key:"_handleInputClick",value:function(t){this.open()}},{key:"_handleContainerMousedownAndTouchstart",value:function(t){this._mousedown=!0}},{key:"_handleContainerMouseupAndTouchend",value:function(t){this._mousedown=!1}},{key:"_highlight",value:function(t,e){var n=e.find("img"),i=e.text().toLowerCase().indexOf(""+t.toLowerCase()),o=i+t.length-1,r=e.text().slice(0,i),a=e.text().slice(i,o+1),s=e.text().slice(o+1);e.html("<span>"+r+"<span class='highlight'>"+a+"</span>"+s+"</span>"),n.length&&e.prepend(n)}},{key:"_resetCurrentElement",value:function(){this.activeIndex=-1,this.$active.removeClass("active")}},{key:"_resetAutocomplete",value:function(){t(this.container).empty(),this._resetCurrentElement(),this.oldVal=null,this.isOpen=!1,this._mousedown=!1}},{key:"selectOption",value:function(t){var e=t.text().trim();this.el.value=e,this.$el.trigger("change"),this._resetAutocomplete(),this.close(),"function"==typeof this.options.onAutocomplete&&this.options.onAutocomplete.call(this,e)}},{key:"_renderDropdown",value:function(e,n){var i=this;this._resetAutocomplete();var o=[];for(var r in e)if(e.hasOwnProperty(r)&&-1!==r.toLowerCase().indexOf(n)){if(this.count>=this.options.limit)break;var a={data:e[r],key:r};o.push(a),this.count++}if(this.options.sortFunction){o.sort((function(t,e){return i.options.sortFunction(t.key.toLowerCase(),e.key.toLowerCase(),n.toLowerCase())}))}for(var s=0;s<o.length;s++){var l=o[s],u=t("<li></li>");l.data?u.append('<img src="'+l.data+'" class="right circle"><span>'+l.key+"</span>"):u.append("<span>"+l.key+"</span>"),t(this.container).append(u),this._highlight(n,u)}}},{key:"open",value:function(){var t=this.el.value.toLowerCase();this._resetAutocomplete(),t.length>=this.options.minLength&&(this.isOpen=!0,this._renderDropdown(this.options.data,t)),this.dropdown.isOpen?this.dropdown.recalculateDimensions():this.dropdown.open()}},{key:"close",value:function(){this.dropdown.close()}},{key:"updateData",value:function(t){var e=this.el.value.toLowerCase();this.options.data=t,this.isOpen&&this._renderDropdown(t,e)}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Autocomplete}},{key:"defaults",get:function(){return e}}]),i}();n._keydown=!1,M.Autocomplete=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"autocomplete","M_Autocomplete")}(cash),function(t){M.updateTextFields=function(){t("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea").each((function(e,n){var i=t(this);e.value.length>0||t(e).is(":focus")||e.autofocus||null!==i.attr("placeholder")?i.siblings("label").addClass("active"):e.validity?i.siblings("label").toggleClass("active",!0===e.validity.badInput):i.siblings("label").removeClass("active")}))},M.validate_field=function(t){var e=null!==t.attr("data-length"),n=parseInt(t.attr("data-length")),i=t[0].value.length;0!==i||!1!==t[0].validity.badInput||t.is(":required")?t.hasClass("validate")&&(t.is(":valid")&&e&&i<=n||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid"))):t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid"))},M.textareaAutoResize=function(e){if(e instanceof Element&&(e=t(e)),e.length){var n=t(".hiddendiv").first();n.length||(n=t('<div class="hiddendiv common"></div>'),t("body").append(n));var i=e.css("font-family"),o=e.css("font-size"),r=e.css("line-height"),a=e.css("padding-top"),s=e.css("padding-right"),l=e.css("padding-bottom"),u=e.css("padding-left");o&&n.css("font-size",o),i&&n.css("font-family",i),r&&n.css("line-height",r),a&&n.css("padding-top",a),s&&n.css("padding-right",s),l&&n.css("padding-bottom",l),u&&n.css("padding-left",u),e.data("original-height")||e.data("original-height",e.height()),"off"===e.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(e[0].value+"\n");var c=n.html().replace(/\n/g,"<br>");n.html(c),e[0].offsetWidth>0&&e[0].offsetHeight>0?n.css("width",e.width()+"px"):n.css("width",window.innerWidth/2+"px"),e.data("original-height")<=n.innerHeight()?e.css("height",n.innerHeight()+"px"):e[0].value.length<e.data("previous-length")&&e.css("height",e.data("original-height")+"px"),e.data("previous-length",e[0].value.length)}else console.error("No textarea element found")},t(document).ready((function(){var e="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea";t(document).on("change",e,(function(){0===this.value.length&&null===t(this).attr("placeholder")||t(this).siblings("label").addClass("active"),M.validate_field(t(this))})),t(document).ready((function(){M.updateTextFields()})),t(document).on("reset",(function(n){var i=t(n.target);i.is("form")&&(i.find(e).removeClass("valid").removeClass("invalid"),i.find(e).each((function(e){this.value.length&&t(this).siblings("label").removeClass("active")})),setTimeout((function(){i.find("select").each((function(){this.M_FormSelect&&t(this).trigger("change")}))}),0))})),document.addEventListener("focus",(function(n){t(n.target).is(e)&&t(n.target).siblings("label, .prefix").addClass("active")}),!0),document.addEventListener("blur",(function(n){var i=t(n.target);if(i.is(e)){var o=".prefix";0===i[0].value.length&&!0!==i[0].validity.badInput&&null===i.attr("placeholder")&&(o+=", label"),i.siblings(o).removeClass("active"),M.validate_field(i)}}),!0);t(document).on("keyup","input[type=radio], input[type=checkbox]",(function(e){if(e.which===M.keys.TAB)return t(this).addClass("tabbed"),void t(this).one("blur",(function(e){t(this).removeClass("tabbed")}))}));t(".materialize-textarea").each((function(){var e=t(this);e.data("original-height",e.height()),e.data("previous-length",this.value.length),M.textareaAutoResize(e)})),t(document).on("keyup",".materialize-textarea",(function(){M.textareaAutoResize(t(this))})),t(document).on("keydown",".materialize-textarea",(function(){M.textareaAutoResize(t(this))})),t(document).on("change",'.file-field input[type="file"]',(function(){for(var e=t(this).closest(".file-field").find("input.file-path"),n=t(this)[0].files,i=[],o=0;o<n.length;o++)i.push(n[o].name);e[0].value=i.join(", "),e.trigger("change")}))}))}(cash),function(t,e){"use strict";var n={indicators:!0,height:400,duration:500,interval:6e3},i=function(i){function o(n,i){_classCallCheck(this,o);var r=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,n,i));return r.el.M_Slider=r,r.options=t.extend({},o.defaults,i),r.$slider=r.$el.find(".slides"),r.$slides=r.$slider.children("li"),r.activeIndex=r.$slides.filter((function(e){return t(e).hasClass("active")})).first().index(),-1!=r.activeIndex&&(r.$active=r.$slides.eq(r.activeIndex)),r._setSliderHeight(),r.$slides.find(".caption").each((function(t){r._animateCaptionIn(t,0)})),r.$slides.find("img").each((function(e){var n="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";t(e).attr("src")!==n&&(t(e).css("background-image",'url("'+t(e).attr("src")+'")'),t(e).attr("src",n))})),r._setupIndicators(),r.$active?r.$active.css("display","block"):(r.$slides.first().addClass("active"),e({targets:r.$slides.first()[0],opacity:1,duration:r.options.duration,easing:"easeOutQuad"}),r.activeIndex=0,r.$active=r.$slides.eq(r.activeIndex),r.options.indicators&&r.$indicators.eq(r.activeIndex).addClass("active")),r.$active.find("img").each((function(t){e({targets:r.$active.find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:r.options.duration,easing:"easeOutQuad"})})),r._setupEventHandlers(),r.start(),r}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this.pause(),this._removeIndicators(),this._removeEventHandlers(),this.el.M_Slider=void 0}},{key:"_setupEventHandlers",value:function(){var t=this;this._handleIntervalBound=this._handleInterval.bind(this),this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.options.indicators&&this.$indicators.each((function(e){e.addEventListener("click",t._handleIndicatorClickBound)}))}},{key:"_removeEventHandlers",value:function(){var t=this;this.options.indicators&&this.$indicators.each((function(e){e.removeEventListener("click",t._handleIndicatorClickBound)}))}},{key:"_handleIndicatorClick",value:function(e){var n=t(e.target).index();this.set(n)}},{key:"_handleInterval",value:function(){var t=this.$slider.find(".active").index();this.$slides.length===t+1?t=0:t+=1,this.set(t)}},{key:"_animateCaptionIn",value:function(n,i){var o={targets:n,opacity:0,duration:i,easing:"easeOutQuad"};t(n).hasClass("center-align")?o.translateY=-100:t(n).hasClass("right-align")?o.translateX=100:t(n).hasClass("left-align")&&(o.translateX=-100),e(o)}},{key:"_setSliderHeight",value:function(){this.$el.hasClass("fullscreen")||(this.options.indicators?this.$el.css("height",this.options.height+40+"px"):this.$el.css("height",this.options.height+"px"),this.$slider.css("height",this.options.height+"px"))}},{key:"_setupIndicators",value:function(){var e=this;this.options.indicators&&(this.$indicators=t('<ul class="indicators"></ul>'),this.$slides.each((function(n,i){var o=t('<li class="indicator-item"></li>');e.$indicators.append(o[0])})),this.$el.append(this.$indicators[0]),this.$indicators=this.$indicators.children("li.indicator-item"))}},{key:"_removeIndicators",value:function(){this.$el.find("ul.indicators").remove()}},{key:"set",value:function(t){var n=this;if(t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.activeIndex!=t){this.$active=this.$slides.eq(this.activeIndex);var i=this.$active.find(".caption");this.$active.removeClass("active"),e({targets:this.$active[0],opacity:0,duration:this.options.duration,easing:"easeOutQuad",complete:function(){n.$slides.not(".active").each((function(t){e({targets:t,opacity:0,translateX:0,translateY:0,duration:0,easing:"easeOutQuad"})}))}}),this._animateCaptionIn(i[0],this.options.duration),this.options.indicators&&(this.$indicators.eq(this.activeIndex).removeClass("active"),this.$indicators.eq(t).addClass("active")),e({targets:this.$slides.eq(t)[0],opacity:1,duration:this.options.duration,easing:"easeOutQuad"}),e({targets:this.$slides.eq(t).find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:this.options.duration,delay:this.options.duration,easing:"easeOutQuad"}),this.$slides.eq(t).addClass("active"),this.activeIndex=t,this.start()}}},{key:"pause",value:function(){clearInterval(this.interval)}},{key:"start",value:function(){clearInterval(this.interval),this.interval=setInterval(this._handleIntervalBound,this.options.duration+this.options.interval)}},{key:"next",value:function(){var t=this.activeIndex+1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}},{key:"prev",value:function(){var t=this.activeIndex-1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Slider}},{key:"defaults",get:function(){return n}}]),o}();M.Slider=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"slider","M_Slider")}(cash,M.anime),function(t,e){t(document).on("click",".card",(function(n){if(t(this).children(".card-reveal").length){var i=t(n.target).closest(".card");void 0===i.data("initialOverflow")&&i.data("initialOverflow",void 0===i.css("overflow")?"":i.css("overflow"));var o=t(this).find(".card-reveal");t(n.target).is(t(".card-reveal .card-title"))||t(n.target).is(t(".card-reveal .card-title i"))?e({targets:o[0],translateY:0,duration:225,easing:"easeInOutQuad",complete:function(e){var n=e.animatables[0].target;t(n).css({display:"none"}),i.css("overflow",i.data("initialOverflow"))}}):(t(n.target).is(t(".card .activator"))||t(n.target).is(t(".card .activator i")))&&(i.css("overflow","hidden"),o.css({display:"block"}),e({targets:o[0],translateY:"-100%",duration:300,easing:"easeInOutQuad"}))}}))}(cash,M.anime),function(t){"use strict";var e={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{},limit:1/0,onChipAdd:null,onChipSelect:null,onChipDelete:null},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Chips=o,o.options=t.extend({},i.defaults,n),o.$el.addClass("chips input-field"),o.chipsData=[],o.$chips=t(),o._setupInput(),o.hasAutocomplete=Object.keys(o.options.autocompleteOptions).length>0,o.$input.attr("id")||o.$input.attr("id",M.guid()),o.options.data.length&&(o.chipsData=o.options.data,o._renderChips(o.chipsData)),o.hasAutocomplete&&o._setupAutocomplete(),o._setPlaceholder(),o._setupLabel(),o._setupEventHandlers(),o}return _inherits(i,Component),_createClass(i,[{key:"getData",value:function(){return this.chipsData}},{key:"destroy",value:function(){this._removeEventHandlers(),this.$chips.remove(),this.el.M_Chips=void 0}},{key:"_setupEventHandlers",value:function(){this._handleChipClickBound=this._handleChipClick.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputFocusBound=this._handleInputFocus.bind(this),this._handleInputBlurBound=this._handleInputBlur.bind(this),this.el.addEventListener("click",this._handleChipClickBound),document.addEventListener("keydown",i._handleChipsKeydown),document.addEventListener("keyup",i._handleChipsKeyup),this.el.addEventListener("blur",i._handleChipsBlur,!0),this.$input[0].addEventListener("focus",this._handleInputFocusBound),this.$input[0].addEventListener("blur",this._handleInputBlurBound),this.$input[0].addEventListener("keydown",this._handleInputKeydownBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleChipClickBound),document.removeEventListener("keydown",i._handleChipsKeydown),document.removeEventListener("keyup",i._handleChipsKeyup),this.el.removeEventListener("blur",i._handleChipsBlur,!0),this.$input[0].removeEventListener("focus",this._handleInputFocusBound),this.$input[0].removeEventListener("blur",this._handleInputBlurBound),this.$input[0].removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleChipClick",value:function(e){var n=t(e.target).closest(".chip"),i=t(e.target).is(".close");if(n.length){var o=n.index();i?(this.deleteChip(o),this.$input[0].focus()):this.selectChip(o)}else this.$input[0].focus()}},{key:"_handleInputFocus",value:function(){this.$el.addClass("focus")}},{key:"_handleInputBlur",value:function(){this.$el.removeClass("focus")}},{key:"_handleInputKeydown",value:function(t){if(i._keydown=!0,13===t.keyCode){if(this.hasAutocomplete&&this.autocomplete&&this.autocomplete.isOpen)return;t.preventDefault(),this.addChip({tag:this.$input[0].value}),this.$input[0].value=""}else 8!==t.keyCode&&37!==t.keyCode||""!==this.$input[0].value||!this.chipsData.length||(t.preventDefault(),this.selectChip(this.chipsData.length-1))}},{key:"_renderChip",value:function(e){if(e.tag){var n=document.createElement("div"),i=document.createElement("i");if(n.classList.add("chip"),n.textContent=e.tag,n.setAttribute("tabindex",0),t(i).addClass("material-icons close"),i.textContent="close",e.image){var o=document.createElement("img");o.setAttribute("src",e.image),n.insertBefore(o,n.firstChild)}return n.appendChild(i),n}}},{key:"_renderChips",value:function(){this.$chips.remove();for(var t=0;t<this.chipsData.length;t++){var e=this._renderChip(this.chipsData[t]);this.$el.append(e),this.$chips.add(e)}this.$el.append(this.$input[0])}},{key:"_setupAutocomplete",value:function(){var t=this;this.options.autocompleteOptions.onAutocomplete=function(e){t.addChip({tag:e}),t.$input[0].value="",t.$input[0].focus()},this.autocomplete=M.Autocomplete.init(this.$input[0],this.options.autocompleteOptions)}},{key:"_setupInput",value:function(){this.$input=this.$el.find("input"),this.$input.length||(this.$input=t("<input></input>"),this.$el.append(this.$input)),this.$input.addClass("input")}},{key:"_setupLabel",value:function(){this.$label=this.$el.find("label"),this.$label.length&&this.$label.setAttribute("for",this.$input.attr("id"))}},{key:"_setPlaceholder",value:function(){void 0!==this.chipsData&&!this.chipsData.length&&this.options.placeholder?t(this.$input).prop("placeholder",this.options.placeholder):(void 0===this.chipsData||this.chipsData.length)&&this.options.secondaryPlaceholder&&t(this.$input).prop("placeholder",this.options.secondaryPlaceholder)}},{key:"_isValid",value:function(t){if(t.hasOwnProperty("tag")&&""!==t.tag){for(var e=!1,n=0;n<this.chipsData.length;n++)if(this.chipsData[n].tag===t.tag){e=!0;break}return!e}return!1}},{key:"addChip",value:function(e){if(this._isValid(e)&&!(this.chipsData.length>=this.options.limit)){var n=this._renderChip(e);this.$chips.add(n),this.chipsData.push(e),t(this.$input).before(n),this._setPlaceholder(),"function"==typeof this.options.onChipAdd&&this.options.onChipAdd.call(this,this.$el,n)}}},{key:"deleteChip",value:function(e){var n=this.$chips.eq(e);this.$chips.eq(e).remove(),this.$chips=this.$chips.filter((function(e){return t(e).index()>=0})),this.chipsData.splice(e,1),this._setPlaceholder(),"function"==typeof this.options.onChipDelete&&this.options.onChipDelete.call(this,this.$el,n[0])}},{key:"selectChip",value:function(t){var e=this.$chips.eq(t);this._selectedChip=e,e[0].focus(),"function"==typeof this.options.onChipSelect&&this.options.onChipSelect.call(this,this.$el,e[0])}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Chips}},{key:"_handleChipsKeydown",value:function(e){i._keydown=!0;var n=t(e.target).closest(".chips"),o=e.target&&n.length;if(!t(e.target).is("input, textarea")&&o){var r=n[0].M_Chips;if(8===e.keyCode||46===e.keyCode){e.preventDefault();var a=r.chipsData.length;if(r._selectedChip){var s=r._selectedChip.index();r.deleteChip(s),r._selectedChip=null,a=Math.max(s-1,0)}r.chipsData.length&&r.selectChip(a)}else if(37===e.keyCode){if(r._selectedChip){var l=r._selectedChip.index()-1;if(l<0)return;r.selectChip(l)}}else if(39===e.keyCode&&r._selectedChip){var u=r._selectedChip.index()+1;u>=r.chipsData.length?r.$input[0].focus():r.selectChip(u)}}}},{key:"_handleChipsKeyup",value:function(t){i._keydown=!1}},{key:"_handleChipsBlur",value:function(e){i._keydown||(t(e.target).closest(".chips")[0].M_Chips._selectedChip=null)}},{key:"defaults",get:function(){return e}}]),i}();n._keydown=!1,M.Chips=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"chips","M_Chips"),t(document).ready((function(){t(document.body).on("click",".chip .close",(function(){var e=t(this).closest(".chips");e.length&&e[0].M_Chips||t(this).closest(".chip").remove()}))}))}(cash),function(t){"use strict";var e={top:0,bottom:1/0,offset:0,onPositionChange:null},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Pushpin=o,o.options=t.extend({},i.defaults,n),o.originalOffset=o.el.offsetTop,i._pushpins.push(o),o._setupEventHandlers(),o._updatePosition(),o}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this.el.style.top=null,this._removePinClasses(),this._removeEventHandlers();var t=i._pushpins.indexOf(this);i._pushpins.splice(t,1)}},{key:"_setupEventHandlers",value:function(){document.addEventListener("scroll",i._updateElements)}},{key:"_removeEventHandlers",value:function(){document.removeEventListener("scroll",i._updateElements)}},{key:"_updatePosition",value:function(){var t=M.getDocumentScrollTop()+this.options.offset;this.options.top<=t&&this.options.bottom>=t&&!this.el.classList.contains("pinned")&&(this._removePinClasses(),this.el.style.top=this.options.offset+"px",this.el.classList.add("pinned"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pinned")),t<this.options.top&&!this.el.classList.contains("pin-top")&&(this._removePinClasses(),this.el.style.top=0,this.el.classList.add("pin-top"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-top")),t>this.options.bottom&&!this.el.classList.contains("pin-bottom")&&(this._removePinClasses(),this.el.classList.add("pin-bottom"),this.el.style.top=this.options.bottom-this.originalOffset+"px","function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-bottom"))}},{key:"_removePinClasses",value:function(){this.el.classList.remove("pin-top"),this.el.classList.remove("pinned"),this.el.classList.remove("pin-bottom")}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Pushpin}},{key:"_updateElements",value:function(){for(var t in i._pushpins){i._pushpins[t]._updatePosition()}}},{key:"defaults",get:function(){return e}}]),i}();n._pushpins=[],M.Pushpin=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"pushpin","M_Pushpin")}(cash),function(t,e){"use strict";var n={direction:"top",hoverEnabled:!0,toolbarEnabled:!1};t.fn.reverse=[].reverse;var i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_FloatingActionButton=i,i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.$anchor=i.$el.children("a").first(),i.$menu=i.$el.children("ul").first(),i.$floatingBtns=i.$el.find("ul .btn-floating"),i.$floatingBtnsReverse=i.$el.find("ul .btn-floating").reverse(),i.offsetY=0,i.offsetX=0,i.$el.addClass("direction-"+i.options.direction),"top"===i.options.direction?i.offsetY=40:"right"===i.options.direction?i.offsetX=-40:"bottom"===i.options.direction?i.offsetY=-40:i.offsetX=40,i._setupEventHandlers(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_FloatingActionButton=void 0}},{key:"_setupEventHandlers",value:function(){this._handleFABClickBound=this._handleFABClick.bind(this),this._handleOpenBound=this.open.bind(this),this._handleCloseBound=this.close.bind(this),this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.addEventListener("mouseenter",this._handleOpenBound),this.el.addEventListener("mouseleave",this._handleCloseBound)):this.el.addEventListener("click",this._handleFABClickBound)}},{key:"_removeEventHandlers",value:function(){this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.removeEventListener("mouseenter",this._handleOpenBound),this.el.removeEventListener("mouseleave",this._handleCloseBound)):this.el.removeEventListener("click",this._handleFABClickBound)}},{key:"_handleFABClick",value:function(){this.isOpen?this.close():this.open()}},{key:"_handleDocumentClick",value:function(e){t(e.target).closest(this.$menu).length||this.close()}},{key:"open",value:function(){this.isOpen||(this.options.toolbarEnabled?this._animateInToolbar():this._animateInFAB(),this.isOpen=!0)}},{key:"close",value:function(){this.isOpen&&(this.options.toolbarEnabled?(window.removeEventListener("scroll",this._handleCloseBound,!0),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),this._animateOutToolbar()):this._animateOutFAB(),this.isOpen=!1)}},{key:"_animateInFAB",value:function(){var t=this;this.$el.addClass("active");var n=0;this.$floatingBtnsReverse.each((function(i){e({targets:i,opacity:1,scale:[.4,1],translateY:[t.offsetY,0],translateX:[t.offsetX,0],duration:275,delay:n,easing:"easeInOutQuad"}),n+=40}))}},{key:"_animateOutFAB",value:function(){var t=this;this.$floatingBtnsReverse.each((function(n){e.remove(n),e({targets:n,opacity:0,scale:.4,translateY:t.offsetY,translateX:t.offsetX,duration:175,easing:"easeOutQuad",complete:function(){t.$el.removeClass("active")}})}))}},{key:"_animateInToolbar",value:function(){var e,n=this,i=window.innerWidth,o=window.innerHeight,r=this.el.getBoundingClientRect(),a=t('<div class="fab-backdrop"></div>'),s=this.$anchor.css("background-color");this.$anchor.append(a),this.offsetX=r.left-i/2+r.width/2,this.offsetY=o-r.bottom,e=i/a[0].clientWidth,this.btnBottom=r.bottom,this.btnLeft=r.left,this.btnWidth=r.width,this.$el.addClass("active"),this.$el.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+this.offsetX+"px)",transition:"none"}),this.$anchor.css({transform:"translateY("+-this.offsetY+"px)",transition:"none"}),a.css({"background-color":s}),setTimeout((function(){n.$el.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),n.$anchor.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout((function(){n.$el.css({overflow:"hidden","background-color":s}),a.css({transform:"scale("+e+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),n.$menu.children("li").children("a").css({opacity:1}),n._handleDocumentClickBound=n._handleDocumentClick.bind(n),window.addEventListener("scroll",n._handleCloseBound,!0),document.body.addEventListener("click",n._handleDocumentClickBound,!0)}),100)}),0)}},{key:"_animateOutToolbar",value:function(){var t=this,e=window.innerWidth,n=window.innerHeight,i=this.$el.find(".fab-backdrop"),o=this.$anchor.css("background-color");this.offsetX=this.btnLeft-e/2+this.btnWidth/2,this.offsetY=n-this.btnBottom,this.$el.removeClass("active"),this.$el.css({"background-color":"transparent",transition:"none"}),this.$anchor.css({transition:"none"}),i.css({transform:"scale(0)","background-color":o}),this.$menu.children("li").children("a").css({opacity:""}),setTimeout((function(){i.remove(),t.$el.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-t.offsetX+"px,0,0)"}),t.$anchor.css({overflow:"",transform:"translate3d(0,"+t.offsetY+"px,0)"}),setTimeout((function(){t.$el.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),t.$anchor.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})}),20)}),200)}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FloatingActionButton}},{key:"defaults",get:function(){return n}}]),o}();M.FloatingActionButton=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"floatingActionButton","M_FloatingActionButton")}(cash,M.anime),function(t){"use strict";var e={autoClose:!1,format:"mmm dd, yyyy",parse:null,defaultDate:null,setDefaultDate:!1,disableWeekends:!1,disableDayFn:null,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,container:null,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok",previousMonth:"‹",nextMonth:"›",months:["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"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysAbbrev:["S","M","T","W","T","F","S"]},events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));o.el.M_Datepicker=o,o.options=t.extend({},i.defaults,n),n&&n.hasOwnProperty("i18n")&&"object"==typeof n.i18n&&(o.options.i18n=t.extend({},i.defaults.i18n,n.i18n)),o.options.minDate&&o.options.minDate.setHours(0,0,0,0),o.options.maxDate&&o.options.maxDate.setHours(0,0,0,0),o.id=M.guid(),o._setupVariables(),o._insertHTMLIntoDOM(),o._setupModal(),o._setupEventHandlers(),o.options.defaultDate||(o.options.defaultDate=new Date(Date.parse(o.el.value)));var r=o.options.defaultDate;return i._isDate(r)?o.options.setDefaultDate?(o.setDate(r,!0),o.setInputValue()):o.gotoDate(r):o.gotoDate(new Date),o.isOpen=!1,o}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),t(this.modalEl).remove(),this.destroySelects(),this.el.M_Datepicker=void 0}},{key:"destroySelects",value:function(){var t=this.calendarEl.querySelector(".orig-select-year");t&&M.FormSelect.getInstance(t).destroy();var e=this.calendarEl.querySelector(".orig-select-month");e&&M.FormSelect.getInstance(e).destroy()}},{key:"_insertHTMLIntoDOM",value:function(){this.options.showClearBtn&&(t(this.clearBtn).css({visibility:""}),this.clearBtn.innerHTML=this.options.i18n.clear),this.doneBtn.innerHTML=this.options.i18n.done,this.cancelBtn.innerHTML=this.options.i18n.cancel,this.options.container?this.$modalEl.appendTo(this.options.container):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modalEl.id="modal-"+this.id,this.modal=M.Modal.init(this.modalEl,{onCloseEnd:function(){t.isOpen=!1}})}},{key:"toString",value:function(t){var e=this;return t=t||this.options.format,i._isDate(this.date)?t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g).map((function(t){return e.formats[t]?e.formats[t]():t})).join(""):""}},{key:"setDate",value:function(t,e){if(!t)return this.date=null,this._renderDateDisplay(),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),i._isDate(t)){var n=this.options.minDate,o=this.options.maxDate;i._isDate(n)&&t<n?t=n:i._isDate(o)&&t>o&&(t=o),this.date=new Date(t.getTime()),this._renderDateDisplay(),i._setToStartOfDay(this.date),this.gotoDate(this.date),e||"function"!=typeof this.options.onSelect||this.options.onSelect.call(this,this.date)}}},{key:"setInputValue",value:function(){this.el.value=this.toString(),this.$el.trigger("change",{firedBy:this})}},{key:"_renderDateDisplay",value:function(){var t=i._isDate(this.date)?this.date:new Date,e=this.options.i18n,n=e.weekdaysShort[t.getDay()],o=e.monthsShort[t.getMonth()],r=t.getDate();this.yearTextEl.innerHTML=t.getFullYear(),this.dateTextEl.innerHTML=n+", "+o+" "+r}},{key:"gotoDate",value:function(t){var e=!0;if(i._isDate(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=t.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),e=r<n.getTime()||o.getTime()<r}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}]),this.adjustCalendars()}}},{key:"adjustCalendars",value:function(){this.calendars[0]=this.adjustCalendar(this.calendars[0]),this.draw()}},{key:"adjustCalendar",value:function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t}},{key:"nextMonth",value:function(){this.calendars[0].month++,this.adjustCalendars()}},{key:"prevMonth",value:function(){this.calendars[0].month--,this.adjustCalendars()}},{key:"render",value:function(t,e,n){var o=this.options,r=new Date,a=i._getDaysInMonth(t,e),s=new Date(t,e,1).getDay(),l=[],u=[];i._setToStartOfDay(r),o.firstDay>0&&(s-=o.firstDay)<0&&(s+=7);for(var c=0===e?11:e-1,d=11===e?0:e+1,h=0===e?t-1:t,f=11===e?t+1:t,p=i._getDaysInMonth(h,c),v=a+s,m=v;m>7;)m-=7;v+=7-m;for(var g=!1,y=0,b=0;y<v;y++){var _=new Date(t,e,y-s+1),w=!!i._isDate(this.date)&&i._compareDates(_,this.date),C=i._compareDates(_,r),k=-1!==o.events.indexOf(_.toDateString()),x=y<s||y>=a+s,S=y-s+1,T=e,D=t,E=o.startRange&&i._compareDates(o.startRange,_),O=o.endRange&&i._compareDates(o.endRange,_),M=o.startRange&&o.endRange&&o.startRange<_&&_<o.endRange;x&&(y<s?(S=p+S,T=c,D=h):(S-=a,T=d,D=f));var L={day:S,month:T,year:D,hasEvent:k,isSelected:w,isToday:C,isDisabled:o.minDate&&_<o.minDate||o.maxDate&&_>o.maxDate||o.disableWeekends&&i._isWeekend(_)||o.disableDayFn&&o.disableDayFn(_),isEmpty:x,isStartRange:E,isEndRange:O,isInRange:M,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths};u.push(this.renderDay(L)),7==++b&&(l.push(this.renderRow(u,o.isRTL,g)),u=[],b=0,g=!1)}return this.renderTable(o,l,n)}},{key:"renderDay",value:function(t){var e=[],n="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="datepicker-day-button" type="button" data-year="'+t.year+'" data-month="'+t.month+'" data-day="'+t.day+'">'+t.day+"</button></td>"}},{key:"renderRow",value:function(t,e,n){return'<tr class="datepicker-row'+(n?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"}},{key:"renderTable",value:function(t,e,n){return'<div class="datepicker-table-wrapper"><table cellpadding="0" cellspacing="0" class="datepicker-table" role="grid" aria-labelledby="'+n+'">'+this.renderHead(t)+this.renderBody(e)+"</table></div>"}},{key:"renderHead",value:function(t){var e=void 0,n=[];for(e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+this.renderDayName(t,e)+'">'+this.renderDayName(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"}},{key:"renderBody",value:function(t){return"<tbody>"+t.join("")+"</tbody>"}},{key:"renderTitle",value:function(e,n,i,o,r,a){var s,l,u=void 0,c=void 0,d=void 0,h=this.options,f=i===h.minYear,p=i===h.maxYear,v='<div id="'+a+'" class="datepicker-controls" role="heading" aria-live="assertive">',m=!0,g=!0;for(d=[],u=0;u<12;u++)d.push('<option value="'+(i===r?u-n:12+u-n)+'"'+(u===o?' selected="selected"':"")+(f&&u<h.minMonth||p&&u>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[u]+"</option>");for(s='<select class="datepicker-select orig-select-month" tabindex="-1">'+d.join("")+"</select>",t.isArray(h.yearRange)?(u=h.yearRange[0],c=h.yearRange[1]+1):(u=i-h.yearRange,c=1+i+h.yearRange),d=[];u<c&&u<=h.maxYear;u++)u>=h.minYear&&d.push('<option value="'+u+'" '+(u===i?'selected="selected"':"")+">"+u+"</option>");l='<select class="datepicker-select orig-select-year" tabindex="-1">'+d.join("")+"</select>";v+='<button class="month-prev'+(m?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/><path d="M0-.5h24v24H0z" fill="none"/></svg></button>',v+='<div class="selects-container">',h.showMonthAfterYear?v+=l+s:v+=s+l,v+="</div>",f&&(0===o||h.minMonth>=o)&&(m=!1),p&&(11===o||h.maxMonth<=o)&&(g=!1);return(v+='<button class="month-next'+(g?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/><path d="M0-.25h24v24H0z" fill="none"/></svg></button>')+"</div>"}},{key:"draw",value:function(t){if(this.isOpen||t){var e,n=this.options,i=n.minYear,o=n.maxYear,r=n.minMonth,a=n.maxMonth,s="";this._y<=i&&(this._y=i,!isNaN(r)&&this._m<r&&(this._m=r)),this._y>=o&&(this._y=o,!isNaN(a)&&this._m>a&&(this._m=a)),e="datepicker-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<1;l++)this._renderDateDisplay(),s+=this.renderTitle(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,e)+this.render(this.calendars[l].year,this.calendars[l].month,e);this.destroySelects(),this.calendarEl.innerHTML=s;var u=this.calendarEl.querySelector(".orig-select-year"),c=this.calendarEl.querySelector(".orig-select-month");M.FormSelect.init(u,{classes:"select-year",dropdownOptions:{container:document.body,constrainWidth:!1}}),M.FormSelect.init(c,{classes:"select-month",dropdownOptions:{container:document.body,constrainWidth:!1}}),u.addEventListener("change",this._handleYearChange.bind(this)),c.addEventListener("change",this._handleMonthChange.bind(this)),"function"==typeof this.options.onDraw&&this.options.onDraw(this)}}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleInputChangeBound=this._handleInputChange.bind(this),this._handleCalendarClickBound=this._handleCalendarClick.bind(this),this._finishSelectionBound=this._finishSelection.bind(this),this._handleMonthChange=this._handleMonthChange.bind(this),this._closeBound=this.close.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("change",this._handleInputChangeBound),this.calendarEl.addEventListener("click",this._handleCalendarClickBound),this.doneBtn.addEventListener("click",this._finishSelectionBound),this.cancelBtn.addEventListener("click",this._closeBound),this.options.showClearBtn&&(this._handleClearClickBound=this._handleClearClick.bind(this),this.clearBtn.addEventListener("click",this._handleClearClickBound))}},{key:"_setupVariables",value:function(){var e=this;this.$modalEl=t(i._template),this.modalEl=this.$modalEl[0],this.calendarEl=this.modalEl.querySelector(".datepicker-calendar"),this.yearTextEl=this.modalEl.querySelector(".year-text"),this.dateTextEl=this.modalEl.querySelector(".date-text"),this.options.showClearBtn&&(this.clearBtn=this.modalEl.querySelector(".datepicker-clear")),this.doneBtn=this.modalEl.querySelector(".datepicker-done"),this.cancelBtn=this.modalEl.querySelector(".datepicker-cancel"),this.formats={d:function(){return e.date.getDate()},dd:function(){var t=e.date.getDate();return(t<10?"0":"")+t},ddd:function(){return e.options.i18n.weekdaysShort[e.date.getDay()]},dddd:function(){return e.options.i18n.weekdays[e.date.getDay()]},m:function(){return e.date.getMonth()+1},mm:function(){var t=e.date.getMonth()+1;return(t<10?"0":"")+t},mmm:function(){return e.options.i18n.monthsShort[e.date.getMonth()]},mmmm:function(){return e.options.i18n.months[e.date.getMonth()]},yy:function(){return(""+e.date.getFullYear()).slice(2)},yyyy:function(){return e.date.getFullYear()}}}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("change",this._handleInputChangeBound),this.calendarEl.removeEventListener("click",this._handleCalendarClickBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleCalendarClick",value:function(e){if(this.isOpen){var n=t(e.target);n.hasClass("is-disabled")||(!n.hasClass("datepicker-day-button")||n.hasClass("is-empty")||n.parent().hasClass("is-disabled")?n.closest(".month-prev").length?this.prevMonth():n.closest(".month-next").length&&this.nextMonth():(this.setDate(new Date(e.target.getAttribute("data-year"),e.target.getAttribute("data-month"),e.target.getAttribute("data-day"))),this.options.autoClose&&this._finishSelection()))}}},{key:"_handleClearClick",value:function(){this.date=null,this.setInputValue(),this.close()}},{key:"_handleMonthChange",value:function(t){this.gotoMonth(t.target.value)}},{key:"_handleYearChange",value:function(t){this.gotoYear(t.target.value)}},{key:"gotoMonth",value:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())}},{key:"gotoYear",value:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())}},{key:"_handleInputChange",value:function(t){var e=void 0;t.firedBy!==this&&(e=this.options.parse?this.options.parse(this.el.value,this.options.format):new Date(Date.parse(this.el.value)),i._isDate(e)&&this.setDate(e))}},{key:"renderDayName",value:function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysAbbrev[e]:t.i18n.weekdays[e]}},{key:"_finishSelection",value:function(){this.setInputValue(),this.close()}},{key:"open",value:function(){if(!this.isOpen)return this.isOpen=!0,"function"==typeof this.options.onOpen&&this.options.onOpen.call(this),this.draw(),this.modal.open(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,"function"==typeof this.options.onClose&&this.options.onClose.call(this),this.modal.close(),this}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"_isDate",value:function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())}},{key:"_isWeekend",value:function(t){var e=t.getDay();return 0===e||6===e}},{key:"_setToStartOfDay",value:function(t){i._isDate(t)&&t.setHours(0,0,0,0)}},{key:"_getDaysInMonth",value:function(t,e){return[31,i._isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}},{key:"_isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"_compareDates",value:function(t,e){return t.getTime()===e.getTime()}},{key:"_setToStartOfDay",value:function(t){i._isDate(t)&&t.setHours(0,0,0,0)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Datepicker}},{key:"defaults",get:function(){return e}}]),i}();n._template=['<div class= "modal datepicker-modal">','<div class="modal-content datepicker-container">','<div class="datepicker-date-display">','<span class="year-text"></span>','<span class="date-text"></span>',"</div>",'<div class="datepicker-calendar-container">','<div class="datepicker-calendar"></div>','<div class="datepicker-footer">','<button class="btn-flat datepicker-clear waves-effect" style="visibility: hidden;" type="button"></button>','<div class="confirmation-btns">','<button class="btn-flat datepicker-cancel waves-effect" type="button"></button>','<button class="btn-flat datepicker-done waves-effect" type="button"></button>',"</div>","</div>","</div>","</div>","</div>"].join(""),M.Datepicker=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"datepicker","M_Datepicker")}(cash),function(t){"use strict";var e={dialRadius:135,outerRadius:105,innerRadius:70,tickRadius:20,duration:350,container:null,defaultTime:"now",fromNow:0,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok"},autoClose:!1,twelveHour:!0,vibrate:!0,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onSelect:null},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Timepicker=o,o.options=t.extend({},i.defaults,n),o.id=M.guid(),o._insertHTMLIntoDOM(),o._setupModal(),o._setupVariables(),o._setupEventHandlers(),o._clockSetup(),o._pickerSetup(),o}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),t(this.modalEl).remove(),this.el.M_Timepicker=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleClockClickStartBound=this._handleClockClickStart.bind(this),this._handleDocumentClickMoveBound=this._handleDocumentClickMove.bind(this),this._handleDocumentClickEndBound=this._handleDocumentClickEnd.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.plate.addEventListener("mousedown",this._handleClockClickStartBound),this.plate.addEventListener("touchstart",this._handleClockClickStartBound),t(this.spanHours).on("click",this.showView.bind(this,"hours")),t(this.spanMinutes).on("click",this.showView.bind(this,"minutes"))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleClockClickStart",value:function(t){t.preventDefault();var e=this.plate.getBoundingClientRect(),n=e.left,o=e.top;this.x0=n+this.options.dialRadius,this.y0=o+this.options.dialRadius,this.moved=!1;var r=i._Pos(t);this.dx=r.x-this.x0,this.dy=r.y-this.y0,this.setHand(this.dx,this.dy,!1),document.addEventListener("mousemove",this._handleDocumentClickMoveBound),document.addEventListener("touchmove",this._handleDocumentClickMoveBound),document.addEventListener("mouseup",this._handleDocumentClickEndBound),document.addEventListener("touchend",this._handleDocumentClickEndBound)}},{key:"_handleDocumentClickMove",value:function(t){t.preventDefault();var e=i._Pos(t),n=e.x-this.x0,o=e.y-this.y0;this.moved=!0,this.setHand(n,o,!1,!0)}},{key:"_handleDocumentClickEnd",value:function(e){var n=this;e.preventDefault(),document.removeEventListener("mouseup",this._handleDocumentClickEndBound),document.removeEventListener("touchend",this._handleDocumentClickEndBound);var o=i._Pos(e),r=o.x-this.x0,a=o.y-this.y0;this.moved&&r===this.dx&&a===this.dy&&this.setHand(r,a),"hours"===this.currentView?this.showView("minutes",this.options.duration/2):this.options.autoClose&&(t(this.minutesView).addClass("timepicker-dial-out"),setTimeout((function(){n.done()}),this.options.duration/2)),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.hours,this.minutes),document.removeEventListener("mousemove",this._handleDocumentClickMoveBound),document.removeEventListener("touchmove",this._handleDocumentClickMoveBound)}},{key:"_insertHTMLIntoDOM",value:function(){this.$modalEl=t(i._template),this.modalEl=this.$modalEl[0],this.modalEl.id="modal-"+this.id;var e=document.querySelector(this.options.container);this.options.container&&e?this.$modalEl.appendTo(e):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modal=M.Modal.init(this.modalEl,{onOpenStart:this.options.onOpenStart,onOpenEnd:this.options.onOpenEnd,onCloseStart:this.options.onCloseStart,onCloseEnd:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t),t.isOpen=!1}})}},{key:"_setupVariables",value:function(){this.currentView="hours",this.vibrate=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null,this._canvas=this.modalEl.querySelector(".timepicker-canvas"),this.plate=this.modalEl.querySelector(".timepicker-plate"),this.hoursView=this.modalEl.querySelector(".timepicker-hours"),this.minutesView=this.modalEl.querySelector(".timepicker-minutes"),this.spanHours=this.modalEl.querySelector(".timepicker-span-hours"),this.spanMinutes=this.modalEl.querySelector(".timepicker-span-minutes"),this.spanAmPm=this.modalEl.querySelector(".timepicker-span-am-pm"),this.footer=this.modalEl.querySelector(".timepicker-footer"),this.amOrPm="PM"}},{key:"_pickerSetup",value:function(){var e=t('<button class="btn-flat timepicker-clear waves-effect" style="visibility: hidden;" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.clear+"</button>").appendTo(this.footer).on("click",this.clear.bind(this));this.options.showClearBtn&&e.css({visibility:""});var n=t('<div class="confirmation-btns"></div>');t('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.cancel+"</button>").appendTo(n).on("click",this.close.bind(this)),t('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.done+"</button>").appendTo(n).on("click",this.done.bind(this)),n.appendTo(this.footer)}},{key:"_clockSetup",value:function(){this.options.twelveHour&&(this.$amBtn=t('<div class="am-btn">AM</div>'),this.$pmBtn=t('<div class="pm-btn">PM</div>'),this.$amBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm),this.$pmBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm)),this._buildHoursView(),this._buildMinutesView(),this._buildSVGClock()}},{key:"_buildSVGClock",value:function(){var t=this.options.dialRadius,e=this.options.tickRadius,n=2*t,o=i._createSVGEl("svg");o.setAttribute("class","timepicker-svg"),o.setAttribute("width",n),o.setAttribute("height",n);var r=i._createSVGEl("g");r.setAttribute("transform","translate("+t+","+t+")");var a=i._createSVGEl("circle");a.setAttribute("class","timepicker-canvas-bearing"),a.setAttribute("cx",0),a.setAttribute("cy",0),a.setAttribute("r",4);var s=i._createSVGEl("line");s.setAttribute("x1",0),s.setAttribute("y1",0);var l=i._createSVGEl("circle");l.setAttribute("class","timepicker-canvas-bg"),l.setAttribute("r",e),r.appendChild(s),r.appendChild(l),r.appendChild(a),o.appendChild(r),this._canvas.appendChild(o),this.hand=s,this.bg=l,this.bearing=a,this.g=r}},{key:"_buildHoursView",value:function(){var e=t('<div class="timepicker-tick"></div>');if(this.options.twelveHour)for(var n=1;n<13;n+=1){var i=e.clone(),o=n/6*Math.PI,r=this.options.outerRadius;i.css({left:this.options.dialRadius+Math.sin(o)*r-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(o)*r-this.options.tickRadius+"px"}),i.html(0===n?"00":n),this.hoursView.appendChild(i[0])}else for(var a=0;a<24;a+=1){var s=e.clone(),l=a/6*Math.PI,u=a>0&&a<13?this.options.innerRadius:this.options.outerRadius;s.css({left:this.options.dialRadius+Math.sin(l)*u-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(l)*u-this.options.tickRadius+"px"}),s.html(0===a?"00":a),this.hoursView.appendChild(s[0])}}},{key:"_buildMinutesView",value:function(){for(var e=t('<div class="timepicker-tick"></div>'),n=0;n<60;n+=5){var o=e.clone(),r=n/30*Math.PI;o.css({left:this.options.dialRadius+Math.sin(r)*this.options.outerRadius-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(r)*this.options.outerRadius-this.options.tickRadius+"px"}),o.html(i._addLeadingZero(n)),this.minutesView.appendChild(o[0])}}},{key:"_handleAmPmClick",value:function(e){var n=t(e.target);this.amOrPm=n.hasClass("am-btn")?"AM":"PM",this._updateAmPmView()}},{key:"_updateAmPmView",value:function(){this.options.twelveHour&&(this.$amBtn.toggleClass("text-primary","AM"===this.amOrPm),this.$pmBtn.toggleClass("text-primary","PM"===this.amOrPm))}},{key:"_updateTimeFromInput",value:function(){var t=((this.el.value||this.options.defaultTime||"")+"").split(":");if(this.options.twelveHour&&void 0!==t[1]&&(t[1].toUpperCase().indexOf("AM")>0?this.amOrPm="AM":this.amOrPm="PM",t[1]=t[1].replace("AM","").replace("PM","")),"now"===t[0]){var e=new Date(+new Date+this.options.fromNow);t=[e.getHours(),e.getMinutes()],this.options.twelveHour&&(this.amOrPm=t[0]>=12&&t[0]<24?"PM":"AM")}this.hours=+t[0]||0,this.minutes=+t[1]||0,this.spanHours.innerHTML=this.hours,this.spanMinutes.innerHTML=i._addLeadingZero(this.minutes),this._updateAmPmView()}},{key:"showView",value:function(e,n){"minutes"===e&&t(this.hoursView).css("visibility");var i="hours"===e,o=i?this.hoursView:this.minutesView,r=i?this.minutesView:this.hoursView;this.currentView=e,t(this.spanHours).toggleClass("text-primary",i),t(this.spanMinutes).toggleClass("text-primary",!i),r.classList.add("timepicker-dial-out"),t(o).css("visibility","visible").removeClass("timepicker-dial-out"),this.resetClock(n),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout((function(){t(r).css("visibility","hidden")}),this.options.duration)}},{key:"resetClock",value:function(e){var n=this.currentView,i=this[n],o="hours"===n,r=i*(Math.PI/(o?6:30)),a=o&&i>0&&i<13?this.options.innerRadius:this.options.outerRadius,s=Math.sin(r)*a,l=-Math.cos(r)*a,u=this;e?(t(this.canvas).addClass("timepicker-canvas-out"),setTimeout((function(){t(u.canvas).removeClass("timepicker-canvas-out"),u.setHand(s,l)}),e)):this.setHand(s,l)}},{key:"setHand",value:function(t,e,n){var o=this,r=Math.atan2(t,-e),a="hours"===this.currentView,s=Math.PI/(a||n?6:30),l=Math.sqrt(t*t+e*e),u=a&&l<(this.options.outerRadius+this.options.innerRadius)/2,c=u?this.options.innerRadius:this.options.outerRadius;this.options.twelveHour&&(c=this.options.outerRadius),r<0&&(r=2*Math.PI+r);var d=Math.round(r/s);r=d*s,this.options.twelveHour?a?0===d&&(d=12):(n&&(d*=5),60===d&&(d=0)):a?(12===d&&(d=0),d=u?0===d?12:d:0===d?0:d+12):(n&&(d*=5),60===d&&(d=0)),this[this.currentView]!==d&&this.vibrate&&this.options.vibrate&&(this.vibrateTimer||(navigator[this.vibrate](10),this.vibrateTimer=setTimeout((function(){o.vibrateTimer=null}),100))),this[this.currentView]=d,a?this.spanHours.innerHTML=d:this.spanMinutes.innerHTML=i._addLeadingZero(d);var h=Math.sin(r)*(c-this.options.tickRadius),f=-Math.cos(r)*(c-this.options.tickRadius),p=Math.sin(r)*c,v=-Math.cos(r)*c;this.hand.setAttribute("x2",h),this.hand.setAttribute("y2",f),this.bg.setAttribute("cx",p),this.bg.setAttribute("cy",v)}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this._updateTimeFromInput(),this.showView("hours"),this.modal.open())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.modal.close())}},{key:"done",value:function(t,e){var n=this.el.value,o=e?"":i._addLeadingZero(this.hours)+":"+i._addLeadingZero(this.minutes);this.time=o,!e&&this.options.twelveHour&&(o=o+" "+this.amOrPm),this.el.value=o,o!==n&&this.$el.trigger("change"),this.close(),this.el.focus()}},{key:"clear",value:function(){this.done(null,!0)}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"_addLeadingZero",value:function(t){return(t<10?"0":"")+t}},{key:"_createSVGEl",value:function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},{key:"_Pos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?{x:t.targetTouches[0].clientX,y:t.targetTouches[0].clientY}:{x:t.clientX,y:t.clientY}}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Timepicker}},{key:"defaults",get:function(){return e}}]),i}();n._template=['<div class= "modal timepicker-modal">','<div class="modal-content timepicker-container">','<div class="timepicker-digital-display">','<div class="timepicker-text-container">','<div class="timepicker-display-column">','<span class="timepicker-span-hours text-primary"></span>',":",'<span class="timepicker-span-minutes"></span>',"</div>",'<div class="timepicker-display-column timepicker-display-am-pm">','<div class="timepicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="timepicker-analog-display">','<div class="timepicker-plate">','<div class="timepicker-canvas"></div>','<div class="timepicker-dial timepicker-hours"></div>','<div class="timepicker-dial timepicker-minutes timepicker-dial-out"></div>',"</div>",'<div class="timepicker-footer"></div>',"</div>","</div>","</div>"].join(""),M.Timepicker=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"timepicker","M_Timepicker")}(cash),function(t){"use strict";var e={},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_CharacterCounter=o,o.options=t.extend({},i.defaults,n),o.isInvalid=!1,o.isValidLength=!1,o._setupCounter(),o._setupEventHandlers(),o}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.CharacterCounter=void 0,this._removeCounter()}},{key:"_setupEventHandlers",value:function(){this._handleUpdateCounterBound=this.updateCounter.bind(this),this.el.addEventListener("focus",this._handleUpdateCounterBound,!0),this.el.addEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("focus",this._handleUpdateCounterBound,!0),this.el.removeEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_setupCounter",value:function(){this.counterEl=document.createElement("span"),t(this.counterEl).addClass("character-counter").css({float:"right","font-size":"12px",height:1}),this.$el.parent().append(this.counterEl)}},{key:"_removeCounter",value:function(){t(this.counterEl).remove()}},{key:"updateCounter",value:function(){var e=+this.$el.attr("data-length"),n=this.el.value.length;this.isValidLength=n<=e;var i=n;e&&(i+="/"+e,this._validateInput()),t(this.counterEl).html(i)}},{key:"_validateInput",value:function(){this.isValidLength&&this.isInvalid?(this.isInvalid=!1,this.$el.removeClass("invalid")):this.isValidLength||this.isInvalid||(this.isInvalid=!0,this.$el.removeClass("valid"),this.$el.addClass("invalid"))}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_CharacterCounter}},{key:"defaults",get:function(){return e}}]),i}();M.CharacterCounter=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"characterCounter","M_CharacterCounter")}(cash),function(t){"use strict";var e={duration:200,dist:-100,shift:0,padding:0,numVisible:5,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Carousel=o,o.options=t.extend({},i.defaults,n),o.hasMultipleSlides=o.$el.find(".carousel-item").length>1,o.showIndicators=o.options.indicators&&o.hasMultipleSlides,o.noWrap=o.options.noWrap||!o.hasMultipleSlides,o.pressed=!1,o.dragged=!1,o.offset=o.target=0,o.images=[],o.itemWidth=o.$el.find(".carousel-item").first().innerWidth(),o.itemHeight=o.$el.find(".carousel-item").first().innerHeight(),o.dim=2*o.itemWidth+o.options.padding||1,o._autoScrollBound=o._autoScroll.bind(o),o._trackBound=o._track.bind(o),o.options.fullWidth&&(o.options.dist=0,o._setCarouselHeight(),o.showIndicators&&o.$el.find(".carousel-fixed-item").addClass("with-indicators")),o.$indicators=t('<ul class="indicators"></ul>'),o.$el.find(".carousel-item").each((function(e,n){if(o.images.push(e),o.showIndicators){var i=t('<li class="indicator-item"></li>');0===n&&i[0].classList.add("active"),o.$indicators.append(i)}})),o.showIndicators&&o.$el.append(o.$indicators),o.count=o.images.length,o.options.numVisible=Math.min(o.count,o.options.numVisible),o.xform="transform",["webkit","Moz","O","ms"].every((function(t){var e=t+"Transform";return void 0===document.body.style[e]||(o.xform=e,!1)})),o._setupEventHandlers(),o._scroll(o.offset),o}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Carousel=void 0}},{key:"_setupEventHandlers",value:function(){var t=this;this._handleCarouselTapBound=this._handleCarouselTap.bind(this),this._handleCarouselDragBound=this._handleCarouselDrag.bind(this),this._handleCarouselReleaseBound=this._handleCarouselRelease.bind(this),this._handleCarouselClickBound=this._handleCarouselClick.bind(this),void 0!==window.ontouchstart&&(this.el.addEventListener("touchstart",this._handleCarouselTapBound),this.el.addEventListener("touchmove",this._handleCarouselDragBound),this.el.addEventListener("touchend",this._handleCarouselReleaseBound)),this.el.addEventListener("mousedown",this._handleCarouselTapBound),this.el.addEventListener("mousemove",this._handleCarouselDragBound),this.el.addEventListener("mouseup",this._handleCarouselReleaseBound),this.el.addEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.addEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&(this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.$indicators.find(".indicator-item").each((function(e,n){e.addEventListener("click",t._handleIndicatorClickBound)})));var e=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=e.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){var t=this;void 0!==window.ontouchstart&&(this.el.removeEventListener("touchstart",this._handleCarouselTapBound),this.el.removeEventListener("touchmove",this._handleCarouselDragBound),this.el.removeEventListener("touchend",this._handleCarouselReleaseBound)),this.el.removeEventListener("mousedown",this._handleCarouselTapBound),this.el.removeEventListener("mousemove",this._handleCarouselDragBound),this.el.removeEventListener("mouseup",this._handleCarouselReleaseBound),this.el.removeEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.removeEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&this.$indicators.find(".indicator-item").each((function(e,n){e.removeEventListener("click",t._handleIndicatorClickBound)})),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleCarouselTap",value:function(e){"mousedown"===e.type&&t(e.target).is("img")&&e.preventDefault(),this.pressed=!0,this.dragged=!1,this.verticalDragged=!1,this.reference=this._xpos(e),this.referenceY=this._ypos(e),this.velocity=this.amplitude=0,this.frame=this.offset,this.timestamp=Date.now(),clearInterval(this.ticker),this.ticker=setInterval(this._trackBound,100)}},{key:"_handleCarouselDrag",value:function(t){var e=void 0,n=void 0,i=void 0;if(this.pressed)if(e=this._xpos(t),n=this._ypos(t),i=this.reference-e,Math.abs(this.referenceY-n)<30&&!this.verticalDragged)(i>2||i<-2)&&(this.dragged=!0,this.reference=e,this._scroll(this.offset+i));else{if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1;this.verticalDragged=!0}if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1}},{key:"_handleCarouselRelease",value:function(t){if(this.pressed)return this.pressed=!1,clearInterval(this.ticker),this.target=this.offset,(this.velocity>10||this.velocity<-10)&&(this.amplitude=.9*this.velocity,this.target=this.offset+this.amplitude),this.target=Math.round(this.target/this.dim)*this.dim,this.noWrap&&(this.target>=this.dim*(this.count-1)?this.target=this.dim*(this.count-1):this.target<0&&(this.target=0)),this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound),this.dragged&&(t.preventDefault(),t.stopPropagation()),!1}},{key:"_handleCarouselClick",value:function(e){if(this.dragged)return e.preventDefault(),e.stopPropagation(),!1;if(!this.options.fullWidth){var n=t(e.target).closest(".carousel-item").index();0!==this._wrap(this.center)-n&&(e.preventDefault(),e.stopPropagation()),this._cycleTo(n)}}},{key:"_handleIndicatorClick",value:function(e){e.stopPropagation();var n=t(e.target).closest(".indicator-item");n.length&&this._cycleTo(n.index())}},{key:"_handleResize",value:function(t){this.options.fullWidth?(this.itemWidth=this.$el.find(".carousel-item").first().innerWidth(),this.imageHeight=this.$el.find(".carousel-item.active").height(),this.dim=2*this.itemWidth+this.options.padding,this.offset=2*this.center*this.itemWidth,this.target=this.offset,this._setCarouselHeight(!0)):this._scroll()}},{key:"_setCarouselHeight",value:function(t){var e=this,n=this.$el.find(".carousel-item.active").length?this.$el.find(".carousel-item.active").first():this.$el.find(".carousel-item").first(),i=n.find("img").first();if(i.length)if(i[0].complete){var o=i.height();if(o>0)this.$el.css("height",o+"px");else{var r=i[0].naturalWidth,a=i[0].naturalHeight,s=this.$el.width()/r*a;this.$el.css("height",s+"px")}}else i.one("load",(function(t,n){e.$el.css("height",t.offsetHeight+"px")}));else if(!t){var l=n.height();this.$el.css("height",l+"px")}}},{key:"_xpos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}},{key:"_ypos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}},{key:"_wrap",value:function(t){return t>=this.count?t%this.count:t<0?this._wrap(this.count+t%this.count):t}},{key:"_track",value:function(){var t,e,n,i;e=(t=Date.now())-this.timestamp,this.timestamp=t,n=this.offset-this.frame,this.frame=this.offset,i=1e3*n/(1+e),this.velocity=.8*i+.2*this.velocity}},{key:"_autoScroll",value:function(){var t=void 0,e=void 0;this.amplitude&&(t=Date.now()-this.timestamp,(e=this.amplitude*Math.exp(-t/this.options.duration))>2||e<-2?(this._scroll(this.target-e),requestAnimationFrame(this._autoScrollBound)):this._scroll(this.target))}},{key:"_scroll",value:function(e){var n=this;this.$el.hasClass("scrolling")||this.el.classList.add("scrolling"),null!=this.scrollingTimeout&&window.clearTimeout(this.scrollingTimeout),this.scrollingTimeout=window.setTimeout((function(){n.$el.removeClass("scrolling")}),this.options.duration);var i,o,r,a,s=void 0,l=void 0,u=void 0,c=void 0,d=void 0,h=void 0,f=this.center,p=1/this.options.numVisible;if(this.offset="number"==typeof e?e:this.offset,this.center=Math.floor((this.offset+this.dim/2)/this.dim),a=-(r=(o=this.offset-this.center*this.dim)<0?1:-1)*o*2/this.dim,i=this.count>>1,this.options.fullWidth?(u="translateX(0)",h=1):(u="translateX("+(this.el.clientWidth-this.itemWidth)/2+"px) ",u+="translateY("+(this.el.clientHeight-this.itemHeight)/2+"px)",h=1-p*a),this.showIndicators){var v=this.center%this.count,m=this.$indicators.find(".indicator-item.active");m.index()!==v&&(m.removeClass("active"),this.$indicators.find(".indicator-item").eq(v)[0].classList.add("active"))}if(!this.noWrap||this.center>=0&&this.center<this.count){l=this.images[this._wrap(this.center)],t(l).hasClass("active")||(this.$el.find(".carousel-item").removeClass("active"),l.classList.add("active"));var g=u+" translateX("+-o/2+"px) translateX("+r*this.options.shift*a*s+"px) translateZ("+this.options.dist*a+"px)";this._updateItemStyle(l,h,0,g)}for(s=1;s<=i;++s){if(this.options.fullWidth?(c=this.options.dist,d=s===i&&o<0?1-a:1):(c=this.options.dist*(2*s+a*r),d=1-p*(2*s+a*r)),!this.noWrap||this.center+s<this.count){l=this.images[this._wrap(this.center+s)];var y=u+" translateX("+(this.options.shift+(this.dim*s-o)/2)+"px) translateZ("+c+"px)";this._updateItemStyle(l,d,-s,y)}if(this.options.fullWidth?(c=this.options.dist,d=s===i&&o>0?1-a:1):(c=this.options.dist*(2*s-a*r),d=1-p*(2*s-a*r)),!this.noWrap||this.center-s>=0){l=this.images[this._wrap(this.center-s)];var b=u+" translateX("+(-this.options.shift+(-this.dim*s-o)/2)+"px) translateZ("+c+"px)";this._updateItemStyle(l,d,-s,b)}}if(!this.noWrap||this.center>=0&&this.center<this.count){l=this.images[this._wrap(this.center)];var _=u+" translateX("+-o/2+"px) translateX("+r*this.options.shift*a+"px) translateZ("+this.options.dist*a+"px)";this._updateItemStyle(l,h,0,_)}var w=this.$el.find(".carousel-item").eq(this._wrap(this.center));f!==this.center&&"function"==typeof this.options.onCycleTo&&this.options.onCycleTo.call(this,w[0],this.dragged),"function"==typeof this.oneTimeCallback&&(this.oneTimeCallback.call(this,w[0],this.dragged),this.oneTimeCallback=null)}},{key:"_updateItemStyle",value:function(t,e,n,i){t.style[this.xform]=i,t.style.zIndex=n,t.style.opacity=e,t.style.visibility="visible"}},{key:"_cycleTo",value:function(t,e){var n=this.center%this.count-t;this.noWrap||(n<0?Math.abs(n+this.count)<Math.abs(n)&&(n+=this.count):n>0&&Math.abs(n-this.count)<n&&(n-=this.count)),this.target=this.dim*Math.round(this.offset/this.dim),n<0?this.target+=this.dim*Math.abs(n):n>0&&(this.target-=this.dim*n),"function"==typeof e&&(this.oneTimeCallback=e),this.offset!==this.target&&(this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound))}},{key:"next",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center+t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"prev",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center-t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"set",value:function(t,e){if((void 0===t||isNaN(t))&&(t=0),t>this.count||t<0){if(this.noWrap)return;t=this._wrap(t)}this._cycleTo(t,e)}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Carousel}},{key:"defaults",get:function(){return e}}]),i}();M.Carousel=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"carousel","M_Carousel")}(cash),function(t){"use strict";var e={onOpen:void 0,onClose:void 0},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_TapTarget=o,o.options=t.extend({},i.defaults,n),o.isOpen=!1,o.$origin=t("#"+o.$el.attr("data-target")),o._setup(),o._calculatePositioning(),o._setupEventHandlers(),o}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.TapTarget=void 0}},{key:"_setupEventHandlers",value:function(){this._handleDocumentClickBound=this._handleDocumentClick.bind(this),this._handleTargetClickBound=this._handleTargetClick.bind(this),this._handleOriginClickBound=this._handleOriginClick.bind(this),this.el.addEventListener("click",this._handleTargetClickBound),this.originEl.addEventListener("click",this._handleOriginClickBound);var t=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=t.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleTargetClickBound),this.originEl.removeEventListener("click",this._handleOriginClickBound),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleTargetClick",value:function(t){this.open()}},{key:"_handleOriginClick",value:function(t){this.close()}},{key:"_handleResize",value:function(t){this._calculatePositioning()}},{key:"_handleDocumentClick",value:function(e){t(e.target).closest(".tap-target-wrapper").length||(this.close(),e.preventDefault(),e.stopPropagation())}},{key:"_setup",value:function(){this.wrapper=this.$el.parent()[0],this.waveEl=t(this.wrapper).find(".tap-target-wave")[0],this.originEl=t(this.wrapper).find(".tap-target-origin")[0],this.contentEl=this.$el.find(".tap-target-content")[0],t(this.wrapper).hasClass(".tap-target-wrapper")||(this.wrapper=document.createElement("div"),this.wrapper.classList.add("tap-target-wrapper"),this.$el.before(t(this.wrapper)),this.wrapper.append(this.el)),this.contentEl||(this.contentEl=document.createElement("div"),this.contentEl.classList.add("tap-target-content"),this.$el.append(this.contentEl)),this.waveEl||(this.waveEl=document.createElement("div"),this.waveEl.classList.add("tap-target-wave"),this.originEl||(this.originEl=this.$origin.clone(!0,!0),this.originEl.addClass("tap-target-origin"),this.originEl.removeAttr("id"),this.originEl.removeAttr("style"),this.originEl=this.originEl[0],this.waveEl.append(this.originEl)),this.wrapper.append(this.waveEl))}},{key:"_calculatePositioning",value:function(){var e="fixed"===this.$origin.css("position");if(!e)for(var n=this.$origin.parents(),i=0;i<n.length&&!(e="fixed"==t(n[i]).css("position"));i++);var o=this.$origin.outerWidth(),r=this.$origin.outerHeight(),a=e?this.$origin.offset().top-M.getDocumentScrollTop():this.$origin.offset().top,s=e?this.$origin.offset().left-M.getDocumentScrollLeft():this.$origin.offset().left,l=window.innerWidth,u=window.innerHeight,c=l/2,d=u/2,h=s<=c,f=s>c,p=a<=d,v=a>d,m=s>=.25*l&&s<=.75*l,g=this.$el.outerWidth(),y=this.$el.outerHeight(),b=a+r/2-y/2,_=s+o/2-g/2,w=e?"fixed":"absolute",C=m?g:g/2+o,k=y/2,x=p?y/2:0,S=h&&!m?g/2-o:0,T=o,D=v?"bottom":"top",E=2*o,O=E,L=y/2-O/2,A=g/2-E/2,P={};P.top=p?b+"px":"",P.right=f?l-_-g+"px":"",P.bottom=v?u-b-y+"px":"",P.left=h?_+"px":"",P.position=w,t(this.wrapper).css(P),t(this.contentEl).css({width:C+"px",height:k+"px",top:x+"px",right:"0px",bottom:"0px",left:S+"px",padding:T+"px",verticalAlign:D}),t(this.waveEl).css({top:L+"px",left:A+"px",width:E+"px",height:O+"px"})}},{key:"open",value:function(){this.isOpen||("function"==typeof this.options.onOpen&&this.options.onOpen.call(this,this.$origin[0]),this.isOpen=!0,this.wrapper.classList.add("open"),document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound))}},{key:"close",value:function(){this.isOpen&&("function"==typeof this.options.onClose&&this.options.onClose.call(this,this.$origin[0]),this.isOpen=!1,this.wrapper.classList.remove("open"),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound))}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_TapTarget}},{key:"defaults",get:function(){return e}}]),i}();M.TapTarget=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"tapTarget","M_TapTarget")}(cash),function(t){"use strict";var e={classes:"",dropdownOptions:{}},n=function(n){function i(e,n){_classCallCheck(this,i);var o=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.$el.hasClass("browser-default")?_possibleConstructorReturn(o):(o.el.M_FormSelect=o,o.options=t.extend({},i.defaults,n),o.isMultiple=o.$el.prop("multiple"),o.el.tabIndex=-1,o._keysSelected={},o._valueDict={},o._setupDropdown(),o._setupEventHandlers(),o)}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_FormSelect=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleSelectChangeBound=this._handleSelectChange.bind(this),this._handleOptionClickBound=this._handleOptionClick.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),t(this.dropdownOptions).find("li:not(.optgroup)").each((function(t){t.addEventListener("click",e._handleOptionClickBound)})),this.el.addEventListener("change",this._handleSelectChangeBound),this.input.addEventListener("click",this._handleInputClickBound)}},{key:"_removeEventHandlers",value:function(){var e=this;t(this.dropdownOptions).find("li:not(.optgroup)").each((function(t){t.removeEventListener("click",e._handleOptionClickBound)})),this.el.removeEventListener("change",this._handleSelectChangeBound),this.input.removeEventListener("click",this._handleInputClickBound)}},{key:"_handleSelectChange",value:function(t){this._setValueToInput()}},{key:"_handleOptionClick",value:function(e){e.preventDefault();var n=t(e.target).closest("li")[0];this._selectOption(n),e.stopPropagation()}},{key:"_selectOption",value:function(e){var n=e.id;if(!t(e).hasClass("disabled")&&!t(e).hasClass("optgroup")&&n.length){var i=!0;if(this.isMultiple){var o=t(this.dropdownOptions).find("li.disabled.selected");o.length&&(o.removeClass("selected"),o.find('input[type="checkbox"]').prop("checked",!1),this._toggleEntryFromArray(o[0].id)),i=this._toggleEntryFromArray(n)}else t(this.dropdownOptions).find("li").removeClass("selected"),t(e).toggleClass("selected",i);t(this._valueDict[n].el).prop("selected")!==i&&(t(this._valueDict[n].el).prop("selected",i),this.$el.trigger("change"))}this.isMultiple||this.dropdown.close()}},{key:"_handleInputClick",value:function(){this.dropdown&&this.dropdown.isOpen&&(this._setValueToInput(),this._setSelectedStates())}},{key:"_setupDropdown",value:function(){var e=this;this.wrapper=document.createElement("div"),t(this.wrapper).addClass("select-wrapper "+this.options.classes),this.$el.before(t(this.wrapper)),this.wrapper.appendChild(this.el),this.el.disabled&&this.wrapper.classList.add("disabled"),this.$selectOptions=this.$el.children("option, optgroup"),this.dropdownOptions=document.createElement("ul"),this.dropdownOptions.id="select-options-"+M.guid(),t(this.dropdownOptions).addClass("dropdown-content select-dropdown "+(this.isMultiple?"multiple-select-dropdown":"")),this.$selectOptions.length&&this.$selectOptions.each((function(n){if(t(n).is("option")){var i=void 0;i=e.isMultiple?e._appendOptionWithIcon(e.$el,n,"multiple"):e._appendOptionWithIcon(e.$el,n),e._addOptionToValueDict(n,i)}else if(t(n).is("optgroup")){var o=t(n).children("option");t(e.dropdownOptions).append(t('<li class="optgroup"><span>'+n.getAttribute("label")+"</span></li>")[0]),o.each((function(t){var n=e._appendOptionWithIcon(e.$el,t,"optgroup-option");e._addOptionToValueDict(t,n)}))}})),this.$el.after(this.dropdownOptions),this.input=document.createElement("input"),t(this.input).addClass("select-dropdown dropdown-trigger"),this.input.setAttribute("type","text"),this.input.setAttribute("readonly","true"),this.input.setAttribute("data-target",this.dropdownOptions.id),this.el.disabled&&t(this.input).prop("disabled","true"),this.$el.before(this.input),this._setValueToInput();var n=t('<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');if(this.$el.before(n[0]),!this.el.disabled){var i=t.extend({},this.options.dropdownOptions);i.onOpenEnd=function(n){var i=t(e.dropdownOptions).find(".selected").first();if(i.length&&(M.keyDown=!0,e.dropdown.focusedIndex=i.index(),e.dropdown._focusFocusedItem(),M.keyDown=!1,e.dropdown.isScrollable)){var o=i[0].getBoundingClientRect().top-e.dropdownOptions.getBoundingClientRect().top;o-=e.dropdownOptions.clientHeight/2,e.dropdownOptions.scrollTop=o}},i.closeOnClick=!1,this.dropdown=M.Dropdown.init(this.input,i)}this._setSelectedStates()}},{key:"_addOptionToValueDict",value:function(t,e){var n=Object.keys(this._valueDict).length,i=this.dropdownOptions.id+n,o={};e.id=i,o.el=t,o.optionEl=e,this._valueDict[i]=o}},{key:"_removeDropdown",value:function(){t(this.wrapper).find(".caret").remove(),t(this.input).remove(),t(this.dropdownOptions).remove(),t(this.wrapper).before(this.$el),t(this.wrapper).remove()}},{key:"_appendOptionWithIcon",value:function(e,n,i){var o=n.disabled?"disabled ":"",r="optgroup-option"===i?"optgroup-option ":"",a=this.isMultiple?'<label><input type="checkbox"'+o+'"/><span>'+n.innerHTML+"</span></label>":n.innerHTML,s=t("<li></li>"),l=t("<span></span>");l.html(a),s.addClass(o+" "+r),s.append(l);var u=n.getAttribute("data-icon");if(u){var c=t('<img alt="" src="'+u+'">');s.prepend(c)}return t(this.dropdownOptions).append(s[0]),s[0]}},{key:"_toggleEntryFromArray",value:function(e){var n=!this._keysSelected.hasOwnProperty(e),i=t(this._valueDict[e].optionEl);return n?this._keysSelected[e]=!0:delete this._keysSelected[e],i.toggleClass("selected",n),i.find('input[type="checkbox"]').prop("checked",n),i.prop("selected",n),n}},{key:"_setValueToInput",value:function(){var e=[];if(this.$el.find("option").each((function(n){if(t(n).prop("selected")){var i=t(n).text();e.push(i)}})),!e.length){var n=this.$el.find("option:disabled").eq(0);n.length&&""===n[0].value&&e.push(n.text())}this.input.value=e.join(", ")}},{key:"_setSelectedStates",value:function(){for(var e in this._keysSelected={},this._valueDict){var n=this._valueDict[e],i=t(n.el).prop("selected");t(n.optionEl).find('input[type="checkbox"]').prop("checked",i),i?(this._activateOption(t(this.dropdownOptions),t(n.optionEl)),this._keysSelected[e]=!0):t(n.optionEl).removeClass("selected")}}},{key:"_activateOption",value:function(e,n){n&&(this.isMultiple||e.find("li.selected").removeClass("selected"),t(n).addClass("selected"))}},{key:"getSelectedValues",value:function(){var t=[];for(var e in this._keysSelected)t.push(this._valueDict[e].el.value);return t}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FormSelect}},{key:"defaults",get:function(){return e}}]),i}();M.FormSelect=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"formSelect","M_FormSelect")}(cash),function(t,e){"use strict";var n={},i=function(i){function o(e,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Range=i,i.options=t.extend({},o.defaults,n),i._mousedown=!1,i._setupThumb(),i._setupEventHandlers(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeThumb(),this.el.M_Range=void 0}},{key:"_setupEventHandlers",value:function(){this._handleRangeChangeBound=this._handleRangeChange.bind(this),this._handleRangeMousedownTouchstartBound=this._handleRangeMousedownTouchstart.bind(this),this._handleRangeInputMousemoveTouchmoveBound=this._handleRangeInputMousemoveTouchmove.bind(this),this._handleRangeMouseupTouchendBound=this._handleRangeMouseupTouchend.bind(this),this._handleRangeBlurMouseoutTouchleaveBound=this._handleRangeBlurMouseoutTouchleave.bind(this),this.el.addEventListener("change",this._handleRangeChangeBound),this.el.addEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.addEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.addEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("change",this._handleRangeChangeBound),this.el.removeEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_handleRangeChange",value:function(){t(this.value).html(this.$el.val()),t(this.thumb).hasClass("active")||this._showRangeBubble();var e=this._calcRangeOffset();t(this.thumb).addClass("active").css("left",e+"px")}},{key:"_handleRangeMousedownTouchstart",value:function(e){if(t(this.value).html(this.$el.val()),this._mousedown=!0,this.$el.addClass("active"),t(this.thumb).hasClass("active")||this._showRangeBubble(),"input"!==e.type){var n=this._calcRangeOffset();t(this.thumb).addClass("active").css("left",n+"px")}}},{key:"_handleRangeInputMousemoveTouchmove",value:function(){if(this._mousedown){t(this.thumb).hasClass("active")||this._showRangeBubble();var e=this._calcRangeOffset();t(this.thumb).addClass("active").css("left",e+"px"),t(this.value).html(this.$el.val())}}},{key:"_handleRangeMouseupTouchend",value:function(){this._mousedown=!1,this.$el.removeClass("active")}},{key:"_handleRangeBlurMouseoutTouchleave",value:function(){if(!this._mousedown){var n=7+parseInt(this.$el.css("padding-left"))+"px";t(this.thumb).hasClass("active")&&(e.remove(this.thumb),e({targets:this.thumb,height:0,width:0,top:10,easing:"easeOutQuad",marginLeft:n,duration:100})),t(this.thumb).removeClass("active")}}},{key:"_setupThumb",value:function(){this.thumb=document.createElement("span"),this.value=document.createElement("span"),t(this.thumb).addClass("thumb"),t(this.value).addClass("value"),t(this.thumb).append(this.value),this.$el.after(this.thumb)}},{key:"_removeThumb",value:function(){t(this.thumb).remove()}},{key:"_showRangeBubble",value:function(){var n=-7+parseInt(t(this.thumb).parent().css("padding-left"))+"px";e.remove(this.thumb),e({targets:this.thumb,height:30,width:30,top:-30,marginLeft:n,duration:300,easing:"easeOutQuint"})}},{key:"_calcRangeOffset",value:function(){var t=this.$el.width()-15,e=parseFloat(this.$el.attr("max"))||100,n=parseFloat(this.$el.attr("min"))||0;return(parseFloat(this.$el.val())-n)/(e-n)*t}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Range}},{key:"defaults",get:function(){return n}}]),o}();M.Range=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"range","M_Range"),i.init(t("input[type=range]"))}(cash,M.anime),function(){"use strict";var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function e(e){var n=t.has(e);return e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e),!n&&e}function n(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function i(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function o(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;e(a);var s=a.localName;if("link"===s&&"import"===a.getAttribute("rel")){if((r=a.import)instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)o(r,e,n);r=i(t,a);continue}if("template"===s){r=i(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)o(a,e,n)}r=r.firstChild?r.firstChild:i(t,r)}}function r(t,e,n){t[e]=n}function a(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function s(t,e){t.b=!0,t.c.push(e)}function l(t,e){t.b&&o(e,(function(e){return u(t,e)}))}function u(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.c.length;n++)t.c[n](e)}}function c(t,e){var n=[];for(o(e,(function(t){return n.push(t)})),e=0;e<n.length;e++){var i=n[e];1===i.__CE_state?t.connectedCallback(i):f(t,i)}}function d(t,e){var n=[];for(o(e,(function(t){return n.push(t)})),e=0;e<n.length;e++){var i=n[e];1===i.__CE_state&&t.disconnectedCallback(i)}}function h(t,e,n){var i=(n=void 0===n?{}:n).u||new Set,r=n.h||function(e){return f(t,e)},a=[];if(o(e,(function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",(function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var o=new Set(i);o.delete(n),h(t,n,{u:o,h:r})}}))}else a.push(e)}),i),t.b)for(e=0;e<a.length;e++)u(t,a[e]);for(e=0;e<a.length;e++)r(a[e])}function f(t,e){if(void 0===e.__CE_state){var i=e.ownerDocument;if((i.defaultView||i.__CE_isImportDocument&&i.__CE_hasRegistry)&&(i=t.a.get(e.localName))){i.constructionStack.push(e);var o=i.constructorFunction;try{try{if(new o!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{i.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,e.__CE_definition=i,i.attributeChangedCallback)for(i=i.observedAttributes,o=0;o<i.length;o++){var r=i[o],a=e.getAttribute(r);null!==a&&t.attributeChangedCallback(e,r,null,a,null)}n(e)&&t.connectedCallback(e)}}}function p(t){var e=document;this.c=t,this.a=e,this.b=void 0,h(this.c,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function v(t){t.b&&t.b.disconnect()}function m(){var t=this;this.b=this.a=void 0,this.c=new Promise((function(e){t.b=e,t.a&&e(t.a)}))}function g(t){if(t.a)throw Error("Already resolved.");t.a=void 0,t.b&&t.b(void 0)}function y(t){this.c=!1,this.a=t,this.j=new Map,this.f=function(t){return t()},this.b=!1,this.i=[],this.o=new p(t)}a.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},a.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},a.prototype.attributeChangedCallback=function(t,e,n,i,o){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,i,o)},p.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||v(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,i=0;i<n.length;i++)h(this.c,n[i])},y.prototype.l=function(t,n){var i=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!e(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=n.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=o("connectedCallback"),s=o("disconnectedCallback"),l=o("adoptedCallback"),u=o("attributeChangedCallback"),c=n.observedAttributes||[]}catch(t){return}finally{this.c=!1}n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:s,adoptedCallback:l,attributeChangedCallback:u,observedAttributes:c,constructionStack:[]},function(t,e,n){t.a.set(e,n),t.f.set(n.constructorFunction,n)}(this.a,t,n),this.i.push(n),this.b||(this.b=!0,this.f((function(){return function(t){if(!1!==t.b){t.b=!1;for(var e=t.i,n=[],i=new Map,o=0;o<e.length;o++)i.set(e[o].localName,[]);for(h(t.a,document,{h:function(e){if(void 0===e.__CE_state){var o=e.localName,r=i.get(o);r?r.push(e):t.a.a.get(o)&&n.push(e)}}}),o=0;o<n.length;o++)f(t.a,n[o]);for(;0<e.length;){var r=e.shift();o=r.localName,r=i.get(r.localName);for(var a=0;a<r.length;a++)f(t.a,r[a]);(o=t.j.get(o))&&g(o)}}}(i)})))},y.prototype.h=function(t){h(this.a,t)},y.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction},y.prototype.m=function(t){if(!e(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var n=this.j.get(t);return n||(n=new m,this.j.set(t,n),this.a.a.get(t)&&!this.i.some((function(e){return e.localName===t}))&&g(n)),n.c},y.prototype.s=function(t){v(this.o);var e=this.f;this.f=function(n){return t((function(){return e(n)}))}},window.CustomElementRegistry=y,y.prototype.define=y.prototype.l,y.prototype.upgrade=y.prototype.h,y.prototype.get=y.prototype.get,y.prototype.whenDefined=y.prototype.m,y.prototype.polyfillWrapFlushCallback=y.prototype.s;var b=window.Document.prototype.createElement,_=window.Document.prototype.createElementNS,w=window.Document.prototype.importNode,C=window.Document.prototype.prepend,k=window.Document.prototype.append,x=window.DocumentFragment.prototype.prepend,S=window.DocumentFragment.prototype.append,T=window.Node.prototype.cloneNode,D=window.Node.prototype.appendChild,E=window.Node.prototype.insertBefore,O=window.Node.prototype.removeChild,M=window.Node.prototype.replaceChild,L=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),A=window.Element.prototype.attachShadow,P=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),R=window.Element.prototype.getAttribute,I=window.Element.prototype.setAttribute,H=window.Element.prototype.removeAttribute,B=window.Element.prototype.getAttributeNS,j=window.Element.prototype.setAttributeNS,N=window.Element.prototype.removeAttributeNS,W=window.Element.prototype.insertAdjacentElement,F=window.Element.prototype.insertAdjacentHTML,$=window.Element.prototype.prepend,q=window.Element.prototype.append,Y=window.Element.prototype.before,z=window.Element.prototype.after,X=window.Element.prototype.replaceWith,V=window.Element.prototype.remove,U=window.HTMLElement,J=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),K=window.HTMLElement.prototype.insertAdjacentElement,Q=window.HTMLElement.prototype.insertAdjacentHTML,G=new function(){};function Z(t,e,i){function o(e){return function(i){for(var o=[],r=0;r<arguments.length;++r)o[r]=arguments[r];r=[];for(var a=[],s=0;s<o.length;s++){var l=o[s];if(l instanceof Element&&n(l)&&a.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,o),o=0;o<a.length;o++)d(t,a[o]);if(n(this))for(o=0;o<r.length;o++)(a=r[o])instanceof Element&&c(t,a)}}void 0!==i.g&&(e.prepend=o(i.g)),void 0!==i.append&&(e.append=o(i.append))}var tt,et=window.customElements;if(!et||et.forcePolyfill||"function"!=typeof et.define||"function"!=typeof et.get){var nt=new a;tt=nt,window.HTMLElement=function(){function t(){var t=this.constructor,e=tt.f.get(t);if(!e)throw Error("The custom element being constructed was not registered with `customElements`.");var n=e.constructionStack;if(0===n.length)return n=b.call(document,e.localName),Object.setPrototypeOf(n,t.prototype),n.__CE_state=1,n.__CE_definition=e,u(tt,n),n;var i=n[e=n.length-1];if(i===G)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[e]=G,Object.setPrototypeOf(i,t.prototype),u(tt,i),i}return t.prototype=U.prototype,Object.defineProperty(t.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:t}),t}(),function(){var t=nt;r(Document.prototype,"createElement",(function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructorFunction}return e=b.call(this,e),u(t,e),e})),r(Document.prototype,"importNode",(function(e,n){return e=w.call(this,e,!!n),this.__CE_hasRegistry?h(t,e):l(t,e),e})),r(Document.prototype,"createElementNS",(function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var i=t.a.get(n);if(i)return new i.constructorFunction}return e=_.call(this,e,n),u(t,e),e})),Z(t,Document.prototype,{g:C,append:k})}(),Z(nt,DocumentFragment.prototype,{g:x,append:S}),function(){function t(t,i){Object.defineProperty(t,"textContent",{enumerable:i.enumerable,configurable:!0,get:i.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)i.set.call(this,t);else{var o=void 0;if(this.firstChild){var r=this.childNodes,a=r.length;if(0<a&&n(this)){o=Array(a);for(var s=0;s<a;s++)o[s]=r[s]}}if(i.set.call(this,t),o)for(t=0;t<o.length;t++)d(e,o[t])}}})}var e=nt;r(Node.prototype,"insertBefore",(function(t,i){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=E.call(this,t,i),n(this))for(i=0;i<o.length;i++)c(e,o[i]);return t}return o=n(t),i=E.call(this,t,i),o&&d(e,t),n(this)&&c(e,t),i})),r(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);if(t=D.call(this,t),n(this))for(var o=0;o<i.length;o++)c(e,i[o]);return t}return i=n(t),o=D.call(this,t),i&&d(e,t),n(this)&&c(e,t),o})),r(Node.prototype,"cloneNode",(function(t){return t=T.call(this,!!t),this.ownerDocument.__CE_hasRegistry?h(e,t):l(e,t),t})),r(Node.prototype,"removeChild",(function(t){var i=n(t),o=O.call(this,t);return i&&d(e,t),o})),r(Node.prototype,"replaceChild",(function(t,i){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=M.call(this,t,i),n(this))for(d(e,i),i=0;i<o.length;i++)c(e,o[i]);return t}o=n(t);var r=M.call(this,t,i),a=n(this);return a&&d(e,i),o&&d(e,t),a&&c(e,t),r})),L&&L.get?t(Node.prototype,L):s(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)O.call(this,this.firstChild);D.call(this,document.createTextNode(t))}})}))}(),function(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var i=this,r=void 0;if(n(this)&&(r=[],o(this,(function(t){t!==i&&r.push(t)}))),e.set.call(this,t),r)for(var s=0;s<r.length;s++){var u=r[s];1===u.__CE_state&&a.disconnectedCallback(u)}return this.ownerDocument.__CE_hasRegistry?h(a,this):l(a,this),t}})}function e(t,e){r(t,"insertAdjacentElement",(function(t,i){var o=n(i);return t=e.call(this,t,i),o&&d(a,i),n(t)&&c(a,i),t}))}function i(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)h(a,n[e])}r(t,"insertAdjacentHTML",(function(t,i){if("beforebegin"===(t=t.toLowerCase())){var o=this.previousSibling;e.call(this,t,i),n(o||this.parentNode.firstChild,this)}else if("afterbegin"===t)o=this.firstChild,e.call(this,t,i),n(this.firstChild,o);else if("beforeend"===t)o=this.lastChild,e.call(this,t,i),n(o||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,e.call(this,t,i),n(this.nextSibling,o)}}))}var a=nt;A&&r(Element.prototype,"attachShadow",(function(t){return this.__CE_shadowRoot=A.call(this,t)})),P&&P.get?t(Element.prototype,P):J&&J.get?t(HTMLElement.prototype,J):s(a,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return T.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,i=_.call(document,this.namespaceURI,this.localName);for(i.innerHTML=t;0<n.childNodes.length;)O.call(n,n.childNodes[0]);for(t=e?i.content:i;0<t.childNodes.length;)D.call(n,t.childNodes[0])}})})),r(Element.prototype,"setAttribute",(function(t,e){if(1!==this.__CE_state)return I.call(this,t,e);var n=R.call(this,t);I.call(this,t,e),e=R.call(this,t),a.attributeChangedCallback(this,t,n,e,null)})),r(Element.prototype,"setAttributeNS",(function(t,e,n){if(1!==this.__CE_state)return j.call(this,t,e,n);var i=B.call(this,t,e);j.call(this,t,e,n),n=B.call(this,t,e),a.attributeChangedCallback(this,e,i,n,t)})),r(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return H.call(this,t);var e=R.call(this,t);H.call(this,t),null!==e&&a.attributeChangedCallback(this,t,e,null,null)})),r(Element.prototype,"removeAttributeNS",(function(t,e){if(1!==this.__CE_state)return N.call(this,t,e);var n=B.call(this,t,e);N.call(this,t,e);var i=B.call(this,t,e);n!==i&&a.attributeChangedCallback(this,e,n,i,t)})),K?e(HTMLElement.prototype,K):W?e(Element.prototype,W):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),Q?i(HTMLElement.prototype,Q):F?i(Element.prototype,F):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Z(a,Element.prototype,{g:$,append:q}),function(t){function e(e){return function(i){for(var o=[],r=0;r<arguments.length;++r)o[r]=arguments[r];r=[];for(var a=[],s=0;s<o.length;s++){var l=o[s];if(l instanceof Element&&n(l)&&a.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,o),o=0;o<a.length;o++)d(t,a[o]);if(n(this))for(o=0;o<r.length;o++)(a=r[o])instanceof Element&&c(t,a)}}var i=Element.prototype;void 0!==Y&&(i.before=e(Y)),void 0!==Y&&(i.after=e(z)),void 0!==X&&r(i,"replaceWith",(function(e){for(var i=[],o=0;o<arguments.length;++o)i[o]=arguments[o];o=[];for(var r=[],a=0;a<i.length;a++){var s=i[a];if(s instanceof Element&&n(s)&&r.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)o.push(s);else o.push(s)}for(a=n(this),X.apply(this,i),i=0;i<r.length;i++)d(t,r[i]);if(a)for(d(t,this),i=0;i<o.length;i++)(r=o[i])instanceof Element&&c(t,r)})),void 0!==V&&r(i,"remove",(function(){var e=n(this);V.call(this),e&&d(t,this)}))}(a)}(),window.addEventListener("turbolinks:before-render",(function(){d(nt,document.body)})),window.addEventListener("turbolinks:load",(function(){c(nt,document.body)})),document.__CE_hasRegistry=!0;var it=new y(nt);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:it})}}.call(self),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||
* Code distributed by Google as part of the polymer project is also
|
||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||
*/
|
||
function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.hasOwnProperty("polyfillWrapFlushCallback"))return;const t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}(),"NodeList"in window&&!NodeList.prototype.forEach&&(console.info("polyfill for IE11"),NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)});var Collapsible=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"connectedCallback",value:function(){$(this).find(".collapsible").collapsible()}},{key:"disconnectedCallback",value:function(){$(this).find(".collapsible").collapsible("destroy")}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-collapsible",Collapsible)}));var Dropdown=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"connectedCallback",value:function(){$(this).find(".dropdown-button").dropdown()}},{key:"disconnectedCallback",value:function(){$(this).find(".dropdown-button").dropdown("destroy")}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-dropdown",Dropdown)}));var DataTable=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"connectedCallback",value:function(){var t=JSON.parse(this.getAttribute("config"));t.ajax.data=function(t){for(var e=Object.keys(t),n=0;n<=e.length;n++){var i=e[n],o=t[i];delete t[i],t["datatable-"+i]=o}},t.ajax.beforeSend=function(t){t.setRequestHeader("datatable",!0)},this._datatable=$(this).find("table").DataTable(t),new $.fn.dataTable.FixedHeader(this._datatable)}},{key:"disconnectedCallback",value:function(){this._datatable.destroy()}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-datatable",DataTable)}));var DateTime=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"connectedCallback",value:function(){var t=jQuery(":root").attr("lang");t&&jQuery.datetimepicker.setLocale(t.substr(0,2)),$(this).find('[data-form-control="date"]').each((function(){$(this).datetimepicker({format:this.dataset.dateFormat,timepicker:!1,mask:!1,scrollInput:!1})})),$(this).find('[data-form-control="time"]').each((function(){$(this).datetimepicker({format:this.dataset.dateFormat,datepicker:!1,timepicker:!0,mask:!1,scrollInput:!1})})),$(this).find('[data-form-control="datetime"]').each((function(){$(this).datetimepicker({format:this.dataset.dateFormat,datepicker:!0,timepicker:!0,mask:!1,scrollInput:!1})}))}},{key:"disconnectedCallback",value:function(){$(this).find('[data-form-control="date"],[data-form-control="time"],[data-form-control="datetime"]').datetimepicker("destroy")}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-datetime",DateTime)}));var Form=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.call(this)).onClick=function(e){t._clickedButton=e.target},t.onSubmit=function(e){e.preventDefault(),t.querySelectorAll("button").forEach((function(t){return t.disabled=!0})),"post"==t._formEl.method?t._performPost(e):t._performGet(e)},t._performPost=function(e){var n=new XMLHttpRequest;n.open("POST",window.location.search||".",!0),n.setRequestHeader("Turbolinks-Referrer",window.location),n.onload=function(t){var e=n.getResponseHeader("turbolinks-location"),i=Turbolinks.Snapshot.wrap(n.response);e||(e=window.location.href),Turbolinks.controller.adapter.hideProgressBar(),Turbolinks.controller.cache.put(e,i),Turbolinks.visit(e,{action:"restore"}),Turbolinks.clearCache(),n.status>299&&Turbolinks.controller.disable()},n.onerror=function(e){Turbolinks.controller.adapter.hideProgressBar(),t.querySelectorAll("button").forEach((function(t){return t.disabled=!1}));var n=new CustomEvent("dmc-snackbar:show",{detail:{message:"Request error"}});window.dispatchEvent(n)},Turbolinks.controller.adapter.showProgressBarAfterDelay();var i=new FormData(t._formEl);t._clickedButton&&(t._clickedButton.name&&i.append(t._clickedButton.name,t._clickedButton.value),t._clickedButton=null),n.send(i)},t._performGet=function(e){Turbolinks.visit(t.action+(-1==t.action.indexOf("?")?"?":"&")+$(t._formEl).serialize())},t}return _createClass(n,[{key:"connectedCallback",value:function(){var t=this;this._clickedButton=null,this._formEl=this.querySelector("form"),this._formEl.addEventListener("submit",this.onSubmit),this.querySelectorAll("button[type=submit]").forEach((function(e){return e.addEventListener("click",t.onClick)}))}},{key:"disconnectedCallback",value:function(){var t=this;this._formEl.removeEventListener("submit",this.onSubmit),this.querySelectorAll("button[type=submit]").forEach((function(e){return e.removeEventListener("click",t.onClick)}))}},{key:"action",get:function(){var t=this._formEl.getAttribute("action");return t||window.location.href}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-form",Form)}));var Modal=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"connectedCallback",value:function(){$(this).find(".modal").modal({preventScrolling:!1})}},{key:"disconnectedCallback",value:function(){$(this).find(".modal").modal("destroy")}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-modal",Modal)}));var PerfectScrollbarEl=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"connectedCallback",value:function(){this.scrollbar=new PerfectScrollbar($(this).parent().get(0))}},{key:"disconnectedCallback",value:function(){this.scrollbar.destroy()}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-scrollbar",PerfectScrollbarEl)}));var Select=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"connectedCallback",value:function(){$(this).find("select").not(".disabled").not(".material-ignore").not(".browser-default").formSelect()}},{key:"disconnectedCallback",value:function(){$(this).find("select").not(".disabled").not(".material-ignore").not(".browser-default").formSelect("destroy")}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-select",Select)}));var Sidenav=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"connectedCallback",value:function(){var t=sessionStorage.getItem("viewflow_site_drawer_state");window.innerWidth>=992&&"closed"==t&&$(this).find(".sidenav").removeClass("sidenav-fixed"),$(this).find(".sidenav").sidenav(),$(document).activeNavigation("#slide-out"),this.scrollbar=new PerfectScrollbar($("#slide-out").get(0))}},{key:"disconnectedCallback",value:function(){$(this).find(".sidenav").sidenav("destroy"),this.scrollbar.destroy()}}]),n}(_wrapNativeSuper(HTMLElement)),SidenavTrigger=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.call(this)).onClick=function(e){var n=M.getIdFromTrigger(t._trigger),i=document.getElementById(n).M_Sidenav;i&&(i.isOpen?(i.close(),i.isFixed=!1,$(document).find(".sidenav").removeClass("sidenav-fixed"),t._main.style.marginLeft="0",t._footer.style.marginLeft="0",sessionStorage.setItem("viewflow_site_drawer_state","closed")):(i.isFixed=!0,$(document).find(".sidenav").addClass("sidenav-fixed"),i.open(),t._main.style.marginLeft=null,t._footer.style.marginLeft=null,sessionStorage.setItem("viewflow_site_drawer_state","open"))),e.preventDefault(),e.stopPropagation()},t}return _createClass(n,[{key:"connectedCallback",value:function(){this._trigger=this.querySelector(".sidenav-trigger"),this._main=document.querySelector("main"),this._footer=document.querySelector("footer"),this._trigger.addEventListener("click",this.onClick);var t=sessionStorage.getItem("viewflow_site_drawer_state");if(window.innerWidth>=992&&"closed"==t){var e=M.getIdFromTrigger(this._trigger);document.getElementById(e).M_Sidenav.close(),this._main.style.marginLeft="0"}}},{key:"disconnectedCallback",value:function(){this._trigger.removeEventListener("click",this.onClick)}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-sidenav",Sidenav),window.customElements.define("dmc-sidenav-trigger",SidenavTrigger)}));var Snackbar=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.call(this)).onShowSnackbarEvent=function(t){M.toast({html:t.detail.message,displayLength:1e4})},t}return _createClass(n,[{key:"connectedCallback",value:function(){var t=this;window.addEventListener("dmc-snackbar:show",this.onShowSnackbarEvent,!1);this.children;for(var e=0;e<this.children.length;e++)setTimeout((function(){M.toast({html:t.children[0].innerHTML,displayLength:1e4,classes:t.children[0].className})}))}},{key:"disconnectedCallback",value:function(){window.removeEventListener("dmc-snackbar:show",this.onShowSnackbarEvent),M.Toast.dismissAll()}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-snackbar",Snackbar)}));var Textarea=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"connectedCallback",value:function(){M.textareaAutoResize($(this).find("textarea"))}}]),n}(_wrapNativeSuper(HTMLElement));function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}window.addEventListener("load",(function(){window.customElements.define("dmc-textarea",Textarea)}));var TurbolinksElement=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.call(this))._onClick=function(t){var e=t.target;e.hash&&e.origin===window.location.origin&&e.pathname===window.location.pathname&&(window.Turbolinks.controller.pushHistoryWithLocationAndRestorationIdentifier(t.data.url,window.Turbolinks.uuid()),t.preventDefault())},t._onLoad=function(t){if(window.location.hash){var e=document.getElementById(window.location.hash.substring(1)).getBoundingClientRect();window.scrollTo(0,e.y)}},t}return _createClass(n,[{key:"connectedCallback",value:function(){document.addEventListener("turbolinks:click",this._onClick)}},{key:"disconnectedCallback",value:function(){document.removeEventListener("turbolinks:click",this._onClick)}}]),n}(_wrapNativeSuper(HTMLElement));window.addEventListener("load",(function(){window.customElements.define("dmc-turbolinks",TurbolinksElement)})); |