!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function e(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function t(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},oe))}}function o(e){return e&&"[object Function]"==={}.toString.call(e)}function _(e,t){if(1!==e.nodeType)return[];var i=getComputedStyle(e,null);return t?i[t]:i}function d(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function p(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=_(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/(auto|scroll)/.test(i+r+n)?e:p(d(e))}function y(e){var t=e&&e.offsetParent,i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===_(t,"position")?y(t):t:e?e.ownerDocument.documentElement:document.documentElement}function l(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||y(e.firstElementChild)===e)}function c(e){return null!==e.parentNode?c(e.parentNode):e}function h(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var i=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?e:t,r=i?t:e,a=document.createRange();a.setStart(n,0),a.setEnd(r,0);var s=a.commonAncestorContainer;if(e!==s&&t!==s||n.contains(r))return l(s)?s:y(s);var o=c(e);return o.host?h(o.host,t):h(e,c(t).host)}function f(e,t){var i="top"===(1=n.clientWidth&&i>=n.clientHeight}),d=0s[p]&&(e.offsets.popper[d]+=o[d]+f-s[p]),e.offsets.popper=w(e.offsets.popper);var m=o[d]+o[c]/2-f/2,g=_(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),b=m-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(s[c]-f,b),0),e.arrowElement=n,e.offsets.arrow=(fe(i={},d,Math.round(b)),fe(i,h,""),i),e}function G(e){return"end"===e?"start":"start"===e?"end":e}function U(e,t){var i=1r(n.left)||"right"===g&&r(i.left)r(n.top)||"bottom"===g&&r(i.top)r(m.right),l=r(i.top)r(m.bottom),u="left"===g&&s||"right"===g&&o||"top"===g&&l||"bottom"===g&&c,d=-1!==["top","bottom"].indexOf(g),h=!!f.flipVariations&&(d&&"start"===y&&s||d&&"end"===y&&o||!d&&"start"===y&&l||!d&&"end"===y&&c);(a||u||h)&&(p.flipped=!0,(a||u)&&(g=b[t+1]),h&&(y=G(y)),p.placement=g+(y?"-"+y:""),p.offsets.popper=me({},p.offsets.popper,P(p.instance.popper,p.offsets.reference,p.placement)),p=L(p.instance.modifiers,p,"flip"))}),p}function Q(e){var t=e.offsets,i=t.popper,n=t.reference,r=e.placement.split("-")[0],a=Math.floor,s=-1!==["top","bottom"].indexOf(r),o=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return i[o]a(n[o])&&(e.offsets.popper[l]=a(n[o])),e}function J(e,t,i,n){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+r[1],s=r[2];if(!a)return e;if(0===s.indexOf("%")){var o=void 0;switch(s){case"%p":o=i;break;case"%":case"%r":default:o=n}return w(o)[t]/100*a}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a}return a}function Z(e,r,a,t){var s=[0,0],o=-1!==["right","left"].indexOf(t),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),n=i.indexOf(A(i,function(e){return-1!==e.search(/,|\s/)}));i[n]&&-1===i[n].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==n?[i.slice(0,n).concat([i[n].split(l)[0]]),[i[n].split(l)[1]].concat(i.slice(n+1))]:[i];return(c=c.map(function(e,t){var i=(1===t?!o:o)?"height":"width",n=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,n=!0,e):n?(e[e.length-1]+=t,n=!1,e):e.concat(t)},[]).map(function(e){return J(e,i,r,a)})})).forEach(function(i,n){i.forEach(function(e,t){j(e)&&(s[n]+=e*("-"===i[t-1]?-1:1))})}),s}function ee(e,t){var i=t.offset,n=e.placement,r=e.offsets,a=r.popper,s=r.reference,o=n.split("-")[0],l=void 0;return l=j(+i)?[+i,0]:Z(i,a,s,o),"left"===o?(a.top+=l[0],a.left-=l[1]):"right"===o?(a.top+=l[0],a.left+=l[1]):"top"===o?(a.left+=l[0],a.top-=l[1]):"bottom"===o&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function te(e,n){var t=n.boundariesElement||y(e.instance.popper);e.instance.reference===t&&(t=y(t));var r=S(e.instance.popper,e.instance.reference,n.padding,t);n.boundaries=r;var i=n.priority,a=e.offsets.popper,s={primary:function(e){var t=a[e];return a[e]r[e]&&!n.escapeWithReference&&(i=Math.min(a[t],r[e]-("right"===e?a.width:a.height))),fe({},t,i)}};return i.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";a=me({},a,s[t](e))}),e.offsets.popper=a,e}function ie(e){var t=e.placement,i=t.split("-")[0],n=t.split("-")[1];if(n){var r=e.offsets,a=r.reference,s=r.popper,o=-1!==["bottom","top"].indexOf(i),l=o?"left":"top",c=o?"width":"height",u={start:fe({},l,a[l]),end:fe({},l,a[l]+a[c]-s[c])};e.offsets.popper=me({},s,u[n])}return e}function ne(e){if(!W(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,i=A(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomi.right||t.top>i.bottom||t.right"!==d[1]||Ke.test(s)?0:l:l.firstChild)&&s.childNodes.length;a--;)pe.nodeName(u=s.childNodes[a],"tbody")&&!u.childNodes.length&&s.removeChild(u);for(pe.merge(f,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=p.lastChild}else f.push(t.createTextNode(s));for(l&&p.removeChild(l),de.appendChecked||pe.grep(v(f,"input"),b),m=0;s=f[m++];)if(n&&-1")).appendTo(t.documentElement))[0].contentWindow||ut[0].contentDocument).document).write(),t.close(),i=M(e,t),ut.detach()),dt[e]=i),i}function A(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function L(e){if(e in Ct)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=St.length;i--;)if((e=St[i]+t)in Ct)return e}function O(e,t){for(var i,n,r,a=[],s=0,o=e.length;sx.cacheLength&&delete i[n.shift()],i[e+" "]=t}var n=[];return i}function l(e){return e[H]=!0,e}function r(e){var t=L.createElement("div");try{return!!e(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function t(e,t){for(var i=e.split("|"),n=i.length;n--;)x.attrHandle[i[n]]=t}function c(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function n(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function a(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}function s(s){return l(function(a){return a=+a,l(function(e,t){for(var i,n=s([],e.length,a),r=n.length;r--;)e[i=n[r]]&&(e[i]=!(t[i]=e[i]))})})}function m(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function o(){}function g(e){for(var t=0,i=e.length,n="";t+~]|"+ie+")"+ie+"*"),ue=new RegExp("="+ie+"*([^\\]'\"]*?)"+ie+"*\\]","g"),de=new RegExp(ae),he=new RegExp("^"+ne+"$"),pe={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,_e=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),we=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},xe=function(){A()};try{J.apply(U=Z.call(j.childNodes),j.childNodes),U[j.childNodes.length].nodeType}catch(Te){J={apply:U.length?function(e,t){Q.apply(e,Z.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}for(f in v=_.support={},k=_.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},A=_.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:j;return n!==L&&9===n.nodeType&&n.documentElement&&(O=(L=n).documentElement,R=!k(L),(i=L.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",xe,!1):i.attachEvent&&i.attachEvent("onunload",xe)),v.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),v.getElementsByTagName=r(function(e){return e.appendChild(L.createComment("")),!e.getElementsByTagName("*").length}),v.getElementsByClassName=ge.test(L.getElementsByClassName),v.getById=r(function(e){return O.appendChild(e).id=H,!L.getElementsByName||!L.getElementsByName(H).length}),v.getById?(x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&R){var i=t.getElementById(e);return i?[i]:[]}},x.filter.ID=function(e){var t=e.replace(_e,we);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var i=e.replace(_e,we);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===i}}),x.find.TAG=v.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):v.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,a=t.getElementsByTagName(e);if("*"===e){for(;i=a[r++];)1===i.nodeType&&n.push(i);return n}return a},x.find.CLASS=v.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&R)return t.getElementsByClassName(e)},N=[],I=[],(v.qsa=ge.test(L.querySelectorAll))&&(r(function(e){O.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||I.push("\\["+ie+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+H+"-]").length||I.push("~="),e.querySelectorAll(":checked").length||I.push(":checked"),e.querySelectorAll("a#"+H+"+*").length||I.push(".#.+[+~]")}),r(function(e){var t=L.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&I.push("name"+ie+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||I.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),I.push(",.*:")})),(v.matchesSelector=ge.test(z=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(e){v.disconnectedMatch=z.call(e,"div"),z.call(e,"[s!='']:x"),N.push("!=",ae)}),I=I.length&&new RegExp(I.join("|")),N=N.length&&new RegExp(N.join("|")),t=ge.test(O.compareDocumentPosition),F=t||ge.test(O.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return P=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===i?e===L||e.ownerDocument===j&&F(j,e)?-1:t===L||t.ownerDocument===j&&F(j,t)?1:M?ee(M,e)-ee(M,t):0:4&i?-1:1)}:function(e,t){if(e===t)return P=!0,0;var i,n=0,r=e.parentNode,a=t.parentNode,s=[e],o=[t];if(!r||!a)return e===L?-1:t===L?1:r?-1:a?1:M?ee(M,e)-ee(M,t):0;if(r===a)return c(e,t);for(i=e;i=i.parentNode;)s.unshift(i);for(i=t;i=i.parentNode;)o.unshift(i);for(;s[n]===o[n];)n++;return n?c(s[n],o[n]):s[n]===j?-1:o[n]===j?1:0}),L},_.matches=function(e,t){return _(e,null,null,t)},_.matchesSelector=function(e,t){if((e.ownerDocument||e)!==L&&A(e),t=t.replace(ue,"='$1']"),v.matchesSelector&&R&&!X[t+" "]&&(!N||!N.test(t))&&(!I||!I.test(t)))try{var i=z.call(e,t);if(i||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(Te){}return 0<_(t,L,null,[e]).length},_.contains=function(e,t){return(e.ownerDocument||e)!==L&&A(e),F(e,t)},_.attr=function(e,t){(e.ownerDocument||e)!==L&&A(e);var i=x.attrHandle[t.toLowerCase()],n=i&&G.call(x.attrHandle,t.toLowerCase())?i(e,t,!R):undefined;return n!==undefined?n:v.attributes||!R?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},_.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},_.uniqueSort=function(e){var t,i=[],n=0,r=0;if(P=!v.detectDuplicates,M=!v.sortStable&&e.slice(0),e.sort(W),P){for(;t=e[r++];)t===e[r]&&(n=i.push(r));for(;n--;)e.splice(i[n],1)}return M=null,e},T=_.getText=function(e){var t,i="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=T(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)i+=T(t);return i},(x=_.selectors={cacheLength:50,createPseudo:l,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(_e,we),e[3]=(e[3]||e[4]||e[5]||"").replace(_e,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||_.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&_.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&de.test(i)&&(t=S(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(_e,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=q[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&q(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(i,n,r){return function(e){var t=_.attr(e,i);return null==t?"!="===n:!n||(t+="","="===n?t===r:"!="===n?t!==r:"^="===n?r&&0===t.indexOf(r):"*="===n?r&&-1(?:<\/\1>|)$/,Te=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?pe.find.matchesSelector(n,e)?[n]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,i=[],n=this,r=n.length;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t)[^>]*|#([\w-]*))$/;(pe.fn.init=function(e,t,i){var n,r;if(!e)return this;if(i=i||ke,"string"==typeof e){if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Se.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),xe.test(n[1])&&pe.isPlainObject(t))for(n in t)pe.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((r=ne.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return ke.find(e);this.length=1,this[0]=r}return this.context=ne,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?"undefined"!=typeof i.ready?i.ready(e):e(pe):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))}).prototype=pe.fn,ke=pe(ne);var Ce=/^(?:parents|prev(?:Until|All))/,Ee={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,i=pe(e,this),n=i.length;return this.filter(function(){for(t=0;t
a",de.leadingWhitespace=3===Ie.firstChild.nodeType,de.tbody=!Ie.getElementsByTagName("tbody").length,de.htmlSerialize=!!Ie.getElementsByTagName("link").length,de.html5Clone="<:nav>"!==ne.createElement("nav").cloneNode(!0).outerHTML,ze.type="checkbox",ze.checked=!0,Ne.appendChild(ze),de.appendChecked=ze.checked,Ie.innerHTML="",de.noCloneChecked=!!Ie.cloneNode(!0).lastChild.defaultValue,Ne.appendChild(Ie),(ze=ne.createElement("input")).setAttribute("type","radio"),ze.setAttribute("checked","checked"),ze.setAttribute("name","t"),Ie.appendChild(ze),de.checkClone=Ie.cloneNode(!0).cloneNode(!0).lastChild.checked,de.noCloneEvent=!!Ie.addEventListener,Ie[pe.expando]=1,de.attributes=!Ie.getAttribute(pe.expando);var Ge={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:de.htmlSerialize?[0,"",""]:[1,"X
","
"]};Ge.optgroup=Ge.option,Ge.tbody=Ge.tfoot=Ge.colgroup=Ge.caption=Ge.thead,Ge.th=Ge.td;var Ue=/<|&#?\w+;/,Ke=/]","i"),rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,at=/\s*$/g,ct=g(ne).appendChild(ne.createElement("div"));pe.extend({htmlPrefilter:function(e){return e.replace(rt,"<$1>")},clone:function(e,t,i){var n,r,a,s,o,l=pe.contains(e.ownerDocument,e);if(de.html5Clone||pe.isXMLDoc(e)||!nt.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(ct.innerHTML=e.outerHTML,ct.removeChild(a=ct.firstChild)),!(de.noCloneEvent&&de.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(n=v(a),o=v(e),s=0;null!=(r=o[s]);++s)n[s]&&C(r,n[s]);if(t)if(i)for(o=o||v(e),n=n||v(a),s=0;null!=(r=o[s]);s++)S(r,n[s]);else S(e,a);return 0<(n=v(a,"script")).length&&y(n,!l&&v(e,"script")),n=o=r=null,a},cleanData:function(e,t){for(var i,n,r,a,s=0,o=pe.expando,l=pe.cache,c=de.attributes,u=pe.event.special;null!=(i=e[s]);s++)if((t||Le(i))&&(a=(r=i[o])&&l[r])){if(a.events)for(n in a.events)u[n]?pe.event.remove(i,n):pe.removeEvent(i,n,a.handle);l[r]&&(delete l[r],c||"undefined"==typeof i.removeAttribute?i[o]=undefined:i.removeAttribute(o),ie.push(r))}}}),pe.fn.extend({domManip:E,detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return $e(this,function(e){return e===undefined?pe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ne).createTextNode(e))},null,e,arguments.length)},append:function(){return E(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||w(this,e).appendChild(e)})},prepend:function(){return E(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=w(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return E(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return E(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pe.cleanData(v(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&pe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return $e(this,function(e){var t=this[0]||{},i=0,n=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(it,""):undefined;if("string"==typeof e&&!at.test(e)&&(de.htmlSerialize||!nt.test(e))&&(de.leadingWhitespace||!We.test(e))&&!Ge[(Ye.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;it",u.childNodes[0].style.borderCollapse="separate",(e=u.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",s=0===e[0].offsetHeight)),i.removeChild(c)}var n,r,a,s,o,l,c=ne.createElement("div"),u=ne.createElement("div");u.style&&(u.style.cssText="float:left;opacity:.5",de.opacity="0.5"===u.style.opacity,de.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",de.clearCloneStyle="content-box"===u.style.backgroundClip,(c=ne.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",c.appendChild(u),de.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,pe.extend(de,{reliableHiddenOffsets:function(){return null==n&&e(),s},boxSizingReliable:function(){return null==n&&e(),a},pixelMarginRight:function(){return null==n&&e(),r},pixelPosition:function(){return null==n&&e(),n},reliableMarginRight:function(){return null==n&&e(),o},reliableMarginLeft:function(){return null==n&&e(),l}}))}();var gt,vt,yt=/^(top|right|bottom|left)$/;T.getComputedStyle?(gt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=T),t.getComputedStyle(e)},vt=function(e,t,i){var n,r,a,s,o=e.style;return""!==(s=(i=i||gt(e))?i.getPropertyValue(t)||i[t]:undefined)&&s!==undefined||pe.contains(e.ownerDocument,e)||(s=pe.style(e,t)),i&&!de.pixelMarginRight()&&pt.test(s)&&ht.test(t)&&(n=o.width,r=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=i.width,o.width=n,o.minWidth=r,o.maxWidth=a),s===undefined?s:s+""}):mt.currentStyle&&(gt=function(e){return e.currentStyle},vt=function(e,t,i){var n,r,a,s,o=e.style;return null==(s=(i=i||gt(e))?i[t]:undefined)&&o&&o[t]&&(s=o[t]),pt.test(s)&&!yt.test(t)&&(n=o.left,(a=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),o.left="fontSize"===t?"1em":s,s=o.pixelLeft+"px",o.left=n,a&&(r.left=a)),s===undefined?s:s+""||"auto"});var bt=/alpha\([^)]*\)/i,_t=/opacity\s*=\s*([^)]*)/i,wt=/^(none|table(?!-c[ea]).+)/,xt=new RegExp("^("+Fe+")(.*)$","i"),Tt={position:"absolute",visibility:"hidden",display:"block"},kt={letterSpacing:"0",fontWeight:"400"},St=["Webkit","O","Moz","ms"],Ct=ne.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=vt(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":de.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,s,o=pe.camelCase(t),l=e.style;if(t=pe.cssProps[o]||(pe.cssProps[o]=L(o)||o),s=pe.cssHooks[t]||pe.cssHooks[o],i===undefined)return s&&"get"in s&&(r=s.get(e,!1,n))!==undefined?r:l[t];if("string"===(a=typeof i)&&(r=He.exec(i))&&r[1]&&(i=d(e,t,r),a="number"),null!=i&&i==i&&("number"===a&&(i+=r&&r[3]||(pe.cssNumber[o]?"":"px")),de.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),!(s&&"set"in s&&(i=s.set(e,i,n))===undefined)))try{l[t]=i}catch(c){}}},css:function(e,t,i,n){var r,a,s,o=pe.camelCase(t);return t=pe.cssProps[o]||(pe.cssProps[o]=L(o)||o),(s=pe.cssHooks[t]||pe.cssHooks[o])&&"get"in s&&(a=s.get(e,!0,i)),a===undefined&&(a=vt(e,t,n)),"normal"===a&&t in kt&&(a=kt[t]),""===i||i?(r=parseFloat(a),!0===i||isFinite(r)?r||0:a):a}}),pe.each(["height","width"],function(e,r){pe.cssHooks[r]={get:function(e,t,i){if(t)return wt.test(pe.css(e,"display"))&&0===e.offsetWidth?ft(e,Tt,function(){return N(e,r,i)}):N(e,r,i)},set:function(e,t,i){var n=i&>(e);return R(e,t,i?I(e,r,i,de.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,n),n):0)}}}),de.opacity||(pe.cssHooks.opacity={get:function(e,t){return _t.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var i=e.style,n=e.currentStyle,r=pe.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=n&&n.filter||i.filter||"";((i.zoom=1)<=t||""===t)&&""===pe.trim(a.replace(bt,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===t||n&&!n.filter)||(i.filter=bt.test(a)?a.replace(bt,r):a+" "+r)}}),pe.cssHooks.marginRight=A(de.reliableMarginRight,function(e,t){if(t)return ft(e,{display:"inline-block"},vt,[e,"marginRight"])}),pe.cssHooks.marginLeft=A(de.reliableMarginLeft,function(e,t){if(t)return(parseFloat(vt(e,"marginLeft"))||(pe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-ft(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"Width"},function(r,a){pe.cssHooks[r+a]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[r+je[t]+a]=n[t]||n[t-2]||n[0];return i}},ht.test(r)||(pe.cssHooks[r+a].set=R)}),pe.fn.extend({css:function(e,t){return $e(this,function(e,t,i){var n,r,a={},s=0;if(pe.isArray(t)){for(n=gt(e),r=t.length;s
a",Mt=At.getElementsByTagName("a")[0],Pt.setAttribute("type","checkbox"),At.appendChild(Pt),(Mt=At.getElementsByTagName("a")[0]).style.cssText="top:1px",de.getSetAttribute="t"!==At.className,de.style=/top/.test(Mt.getAttribute("style")),de.hrefNormalized="/a"===Mt.getAttribute("href"),de.checkOn=!!Pt.value,de.optSelected=Ot.selected,de.enctype=!!ne.createElement("form").enctype,Lt.disabled=!0,de.optDisabled=!Ot.disabled,(Pt=ne.createElement("input")).setAttribute("value",""),de.input=""===Pt.getAttribute("value"),Pt.value="t",Pt.setAttribute("type","radio"),de.radioValue="t"===Pt.value;var Nt=/\r/g,zt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(i){var n,e,r,t=this[0];return arguments.length?(r=pe.isFunction(i),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?i.call(this,e,pe(this).val()):i)?t="":"number"==typeof t?t+="":pe.isArray(t)&&(t=pe.map(t,function(e){return null==e?"":e+""})),(n=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,t,"value")!==undefined||(this.value=t))})):t?(n=pe.valHooks[t.type]||pe.valHooks[t.nodeName.toLowerCase()])&&"get"in n&&(e=n.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Nt,""):null==e?"":e:void 0}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(zt," ")}},select:{get:function(e){for(var t,i,n=e.options,r=e.selectedIndex,a="select-one"===e.type||r<0,s=a?null:[],o=a?r+1:n.length,l=r<0?o:a?r:0;l").append(pe.parseHTML(e)).find(n):e)}).always(i&&function(e,t){s.each(function(){i.apply(this,a||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(t){return pe.grep(pe.timers,function(e){return t===e.elem}).length},pe.offset={setOffset:function(e,t,i){var n,r,a,s,o,l,c=pe.css(e,"position"),u=pe(e),d={};"static"===c&&(e.style.position="relative"),o=u.offset(),a=pe.css(e,"top"),l=pe.css(e,"left"),("absolute"===c||"fixed"===c)&&-1"))}function i(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){T(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&T(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&T(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,s)}function s(){T.datepicker._isDisabledDatepicker(o.inline?o.dpDiv.parent()[0]:o.input[0])||(T(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),T(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&T(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&T(this).addClass("ui-datepicker-next-hover"))}function d(e,t){for(var i in T.extend(e,t),t)null==t[i]&&(e[i]=t[i]);return e}var o;return T.extend(T.ui,{datepicker:{version:"1.12.1"}}),T.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return d(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var i,n,r;n="div"===(i=e.nodeName.toLowerCase())||"span"===i,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(r=this._newInst(T(e),n)).settings=T.extend({},t||{}),"input"===i?this._connectDatepicker(e,r):n&&this._inlineDatepicker(e,r)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?i(T("
")):this.dpDiv}},_connectDatepicker:function(e,t){var i=T(e);t.append=T([]),t.trigger=T([]),i.hasClass(this.markerClassName)||(this._attachments(i,t),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),T.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var i,n,r,a=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),a&&(t.append=T(""+a+""),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(n=this._get(t,"buttonText"),r=this._get(t,"buttonImage"),t.trigger=T(this._get(t,"buttonImageOnly")?T("").addClass(this._triggerClass).attr({src:r,alt:n,title:n}):T("").addClass(this._triggerClass).html(r?T("").attr({src:r,alt:n,title:n}):n)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return T.datepicker._datepickerShowing&&T.datepicker._lastInput===e[0]?T.datepicker._hideDatepicker():(T.datepicker._datepickerShowing&&T.datepicker._lastInput!==e[0]&&T.datepicker._hideDatepicker(),T.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,r,a=new Date(2009,11,20),s=this._get(e,"dateFormat");s.match(/[DM]/)&&(t=function(e){for(r=n=i=0;ri&&(i=e[r].length,n=r);return n},a.setMonth(t(this._get(e,s.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(e,t){var i=T(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(t.dpDiv),T.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,i,n,r){var a,s,o,l,c,u=this._dialogInst;return u||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=T(""),this._dialogInput.on("keydown",this._doKeyDown),T("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},T.data(this._dialogInput[0],"datepicker",u)),d(u.settings,n||{}),t=t&&t.constructor===Date?this._formatDate(u,t):t,this._dialogInput.val(t),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(s=document.documentElement.clientWidth,o=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+l,o/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),T.blockUI&&T.blockUI(this.dpDiv),T.data(this._dialogInput[0],"datepicker",u),this},_destroyDatepicker:function(e){var t,i=T(e),n=T.data(e,"datepicker");i.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),T.removeData(e,"datepicker"),"input"===t?(n.append.remove(),n.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||i.removeClass(this.markerClassName).empty(),o===n&&(o=null))},_enableDatepicker:function(t){var e,i,n=T(t),r=T.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,r.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=T.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,i,n=T(t),r=T.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,r.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=T.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;to&&nl&&rt;)--Z<0&&(Z=11,ee--);for(e.drawMonth=Z,e.drawYear=ee,i=this._get(e,"prevText"),i=X?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,Z-G,1)),this._getFormatConfig(e)):i,n=this._canAdjustMonth(e,-1,ee,Z)?""+i+"":Y?"":""+i+"",r=this._get(e,"nextText"),r=X?this.formatDate(r,this._daylightSavingAdjust(new Date(ee,Z+G,1)),this._getFormatConfig(e)):r,a=this._canAdjustMonth(e,1,ee,Z)?""+r+"":Y?"":""+r+"",s=this._get(e,"currentText"),o=this._get(e,"gotoCurrent")&&e.currentDay?K:B,s=X?this.formatDate(s,o,this._getFormatConfig(e)):s,l=e.inline?"":"",c=q?"
"+($?l:"")+(this._isInRange(e,o)?"":"")+($?"":l)+"
":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),h=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),_="",x=0;x"+(/all|left/.test(C)&&0===x?$?a:n:"")+(/all|right/.test(C)&&0===x?$?n:a:"")+this._generateMonthYearHeader(e,Z,ee,Q,J,0",D=d?"":"",w=0;w<7;w++)D+="";for(E+=D+"",P=this._getDaysInMonth(ee,Z),ee===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,P)),A=(this._getFirstDayOfMonth(ee,Z)-u+7)%7,L=Math.ceil((A+P)/7),O=U&&this.maxRows>L?this.maxRows:L,this.maxRows=O,R=this._daylightSavingAdjust(new Date(ee,Z,1-A)),I=0;I",N=d?"":"",w=0;w<7;w++)z=g?g.apply(e.input?e.input[0]:null,[R]):[!0,""],H=(F=R.getMonth()!==Z)&&!y||!z[0]||Q&&R"+(F&&!v?" ":H?""+R.getDate()+"":""+R.getDate()+"")+"",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);E+=N+""}11<++Z&&(Z=0,ee++),T+=E+="
"+this._get(e,"weekHeader")+""+p[M]+"
"+this._get(e,"calculateWeek")(R)+"
"+(U?""+(0":""):"")}_+=T}return _+=c,e._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,i,n,r,a,s,o){var l,c,u,d,h,p,f,m,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="
",_="";if(a||!g)_+=""+s[t]+"";else{for(l=n&&n.getFullYear()===i,c=r&&r.getFullYear()===i,_+=""}if(y||(b+=_+(!a&&g&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",a||!v)b+=""+i+"";else{for(d=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),f=(p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t})(d[0]),m=Math.max(f,p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=r?Math.min(m,r.getFullYear()):m,e.yearshtml+="",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),y&&(b+=(!a&&g&&v?"":" ")+_),b+="
"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),r=e.selectedMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,r))+("D"===i?t:0),s=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,r,a)));e.selectedDay=s.getDate(),e.drawMonth=e.selectedMonth=s.getMonth(),e.drawYear=e.selectedYear=s.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),r=i&&t=r.getTime())&&(!a||t.getTime()<=a.getTime())&&(!s||t.getFullYear()>=s)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var r=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),r,this._getFormatConfig(e))}}),T.fn.datepicker=function(e,t){if(!this.length)return this;T.datepicker.initialized||(T(document).on("mousedown",T.datepicker._checkExternalClick),T.datepicker.initialized=!0),0===T("#"+T.datepicker._mainDivId).length&&T("body").append(T.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof t?T.datepicker["_"+e+"Datepicker"].apply(T.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?T.datepicker["_"+e+"Datepicker"].apply(T.datepicker,[this].concat(i)):T.datepicker._attachDatepicker(this,e)}):T.datepicker["_"+e+"Datepicker"].apply(T.datepicker,[this[0]].concat(i))},T.datepicker=new e,T.datepicker.initialized=!1,T.datepicker.uuid=(new Date).getTime(),T.datepicker.version="1.12.1",T.datepicker}),function(e){"function"==typeof define&&define.amd?define(["../widgets/datepicker"],e):e(jQuery.datepicker)}(function(e){return e.regional.ja={closeText:"\u9589\u3058\u308b",prevText:"<\u524d",nextText:"\u6b21>",currentText:"\u4eca\u65e5",monthNames:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],monthNamesShort:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayNames:["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],dayNamesShort:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],dayNamesMin:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],weekHeader:"\u9031",dateFormat:"yy/mm/dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"\u5e74"},e.setDefaults(e.regional.ja),e.regional.ja}),function(){var e=this;(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(e);var y=e.Rails;(function(){(function(){y.cspNonce=function(){var e;return(e=document.querySelector("meta[name=csp-nonce]"))&&e.content}}).call(this),function(){var n,i;i=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,y.matches=function(e,t){return null!=t.exclude?i.call(e,t.selector)&&!i.call(e,t.exclude):i.call(e,t)},n="_ujsData",y.getData=function(e,t){var i;return null!=(i=e[n])?i[t]:void 0},y.setData=function(e,t,i){return null==e[n]&&(e[n]={}),e[n][t]=i},y.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var i,n,r;i=y.$,r=y.csrfToken=function(){var e;return(e=document.querySelector("meta[name=csrf-token]"))&&e.content},n=y.csrfParam=function(){var e;return(e=document.querySelector("meta[name=csrf-param]"))&&e.content},y.CSRFProtection=function(e){var t;if(null!=(t=r()))return e.setRequestHeader("X-CSRF-Token",t)},y.refreshCSRFTokens=function(){var e,t;if(t=r(),e=n(),null!=t&&null!=e)return i('form input[name="'+e+'"]').forEach(function(e){return e.value=t})}}.call(this),function(){var r,t,a,i;a=y.matches,"function"!=typeof(r=window.CustomEvent)&&((r=function(e,t){var i;return(i=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}).prototype=window.Event.prototype,i=r.prototype.preventDefault,r.prototype.preventDefault=function(){var e;return e=i.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),t=y.fire=function(e,t,i){var n;return n=new r(t,{bubbles:!0,cancelable:!0,detail:i}),e.dispatchEvent(n),!n.defaultPrevented},y.stopEverything=function(e){return t(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},y.delegate=function(e,i,t,n){return e.addEventListener(t,function(e){var t;for(t=e.target;t instanceof Element&&!a(t,i);)t=t.parentNode;if(t instanceof Element&&!1===n.call(t,e))return e.preventDefault(),e.stopPropagation()})}}.call(this),function(){var t,n,e,a,r,s;a=y.cspNonce,n=y.CSRFProtection,y.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},y.ajax=function(i){var n;return i=r(i),n=e(i,function(){var e,t;return t=s(null!=(e=n.response)?e:n.responseText,n.getResponseHeader("Content-Type")),2===Math.floor(n.status/100)?"function"==typeof i.success&&i.success(t,n.statusText,n):"function"==typeof i.error&&i.error(t,n.statusText,n),"function"==typeof i.complete?i.complete(n,n.statusText):void 0}),!(null!=i.beforeSend&&!i.beforeSend(n,i))&&(n.readyState===XMLHttpRequest.OPENED?n.send(i.data):void 0)},r=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==t[e.dataType]&&(e.dataType="*"),e.accept=t[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},e=function(e,t){var i;return(i=new XMLHttpRequest).open(e.type,e.url,!0),i.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),n(i),i.withCredentials=!!e.withCredentials,i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)return t(i)},i},s=function(e,t){var i,n;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(r){}else if(t.match(/\b(?:java|ecma)script\b/))(n=document.createElement("script")).nonce=a(),n.text=e,document.head.appendChild(n).parentNode.removeChild(n);else if(t.match(/\b(xml|html|svg)\b/)){i=new DOMParser,t=t.replace(/;.+/,"");try{e=i.parseFromString(e,t)}catch(r){}}return e},y.href=function(e){return e.href},y.isCrossDomain=function(e){var t,i;(t=document.createElement("a")).href=location.href,i=document.createElement("a");try{return i.href=e,!((!i.protocol||":"===i.protocol)&&!i.host||t.protocol+"//"+t.host==i.protocol+"//"+i.host)}catch(n){return n,!0}}}.call(this),function(){var r,a;r=y.matches,a=function(e){return Array.prototype.slice.call(e)},y.serializeElement=function(e,t){var i,n;return i=[e],r(e,"form")&&(i=a(e.elements)),n=[],i.forEach(function(t){if(t.name&&!t.disabled)return r(t,"select")?a(t.options).forEach(function(e){if(e.selected)return n.push({name:t.name,value:e.value})}):t.checked||-1===["radio","checkbox","submit"].indexOf(t.type)?n.push({name:t.name,value:t.value}):void 0}),t&&n.push(t),n.map(function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e}).join("&")},y.formElements=function(e,t){return r(e,"form")?a(e.elements).filter(function(e){return r(e,t)}):a(e.querySelectorAll(t))}}.call(this),function(){var t,a,i;a=y.fire,i=y.stopEverything,y.handleConfirm=function(e){if(!t(this))return i(e)},t=function(e){var t,i,n;if(!(n=e.getAttribute("data-confirm")))return!0;if(t=!1,a(e,"confirm")){try{t=confirm(n)}catch(r){}i=a(e,"confirm:complete",[t])}return t&&i}}.call(this),function(){var i,n,r,a,s,o,t,l,c,u,d;c=y.matches,l=y.getData,u=y.setData,d=y.stopEverything,t=y.formElements,y.handleDisabledElement=function(e){if(this.disabled)return d(e)},y.enableElement=function(e){var t;return t=e instanceof Event?e.target:e,c(t,y.linkDisableSelector)?o(t):c(t,y.buttonDisableSelector)||c(t,y.formEnableSelector)?a(t):c(t,y.formSubmitSelector)?s(t):void 0},y.disableElement=function(e){var t;return t=e instanceof Event?e.target:e,c(t,y.linkDisableSelector)?r(t):c(t,y.buttonDisableSelector)||c(t,y.formDisableSelector)?i(t):c(t,y.formSubmitSelector)?n(t):void 0},r=function(e){var t;return null!=(t=e.getAttribute("data-disable-with"))&&(u(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",d),u(e,"ujs:disabled",!0)},o=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(e.innerHTML=t,u(e,"ujs:enable-with",null)),e.removeEventListener("click",d),u(e,"ujs:disabled",null)},n=function(e){return t(e,y.formDisableSelector).forEach(i)},i=function(e){var t;return null!=(t=e.getAttribute("data-disable-with"))&&(c(e,"button")?(u(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(u(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,u(e,"ujs:disabled",!0)},s=function(e){return t(e,y.formEnableSelector).forEach(a)},a=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(c(e,"button")?e.innerHTML=t:e.value=t,u(e,"ujs:enable-with",null)),e.disabled=!1,u(e,"ujs:disabled",null)}}.call(this),function(){var l;l=y.stopEverything,y.handleMethod=function(e){var t,i,n,r,a,s,o;if(o=(s=this).getAttribute("data-method"))return a=y.href(s),i=y.csrfToken(),t=y.csrfParam(),n=document.createElement("form"),r="",null==t||null==i||y.isCrossDomain(a)||(r+=""),r+='',n.method="post",n.action=a,n.target=s.target,n.innerHTML=r,n.style.display="none",document.body.appendChild(n),n.querySelector('[type="submit"]').click(),l(e)}}.call(this),function(){var l,c,u,d,h,p,f,m,g,v=[].slice;p=y.matches,u=y.getData,m=y.setData,c=y.fire,g=y.stopEverything,l=y.ajax,d=y.isCrossDomain,f=y.serializeElement,h=function(e){var t;return null!=(t=e.getAttribute("data-remote"))&&"false"!==t},y.handleRemote=function(e){var t,i,n,r,a,s,o;return!h(r=this)||(c(r,"ajax:before")?(o=r.getAttribute("data-with-credentials"),n=r.getAttribute("data-type")||"script",p(r,y.formSubmitSelector)?(t=u(r,"ujs:submit-button"),a=u(r,"ujs:submit-button-formmethod")||r.method,s=u(r,"ujs:submit-button-formaction")||r.getAttribute("action")||location.href,"GET"===a.toUpperCase()&&(s=s.replace(/\?.*$/,"")),"multipart/form-data"===r.enctype?(i=new FormData(r), null!=t&&i.append(t.name,t.value)):i=f(r,t),m(r,"ujs:submit-button",null),m(r,"ujs:submit-button-formmethod",null),m(r,"ujs:submit-button-formaction",null)):p(r,y.buttonClickSelector)||p(r,y.inputChangeSelector)?(a=r.getAttribute("data-method"),s=r.getAttribute("data-url"),i=f(r,r.getAttribute("data-params"))):(a=r.getAttribute("data-method"),s=y.href(r),i=r.getAttribute("data-params")),l({type:a||"GET",url:s,data:i,dataType:n,beforeSend:function(e,t){return c(r,"ajax:beforeSend",[e,t])?c(r,"ajax:send",[e]):(c(r,"ajax:stopped"),!1)},success:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],c(r,"ajax:success",e)},error:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],c(r,"ajax:error",e)},complete:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],c(r,"ajax:complete",e)},crossDomain:d(s),withCredentials:null!=o&&"false"!==o}),g(e)):(c(r,"ajax:stopped"),!1))},y.formSubmitButtonClick=function(){var e,t;if(t=(e=this).form)return e.name&&m(t,"ujs:submit-button",{name:e.name,value:e.value}),m(t,"ujs:formnovalidate-button",e.formNoValidate),m(t,"ujs:submit-button-formaction",e.getAttribute("formaction")),m(t,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},y.handleMetaClick=function(e){var t,i,n;if(n=((i=this).getAttribute("data-method")||"GET").toUpperCase(),t=i.getAttribute("data-params"),(e.metaKey||e.ctrlKey)&&"GET"===n&&!t)return e.stopImmediatePropagation()}}.call(this),function(){var e,n,t,i,r,a,s,o,l,c,u,d,h,p;a=y.fire,t=y.delegate,o=y.getData,e=y.$,p=y.refreshCSRFTokens,n=y.CSRFProtection,r=y.enableElement,i=y.disableElement,c=y.handleDisabledElement,l=y.handleConfirm,h=y.handleRemote,s=y.formSubmitButtonClick,u=y.handleMetaClick,d=y.handleMethod,"undefined"==typeof jQuery||null===jQuery||null==jQuery.ajax||jQuery.rails||(jQuery.rails=y,jQuery.ajaxPrefilter(function(e,t,i){if(!e.crossDomain)return n(i)})),y.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return e(y.formEnableSelector).forEach(function(e){if(o(e,"ujs:disabled"))return r(e)}),e(y.linkDisableSelector).forEach(function(e){if(o(e,"ujs:disabled"))return r(e)})}),t(document,y.linkDisableSelector,"ajax:complete",r),t(document,y.linkDisableSelector,"ajax:stopped",r),t(document,y.buttonDisableSelector,"ajax:complete",r),t(document,y.buttonDisableSelector,"ajax:stopped",r),t(document,y.linkClickSelector,"click",c),t(document,y.linkClickSelector,"click",l),t(document,y.linkClickSelector,"click",u),t(document,y.linkClickSelector,"click",i),t(document,y.linkClickSelector,"click",h),t(document,y.linkClickSelector,"click",d),t(document,y.buttonClickSelector,"click",c),t(document,y.buttonClickSelector,"click",l),t(document,y.buttonClickSelector,"click",i),t(document,y.buttonClickSelector,"click",h),t(document,y.inputChangeSelector,"change",c),t(document,y.inputChangeSelector,"change",l),t(document,y.inputChangeSelector,"change",h),t(document,y.formSubmitSelector,"submit",c),t(document,y.formSubmitSelector,"submit",l),t(document,y.formSubmitSelector,"submit",h),t(document,y.formSubmitSelector,"submit",function(e){return setTimeout(function(){return i(e)},13)}),t(document,y.formSubmitSelector,"ajax:send",i),t(document,y.formSubmitSelector,"ajax:complete",r),t(document,y.formInputClickSelector,"click",c),t(document,y.formInputClickSelector,"click",l),t(document,y.formInputClickSelector,"click",s),document.addEventListener("DOMContentLoaded",p),window._rails_loaded=!0},window.Rails===y&&a(document,"rails:attachBindings")&&y.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=y:"function"==typeof define&&define.amd&&define(y)}.call(this),function(){this.Turbolinks={supported:null!=window.history.pushState&&null!=window.requestAnimationFrame&&null!=window.addEventListener,visit:function(e,t){return Turbolinks.controller.visit(e,t)},clearCache:function(){return Turbolinks.controller.clearCache()},setProgressBarDelay:function(e){return Turbolinks.controller.setProgressBarDelay(e)}}}.call(this),function(){var i,n,l,e,t,r,a,s,o,c=[].slice;Turbolinks.copyObject=function(e){var t,i,n;for(t in i={},e)n=e[t],i[t]=n;return i},Turbolinks.closest=function(e,t){return i.call(e,t)},i=null!=(o=document.documentElement.closest)?o:function(e){var t;for(t=this;t;){if(t.nodeType===Node.ELEMENT_NODE&&n.call(t,e))return t;t=t.parentNode}},Turbolinks.defer=function(e){return setTimeout(e,1)},Turbolinks.throttle=function(i){var n;return n=null,function(){var e,t;return e=1<=arguments.length?c.call(arguments,0):[],null!=n?n:n=requestAnimationFrame((t=this,function(){return n=null,i.apply(t,e)}))}},Turbolinks.dispatch=function(e,t){var i,n,r,a,s,o;return o=(s=null!=t?t:{}).target,i=s.cancelable,n=s.data,(r=document.createEvent("Events")).initEvent(e,!0,!0===i),r.data=null!=n?n:{},r.cancelable&&!l&&(a=r.preventDefault,r.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),a.call(this)}),(null!=o?o:document).dispatchEvent(r),r},(s=document.createEvent("Events")).initEvent("test",!0,!0),s.preventDefault(),l=s.defaultPrevented,Turbolinks.match=function(e,t){return n.call(e,t)},n=null!=(t=null!=(r=null!=(a=(e=document.documentElement).matchesSelector)?a:e.webkitMatchesSelector)?r:e.msMatchesSelector)?t:e.mozMatchesSelector,Turbolinks.uuid=function(){var e,t,i;for(i="",e=t=1;t<=36;e=++t)i+=9===e||14===e||19===e||24===e?"-":15===e?"4":20===e?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return i}}.call(this),function(){Turbolinks.Location=function(){function e(e){var t,i;null==e&&(e=""),(i=document.createElement("a")).href=e.toString(),this.absoluteURL=i.href,(t=i.hash.length)<2?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-t),this.anchor=i.hash.slice(1))}var t,i,n,r;return e.wrap=function(e){return e instanceof this?e:new this(e)},e.prototype.getOrigin=function(){return this.absoluteURL.split("/",3).join("/")},e.prototype.getPath=function(){var e,t;return null!=(e=null!=(t=this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/))?t[1]:void 0)?e:"/"},e.prototype.getPathComponents=function(){return this.getPath().split("/").slice(1)},e.prototype.getLastPathComponent=function(){return this.getPathComponents().slice(-1)[0]},e.prototype.getExtension=function(){var e,t;return null!=(e=null!=(t=this.getLastPathComponent().match(/\.[^.]*$/))?t[0]:void 0)?e:""},e.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},e.prototype.isPrefixedBy=function(e){var t;return t=i(e),this.isEqualTo(e)||r(this.absoluteURL,t)},e.prototype.isEqualTo=function(e){return this.absoluteURL===(null!=e?e.absoluteURL:void 0)},e.prototype.toCacheKey=function(){return this.requestURL},e.prototype.toJSON=function(){return this.absoluteURL},e.prototype.toString=function(){return this.absoluteURL},e.prototype.valueOf=function(){return this.absoluteURL},i=function(e){return t(e.getOrigin()+e.getPath())},t=function(e){return n(e,"/")?e:e+"/"},r=function(e,t){return e.slice(0,t.length)===t},n=function(e,t){return e.slice(-t.length)===t},e}()}.call(this),function(){var n=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.HttpRequest=function(){function e(e,t,i){this.delegate=e,this.requestCanceled=n(this.requestCanceled,this),this.requestTimedOut=n(this.requestTimedOut,this),this.requestFailed=n(this.requestFailed,this),this.requestLoaded=n(this.requestLoaded,this),this.requestProgressed=n(this.requestProgressed,this),this.url=Turbolinks.Location.wrap(t).requestURL,this.referrer=Turbolinks.Location.wrap(i).absoluteURL,this.createXHR()}return e.NETWORK_FAILURE=0,e.TIMEOUT_FAILURE=-1,e.timeout=60,e.prototype.send=function(){var e;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,"function"==typeof(e=this.delegate).requestStarted?e.requestStarted():void 0):void 0},e.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},e.prototype.requestProgressed=function(e){return e.lengthComputable?this.setProgress(e.loaded/e.total):void 0},e.prototype.requestLoaded=function(){return this.endRequest((t=this,function(){var e;return 200<=(e=t.xhr.status)&&e<300?t.delegate.requestCompletedWithResponse(t.xhr.responseText,t.xhr.getResponseHeader("Turbolinks-Location")):(t.failed=!0,t.delegate.requestFailedWithStatusCode(t.xhr.status,t.xhr.responseText))}));var t},e.prototype.requestFailed=function(){return this.endRequest((e=this,function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.NETWORK_FAILURE)}));var e},e.prototype.requestTimedOut=function(){return this.endRequest((e=this,function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.TIMEOUT_FAILURE)}));var e},e.prototype.requestCanceled=function(){return this.endRequest()},e.prototype.notifyApplicationBeforeRequestStart=function(){return Turbolinks.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},e.prototype.notifyApplicationAfterRequestEnd=function(){return Turbolinks.dispatch("turbolinks:request-end",{data:{url:this.url,xhr:this.xhr}})},e.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},e.prototype.endRequest=function(e){return this.xhr?(this.notifyApplicationAfterRequestEnd(),null!=e&&e.call(this),this.destroy()):void 0},e.prototype.setProgress=function(e){var t;return this.progress=e,"function"==typeof(t=this.delegate).requestProgressed?t.requestProgressed(this.progress):void 0},e.prototype.destroy=function(){var e;return this.setProgress(1),"function"==typeof(e=this.delegate).requestFinished&&e.requestFinished(),this.delegate=null,this.xhr=null},e}()}.call(this),function(){var i=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.ProgressBar=function(){function e(){this.trickle=i(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var t;return t=300,e.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 "+t+"ms ease-out, opacity "+t/2+"ms "+t/2+"ms ease-in;\n transform: translate3d(0, 0, 0);\n}",e.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},e.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement((e=this,function(){return e.uninstallProgressElement(),e.stopTrickling(),e.visible=!1,e.hiding=!1}))):void 0;var e},e.prototype.setValue=function(e){return this.value=e,this.refresh()},e.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},e.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},e.prototype.fadeProgressElement=function(e){return this.progressElement.style.opacity=0,setTimeout(e,1.5*t)},e.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement):void 0},e.prototype.startTrickling=function(){return null!=this.trickleInterval?this.trickleInterval:this.trickleInterval=setInterval(this.trickle,t)},e.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},e.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},e.prototype.refresh=function(){return requestAnimationFrame((e=this,function(){return e.progressElement.style.width=10+90*e.value+"%"}));var e},e.prototype.createStylesheetElement=function(){var e;return(e=document.createElement("style")).type="text/css",e.textContent=this.constructor.defaultCSS,e},e.prototype.createProgressElement=function(){var e;return(e=document.createElement("div")).className="turbolinks-progress-bar",e},e}()}.call(this),function(){var r=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.BrowserAdapter=function(){function e(e){this.controller=e,this.showProgressBar=r(this.showProgressBar,this),this.progressBar=new Turbolinks.ProgressBar}var i,n,t;return t=Turbolinks.HttpRequest,i=t.NETWORK_FAILURE,n=t.TIMEOUT_FAILURE,e.prototype.visitProposedToLocationWithAction=function(e,t){return this.controller.startVisitToLocationWithAction(e,t)},e.prototype.visitStarted=function(e){return e.issueRequest(),e.changeHistory(),e.loadCachedSnapshot()},e.prototype.visitRequestStarted=function(e){return this.progressBar.setValue(0),e.hasCachedSnapshot()||"restore"!==e.action?this.showProgressBarAfterDelay():this.showProgressBar()},e.prototype.visitRequestProgressed=function(e){return this.progressBar.setValue(e.progress)},e.prototype.visitRequestCompleted=function(e){return e.loadResponse()},e.prototype.visitRequestFailedWithStatusCode=function(e,t){switch(t){case i:case n:return this.reload();default:return e.loadResponse()}},e.prototype.visitRequestFinished=function(){return this.hideProgressBar()},e.prototype.visitCompleted=function(e){return e.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 t=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.History=function(){function e(e){this.delegate=e,this.onPageLoad=t(this.onPageLoad,this),this.onPopState=t(this.onPopState,this)}return e.prototype.start=function(){return this.started?void 0:(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0)},e.prototype.stop=function(){return this.started?(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},e.prototype.push=function(e,t){return e=Turbolinks.Location.wrap(e),this.update("push",e,t)},e.prototype.replace=function(e,t){return e=Turbolinks.Location.wrap(e),this.update("replace",e,t)},e.prototype.onPopState=function(e){var t,i,n,r;return this.shouldHandlePopState()&&(r=null!=(i=e.state)?i.turbolinks:void 0)?(t=Turbolinks.Location.wrap(window.location),n=r.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(t,n)):void 0},e.prototype.onPageLoad=function(){return Turbolinks.defer((e=this,function(){return e.pageLoaded=!0}));var e},e.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},e.prototype.pageIsLoaded=function(){return this.pageLoaded||"complete"===document.readyState},e.prototype.update=function(e,t,i){var n;return n={turbolinks:{restorationIdentifier:i}},history[e+"State"](n,null,t)},e}()}.call(this),function(){Turbolinks.Snapshot=function(){function e(e){var t,i;i=e.head,t=e.body,this.head=null!=i?i:document.createElement("head"),this.body=null!=t?t:document.createElement("body")}return e.wrap=function(e){return e instanceof this?e:this.fromHTML(e)},e.fromHTML=function(e){var t;return(t=document.createElement("html")).innerHTML=e,this.fromElement(t)},e.fromElement=function(e){return new this({head:e.querySelector("head"),body:e.querySelector("body")})},e.prototype.clone=function(){return new e({head:this.head.cloneNode(!0),body:this.body.cloneNode(!0)})},e.prototype.getRootLocation=function(){var e,t;return t=null!=(e=this.getSetting("root"))?e:"/",new Turbolinks.Location(t)},e.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},e.prototype.getElementForAnchor=function(e){try{return this.body.querySelector("[id='"+e+"'], a[name='"+e+"']")}catch(t){}},e.prototype.hasAnchor=function(e){return null!=this.getElementForAnchor(e)},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(e){var t,i;return null!=(t=(i=this.head.querySelectorAll("meta[name='turbolinks-"+e+"']"))[i.length-1])?t.getAttribute("content"):void 0},e}()}.call(this),function(){var a=[].slice;Turbolinks.Renderer=function(){function e(){}var i;return e.render=function(e,t){var i,n,r;return n=e,i=t,(r=function(e,t,i){i.prototype=e.prototype;var n=new i,r=e.apply(n,t);return Object(r)===r?r:n}(this,3<=arguments.length?a.call(arguments,2):[],function(){})).delegate=n,r.render(i),r},e.prototype.renderView=function(e){return this.delegate.viewWillRender(this.newBody),e(),this.delegate.viewRendered(this.newBody)},e.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},e.prototype.createScriptElement=function(e){var t;return"false"===e.getAttribute("data-turbolinks-eval")?e:((t=document.createElement("script")).textContent=e.textContent,t.async=!1,i(t,e),t)},i=function(e,t){var i,n,r,a,s,o,l;for(o=[],i=0,n=(a=t.attributes).length;i element inside the element. This is probably not what you meant to do!\n\nLoad your application\u2019s JavaScript bundle inside the element instead.